From bb5e2ba60addba150224b0320300c0a528b69b22 Mon Sep 17 00:00:00 2001 From: Ben Blum Date: Tue, 17 Jul 2012 21:54:21 -0400 Subject: [PATCH] vim: hilight macro!s --- src/etc/vim/syntax/rust.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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