]> git.lizzy.rs Git - rust.git/commit
Properly highlight nested comments in vim
authorBen Striegel <ben.striegel@gmail.com>
Fri, 29 Jun 2012 02:02:25 +0000 (22:02 -0400)
committerBrian Anderson <banderson@mozilla.com>
Sat, 30 Jun 2012 21:17:17 +0000 (14:17 -0700)
commitba6f71f1b82abf161961ad4a75a2c0e66274392f
treeb20724f9c760a1733e0ebe76c19341ebf4cdf0c3
parente2c70161f054fb3f4fc9ffeb8a356c7848fc3e1c
Properly highlight nested comments in vim

Prior to this commit, every block comment /* */ required two closing tags for
every opening tag in order to terminate the highlighting. Setting and testing
for a variable was the culprit, though I'm not certain why, but they appear to
just be boilerplate lines from whatever pcwalton based this file upon. I've
looked at other officially-distributed vim highlighting files and none seem to
do the test that this commit removes, so I'm fairly certain it didn't provide
anything vital. And now comment highlighting works!
src/etc/vim/syntax/rust.vim