Generating TextMate syntax highlighting grammars from Ohm grammars and semantics #618
MetlinAlexander
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I’m currently working on a bachelor thesis project based on Ohm.js, and I wanted to share a prototype tool I built.
The idea is to automatically generate TextMate syntax highlighting grammars (
tmLanguage.json) from:The project uses Ohm’s separation between grammar and semantics to infer syntax scopes and generate highlighting rules for editors like VSCode/TextMate.
Current features include:
Repository:
https://github.com/MetlinAlexander/Peg2TextMate
Examples currently include:
The project is still experimental, but Ohm’s semantic model turned out to be a really interesting foundation for IDE tooling generation.
I’d be very interested in any feedback or suggestions from the Ohm community.
Thanks for creating and maintaining Ohm.js!


All reactions