reddit / emacs

How to properly font-lock for a custom major-mode aka how to use complex regex?

NoisyFrequency · 2022-04-29 16:47
[removed]
NoisyFrequency · 2022-04-29 18:04
Maybe /u/oantolin or /u/github-alphapapa will have something to say about this?
github-alphapapa · 2022-05-07 00:02
The best advice I can offer is to carefully and repeatedly study the Elisp manual section on font-lock, and to model on the source code of a similar project. The most I've done with it is in https://github.com/alphapapa/prism.el