I noticed that many keywords with optional components are not being
properly syntax highlighted in Vim. For example, in tmux.vim, the
keyword window-status-[current-]bg is specified. The intent is that the
word current- be optional. But Vim does not seem to recognize any part
of the keyword after the bracketed part.
For example, in a .tmux.conf file, the keywords window-status-bg and
window-status-current-bg are not recognized as key words. But
window-status-current- is erroneously highlighted as a key word. Also
the keyword specified as [server-]info in tmux.vim causes only the
keyword server- to be recognized.
The only keywords with optional components being recognized are those
with the optional component at the end. Is there something I am missing