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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode a73e9ee 004/486: Update reserved words for synta


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode a73e9ee 004/486: Update reserved words for syntax highlighters (vim is still behind, though)
Date: Sat, 7 Aug 2021 09:24:36 -0400 (EDT)

branch: elpa/rust-mode
commit a73e9ee22740c9f61fe6484a30871101968d52a6
Author: Paul Stansifer <paul.stansifer@gmail.com>
Commit: Paul Stansifer <paul.stansifer@gmail.com>

    Update reserved words for syntax highlighters (vim is still behind, though)
---
 rust-mode.el | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index 7dc37bc..412a43d 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -54,9 +54,21 @@
   (let ((table (make-hash-table :test 'equal)))
     (dolist (word '("mod" "type" "resource" "fn" "enum" "iface" "impl"))
       (puthash word 'def table))
-    (dolist (word '("if" "else" "while" "do" "for" "break" "cont" "ret" "be" 
"fail" "const"
-                    "check" "assert" "claim" "prove" "native" "import" 
"export" "let" "mut" "log"
-                    "use" "pure" "unsafe"))
+    (dolist (word '("assert"
+                    "be" "break"
+                    "check" "claim" "class" "const" "cont" "copy" "crust"
+                    "drop"
+                    "else" "export"
+                    "fail" "for"
+                    "if" "import"
+                    "let" "log" "loop"
+                    "mut"
+                    "native" "new"
+                    "pure"
+                    "ret"
+                    "trait"
+                    "unchecked" "unsafe"
+                    "while"))
       (puthash word t table))
     (puthash "alt" 'alt table)
     (dolist (word '("true" "false")) (puthash word 'atom table))



reply via email to

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