[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: another pygment formatting glitch
From: |
Werner LEMBERG |
Subject: |
Re: another pygment formatting glitch |
Date: |
Sat, 29 Oct 2022 13:02:47 +0000 (UTC) |
> The problem is that "violin" is also the name of a clef: [...]
Ah, yes, thanks. Will fix the example.
> [...] in general the Pygments lexer would have to be far smarter in
> order to distinguish cases where a particular word is used as a
> user-defined name vs. those where it should be highlighted as a
> builtin.
Just curious: Wouldn't be Wilbert's 'parce' library (used for the code
highlighter in Frescobaldi) a more sophisticated alternative?
Werner