Re: conditional highlight (without losing other definitions)
Federico Bruni <[email protected]> Sat, 11 Feb 2012 17:24:11 +0100
| Newsgroups | gmane.comp.gnu.source-highlight.general |
|---|---|
| Message-ID | <[email protected]> |
Il 11/02/2012 13:58, Federico Bruni ha scritto:
> I want to avoid using a list: that's the main purpose of my question :)
> I said it explicitly:
> >> How can I achieve that in a smart way (i.e. without using a list of all
> >> the \strings which can occur inside a \markup{} block)?
another option is using a backreference, but the following doesn't work:
markup_command = '(?<=\\markup\s\{)\\[[:alpha:]-]+'
also, it has a minor weakness: some people write \markup{ ... } instead
of \markup { ... }