summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-20Merge pull request #240 from michael-zapata/feat/add-yield-keywordTom Tromey
feat(rust-mode): add yield to the keywords list
2017-09-21feat(rust-mode): add yield to the keywords listMichael Zapata
Enables syntax highlighting
2017-09-14Merge pull request #239 from shepmaster/no-more-int-floatTom Tromey
Remove `float`, `int`, and `uint` as built-in types.
2017-09-14Remove `float`, `int`, and `uint` as built-in types.Jake Goulding
These went away pre Rust-1.0 and are valid identifiers. Went ahead and removed them from the tests as well, replacing them with real types of the same number of characters.
2017-08-27Merge pull request #235 from tromey/get-buffer-window-fixletTom Tromey
Pass 'visible to get-buffer-window
2017-08-23Pass 'visible to get-buffer-windowTom Tromey
If I have two frames, with the *compilation* buffer in one frame and use next-error in the other frame, I get this error: Wrong type argument: window-live-p, nil This happens because get-buffer-window returns nil. The fix is to pass 'visible to get-buffer-window, which will pick any visible frame from the same terminal.
2017-08-22Merge pull request #234 from jjwest/masterTom Tromey
Types get correct font-lock in if-let statements
2017-08-21Renamed and relocated if-let font-lock testJonas Westlund
2017-08-21Added test for if-let font lockJonas Westlund
2017-08-20Types get correct font-lock in if-let statementsJonas Westlund
2017-08-20Merge pull request #233 from shanavas786/add-128Tom Tromey
Add support for u128 and i128 types
2017-08-20Add support for u128 and i128 typesShanavas M
2017-08-14Merge pull request #230 from tromey/fix-indentation-bugTom Tromey
Fix recognition of "<" as operator in some context
2017-08-14Fix recognition of "<" as operator in some contextTom Tromey
rust-mode identifies the "<<" as open angle brackets in let x = a[i][(1 << i)]; This patch fixes the problem by changing rust-is-in-expression-context to treat "]" as starting an expression in brace context. Fixes #212
2017-08-14Merge pull request #225 from Aankhen/add-var-coloursTom Tromey
Use `font-lock-variable-name-face' for `let' bindings
2017-08-10Use `font-lock-variable-name-face' for `let' bindings.Aankhen
2017-08-10Add syntax coloring for type-inferred constants and variablesPer Nordlöw
2017-08-05Merge pull request #220 from Aankhen/highlight-string-interpolationTom Tromey
Highlight interpolation in arguments to print! &c.
2017-08-04Merge pull request #224 from tromey/beginning-of-defunTom Tromey
Make rust-beginning-of-defun ignore comments and strings
2017-08-02Make rust-beginning-of-defun ignore comments and stringsTom Tromey
Change rust-beginning-of-defun to keep searching when it stops in a comment or a string. Fixes #222.
2017-08-02Highlight interpolation in arguments to print! &c.Aankhen
2017-08-01Merge pull request #221 from Wilfred/highlight_union_contextual_keywordTom Tromey
Add syntax highlighting and imenu support for `union`
2017-07-30Add syntax highlighting and imenu support for `union`Wilfred Hughes
`union` is a contextual keyword, so highlight it in the correct context. Otherwise, treat `union` similarly to `struct`.
2017-07-28Merge pull request #219 from Aankhen/highlight-question-markTom Tromey
Highlight question mark operator using new `rust-question-mark-face'
2017-07-28Highlight question mark operator using new `rust-question-mark-face'.Aankhen
2017-07-19Merge pull request #217 from Aankhen/add-clippy-commandTom Tromey
Add `rust-run-clippy' and `rust-buffer-project' with testing paraphernalia
2017-07-16Improve content of `test-project/Cargo.toml'.Aankhen
2017-07-13Define `rust-test-project-located' conditionally instead of using `skip-unless'.Aankhen
2017-07-13Skip `rust-test-project-located' without cargo and avoid `find-file' in test.Aankhen
2017-07-13Add `rust-cargo-bin' custom variable.Aankhen
2017-07-13Declare `rust-buffer-project' and require `json' at runtime.Aankhen
2017-07-13Require `json'.Aankhen
2017-07-13Add `rust-run-clippy' and `rust-buffer-project' with testing paraphernalia.Aankhen
2017-07-12Merge pull request #216 from Aankhen/set-compile-commandNiko Matsakis
Set `compile-command' in `rust-mode'
2017-06-26Set `compile-command' in `rust-mode'.Aankhen
2017-06-06Merge pull request #213 from KeenS/restore-pointsTom Tromey
restore points even when an error occurs
2017-06-06restore points when an error occurs tooSunrin SHIMURA (keen)
2017-05-31Merge pull request #206 from cjhowe7/masterTom Tromey
Allow formatting with long lines (fixes #186)
2017-05-31Address review commentsChristian Howe
2017-05-14Merge pull request #209 from tromey/default-keywordTom Tromey
Add support for "default" keyword
2017-05-06Add support for "default" keywordTom Tromey
Add context-sensitive fontification for the "default" keyword.
2017-04-23Fix stupid mistake in rustfmt conditionalChristian Howe
2017-04-21Remove unnecessary debugging messageChristian Howe
2017-04-18Add stderr output from rustfmt on exit code 3Christian Howe
2017-04-18Allow formatting with long linesChristian Howe
2017-04-11Merge pull request #198 from tromey/indentation-fixTom Tromey
fix rust indentation bug
2017-04-11fix rust indentation bugTom Tromey
This patch fixes a bug I found where rust-mode would misindent code like: fn each_split_within<'a, F>(ss: &'a str, lim: usize, mut it: F) -> bool where F: FnMut(&'a str) -> bool { } fn test_split_within() { } In particular the second "fn" would be indented a level. On the "fn" line, rust-mode-indent-line was calling rust-beginning-of-defun, which would go to the previous defun. Fixing this required moving the definition of rust-top-item-beg-re higher in the file, before its first use (recent versions of Emacs insist on this). And, this required removing the "^" from this regexp, which is ok because the sole use is already adding a "^". Additionally, I moved the "\\_>" into the regexp, rather than have it added at the point of use, so that the new use would also benefit. This patch includes two new test cases.
2017-04-11Merge pull request #201 from tromey/question-indentationNiko Matsakis
fix syntax of "<" appearing after "?"
2017-04-11Merge pull request #197 from tromey/syntax-propertizeNiko Matsakis
Syntax propertize
2017-04-11Merge pull request #172 from nokaa/masterNiko Matsakis
Add info to enable rustfmt