diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-02 15:48:27 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-02 16:03:44 -0400 |
| commit | 510af4dadbb33997bab589740ca111cb2a9a7f99 (patch) | |
| tree | 2181c1e2d625697c228a432507a5793961b17154 /src/etc/vim/syntax/rust.vim | |
| parent | 3777a14f08a042e65884a85561896cddefd0dd0d (diff) | |
| download | rust-510af4dadbb33997bab589740ca111cb2a9a7f99.tar.gz rust-510af4dadbb33997bab589740ca111cb2a9a7f99.zip | |
vim syntax: don't hilight foo::<T>() like a module
Diffstat (limited to 'src/etc/vim/syntax/rust.vim')
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 7c09f0af60a..be20020549c 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -42,7 +42,7 @@ syn keyword rustConstant success failure " task " If foo::bar changes to foo.bar, change this ("::" to "\."). " If foo::bar changes to Foo::bar, change this (first "\w" to "\u"). -syn match rustModPath "\w\(\w\)*::"he=e-2,me=e-2 +syn match rustModPath "\w\(\w\)*::[^<]"he=e-3,me=e-3 syn match rustModPathSep "::" syn region rustString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ |
