Robert Hicks wrote:
A word can be anything really, so it would be from "-" to the end.So something like: syn match MyVarOption "\<-\w\+\>"
Unless - is part of normal keyword characters (see :he 'iskeyword'), the \<- isn't going to help.
Probably you want syn match MyVarOption "\%(\s\|^\)\zs-\w\+\>" Regards, Chip Campbell
