Skip to content

Update the keyword lists in rust.md and syntax.vim #1585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,17 @@ alt any as assert
be bind block bool break
char check claim const cont
do
else export
else enum export
f32 f64 fail false float fn for
i16 i32 i64 i8 if iface impl import in int
let log
mod mutable
native note
of
prove pure
resource ret
self str syntax
tag true type
true type
u16 u32 u64 u8 uint unchecked unsafe use
vec
while
Expand Down
13 changes: 8 additions & 5 deletions src/etc/vim/syntax/rust.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ if !exists("main_syntax")
let main_syntax='rust'
endif

syn keyword rustKeyword alt as assert auth be bind block break chan
syn keyword rustKeyword alt as assert be bind block break
syn keyword rustKeyword check claim cont const copy do else enum export fail
syn keyword rustKeyword fn for if iface impl import in inline lambda let log
syn keyword rustKeyword log_err mod mutable native note of prove pure
syn keyword rustKeyword resource ret self tag type unsafe use while
syn keyword rustKeyword with
syn keyword rustKeyword mod mutable native note of prove pure
syn keyword rustKeyword resource ret self syntax type unchecked
syn keyword rustKeyword unsafe use while with

" Reserved words
syn keyword rustKeyword m32 m64 m128 f80 f16 f128 class trait

syn keyword rustType any int uint float char bool u8 u16 u32 u64 f32
syn keyword rustType f64 i8 i16 i32 i64 str task
syn keyword rustType f64 i8 i16 i32 i64 str

syn keyword rustBoolean true false

Expand Down