branch: elpa/rust-mode
commit a73e9ee22740c9f61fe6484a30871101968d52a6
Author: Paul Stansifer <[email protected]>
Commit: Paul Stansifer <[email protected]>
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))