Skip to content

Commit 32c9f7e

Browse files
committed
Merge pull request #1585 from mbrubeck/master
Update the keyword lists in rust.md and syntax.vim
2 parents 4ac2542 + 155601e commit 32c9f7e

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

doc/rust.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,17 @@ alt any as assert
218218
be bind block bool break
219219
char check claim const cont
220220
do
221-
else export
221+
else enum export
222222
f32 f64 fail false float fn for
223223
i16 i32 i64 i8 if iface impl import in int
224224
let log
225225
mod mutable
226226
native note
227+
of
227228
prove pure
228229
resource ret
229230
self str syntax
230-
tag true type
231+
true type
231232
u16 u32 u64 u8 uint unchecked unsafe use
232233
vec
233234
while

src/etc/vim/syntax/rust.vim

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ if !exists("main_syntax")
1414
let main_syntax='rust'
1515
endif
1616

17-
syn keyword rustKeyword alt as assert auth be bind block break chan
17+
syn keyword rustKeyword alt as assert be bind block break
1818
syn keyword rustKeyword check claim cont const copy do else enum export fail
1919
syn keyword rustKeyword fn for if iface impl import in inline lambda let log
20-
syn keyword rustKeyword log_err mod mutable native note of prove pure
21-
syn keyword rustKeyword resource ret self tag type unsafe use while
22-
syn keyword rustKeyword with
20+
syn keyword rustKeyword mod mutable native note of prove pure
21+
syn keyword rustKeyword resource ret self syntax type unchecked
22+
syn keyword rustKeyword unsafe use while with
23+
24+
" Reserved words
25+
syn keyword rustKeyword m32 m64 m128 f80 f16 f128 class trait
2326

2427
syn keyword rustType any int uint float char bool u8 u16 u32 u64 f32
25-
syn keyword rustType f64 i8 i16 i32 i64 str task
28+
syn keyword rustType f64 i8 i16 i32 i64 str
2629

2730
syn keyword rustBoolean true false
2831

0 commit comments

Comments
 (0)