about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-05-20 14:11:07 -0700
committerKevin Ballard <kevin@sb.org>2014-05-20 15:06:53 -0700
commitbf0c6d8166b1b1a3c45a3131a6f019ed8a005a1f (patch)
treecab88f4674fb95bb3b335a7f50b398c048b58eb0 /src/rustllvm/PassWrapper.cpp
parent229338d6ac6b9252ecdb923ffc1ec0d71e3145d5 (diff)
downloadrust-bf0c6d8166b1b1a3c45a3131a6f019ed8a005a1f.tar.gz
rust-bf0c6d8166b1b1a3c45a3131a6f019ed8a005a1f.zip
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.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions