Skip to content

Commit a7fa961

Browse files
committed
---
yaml --- r: 16012 b: refs/heads/try c: a16cb37 h: refs/heads/master v: v3
1 parent d69a84a commit a7fa961

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 5f154770e2e921e717127b9fe95e09856305fd6f
5+
refs/heads/try: a16cb376ac214d1cb07b88292a9f81587ac1bc1d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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))

branches/try/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)