diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2012-05-22 11:44:00 -0700 |
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2012-05-23 16:23:11 -0700 |
| commit | a73e9ee22740c9f61fe6484a30871101968d52a6 (patch) | |
| tree | fc408021a3351e0ad72fc8af9e34dbcceacbdaa7 | |
| parent | fb23ccc497425642316e851cb48a3f4106877218 (diff) | |
| download | rust-mode-a73e9ee22740c9f61fe6484a30871101968d52a6.tar.gz | |
Update reserved words for syntax highlighters (vim is still behind, though)
| -rw-r--r-- | rust-mode.el | 18 |
1 files 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)) |
