Charles E Campbell Jr wrote:
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


I will try tomorrow and let you know...  :-)

:Robert

Reply via email to