[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax highlighting of a new grob name
From: |
Werner LEMBERG |
Subject: |
Re: Syntax highlighting of a new grob name |
Date: |
Sun, 04 Sep 2022 19:26:50 +0000 (UTC) |
> I see that CaesuraScript is highlighted differently than other grob
> names in this text:
>
> \override Score.Script.color = ...
> \override Score.MultiMesaureRestScript.color = ...
> \override Score.CaesuraScript.color = ...
>
> Can I do something to address this? TIA.
Well, file `_lilypond_builtins.py`, part of `pygments.zip`, doesn't
know `CaesuraScript` yet. This file gets generated by a file called
`lilypond-builtins-generator.ly`, which is not part of LilyPond...
What we probably need is a mechanism to add new grob names to pygments
via environment variables or something similar until the pygments
support gets updated.
Werner