parsec
parsec copied to clipboard
Generate syntax highlighting files
After you create a parser then you have write syntax highlighting files to syntax highlight the language your parser parses. When doing changes to the parser you manually have to update these files.
It would be good if you could generate such syntax highlight files for:
- Ace JavaScript editor.
- Lezer for the CodeMirror JavaScript editor.
- Monaco, Microsoft's JavaScript editor used by VS Code.
- GtkSourceView, the GTK source code editor component used by GNOME Text Editor, GNOME Builder and others.
- KDE Syntax Highlighting Engine used by Kate, KDevelop and others. (API)
- highlight.js, syntax highlighting for the web.
- Sublime Text, text editor
- TextMate, text editor
Before you can implement syntax highlighting you'll need to track source code positions in your AST design.