logoalt Hacker News

dlgltlzedyesterday at 8:30 PM0 repliesview on HN

Syntax highlighting caught my interest after I created a data format. I stumbled upon TextMate grammar bundles which are supported in some editors and created a bundle that works with three of them. The gnome text editor uses a different language definition format for which I created a grammar file as well. [1]

To highlight the syntax in the browser I checked out the CodeMirror project that uses Lezer grammars. It is very flexible and allowed me to implement additional features like custom folding. [2]

I would also like to create a grammar for tree-sitter, finish the Java implementation and documentation of the ESON parser before I try to implement it in other languages.

[1] https://gitlab.com/marc-bruenisholz/eson-textmate-bundle [2] https://gitlab.com/marc-bruenisholz/eson-lezer-grammar