Andrew Paseltiner
78b6e375df
kate: add Not to list of traits
2013-03-09 12:23:33 -05:00
bors
dd34178b4b
auto merge of #5211 : apasel422/rust/kate, r=graydon
...
These commits remove some obsolete language features, make some highlighting more correct with respect to the language spec, and introduce highlighting for macros, attributes, core traits, and the new region syntax.
2013-03-04 12:30:51 -08:00
Patrick Walton
3c23589b08
etc: Suppress another Valgrind issue. rs=burningtree
2013-03-03 10:30:00 -08:00
Andrew Paseltiner
39b713f93e
kate: allow [] regions to be collapsed
2013-03-03 09:14:53 -05:00
Andrew Paseltiner
c43512be2e
kate: restrict char escapes to ones accepted by Rust and highlight hex escapes
2013-03-03 09:08:28 -05:00
Andrew Paseltiner
6002d10ce3
kate: detect and highlight attributes
2013-03-03 08:56:39 -05:00
Andrew Paseltiner
4548eb1a29
kate: consolidate integer suffixes with &rustIntSuf; entity
2013-03-03 08:49:16 -05:00
Andrew Paseltiner
c771a93c50
kate: add note about &rustIdent;
2013-03-03 08:45:44 -05:00
Andrew Paseltiner
8596535679
kate: update Rust version
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
d1d6326f5c
kate: add Self to types
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
ecf1eea1e1
kate: detect and highlight core traits
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
bcd95d0254
kate: detect and highlight regions
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
11d10fdb09
kate: introduce &rustIdent; entity
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
7ad2082663
kate: detect and highlight macro invocations
2013-03-03 08:40:37 -05:00
Andrew Paseltiner
c33b4d98cc
kate: remove export, fail, and move keywords
2013-03-03 08:40:37 -05:00
Patrick Walton
a3f728238b
librustc: Forbid chained imports and fix the logic for one-level renaming imports
2013-03-02 16:49:30 -08:00
Daniel Ursache Dogariu
1bcd4c674c
Add syntax highlighting support for GtkSourceView / GEdit
2013-02-28 11:52:25 +02:00
bors
40ffaeaea8
auto merge of #5103 : dbaupp/rust/emacs-mode-update, r=graydon
...
Copy the keyword list from rust.vim, and add `self` so that it is highlighted
(being liberal with the correct categories).
I'm not quite willing to dive in to clean up the emacs code yet, but at least this gets a (more) modern syntax highlighting list.
2013-02-25 20:24:40 -08:00
Patrick Walton
4b9b32839e
etc: Add a suppression for more enum instruction scheduling botches. rs=burningtree
2013-02-25 10:42:51 -08:00
Huon Wilson
4bf94a7b30
Emacs: Update emacs mode to be more similar to the vim mode.
...
Copy the keyword list, and add `self` so that it is somewhat highlighted
(being liberal with the correct categories).
2013-02-25 23:42:46 +11:00
Patrick Walton
ce70736363
etc: Suppress the remaining Valgrind error in rustdoc. rs=burningtree
2013-02-22 16:09:16 -08:00
bors
1b04be6858
auto merge of #5049 : bstrie/rust/vim, r=catamorphism
...
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-20 18:14:34 -08:00
Patrick Walton
831840ab24
etc: Suppress the enum variant instruction scheduling Valgrind issues. rs=#rust
2013-02-20 16:04:48 -08:00
Ben Striegel
e29b7eedf9
vim improvements
...
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-19 23:07:09 -05:00
bors
65aa2594c0
auto merge of #4976 : thestinger/rust/vim, r=nikomatsakis
2013-02-16 11:55:59 -08:00
Niko Matsakis
ad8b437ada
Make 'foo use font-lock-builtin-face, like module names, and make capitalized identifiers optionally use font-lock-type-face
2013-02-16 08:01:10 -05:00
Niko Matsakis
1ef8c48a20
emacs mode: Highlight 'foo as a lifetime, not a character constant.
2013-02-16 08:01:10 -05:00
Daniel Micay
5c75f210ba
vim: move keyword is gone
2013-02-16 03:17:26 -05:00
Kang Seonghoon
5336bf6add
made licenseck.py work for year substitutions
2013-02-14 11:20:40 +09:00
Brian Anderson
faef933e75
Merge pull request #4873 from jld/rust-mode-wants-cl-when
...
rust-mode.el uses the 'cl macros, so it should actually require them
2013-02-11 13:06:57 -08:00
Jeff Olson
3a813e29b6
etc: rework of how libuv is integrated into the build
...
- thanks to work in libuv's upstream, we can call libuv's Makefile directly
with parameters, instead of descending in gyp-uv madness and generating
our own.
2013-02-10 11:51:05 -08:00
Jed Davis
e93a58d526
rust-mode.el uses the 'cl macros, so it should actually require them
...
Without this change, rust-mode doesn't work if 'cl hasn't been required
by something else, apparently. I'm not entirely sure what changed such
that I started seeing this problem instead of not, but maybe the emacs
world has been making progress towards not loading 'cl at runtime if
it's only needed at compile time.
2013-02-10 11:23:10 -08:00
Daniel Micay
dffc3f82b2
vim: 'fail' is no longer a keyword
2013-02-01 19:32:03 -05:00
Daniel Micay
6052d67474
vim: pub is just a plain old token keyword
2013-02-01 14:21:32 -05:00
Daniel Micay
00201c969d
vim: use StorageClass for mut and const
2013-02-01 14:21:32 -05:00
Daniel Micay
1c3cca8a57
vim: 'be' is a reserved keyword
2013-02-01 14:21:32 -05:00
Daniel Micay
5b47c551b9
vim: unsafe:: namespaces were renamed to raw::
2013-02-01 14:21:32 -05:00
Daniel Micay
405b868ae7
vim: add Self type
2013-02-01 14:21:25 -05:00
Daniel Micay
0c1a345d01
vim: export is no longer a keyword
2013-02-01 13:20:03 -05:00
Niko Matsakis
0682ad0eb9
Finalize moves-based-on-type implementation.
...
Changes:
- Refactor move mode computation
- Removes move mode arguments, unary move, capture clauses
(though they still parse for backwards compatibility)
- Simplify how moves are handled in trans
- Fix a number of illegal copies that cropped up
- Workaround for bug involving def-ids in params
(see details below)
Future work (I'll open bugs for these...):
- Improve error messages for moves that are due
to bindings
- Add support for moving owned content like a.b.c
to borrow check, test in trans (but I think it'll
"just work")
- Proper fix for def-ids in params
Def ids in params:
Move captures into a map instead of recomputing.
This is a workaround for a larger bug having to do with the def-ids associated
with ty_params, which are not always properly preserved when inlining. I am
not sure of my preferred fix for the larger bug yet. This current fix removes
the only code in trans that I know of which relies on ty_param def-ids, but
feels fragile.
2013-01-31 12:09:00 -08:00
Patrick Walton
83ced67d0b
librustdoc: De-export compiletest, combine-tests, libcargo, libfuzzer, and librustdoc. rs=deexporting
2013-01-30 14:30:42 -08:00
Tim Chevalier
66b07f1e5d
Fix licenseck to allow 2012-2013 as the year range
2013-01-29 13:48:40 -08:00
Niko Matsakis
e8f3690123
Change "// WARN" in tidy to "// NOTE" as requested by @catamorphism
2013-01-28 10:01:59 -08:00
Niko Matsakis
8f14d43206
Make tidy actually work
...
r=catamorphism
2013-01-28 10:00:39 -08:00
Niko Matsakis
0004be9eca
Detect "// WARN" in tidy and print out, well, a warning! Useful
...
for notating FIXME-style-situations that you want to be reminded
of before you commit.
r=catamorphism
2013-01-28 10:00:35 -08:00
Chris Peterson
b3cbe9e3c1
Enable lint warnings for doc tests
2013-01-20 22:56:45 -08:00
Brian Anderson
6b6acde972
Add a license check to tidy. #4018
2013-01-17 23:28:42 -08:00
Daniel Micay
8ffc2b0f5e
fix sugarise-doc-comments.py shebang
2013-01-03 02:40:21 -05:00
Daniel Micay
2cf2d6aa92
add Drop trait to vim syntax highlighting
2012-12-25 01:20:27 -05:00
Daniel Micay
a45e41faaa
update after/syntax/rust.vim for removal of <-
2012-12-21 21:37:32 -05:00