-
Notifications
You must be signed in to change notification settings - Fork 64
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
Random idea: plugin to serialize moo lexers to syntax plugins for various editors #94
Comments
I found this recently: https://eeyo.io/iro/ |
I'm going through this exercise now, manually converting a moo-based lexer into a textmate grammar - and it does not appear that this is something you could automate. The textmate grammars don't just tokenize, but they also need the grammar rules e.g. your Take a look at this javascript textmate grammar for vscode 😳 |
I did some looking and couldn't find a tool that generated syntax highlighting plugins for Emacs/Vim/TextMate/CodeMirror/Atom/your-favorite-editor-here. It would be neat if you could take an existing moo lexer, maybe add some config, and suddenly get plugins for a bunch of editors.
Based on some quick reading, most editors have a similar format for specifying syntaxes. But there are a few gotchas that might make this infeasible (e.g. Vim doesn't support states as far as I can tell, whereas Emacs has a messy special-cased configuration for multiline comments/strings).
The text was updated successfully, but these errors were encountered: