about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Blum <bblum@andrew.cmu.edu>2012-07-10 16:59:06 -0400
committerBen Blum <bblum@andrew.cmu.edu>2012-07-11 12:07:06 -0400
commit2ffa9b6bd99efa244bdc943186772d59b074ee6d (patch)
tree3f2922fa93b36739e44287856656c7ab463ea194
parente8b13e8f267a908285a2fb38c0661f54da2623e5 (diff)
downloadrust-2ffa9b6bd99efa244bdc943186772d59b074ee6d.tar.gz
rust-2ffa9b6bd99efa244bdc943186772d59b074ee6d.zip
vim: add optional rustFuncCall (default disabled)
-rw-r--r--src/etc/vim/syntax/rust.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim
index 02cdae07c04..e4a57ab75fb 100644
--- a/src/etc/vim/syntax/rust.vim
+++ b/src/etc/vim/syntax/rust.vim
@@ -66,6 +66,9 @@ syn keyword   rustConstant    STDIN_FILENO STDOUT_FILENO STDERR_FILENO
 syn match     rustModPath     "\w\(\w\)*::[^<]"he=e-3,me=e-3
 syn match     rustModPathSep  "::"
 
+syn match     rustFuncCall    "\w\(\w\)*("he=e-1,me=e-1
+syn match     rustFuncCall    "\w\(\w\)*::<"he=e-3,me=e-3 " foo::<T>();
+
 syn region    rustString      start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=rustTodo
 
 syn region    rustAttribute   start="#\[" end="\]" contains=rustString
@@ -119,6 +122,7 @@ hi def link rustAttribute     PreProc
 " Other Suggestions:
 " hi def link rustModPathSep    Conceal
 " hi rustAssert ctermfg=yellow
+" hi rustFuncCall ctermfg=magenta
 
 syn sync minlines=200
 syn sync maxlines=500