Skip to content

Commit 0646890

Browse files
committed
vim: Don't link conceals to operators if we're concealing mod paths, because that makes mod paths show up as operators.
1 parent 63b70b2 commit 0646890

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/etc/vim/after/syntax/rust.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@ syn match rustNiceOperator "=>" contains=rustFatRightArrowHead,rustFatRightArrow
2626
syn match rustNiceOperator /\<\@!_\(_*\>\)\@=/ conceal cchar=
2727

2828
hi link rustNiceOperator Operator
29-
hi! link Conceal Operator
29+
30+
if !exists('g:rust_conceal_mod_path')
31+
hi! link Conceal Operator
32+
endif
33+
3034
setlocal conceallevel=2

0 commit comments

Comments
 (0)