From 0646890f631daeacf65286aea9568cd30b83205d Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 2 Aug 2012 11:47:45 -0700 Subject: [PATCH] vim: Don't link conceals to operators if we're concealing mod paths, because that makes mod paths show up as operators. --- src/etc/vim/after/syntax/rust.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/etc/vim/after/syntax/rust.vim b/src/etc/vim/after/syntax/rust.vim index f4c1fc1160a..45903162697 100644 --- a/src/etc/vim/after/syntax/rust.vim +++ b/src/etc/vim/after/syntax/rust.vim @@ -26,5 +26,9 @@ syn match rustNiceOperator "=>" contains=rustFatRightArrowHead,rustFatRightArrow syn match rustNiceOperator /\<\@!_\(_*\>\)\@=/ conceal cchar=′ hi link rustNiceOperator Operator -hi! link Conceal Operator + +if !exists('g:rust_conceal_mod_path') + hi! link Conceal Operator +endif + setlocal conceallevel=2