Skip to content

Commit 3eea23c

Browse files
committed
---
yaml --- r: 13006 b: refs/heads/master c: a16cb37 h: refs/heads/master v: v3
1 parent 7e42c51 commit 3eea23c

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5f154770e2e921e717127b9fe95e09856305fd6f
2+
refs/heads/master: a16cb376ac214d1cb07b88292a9f81587ac1bc1d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/etc/emacs/rust-mode.el

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,21 @@
5454
(let ((table (make-hash-table :test 'equal)))
5555
(dolist (word '("mod" "type" "resource" "fn" "enum" "iface" "impl"))
5656
(puthash word 'def table))
57-
(dolist (word '("if" "else" "while" "do" "for" "break" "cont" "ret" "be" "fail" "const"
58-
"check" "assert" "claim" "prove" "native" "import" "export" "let" "mut" "log"
59-
"use" "pure" "unsafe"))
57+
(dolist (word '("assert"
58+
"be" "break"
59+
"check" "claim" "class" "const" "cont" "copy" "crust"
60+
"drop"
61+
"else" "export"
62+
"fail" "for"
63+
"if" "import"
64+
"let" "log" "loop"
65+
"mut"
66+
"native" "new"
67+
"pure"
68+
"ret"
69+
"trait"
70+
"unchecked" "unsafe"
71+
"while"))
6072
(puthash word t table))
6173
(puthash "alt" 'alt table)
6274
(dolist (word '("true" "false")) (puthash word 'atom table))

trunk/src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if !exists("main_syntax")
1515
endif
1616

1717
syn keyword rustKeyword alt as assert be bind break
18-
syn keyword rustKeyword check claim cont const copy do else export fail
18+
syn keyword rustKeyword check claim cont const copy else export fail
1919
syn keyword rustKeyword for if impl import in inline lambda let log
2020
syn keyword rustKeyword loop mod mut mutable native note of prove pure
2121
syn keyword rustKeyword ret self syntax to unchecked

0 commit comments

Comments
 (0)