Skip to content
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

Open
mattfysh opened this issue Jul 13, 2022 · 1 comment
Open

Automatic conversion to textmate grammar #622

mattfysh opened this issue Jul 13, 2022 · 1 comment

Comments

@mattfysh
Copy link

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 line match rule)

Related: no-context/moo#94

@kach
Copy link
Owner

kach commented Jul 14, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants