auto merge of #5103 : dbaupp/rust/emacs-mode-update, r=graydon

Copy the keyword list from rust.vim, and add `self` so that it is highlighted
(being liberal with the correct categories).

I'm not quite willing to dive in to clean up the emacs code yet, but at least this gets a (more) modern syntax highlighting list.
This commit is contained in:
bors 2013-02-25 20:24:40 -08:00
commit 40ffaeaea8
1 changed files with 9 additions and 14 deletions

View File

@ -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