|
|
|
|
|
by rcfox
5363 days ago
|
|
Unfortunately, it's only for #if .* ... #el.* ... #endif. I didn't want to write that much of a parser, so I just push the line number onto a stack if I see a line like /^\s*#if/. I guess Emacs is using some kind of parser to do syntax highlighting, right? I wonder if it's possible to tap into that... |
|
Swapping out those regexen you have wouldn't be too much of a challenge, I don't think, at least for a first shot at it.
I'm more interested in the general structure of managing the counter, applying the various faces to lines, etc.
My email is in profile if you want someone to attempt to clean it up a bit (insofar as I'm capable of doing so) :)