summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-14Merge pull request #90 from Wilfred/fix_type_word_boundariesMicah Chalmer
Correcting highlighting of capitals in function names.
2015-08-14Merge pull request #88 from kw-udon/nested-commentMicah Chalmer
Support nested block comments
2015-08-15Correcting highlighting of capitals in function names.Wilfred Hughes
Previously, code of the form: fn foo_Bar () {} would be incorrectly highlighted, because the regex matched on word boundaries rather than symbol boundaries. Test added.
2015-08-06Merge pull request #68 from tromey/fix-issue-53Micah Chalmer
remove rust-mode-character-literal-syntax-table
2015-07-31Merge pull request #89 from MicahChalmer/fix-slow-angle-bracket-matchingNiko Matsakis
Fix slow angle bracket matching
2015-07-30Recognize runaway raw stringsMicah Chalmer
Recognize raw strings all the way to the end of the buffer if they are not closed. This is not valid rust code, but the highlighting should show the mistake. This also eliminates glitchy behavior that can occur in this situation. Emacs assumes that edits can't change syntax at positions before the edit, and raw strings without this change violated this.
2015-07-30Fix slowness in angle bracket matchingMicah Chalmer
The problem was caused by the logic that made it refontify the whole buffer when "font-lock-syntactically-fontified" was set to a position before the start of the region to be potentially fontified. Unfortunately that variable is not reliably set when fontifying a large buffer. Fortunately, the new logic is much simpler, and font-lock already takes care of ensuring that everything before font-lock-beg was syntactically fontified. The other problem was calling syntax-ppss on positions known not to be fontified yet. This fixes both of these issues, and the angle bracket matching now works on larger buffers without pausing on every keystroke.
2015-07-24Support nested block commentsKeiichi Watanabe
2015-07-20Merge pull request #85 from talchas/masterFelix S Klock II
Cache (regexp-opt rust-special-types 'symbols) in rust-is-lt-char-operator
2015-07-19Cache (regexp-opt rust-special-types 'symbols) in rust-is-lt-char-operatorBen Segall
regexp-opt is generally intended to be cached, and the extra GC was causing noticeable lag when typing sometimes.
2015-07-09Merge pull request #81 from MicahChalmer/fix-issue-80Felix S Klock II
Remove unnecessary code with call to undefined function
2015-07-07Remove unnecessary code with call to undefined functionMicah Chalmer
2015-07-07Merge pull request #67 from tromey/fix-two-docstringsHuon Wilson
fix quoting in two doc strings
2015-07-07Merge pull request #78 from tromey/fix-issue-33Huon Wilson
test $EMACS directly rather than using "which"
2015-07-06Merge pull request #79 from MicahChalmer/angle-bracket-madnessNiko Matsakis
Match angle brackets syntactically
2015-07-05Perform syntactic angle bracket matchingMicah Chalmer
Add angle brackets to the list of emacs matching characters. Use syntactic fontification to suppress this where it is not appropriate (in less than operators, arrows, etc.) Remove the non-syntactic version that was there previously. For electric-pair-mode, suppress the pairing for < and > characters that are not angle brackets. Because syntax is used for indentation, this fixes some problems with it, particularly when attempting to stretch type parameter lists over multiple lines.
2015-07-05Speed up calls to "looking-back"Micah Chalmer
2015-07-05Fix bugs in raw strings and character literalsMicah Chalmer
2015-07-05Factor out rust-conditional-re-search-forwardMicah Chalmer
Factor out the method of looking for a match for a regexp, but filtering out some of the matches with a filtering function. This will be used again for angle bracket filtering. This also fixes an issue with raw string handling.
2015-07-05Merge pull request #71 from birkenfeld/doc-commentsFelix S Klock II
Distinguish face for doc-comments
2015-07-05Distinguish face for doc-commentsGeorg Brandl
Using the syntactic-face-function, we can assign the proper `font-lock-doc-face' to doc comments ("///", "//!", "/**", "/*!"). Test changes graciously copied from https://github.com/rust-lang/rust-mode/pull/64
2015-06-20test $EMACS directly rather than using "which"Tom Tromey
Fixes #33
2015-06-10Merge pull request #73 from MicahChalmer/raw-string-multiline-edit-fixFelix S Klock II
Fix multi-line raw strings when editing
2015-06-08Fix multi-line raw strings when editingMicah Chalmer
2015-05-24set :safe on two defcustomsTom Tromey
2015-05-22remove rust-mode-character-literal-syntax-tableTom Tromey
Fix #53
2015-05-22fix quoting in two doc stringsTom Tromey
2015-05-22Merge pull request #65 from tromey/blink-matching-parenNiko Matsakis
handle case where blink-matching-paren-distance is nil
2015-05-22handle case where blink-matching-paren-distance is nilTom Tromey
2015-05-18Merge pull request #63 from krig/panic-compilation-warningFelix S Klock II
Match panics during build as compilation warnings
2015-05-18Merge pull request #62 from MicahChalmer/a-couple-of-readme-fixesFelix S Klock II
A couple of readme fixes
2015-05-18Match panics during build as compilation warningsKristoffer Grönlund
Enables using `cargo test` as the compilation command in emacs, and adds test failures as compilation warnings.
2015-05-11Remove Marmalade from the READMEMicah Chalmer
2015-05-11Fix package.el URLMicah Chalmer
Fixes #48
2015-05-04Merge pull request #58 from lunaryorn/patch-1Felix S Klock II
Update rust-mode URL in header
2015-05-04Merge pull request #59 from lunaryorn/fix-byte-compiler-warningsFelix S Klock II
Fix some byte compiler warnings on Emacs 25.1
2015-05-03Update rust-mode URL in headerSebastian Wiesner
2015-05-03Fix free-variable warningsSebastian Wiesner
Constant must be defined before being used, to avoid warnings about free variables
2015-05-03Pass explicit second argument to looking-backSebastian Wiesner
The second argument to looking-back is no longer optional as of Emacs 25.1.
2015-04-30Merge pull request #57 from pnkfelix/regression-test-for-arrow-openbraceHuon Wilson
Add regression test for PR #52.
2015-04-30Merge pull request #56 from pnkfelix/pr=fix-word-syntaxFelix S Klock II
Fix word and symbol syntax distinction, take 2
2015-04-30Add regression test for PR #52.Felix S. Klock II
Thanks again to @GBGamer !
2015-04-30workaround emacs 23 issues.Felix S. Klock II
2015-04-30rust-align-to-method-chain: Jump over symbols, not wordsRoy Crihfield
2015-04-30Fix word and symbol syntax distinctionRoy Crihfield
By passing 'symbols as 2nd argument to regexp-opt, keywords will not be erroneously matched inside symbols. This obviates changing the syntax of `_' to "w".
2015-04-30Merge pull request #52 from GBGamer/fix-indentFelix S Klock II
Fix "-> Type" on a single line indentation
2015-04-30Merge pull request #55 from kriben/masterFelix S Klock II
Use (goto-char (point-max)) instead of (end-of-buffer) to silence warnin...
2015-04-30Use (goto-char (point-max)) instead of (end-of-buffer) to silence warning.Kristian Bendiksen
Fixes issue #54.
2015-04-13Fix "-> Type" on a single line indentationNicholas Mazzuca
2015-04-08Merge pull request #49 from huonw/playpenNiko Matsakis
Add rust-playpen-buffer and rust-playpen-region for sharing code.