From a73e9ee22740c9f61fe6484a30871101968d52a6 Mon Sep 17 00:00:00 2001 From: Paul Stansifer Date: Tue, 22 May 2012 11:44:00 -0700 Subject: Update reserved words for syntax highlighters (vim is still behind, though) --- rust-mode.el | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'rust-mode.el') 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)) -- cgit v1.2.3