EvgSkv / logica

Logica is a logic programming language that compiles to SQL. It runs on DuckDB, Google BigQuery, PostgreSQL and SQLite.
https://logica.dev
Apache License 2.0
1.89k stars 95 forks source link

PyCharm syntax highlighting #211

Closed arturmkr closed 2 years ago

arturmkr commented 2 years ago

This is how syntax highlighting could be added into PyCharm: https://www.jetbrains.com/help/pycharm/tutorial-using-textmate-bundles.html

In order to add syntax highlighting for a new file, it should be a TextMate Bundle.

According https://github.com/EvgSkv/logica/blob/main/syntax/vscode/DEV.md src/logica.tmLanguage.yaml file is already written in TextMate grammar.

Probably, we could convert existing file to TextMate Bundle, so it would be possible to add syntax highlighting in PyCharm. @EvgSkv , what do you think?

arturmkr commented 2 years ago

Wow, it's working by specifying folder: syntax/vscode