about summary refs log tree commit diff
path: root/src/etc/vim/syntax/rust.vim
AgeCommit message (Collapse)AuthorLines
2013-08-23Parse and reserve typeof keyword. #3228Ben Blum-1/+1
2013-08-03Vim highlighting: remove `foreach` keywordChris Morgan-1/+1
2013-08-03Highlight sigils and operators in Vim.Chris Morgan-6/+23
Sigil highlighting isn't perfect (especially how it handles ``&``) but after having used it for a week I feel it to be considerably nicer than nothing. As usual, if you don't like it, you can turn it off easily by overriding the default highlighting. Generics are not handled specially; this means that for something like ``S<T>``, the ``<`` and ``>`` are highlighted as operators. For myself, I like this, and there is no way to make it properly context aware without expanding the syntax matching enormously. Also, special characters are highlighted properly in strings/chars, e.g. ``"\x00"`` or ``'\Ufedcba98'`` appropriately.
2013-07-12Vim syntax: support lifetimes with delimitMate.Chris Morgan-0/+5
When it's a lifetime, a single quotation mark shouldn't have a matching single quotation mark inserted after it, as delimitMate does by default. Note that this is not without problems; a char literal coming after an odd number of lifetime markers will have its quotation marks behave a little strangely. That, however, is not my fault, but delimitMate's: https://github.com/Raimondi/delimitMate/issues/135
2013-07-11Fix comment indenting properly for Vim files.Chris Morgan-2/+4
Indentation now works correctly on subsequent lines of a multi-line comment, whether there are leaders (` * `) or not. (Formerly it was incorrectly doing a two-space indent if there was no leader.) By default, this no longer puts a ` * ` leader on `/*!` comments, as that appears to be the current convention in the Rust source code, but that can easily be re-enabled if desired: let g:rust_bang_comment_leader = 1
2013-07-10A few slight tweaks to the Vim syntax file.Chris Morgan-11/+19
- Add fold support (NOT turned on by default) - Highlight `::` by default - Support the common `NOTE` as an important note - Highlight `assert!` and `fail!` differently - Don't highlight `deriving(...)` except in `#[...]`
2013-07-05vim: Highlight 0i as numberSeo Sanghyeon-1/+1
2013-06-30auto merge of #7374 : Jeaye/rust/func_highlight, r=cmrbors-0/+1
This allows for highlighting of function calls for free floating, member, and static functions.
2013-06-27auto merge of #7361 : brson/rust/incoming, r=brsonbors-1/+1
2013-06-25Change finalize -> drop.Luqman Aden-1/+1
2013-06-24rust.vim: Links previously unused rustFuncCallJeaye-0/+1
This allows for highlighting of function calls for free floating, member, and static functions.
2013-06-24vim/syntax/rust.vim: fix date headerTuncer Ayaz-1/+1
The last change was made in 2013 not 2012.
2013-06-23Add rules for assert, fail, and deriving to vim syntax file. Also highlight ↵Ben Blum-6/+18
the mod path in "use module;" properly.
2013-05-30Highlight Sized in vim and kateBen Blum-1/+1
2013-05-15vim: `be` is still a reserved keywordDaniel Micay-2/+2
2013-05-15vim: no more drop blocksDaniel Micay-1/+1
2013-05-08General fixes for vimJames Miller-1/+1
Makes colorcolumn setlocal instead of set. Makes conceal opt-in. Removes the seem-to-be obsolete old keywords/types
2013-04-22Rename Div operator trait to Quot and Modulo operator trait to RemBrendan Zabarauskas-1/+1
2013-04-10vim: syntax highlight for inner doc commentklutzy-4/+4
2013-04-07vim: fix comment highlighting bugklutzy-2/+2
Previous commit had a bug that a line which ends with "//" or "/*" is not correctly highlighted.
2013-04-07vim: add rustCommentDocklutzy-2/+6
2013-04-07vim: disable nested commentklutzy-1/+1
Since comment nesting does not work from 0.4.
2013-03-30vim: use Operator group for 'as'Daniel Micay-1/+3
2013-03-30vim: separate the conditional keywordsDaniel Micay-2/+6
2013-03-30vim: mark Todo as contained and rm unsafe from itDaniel Micay-2/+1
It's nice to make unsafe stand out, but this way isn't correct because it highlights it in comments.
2013-03-30vim: highlight ref + static as storage specifiersDaniel Micay-2/+2
lifetimes and globals are now the only two places static is used, and 'static isn't matched by this
2013-03-30vim: assert and pure keywords were removedDaniel Micay-6/+3
2013-02-19vim improvementsBen Striegel-1/+5
1. Highlight new lifetime syntax 2. Visually distinguish `unsafe` keyword 3. Add a new file that highlights column 78, to warn when lines get too long
2013-02-16vim: move keyword is goneDaniel Micay-1/+1
2013-02-01vim: 'fail' is no longer a keywordDaniel Micay-1/+1
2013-02-01vim: pub is just a plain old token keywordDaniel Micay-2/+1
2013-02-01vim: use StorageClass for mut and constDaniel Micay-2/+4
2013-02-01vim: 'be' is a reserved keywordDaniel Micay-1/+1
2013-02-01vim: unsafe:: namespaces were renamed to raw::Daniel Micay-2/+1
2013-02-01vim: add Self typeDaniel Micay-1/+1
2013-02-01vim: export is no longer a keywordDaniel Micay-1/+1
2012-12-25add Drop trait to vim syntax highlightingDaniel Micay-3/+3
2012-12-14update syntax/rust.vim for keyword changesDaniel Micay-7/+7
2012-09-23vim - Update bblum's email address and highlight trait namesBen Blum-2/+8
2012-09-05vim: Turn "pub" into a big asterisk for those who dislike the look of it.Patrick Walton-1/+2
This is not the default and must be turned on.
2012-08-26vim - camel-case the non builtin typesBen Blum-6/+6
2012-08-23vim - fix indent rules, hilight format strings, some keywordsBen Blum-7/+9
2012-08-16vim: "ref" and "static" are now keywords; highlight them as suchPatrick Walton-1/+1
2012-08-09vim: hilight 'self' as a constant instead of a keywordBen Blum-1/+3
2012-08-08etc: Add pub and priv to vimPatrick Walton-1/+1
2012-08-03vim: don't hilight "any"Ben Blum-1/+1
2012-08-01vim: Move conceal code into vim/after/syntax.Erick Tryzelaar-14/+1
This makes concealment opt-in.
2012-07-31vim: Add new keywordsPatrick Walton-2/+2
2012-07-31rustc: Implement unary move. Closes #917.Patrick Walton-1/+1
2012-07-31rustc: Check self types in method lookup; allow required trait methods to ↵Patrick Walton-3/+6
have self types; write self types into metadata