emacs-elpa-diffs
[Top][All Lists]
Advanced

[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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]