diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-02-01 13:47:46 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-02-01 14:21:32 -0500 |
| commit | 00201c969d5d13e4cf65518dd42d3cacc8916a50 (patch) | |
| tree | 44426b9df39f8fc0fa63220c8ad7ae42b1d17968 /src | |
| parent | 1c3cca8a578e21eecbe1c5a103fa0edb0ba1af6a (diff) | |
| download | rust-00201c969d5d13e4cf65518dd42d3cacc8916a50.tar.gz rust-00201c969d5d13e4cf65518dd42d3cacc8916a50.zip | |
vim: use StorageClass for mut and const
Diffstat (limited to 'src')
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index be44241143d..d04f09ad723 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -12,15 +12,16 @@ endif syn match rustAssert "\<assert\(\w\)*" syn keyword rustKeyword as break -syn keyword rustKeyword const copy do drop else extern fail +syn keyword rustKeyword copy do drop else extern fail syn keyword rustKeyword for if impl let log -syn keyword rustKeyword loop match mod move mut once priv pure +syn keyword rustKeyword loop match mod move once priv pure syn match rustKeyword "\<pub\>" syn keyword rustKeyword ref return static syn keyword rustKeyword unsafe use while " FIXME: Scoped impl's name is also fallen in this category syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite +syn keyword rustStorage const mut syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained @@ -133,6 +134,7 @@ hi def link rustMacro Macro hi def link rustType Type hi def link rustTodo Todo hi def link rustAttribute PreProc +hi def link rustStorage StorageClass " Other Suggestions: " hi rustAssert ctermfg=yellow |
