[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode 8f926be 031/486: Emacs: Update emacs mode to be
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode 8f926be 031/486: Emacs: Update emacs mode to be more similar to the vim mode. |
Date: |
Sat, 7 Aug 2021 09:24:42 -0400 (EDT) |
branch: elpa/rust-mode
commit 8f926be7c49ea4664392ff16163d94d54bc77e4b
Author: Huon Wilson <dbau.pp+github@gmail.com>
Commit: Huon Wilson <dbau.pp+github@gmail.com>
Emacs: Update emacs mode to be more similar to the vim mode.
Copy the keyword list, and add `self` so that it is somewhat highlighted
(being liberal with the correct categories).
---
rust-mode.el | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)
diff --git a/rust-mode.el b/rust-mode.el
index 5fbd2ab..5a6acba 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -66,22 +66,17 @@
"trait" "struct" "fn" "enum"
"impl"))
(puthash word 'def table))
- (dolist (word '("again" "assert"
- "break"
- "copy"
- "do" "drop"
- "else" "export" "extern"
- "fail" "for"
- "if" "use"
- "let" "log" "loop"
- "move" "new"
- "pure" "pub" "priv"
- "ref" "return" "static"
- "unchecked" "unsafe"
- "while"))
+ (dolist (word '("as" "break"
+ "copy" "do" "drop" "else"
+ "extern" "for" "if" "let" "log"
+ "loop" "once" "priv" "pub" "pure"
+ "ref" "return" "static" "unsafe" "use"
+ "while" "while"
+ "assert"
+ "mut"))
(puthash word t table))
(puthash "match" 'alt table)
- (dolist (word '("true" "false")) (puthash word 'atom table))
+ (dolist (word '("self" "true" "false")) (puthash word 'atom table))
table))
;; FIXME type-context keywords
- [nongnu] elpa/rust-mode 0a94268 396/486: Merge pull request #307 from Bunogi/master, (continued)
- [nongnu] elpa/rust-mode 0a94268 396/486: Merge pull request #307 from Bunogi/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 86bc286 401/486: Add specific distribution for EVM, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 06b3b60 412/486: update readme (#327), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode c0cc6dc 420/486: Allow pass custom flags to rustfmt. (#338), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 888f3de 442/486: rust--format-fix-rustfmt-buffer: replace "stdin:" as well as "<stdin>:"., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode ef152ad 459/486: Minor fixes (#388), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 0797e7b 017/486: add Url, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 5375e54 454/486: Test byte compilation of test code., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 33d178d 030/486: Make 'foo use font-lock-builtin-face, like module names, and make capitalized identifiers optionally use font-lock-type-face, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 9e2221c 034/486: Fix typo, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 8f926be 031/486: Emacs: Update emacs mode to be more similar to the vim mode.,
ELPA Syncer <=
- [nongnu] elpa/rust-mode cfb4408 354/486: Merge pull request #258 from sebastiencs/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode b861aa9 358/486: Fixed indent when ? operator is used in chained method calls, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 31b8453 361/486: update to include line number and column information, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 3254297 366/486: Bump version, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode d3a7025 377/486: Merge pull request #292 from mookid/imenu-impl, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode dd231ed 383/486: Avoid signaling "Beginning of buffer" in rust-lookng-back-macro, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode b7237b0 405/486: Add rust-format-diff-buffer, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 10ba29e 406/486: Silence byte-compiler, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode c8217a3 425/486: Fix rust-insert-dbg for emacs-version < 25. (#339), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 0e25008 043/486: rust-mode: Default rust-indent-offset to 4, not default-tab-width, ELPA Syncer, 2021/08/07