New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Syntax Highlighting Pycharm #382
Comments
Maybe it's possible to easily adapt the existing highlighting for Sublime or vscode? |
Pycharm's custom syntax highlighting really has simple features. |
I think even simple syntax highlighting can improve the experience
|
Instead, I want a plugin that provides syntax highlighting for the Lark parser syntax. |
I created a basic syntax highlighting with the file-types menu. It highlights keywords/operators, matches all parenthesis, highlights strings and comments. It is better than nothing but still not perfect (It misses all IntelliSense features) I might create a plugin, but that will take a bit of time. |
@MegaIng That's great! You should create a repo for it in github. We can then move it to the lark-parser namespace, if you like (https://github.com/lark-parser) |
A first version of the plugin is up and working (kinda) https://github.com/MegaIng/lark-syntax-highlighting. It sill has a few problems, but it works with basic syntax highlighting. (To install, install the jar file at top-level as a plugin) |
Very cool. I think it would be a good idea to add a README to the project, explaining exactly this. Also, a screenshot would be nice :) It would be great if we could find other pycharm users to test it. Anyone reading this maybe? |
Outstanding timing, pycharm is my favorite python ide and was just googling to see if there was lark support when I came across this thread. Gave the plugin a go and things worked as promised! Of course there are a few more things that would be nice to have like the standard theme colors for production names, aliases, references, operators ( There also seem to be an error with a red underline saying I don't want the comments to take away from the project though, really great work on the plugin! I think it is worth bringing into the organization to get some more work behind and it's own issue tracker. |
Ok, all basic things are fixed. It is usable (The syntax highlighting is adjustable in the settings). We could move it to the organization now, or you I could continue extending it in my private repo. I don't really have a preferred option. (I would greatly appreciate all feedback and improvements) |
Well, if we move it to the organization, it will get more exposure and the aura of authority :) I sent you an invite to the "syntax highlighting" team. Once you join you should be able to import the repo, I think. |
I was able to move the repo, but now I have very little control over it. I can not change the description or name of the repo, nor can I approve pull request or push directly. Although not required, It would be easier than to always use you as a proxy. |
Made you admin. Let me know if you need more ;) |
Ok, Thanks. |
Hearing the information that Lark library is early, I introduce Lark immediately and develop with Pycharm.
However, the bottleneck is that Pycharm does not support syntax highlighting. So I treat it as a text file.
So, create a plugin that can be syntax highlighted in Pycharm.
The text was updated successfully, but these errors were encountered: