Syntax file rewrite
The syntax file needs a rewrite, for several reasons:
- The current highlighting does not take account of the context (Are we in the middle of a command? In a binding declaration?). I use
syn regionfor exec commands and string andnextgroup=at several places, but it does not work that well as of now and need to be rethought. client.*keywords are not highlighted, becauseclientitself is a keyword and take precedence.- Command scopes are ignored.
i3 generate its syntax from custom files, parsed by a perl script (spec files, script). These files could be used to generate a syntax file.
So how goes this project? Thanks for your work btw.
You're welcome. :)
No progress on that so far, and I did not try recently. I will give it another shot in the next few days and write here how it is going.
It's good so far.
I now remember having problems with syncing before (highlighting was incorrect after scrolling). I read some documentation and added the line syn sync fromstart. Forcing vim to treat the file as a whole and not trying to be lazy fix that.