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!
Now vim indenting goes from:
fn main() {
enum t {
a: int,
b: int
}
#error("hello world");
}
to:
fn main() {
enum t {
a: int,
b: int
}
#error("hello world");
}
Previously, in order to get vim's syntax highlighting, you needed
to manually `:setf rust` on every file. Now vim will recognize *.rs
files as rust. This is a little nicer.
Add new keywords "enum" and "of", and remove old keywords "auth", "chan",
"log_err", "tag", and "task".
Also add reserved words to the syntax file, to help Vim users avoid using them
as identifiers.