summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-16Merge pull request #40 from MicahChalmer/fix-comment-typosFelix S Klock II
Fix typo/missing lines in comment in test
2015-02-15Fix typo/missing lines in comment in testMicah Chalmer
2015-02-16Merge pull request #38 from MicahChalmer/fix-issue-36Felix S Klock II
Fix emacs state corruption from incorrect "syntax-begin-function" setting
2015-02-15Include the last character in indentation testsMicah Chalmer
2015-02-15Don't set syntax-begin-functionMicah Chalmer
2015-02-11Merge pull request #35 from MicahChalmer/fix-raw-string-bugsHuon Wilson
Fix raw string bugs
2015-02-10Add test for raw string with inner quote and hashMicah Chalmer
2015-02-10Fix raw string bugsMicah Chalmer
2015-02-08Merge pull request #31 from pnkfelix/more-robust-test-driverNiko Matsakis
Make the test driver script a little more informative.
2015-02-08Merge pull request #32 from MicahChalmer/raw-string-handlingNiko Matsakis
Parse and highlight raw strings correctly
2015-02-07Fix typo in commentMicah Chalmer
2015-02-07Highlight raw strings correctlyMicah Chalmer
2015-02-07Make the test driver script a little more informative.Felix S. Klock II
Namely, have it do a couple attempts to check if basic dependencies are satisfied before jumping whole hog into the test script, and provide a message pointing out the ERT dependency in particular.
2015-02-07Merge pull request #30 from MicahChalmer/emacs23-fixupFelix S Klock II
Emacs 23 Fixups
2015-02-06Fix bug in rust-indent-method-chainsMicah Chalmer
2015-02-06Re-enable emacs23 in TravisMicah Chalmer
2015-02-06Fix ERT section of READMEMicah Chalmer
2015-02-06Make features (and their tests) work on emacs 23Micah Chalmer
2015-02-06Merge pull request #26 from pnkfelix/disable-emacs23-testingNiko Matsakis
disable emacs23 testing on travis.
2015-02-06disable emacs23 testing on travis.Felix S. Klock II
2015-02-06Merge pull request #22 from nikomatsakis/align-method-chainFelix S Klock II
Fix aligning of method chains (more-or-less), add various unit tests, and add matching angle brackets.
2015-02-06Add a hook so that we briefly highlight the matching `<` when `>` is typed.Niko Matsakis
Also add an interactive command for finding the matching `<`. I'd like to bind this to `C-c >` (reserved for major modes), but I can't figure out what the local keymap is for rust-mode (help!).
2015-02-06Merge pull request #16 from MicahChalmer/add-travisNiko Matsakis
Add travis config (and make tests runnable on emacs 23)
2015-02-06Merge pull request #17 from ramnes/masterNiko Matsakis
Ignore byte-compiled files
2015-02-05Merge pull request #21 from pnkfelix/tests-allow-override-of-which-emacsNiko Matsakis
Allow user to override which emacs is used in run_rust_emacs_tests.sh
2015-02-05Fix aligning of method chains (more-or-less) and add various unit tests.Niko Matsakis
The regular expressions are probably kind of wrong for things like self.foo.something::<X>() .more();
2015-02-06Merge pull request #2 from MicahChalmer/fix-quotes-with-syntax-propertiesFelix S Klock II
Fix quotes with syntax properties
2015-02-06Allow user to override which emacs is used in run_rust_emacs_tests.shFelix S. Klock II
Namely, extend script so user can do, e.g.: ``` % EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs run_rust_emacs_tests.sh ```
2015-02-06Merge pull request #20 from pnkfelix/fix-broken-testsFelix S Klock II
Fix tests broken by trailing whitespace removal
2015-02-04Ignore byte-compiled filesramnes
2015-02-03Use old code style for emacs 23 compatMicah Chalmer
The new recommended style is to use the "cl-" prefixed versions, but they do not exist in emacs 23. We still want to stay compatible with that, so use plain "loop" rather than "cl-loop" to allow the tests to work with both old and new versions. ALso "pcase" was introduced in emacs 24, so stop using it to remain compatible with emacs 23.
2015-02-03Add .travis.ymlMicah Chalmer
2015-02-02Add test for closing braces in character literalsMicah Chalmer
2015-02-02Add test for '\'' single quote char literalMicah Chalmer
2015-02-02Fix syntax and highlighting for char literalsMicah Chalmer
This uses syntax properties to make it so that emacs recognizes the single quote, rather than the double quote, as the string delimiter within character literals, while leaving the syntax unchanged elsewhere.
2015-02-02Fix tests broken by trailing whitespace removalMicah Chalmer
Commit a8fad0f broke the ERT tests by removing trailing whitespace inside the test strings. Fix the tests, and replace some line endings inside strings with explicit "\n" to avoid having further significant trailing whitespace in the code.
2015-01-21rollup merge of #19913: KOMON/rust-mode-emacs-indentationAlex Crichton
I added an option to auto-indent method chains to line up along their '.' operators. Like so: ``` let input = io::stdin().readline() .ok() .expect("Failed to read line"); ``` The old default would indent like so: ``` let input = io::stdin().readme() .ok() .expect("Failed to read line"); ``` The Rust guide explicitly condones the former, so I thought it would be nice for the emacs mode to support it. It's off by default, you have to set ```rust-indent-method-chain``` to ```t``` via your .emacs or the customize menu
2015-01-20Changed rust-mode code for tabs -> spacesDaniel Raloff
2015-01-09Mark _ as a word constituent to avoid highlighting parts of identifiers as ↵Sean Gillespie
keywords
2015-01-07Update editor syntax files for isize/usize.Huon Wilson
Yay, syntax highlighting.
2014-12-16added optional method chain indentations for emacs major modeDaniel Raloff
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.