Commit Graph

227 Commits

Author SHA1 Message Date
Ben Blum
dc93814bf9 minor updates to vim config files 2012-07-02 15:48:59 -04:00
Erick Tryzelaar
c74b3fd634 Treat "do" as a keyword in vim 2012-07-02 09:06:30 -07:00
Ben Striegel
ba6f71f1b8 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!
2012-06-30 14:17:17 -07:00
Ben Blum
d7823de5e2 update rust.vim to hilight foo::bar and more 2012-06-28 21:11:54 -04:00
Ben Blum
571d866c0d Update vim mode for asserts and #[attributes] 2012-06-28 18:11:54 -04:00
Graydon Hoare
d3c6119a7a More keyword paring and migration in runtime, docs, code modes. 2012-06-27 13:30:49 -07:00
Paul Stansifer
a16cb376ac Update reserved words for syntax highlighters (vim is still behind, though) 2012-05-23 16:23:11 -07:00
Tycho Sci
16848becaa vim: Fix syntax of number literals
To follow [3.5.2.2 Number literals] in the reference manual.
2012-05-05 11:43:07 +09:00
Tycho Sci
bbf73bdfc6 vim: Link rustTodo to Todo for highlighting 2012-05-05 10:20:27 +09:00
Tycho Sci
1e44e04a9d vim: Update syntax for number/float literals 2012-05-03 17:12:46 +09:00
Tycho Sci
94b0edc606 vim: Highlight Todo in comments 2012-05-03 17:02:41 +09:00
Tycho Sci
55de232426 vim: Highlight identifiers 2012-05-03 17:01:33 +09:00
Jacob Parker
f5c91d10dd Fixed vim highlighting for \' (and other) escapes in char literals 2012-03-25 16:26:48 -04:00
Erick Tryzelaar
da91b60343 Add loop to the vim keyword list. 2012-03-16 17:05:29 +01:00
Erick Tryzelaar
b9948baf78 vim: add "to" as a keyword. 2012-02-28 18:00:50 -08:00
Erick Tryzelaar
4a3d551b85 vim: fix indenting enums and macros
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");
}
2012-02-19 13:08:32 -08:00
Erick Tryzelaar
1a7aa20eab vim: block is no longer a keyword. 2012-02-05 19:42:56 -08:00
tim
1290e4181c Added a src/etc/vim/ftdetect directory and file.
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.
2012-01-21 15:02:17 -06:00
Matt Brubeck
155601eefe Update the keyword lists in rust.md and syntax.vim
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.
2012-01-20 16:08:51 -08:00
Grahame Bowland
2b5bd7cd6d Update vim syntax with new keywords 2012-01-14 23:11:33 +08:00
Erick Tryzelaar
f9df32adac vim comment highlighting can contain comments. 2011-12-19 07:27:17 -08:00
Matt Brubeck
0bf10d84e2 Update keyword list in vim/syntax/rust.vim
Removed: iter, each, put, macro, meta, syntax, port, spawn
Added: block, copy
2011-10-29 20:50:17 -07:00
Patrick Walton
3be6cf7ab2 vim: Add pure to the list of keywords 2011-09-29 18:18:37 -07:00
Patrick Walton
5fac684af8 vim: const is a keyword 2011-09-28 12:40:34 -07:00
Patrick Walton
e76efbc43a etc: Add "lambda" and "inline" to the vim mode 2011-08-05 14:01:45 -07:00
Patrick Walton
684df97ef0 etc: Update the Vim syntax mode with new keywords 2011-08-05 09:25:27 -07:00
Erick Tryzelaar
4d0cbd4310 Move vim syntax file, add indent file. 2011-05-17 20:35:46 -07:00