Skip to content

Commit 2ffa9b6

Browse files
committed
vim: add optional rustFuncCall (default disabled)
1 parent e8b13e8 commit 2ffa9b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ syn keyword rustConstant STDIN_FILENO STDOUT_FILENO STDERR_FILENO
6666
syn match rustModPath "\w\(\w\)*::[^<]"he=e-3,me=e-3
6767
syn match rustModPathSep "::"
6868

69+
syn match rustFuncCall "\w\(\w\)*("he=e-1,me=e-1
70+
syn match rustFuncCall "\w\(\w\)*::<"he=e-3,me=e-3 " foo::<T>();
71+
6972
syn region rustString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=rustTodo
7073

7174
syn region rustAttribute start="#\[" end="\]" contains=rustString
@@ -119,6 +122,7 @@ hi def link rustAttribute PreProc
119122
" Other Suggestions:
120123
" hi def link rustModPathSep Conceal
121124
" hi rustAssert ctermfg=yellow
125+
" hi rustFuncCall ctermfg=magenta
122126

123127
syn sync minlines=200
124128
syn sync maxlines=500

0 commit comments

Comments
 (0)