]> git.lizzy.rs Git - rust.git/commit
vim: Handle box expressions specially
authorKevin Ballard <kevin@sb.org>
Tue, 20 May 2014 21:11:07 +0000 (14:11 -0700)
committerKevin Ballard <kevin@sb.org>
Tue, 20 May 2014 22:06:53 +0000 (15:06 -0700)
commitbf0c6d8166b1b1a3c45a3131a6f019ed8a005a1f
treecab88f4674fb95bb3b335a7f50b398c048b58eb0
parent229338d6ac6b9252ecdb923ffc1ec0d71e3145d5
vim: Handle box expressions specially

Attempt to highlight the placement expression in a `box (expr) foo`
expression. Also treat GC as a keyword within the placement expression.

This doesn't work correctly for arbitrary expressions. Notably, this
makes no attempt at balancing delimiters. I believe handling that will
require rewriting the syntax rules to add a region for every pair of
delimiters. That may be a desirable thing to do in the end, because we
can then rewrite our indent rules based on the syntax and get rid of
cindent(), but for the time being, we'll just live with the limitation.
src/etc/vim/syntax/rust.vim