Nicolas Martyanoff on Nostr: Designing and implementing a new language for configuration files is one thing, but ...
Designing and implementing a new language for configuration files is one thing, but there is no way I'm using it without an Emacs mode. So I wrote one!
That was not easy. Inheriting from prog-mode helps a lot of course. Then defining a syntax table, and suddenly font-lock magically highlights comments and character strings. Indentation (indent-line-function) was painful, but I got it working for the canonical representation (no inline blocks, sorry not sorry).
https://github.com/galdor/bcl-mode
That was not easy. Inheriting from prog-mode helps a lot of course. Then defining a syntax table, and suddenly font-lock magically highlights comments and character strings. Indentation (indent-line-function) was painful, but I got it working for the canonical representation (no inline blocks, sorry not sorry).
https://github.com/galdor/bcl-mode