summaryrefslogtreecommitdiff
path: root/rust-mode.el
AgeCommit message (Collapse)Author
2019-04-21Don't call syntax-ppss twice for raw strings.Evgeny Kurnevsky
2019-04-17Don't call syntax-ppss twice for strings ending with r.Evgeny Kurnevsky
2019-04-15Don't insert string delimiter inside strings.Evgeny Kurnevsky
2019-03-04Merge pull request #298 from jjwest/masterFelix S Klock II
Add compilation mode warning face
2019-03-04Merge pull request #300 from ↵Felix S Klock II
mmilenko/rust-looking-back-macro--backward-char--fix Avoid signaling "Beginning of buffer" in rust-looking-back-macro
2019-03-01Merge pull request #293 from TristanCacqueray/masterFelix S Klock II
Add rust-run and rust-test interactive function
2019-02-28refer to (point-min) instead of 1Miodrag Milenkovic
2019-02-28Avoid signaling "Beginning of buffer" in rust-lookng-back-macroMiodrag Milenkovic
Also save some work if we don't have at least two characters behind us in the buffer, we know we can't be looking at a macro then. The signal occurs when one tries 'racer-describe' when positioned over "String", which eventually ends up calling (with-temp-buffer (insert "<Target=str>") (delay-mode-hooks (rust-mode)) (font-lock-ensure)) This simpler block will also trigger the error (with-temp-buffer (insert "<>") (rust-mode) (font-lock-ensure)) (font-lock-ensure) call ends up calling (rust-looking-back-macro).
2019-02-05Remove old commentJonas Westlund
2019-02-04Add compilation mode warning faceJonas Westlund
2019-01-15Add rust-indent-return-type-to-arguments variableDavid Kellum
This preserves as default (t), the current indentation behavior of `-> ReturnType` when found on its own line: indenting as per the arguments of the above function. When disabled (nil) by the user, however, this will now just indent such a line one level from base-line (e.g. no special treatment). Includes a basic test.
2018-12-21Add rust-run and rust-test interactive functionTristan Cacqueray
This change adds a couple of useful commands similar to the rust-build function.
2018-12-18imenu: handle lifetimes in impl blocks.Nathan Moreau
2018-10-07adjust docstring formattingriscy
2018-10-02Merge pull request #266 from brotzeit/format-on-saveFelix S Klock II
throw error in after-save-hook instead of before-save-hook
2018-09-29silence byte-compilerbrotzeit
2018-09-04Add keywords `async` and `try`_rika
2018-06-26Merge pull request #267 from jthemphill/patch-1Niko Matsakis
Bump version
2018-06-07Fix font-locking of "let ref"Tom Tromey
Fixes #271
2018-04-23Bump versionJeff Hemphill
I'm still stuck on a version that's 1.5 years old!
2018-03-23throw error in after-save-hook instead of before-save-hookbrotzeit
2018-03-21make rustc-colon-compilation-regexps an info typebrotzeit
2018-03-03update to include line number and column informationNiko Matsakis
2018-03-03remove old-style compilation regex; support `:::` regexNiko Matsakis
2018-02-15Fixed indent when ? operator is used in chained method callsJonas Westlund
2018-02-15Merge pull request #253 from jjwest/masterNiko Matsakis
Improved font-locking for print macros
2018-02-12add dyn to keywordskngwyu
2018-01-09Do not indent where clause by default (follow standard) #257Sebastien Chapuis
2017-12-08Improved font-locking for print macrosJonas Westlund
2017-12-08Merge pull request #251 from brotzeit/rust-format-bufferTom Tromey
don't set-window-start for selected window
2017-11-24don't set-window-start for selected windowbrotzeit
2017-11-18fix rust--format-callbrotzeit
2017-11-06% as punctuation character.Hiroki Noda
2017-10-03Revert #216 and Add Suggestions from #226Will Speak
This reverts the `setq-local` for `compile-command` and replaces it with a function which can be used to invoke compile with `"cargo build"` as the compile command.
2017-09-21feat(rust-mode): add yield to the keywords listMichael Zapata
Enables syntax highlighting
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-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-20Types get correct font-lock in if-let statementsJonas Westlund
2017-08-20Add support for u128 and i128 typesShanavas M
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-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-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-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-28Highlight question mark operator using new `rust-question-mark-face'.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