about summary refs log tree commit diff
path: root/src/etc/vim/syntax
AgeCommit message (Collapse)AuthorLines
2015-01-29Pull configs out into individual repositoriesSteve Klabnik-262/+0
As we grow, these don't belong in-tree. http://internals.rust-lang.org/t/moving-editor-highlighting-into-their-own-repos/1395 * https://github.com/rust-lang/rust.vim * https://github.com/rust-lang/rust-mode * https://github.com/rust-lang/gedit-config * https://github.com/rust-lang/kate-config * https://github.com/rust-lang/nano-config * https://github.com/rust-lang/zsh-config
2015-01-11Remove range functionTim Brooks-2/+0
2015-01-11Remove old number literal suffixes from Vim syntaxTim Brooks-5/+5
2015-01-07Update editor syntax files for isize/usize.Huon Wilson-1/+1
Yay, syntax highlighting.
2015-01-05rollup merge of #20482: kmcallister/macro-reformAlex Crichton-1/+1
Conflicts: src/libflate/lib.rs src/libstd/lib.rs src/libstd/macros.rs src/libsyntax/feature_gate.rs src/libsyntax/parse/parser.rs src/libsyntax/show_span.rs src/test/auxiliary/macro_crate_test.rs src/test/compile-fail/lint-stability.rs src/test/run-pass/intrinsics-math.rs src/test/run-pass/tcp-connect-timeouts.rs
2015-01-05Reserve the keyword 'macro'Keegan McAllister-1/+1
2015-01-05Update reexports in vim syntax fileChase Southwood-41/+19
2015-01-02Fix vim syntax highlighting for `derive`Chase Southwood-4/+4
2014-12-15rollup merge of #19804: kballard/vim-new-unicode-escapesBrian Anderson-1/+2
2014-12-15rollup merge of #19784: csouth3/vim-syntax-iterBrian Anderson-1/+1
Vim still incorrectly highlights just `ExactSize` as a valid trait name, but the trait has been renamed to `ExactSizeIterator`.
2014-12-14Update emacs and vi modes.Niko Matsakis-1/+1
2014-12-12vim: Support the new \u{1234} unicode escapesKevin Ballard-1/+2
2014-12-12Update vim syntax highlighting for ExactSizeIteratorChase Southwood-1/+1
2014-11-20Update the Vim syntax prelude.Chris Morgan-32/+27
2014-11-16Rename IntoStr to IntoStringBrendan Zabarauskas-1/+1
For consistancy with ToString
2014-11-13Remove Signed trait and add SignedInt traitBrendan Zabarauskas-1/+1
The methods have been moved into Float and SignedInt
2014-11-13Deprecate Num, Unsigned and PrimitiveBrendan Zabarauskas-2/+1
2014-11-13Move checked arithmetic operators into Int traitBrendan Zabarauskas-1/+1
2014-11-10vim: move 'move' to rustStorageJosh Stone-2/+2
2014-11-10auto merge of #18782 : netvl/rust/update-vim-syntax, r=alexcrichtonbors-6/+6
`as` (already for a long time) and `move` (which was only added recently, AFAIK) are not marked as keywords in Vim syntax file, so they are not highlighted as keywords in Rust sources. This PR fixes this.
2014-11-09Added `move` keyword and renamed `fail` to `panic`Vladimir Matveev-6/+6
2014-11-08Renamed Extendable to Extendgamazeps-1/+1
In order to upgrade, simply rename the Extendable trait to Extend in your code Part of #18424 [breaking-change]
2014-10-14Highlight 1..2 according to the current grammar.Chris Morgan-2/+3
2014-10-14Highlight `extern crate "foo" as bar;` properly.Chris Morgan-1/+3
2014-10-14Vim: Stop highlighting foo in `use foo;` speciallyChris Morgan-4/+1
This wasn’t really consistent with other things; the last section of the import was not highlighted in any other case. Also `use {foo, bar};` was having the foo and bar not highlighted, where they would have been as separate statements.
2014-10-07Add `abstract`, `final`, and `override` to rust.vim keyword listJohn Gallagher-1/+1
2014-09-29Replaced some TODO by FIXMEgamazeps-1/+1
closes #17478
2014-08-17auto merge of #16547 : huonw/rust/new-kw, r=pcwaltonbors-1/+1
2014-08-17auto merge of #16535 : michaelsproul/rust/vim-traits, r=pcwaltonbors-8/+8
The vim syntax highlighting file had become out of sync with the real prelude. Lots of Vector -> Slice renames have happened recently.
2014-08-17Add new keywords (particularly `where` & `virtual`) to editor modes.Huon Wilson-1/+1
2014-08-16vim: Update syntax file for Prelude changes.Michael Sproul-8/+8
Lots of Vector -> Slice renames.
2014-08-15vim: Don't set foldmethod in the syntax file eitherKevin Ballard-11/+0
We shouldn't be setting any settings in the syntax file. Better to put them in the ftplugin, where they won't be pulled in by :syn-include and can be cleaned up when changing the filetype.
2014-08-07Rename `Share` to `Sync`Alex Crichton-1/+1
This leaves the `Share` trait at `std::kinds` via a `#[deprecated]` `pub use` statement, but the `NoShare` struct is no longer part of `std::kinds::marker` due to #12660 (the build cannot bootstrap otherwise). All code referencing the `Share` trait should now reference the `Sync` trait, and all code referencing the `NoShare` type should now reference the `NoSync` type. The functionality and meaning of this trait have not changed, only the naming. Closes #16281 [breaking-change]
2014-07-23vim: Add MutableSeqBrian Anderson-1/+1
2014-07-21Fix :syn-include usage of Vim filetype.Chris Morgan-3/+5
Here’s what the Vim manual says in *:syn-include*: :sy[ntax] include [@{grouplist-name}] {file-name} All syntax items declared in the included file will have the "contained" flag added. In addition, if a group list is specified, all top-level syntax items in the included file will be added to that list. We had two rules for `rustModPath`, one `contained` and the other not. The effect was that the second (now renamed to `rustModPathInUse`) was being included in the group list, and thus that all identifiers were being highlighted as `Include`, which is definitely not what we wanted.
2014-07-21Highlight $(…)* and $foo in Vim.Chris Morgan-0/+7
2014-07-16auto merge of #15476 : kballard/rust/more_vim_tweaks, r=chrisbors-3/+12
Tweak the text editing settings (softtabstop, textwidth, etc). Add some settings to turn on folding and colorcolumn. Add the undo_ftplugin changes that my previous patch forgot.
2014-07-08std: Rename the `ToStr` trait to `ToString`, and `to_str` to `to_string`.Richo Healey-1/+1
[breaking-change]
2014-07-07Define a new setting g:rust_foldKevin Ballard-3/+12
g:rust_fold allows folding to be enabled. This lets the user turn on folding without having to define autocommands.
2014-07-07librustc (RFC #34): Implement the new `Index` and `IndexMut` traits.Patrick Walton-1/+1
This will break code that used the old `Index` trait. Change this code to use the new `Index` traits. For reference, here are their signatures: pub trait Index<Index,Result> { fn index<'a>(&'a self, index: &Index) -> &'a Result; } pub trait IndexMut<Index,Result> { fn index_mut<'a>(&'a mut self, index: &Index) -> &'a mut Result; } Closes #6515. [breaking-change]
2014-07-01Vim syntax file types and traits cleanupAlexandre Gagnon-15/+20
2014-06-24auto merge of #14952 : alexcrichton/rust/const-unsafe-pointers, r=brsonbors-2/+1
This does not yet change the compiler and libraries from `*T` to `*const T` as it will require a snapshot to do so. cc #7362 --- Note that the corresponding RFC, https://github.com/rust-lang/rfcs/pull/68, has not yet been accepted. It was [discussed at the last meeting](https://github.com/rust-lang/rust/wiki/Meeting-weekly-2014-06-10#rfc-pr-68-unsafe-pointers-rename-t-to-const-t) and decided to be accepted, however. I figured I'd get started on the preliminary work for the RFC that will be required regardless.
2014-06-22Update few files after comparison traits renamingPiotr Jawniak-2/+2
There were still Total{Ord,Eq} in docs and src/etc
2014-06-18Vim: highlight invalid characters in char literals.Chris Morgan-2/+7
2014-06-18Vim: highlight escapes for byte literals.Chris Morgan-7/+11
2014-06-16rustc: Start accepting `*const T`Alex Crichton-2/+1
This does not yet change the compiler and libraries from `*T` to `*const T` as it will require a snapshot to do so. cc #7362
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-1/+1
[breaking-change]
2014-05-20vim: Handle box expressions speciallyKevin Ballard-7/+20
Attempt to highlight the placement expression in a `box (expr) foo` expression. Also treat GC as a keyword within the placement expression. This doesn't work correctly for arbitrary expressions. Notably, this makes no attempt at balancing delimiters. I believe handling that will require rewriting the syntax rules to add a region for every pair of delimiters. That may be a desirable thing to do in the end, because we can then rewrite our indent rules based on the syntax and get rid of cindent(), but for the time being, we'll just live with the limitation.
2014-05-20Update rust.vim for the latest prelude/keywordsKevin Ballard-18/+23
2014-05-06etc: Add box as a keyword to editor configsAlex Crichton-1/+1
This keyword is about to be used much more often than it was a few weeks ago, it's time to tell editors about the new keyword.