Skip to content

Commit

Permalink
Emacs: Update emacs mode to be more similar to the vim mode.
Browse files Browse the repository at this point in the history
Copy the keyword list, and add `self` so that it is somewhat highlighted
(being liberal with the correct categories).
  • Loading branch information
huonw committed Feb 25, 2013
1 parent b26d434 commit 4bf94a7
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions src/etc/emacs/rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

5 comments on commit 4bf94a7

@bors
Copy link
Contributor

@bors bors commented on 4bf94a7 Feb 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 4bf94a7 Feb 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging dbaupp/rust/emacs-mode-update = 4bf94a7 into auto

@bors
Copy link
Contributor

@bors bors commented on 4bf94a7 Feb 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dbaupp/rust/emacs-mode-update = 4bf94a7 merged ok, testing candidate = 40ffaea

@bors
Copy link
Contributor

@bors bors commented on 4bf94a7 Feb 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 4bf94a7 Feb 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 40ffaea

Please sign in to comment.