diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 80ca97f95bd1..39f5f8e75350 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -69,6 +69,8 @@ syn match rustModPathSep "::" syn match rustFuncCall "\w\(\w\)*("he=e-1,me=e-1 contains=rustAssert syn match rustFuncCall "\w\(\w\)*::<"he=e-3,me=e-3 contains=rustAssert " foo::(); +syn match rustMacro '\w\(\w\)*!' + syn region rustString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=rustTodo syn region rustAttribute start="#\[" end="\]" contains=rustString @@ -122,7 +124,7 @@ hi def link rustAttribute PreProc " Other Suggestions: " hi def link rustModPathSep Conceal " hi rustAssert ctermfg=yellow -" hi rustFuncCall ctermfg=magenta +" hi rustMacro ctermfg=magenta syn sync minlines=200 syn sync maxlines=500