Custom syntax highlighting keyword mismatch

I've added a new custom filetype with syntax highlighting, everything works fine except some keyword that appear as sub-strings in other keywords.

For example "menu" is keyword1, but "menu-timeout" is keyword2, but the "menu" part of "menu-timeout" only gets highlighted, I've tried changing the order so that "menu-timeout" will be keyword1 and "menu" is keyword2, but that didn't help.

 

Is it possible to possibly use regex or exact matching?

0

Please sign in to leave a comment.