summary refs log tree commit diff
path: root/src/etc/vim
AgeCommit message (Collapse)AuthorLines
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-04Silence fo+=j error for users of Vim < 7.3.541.Chris Morgan-1/+3
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-18auto merge of #7747 : chris-morgan/rust/vim-compiler-rustc, r=huonwbors-0/+33
Note that this is not actually *used* by default; it is a matter of configuration still, because you might want to: - Compile all .rs files with `rustc %` (where each can be built itself) - Compile all .rs files with `rustc some-file.rs` (where you are editing part of a crate) - Compile with a different tool, such as `make`. (In this case you might put a `~/.vim/after/compiler/rustc.vim` to match such cases, set makeprg and extend errorformat as appropriate. That should probably go in a different compiler mode, e.g. make-rustc.) To try using it, `:compiler rustc`. Then, `:make` on a file you would run `rustc` on will work its magic, invoking rustc. To automate this, you could have something like `autocmd FileType rust compiler rustc` in your Vim config.
2013-07-12rustc compiler config for Vim.Chris Morgan-0/+33
Note that this is not actually *used* by default; it is a matter of configuration still, because you might want to: - Compile all .rs files with `rustc %` (where each can be built itself) - Compile all .rs files with `rustc some-file.rs` (where you are editing part of a crate) - Compile with a different tool, such as `make`. (In this case you might put a `~/.vim/after/compiler/rustc.vim` to match such cases, set makeprg and extend errorformat as appropriate. That should probably go in a different compiler mode, e.g. make-rustc.) To try using it, `:compiler rustc`. Then, `:make` on a file you would run `rustc` on will work its magic, invoking rustc. To automate this, you could have something like `autocmd FileType rust compiler rustc` in your Vim config.
2013-07-12Fix problem with switching between Rust buffers.Chris Morgan-1/+1
This was also causing trouble if one didn't have delimitMate installed.
2013-07-12Vim syntax: support lifetimes with delimitMate.Chris Morgan-1/+13
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 Vim indentation for inline closures.Chris Morgan-1/+1
2013-07-11Fix comment indenting properly for Vim files.Chris Morgan-8/+31
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-10Do indentation properly in Vim.Chris Morgan-3/+129
The cases that this improves are clearly documented inside the committed file, so this commit message is comparatively brief.
2013-07-10Add a Vim filetype plugin with useful tweaks.Chris Morgan-0/+25
This improves things like doc comment handling when you press Enter and making using `gf` or `<C-W>f` work on a `use x;` statement in the current directory.
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-28Remove colorcolumn settingRob Hoelz-5/+0
2013-05-15vim: `be` is still a reserved keywordDaniel Micay-2/+2
2013-05-15vim: no more drop blocksDaniel Micay-1/+1
2013-05-14vim: swap operator is goneDaniel Micay-4/+0
2013-05-08General fixes for vimJames Miller-3/+3
Makes colorcolumn setlocal instead of set. Makes conceal opt-in. Removes the seem-to-be obsolete old keywords/types
2013-05-08Improved vim indent file for rustJames Miller-1/+4
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-03-18Update rust.vimLuqman Aden-2/+2
Column limit 78 -> 100.
2013-02-19vim improvementsBen Striegel-1/+10
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