I have an option match for my Tcl syntax script as follows:
syn match tclOptionMatcher "\%(^\|\s\)\zs-[a-zA-Z]\+" contains=tclOptionStarter
syn match tclOptionStarter contained "-"
I also would like to get tclOperators going as well:
syntax match tclOperator "[~\-_+*<>\[\]{}=|[EMAIL PROTECTED]&\\/:&\^\.,!?]"
However, because the tclOperator match has a "-" in it, it nullifies the
first tclOptionMatcher.
Is there a way to have both? Can I group the first one like (-[a-zA-Z]) or something?
Robert
