SFZ file syntax highlight help
I'm working on a gtksourceview syntax highlighter for SFZ sample description files: https://sfzformat.com/
SFZ is opcode based, for example:
sample=my sample.wav
I would like to be able to highlight sample
in the above example- but not the sample
text in the file name. (I wouldn't use sample
in a filename- but it's still valid SFZ, WS in filenames is also valid)
It would also be great to highlight opcode settings, not only ints & floats. Such as:
trigger=release
The valid trigger=
settings are: attack, release, first, legato, release_key
Attached is a draft of sfz.lang that I have been working on.
Edited by Alexander Mitchell