summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-12-14Update emacs and vi modes.Niko Matsakis
2014-11-16rust-mode.el: Tweak syntax tableRoy Crihfield
"_" should keep the default syntax class (symbol, not word). This allows, e.g., `forward-word' to behave in the familiar way, jumping to underscores within a function or variable name.
2014-11-10Add 'move' keyword to emacs, kate, and vim editor modes.Sean Gillespie
2014-10-25Fix spelling mistakes in comments.Joseph Crail
2014-09-29Replaced some TODO by FIXMEgamazeps
closes #17478
2014-08-17Add new keywords (particularly `where` & `virtual`) to editor modes.Huon Wilson
2014-06-17emacs: Remove outdated references to ~ in testsTom Jakubowski
2014-06-17emacs: Add shebang to test scriptTom Jakubowski
2014-06-17emacs: Don't overwrite font lock for attributesTom Jakubowski
This addresses the font lock regression introduced by the earlier pull request #14818 - attributes are no longer be highligted inside of comments and strings. Also add some font lock test infrastructure and some tests for attribute font locking.
2014-06-17auto merge of #14818 : tomjakubowski/rust/emacs-attributes-key-value, r=pnkfelixbors
This addresses two problems noted in #14347: the highlight of `#foo]` as an attribute, and the non-highlight of `#[foo = "bar"]`.
2014-06-16Update repo locationBrian Anderson
2014-06-11emacs: highlight `#[foo = "bar"]` attributesTom Jakubowski
Setting `OVERRIDE` to `t` overrides the conflicting highlight Emacs places on string literals. Fix #14347
2014-06-11emacs: do not highlight `#foo]` as an attributeTom Jakubowski
part of #14347
2014-05-12emacs: highlight `macro_name!` in macro invocations using [] delimitersHuon Wilson
2014-05-12auto merge of #13922 : Rufflewind/rust/patch-1, r=pnkfelixbors
Since rust-top-item-beg-re hasn't been defined yet, using defvar instead of setq is more appropriate here (and also silences compilation warnings).
2014-05-03Recommend autoload instead of requirePhil Ruffwind
Lazy loading with autoload will result in faster startup time for Emacs users and is generally the recommended approach for major modes.
2014-05-03Use defvar for rust-top-item-beg-re insteadPhil Ruffwind
Since rust-top-item-beg-re hasn't been defined yet, using defvar instead of setq is more appropriate here (and also silences compilation warnings).
2014-05-02emacs: Add 'box' to keywordsBrian Anderson
2014-04-09rust-mode cleanup.Rüdiger Sonderfeld
* Use `setq-local' instead of (set (make-local-variable ...) value). Provides a version for older Emacsen. * Remove use of `cl.el'. * Use \' in file regexp instead of line end match $. * Use type for defcustom and add parent group.
2014-04-04etc: attempts at fixing editor highlighting for new attribute syntaxCorey Richardson
2014-04-03Update emacs mode to support new `#![inner(attribute)]` syntax.Felix S. Klock II
2014-03-12Emacs: always jump the cursor if needed on indentMicah Chalmer
The rust-mode-indent-line function had a check, which ran after all the calculations for how to indent had already happened, that skipped actually performing the indent if the line was already at the right indentation. Because of that, the cursor did not jump to the indentation if the line wasn't changing. This was particularly annoying if there was nothing but spaces on the line and you were at the beginning of it--it looked like the indent just wasn't working. This removes the check and adds test cases to cover this.
2014-03-02Emacs: Remove README warning of old whitespace bugMicah Chalmer
The incompatibility of rust-mode with global-whitespace-mode warned about in the README was actually fixed by commit 581b3db3b3. Remove the warning from the README and close #3994.
2014-02-22Fix typo in emacs ERT testMicah Chalmer
2014-02-22Emacs: indent relative to enclosing blockMicah Chalmer
This changes the indent to calculate positions relative to the enclosing block (or braced/parenthesized expression), rather than by an absolute nesting level within the whole file. This allows things like this to work: let x = match expr { Pattern => ... } With the old method, only one level of nesting would be added within the match braces, so "Pattern" would have ended up aligned with the match. The other change is that multiple parens/braces on the same line only increase the indent once. This is a very common case for passing closures/procs. The absolute nesting method would do this: spawn(proc() { // Indented out two indent levels... }) whereas the code in this commit does this: spawn(proc() { // Indented out only one level... })
2014-02-22Emacs: stay at the correct position when indentingMicah Chalmer
When indenting a non-blank line, stay at the same cursor position relative to the content after indenting.
2014-02-22Fix emacs indentation of multi-line match patternsMicah Chalmer
Aligns to the same column if the previous line ends in a single '|' (but not a '||').
2014-02-17Added more scripts to tidy checkDerek Guenther
2014-02-14extern mod => extern crateAlex Crichton
This was previously implemented, and it just needed a snapshot to go through
2014-02-14Add crate to emacs and kate modefilesKevin Ballard
2013-12-31Fix rust-align-to-expr-after-brace, closes #11239.John Louis Walker
forward-to-word is undefined, and so Emacs would throw errors in rust-align-to-expr-after-brace. This change yields the expected behavior discussed in the issue.
2013-12-14Add "proc" as keyword to emacs modeMicah Chalmer
2013-12-09Add defun motions for rust-mode.S Pradeep Kumar
Specifically, we can now use: + beginning-of-defun + end-of-defun + mark-defun where "defun" means a Rust item. + Add tests in rust-mode-tests.el + Fix indentation in rust-mode-tests.el + Add support for trait to Imenu
2013-12-04Add Imenu support for rust-mode.S Pradeep Kumar
+ Delete trailing whitespace.
2013-09-28Fix single-line-style paragraph fills with code immediately before or afterMicah Chalmer
2013-09-26Add 'continue' keyword to emacs, vim, gedit, kateBrian Anderson
2013-09-13Minor cleanup and formatting tweaks to the rust-mode READMELindsey Kuper
2013-09-07Cover all cases for padding in paragraph fills as intendedMicah Chalmer
2013-09-07Fix regression of multi-line statement indentsMicah Chalmer
2013-09-06Add ERT testsMicah Chalmer
2013-09-06Add paragraph fill and auto-fill for multi-line commentsMicah Chalmer
2013-09-06Add custom group for rust-modeMicah Chalmer
2013-09-06Indent return type to align with argumentsMicah Chalmer
2013-09-06Allow indenting to align struct fields after curly braceMicah Chalmer
2013-09-06Indent correctly after opening square bracketMicah Chalmer
2013-09-05Fix glitches with struct field aligned indentsMicah Chalmer
2013-08-30Align field names in struct expressions with fields on same line as the ↵Micah Chalmer
opening curly brace
2013-08-30Multiline comments with leading *s line up the *sMicah Chalmer
2013-08-29One indent after open paren with no argumentMicah Chalmer
2013-08-29Correct indent with trailing spaces/comments on previous lineMicah Chalmer