diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index f50287baaa9..80ca97f95bd 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -66,8 +66,8 @@ 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::(); +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 region rustString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=rustTodo