>> The thing is that the regular expressions match both LilyPond and >> Scheme syntax. > > Uh? No they don’t, look at SchemeLexer and its horrendous regexes to > parse numbers (also written by yours truly).
Thanks for the correction; this makes adjusting the regular expressions simpler :-) > However, > > \musicFunction 4 > > could be an integer or a duration, and > > \musicFunction -4 > > could be an integer or a fingering, depending on how musicFunction > is defined, [...] Thanks, I didn't think of music functions. Werner