-
Notifications
You must be signed in to change notification settings - Fork 228
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
Automatic conversion to textmate grammar #622
Comments
Hi Matt - I don't know of any such guides or tools but I do think it would be super cool to have an automated tool that cross-compiled grammars in a standard format (e.g. nearley/moo) to syntax files for not just textmate, but other editors too (e.g. vim or emacs). I imagine this tool being especially helpful for people designing DSLs, because they can instantly get editor tooling for their DSL "for free." If you want to take up this project, I would be really excited to see what you come up with, and maybe even discuss integrating with nearley (the way nearley-railroad is). Good luck! |
Hi @kach - thanks for this incredible work!
I was wondering if there are any guides & tools available to convert a nearley grammar into a textmate syntax highlighter? I'm doing the work manually right now, the biggest incompatibility is how textmate only works line-by-line, and it can be tricky to get multiline recognition working by using the
begin
/end
pattern (versus the single linematch
rule)Related: no-context/moo#94
The text was updated successfully, but these errors were encountered: