summary refs log tree commit diff
path: root/src/etc/vim/syntax
AgeCommit message (Collapse)AuthorLines
2013-12-27Renamed ClonableIterator to CloneableIteratorAlexandros Tasos-1/+1
2013-12-15Rename To{Str,Bytes}Consume traits to Into*.Chris Morgan-2/+2
That is: - `ToStrConsume` → `IntoStr`; - `ToBytesConsume` → `IntoBytes`.
2013-12-10Vim keyword highlighting improvements.Chris Morgan-5/+7
- Removed the `log` keyword; - Removed keyword duplicates; - Highlighted `const` as `Error` rather than `StorageClass`; and - Highlighted all the reserved keywords as `Error` rather than as `Keyword`. (As usual, these highlightings can be overridden if desired.)
2013-12-10Fix up float highlighting in Vim.Chris Morgan-5/+6
This fixes a regression introduced in #10793. Having a colorscheme which highlights Float the same as Number (I believe most do), I hadn't noticed that having the special case of "5." floats (which was one of the added features in #10793) last made it take precedence, and so it was left to @thestinger to notice it. The regression meant that in `5.0`, the `5.` was a `rustFloat` (linked by default to `Float`) and the `0` was a `rustDecNumber` (linked by default to `Number`), and for `5.0f32` the `5.` was a `rustFloat` and the `0f32` was a second `rustFloat` (and thus appeared correctly, though for the wrong reason).
2013-12-04Improve various Vim syntax highlighting things.Chris Morgan-36/+42
- Implement comment nesting (the implementation is quite ugly at present and is not quite correct; note the big comment in that area). - Highlight invalid escape sequences as errors. - Fix up various inconsistencies and incorrectnesses in number highlighting. - Update prelude items (``std::io::{Buffer, Writer, Reader, Seek}``). - Highlight the ``proc`` keyword. - Remove %-formatting sequence highlighting (a relic of old formatting). - Don't highlight TODO in strings (it's unconventional).
2013-11-27Be more strict about doc commentsCorey Richardson-2/+2
Previously, `//// foo` and `/*** foo ***/` were accepted as doc comments. This changes that, so that only `/// foo` and `/** foo ***/` are accepted. This confuses many newcomers and it seems weird. Also update the manual for these changes, and modernify the EBNF for comments. Closes #10638
2013-11-02Grammar error and vim syntax highlighting mistake fixed.Matt Carberry-1/+1
2013-11-02Added octal literal support.Matt Carberry-1/+5
2013-10-30Update prelude items in Vim syntax file.Chris Morgan-22/+20
2013-10-19Highlight \0 in strings and chars in Vim.Chris Morgan-3/+3
2013-10-19Update prelude items in Vim syntax.Chris Morgan-6/+8
2013-10-08add vim syntax highlighting support for raw string literalsBenjamin Herr-0/+1
2013-09-26Add 'continue' keyword to emacs, vim, gedit, kateBrian Anderson-1/+1
2013-09-22Reserve the `alignof`, `offsetof`, and `sizeof` keywordsBirunthan Mohanathas-1/+1
Closes #9333.
2013-09-22Remove 'copy' from syntax files, as it's no longer a keywordScott Lawrence-2/+1
2013-09-04Update highlighting for prelude changes.Chris Morgan-2/+2
2013-09-04Highlight everything in the prelude in Vim.Chris Morgan-26/+78
This is a rather more extensive change than the last, but *ever* so much easier to maintain reasonably, as there's then something to track directly.
2013-09-04Update a handful of keywords highlighted in Vim.Chris Morgan-8/+6
I added a few and removed a few and corrected a couple, all with reference to the prelude. It ends up a slightly arbitrary decision precisely what ends up in and what doesn't, unfortunately.
2013-09-04Modernise some Vim syntax highlighting.Chris Morgan-3/+5
- Remove highlighting of ``L"..."`` (obsolete syntax) - Remove backslash at end of line being a line continuation always (obsolete syntax; this only affects comments, actually) - Add highlighting for backslash at end of line and leading whitespace on the following line inside a string (a genuine line continuation)
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