Skip to content

Commit e61a7dc

Browse files
committed
---
yaml --- r: 23754 b: refs/heads/master c: 2ba632a h: refs/heads/master v: v3
1 parent 663d6b1 commit e61a7dc

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3a34c96086e88466e350100af874f07b387a7620
2+
refs/heads/master: 2ba632a683f21f306e1f71c1bd867752b93ebd3b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ syn match rustNiceOperator "=>" contains=rustFatRightArrowHead,rustFatRightArrow
2525

2626
syn match rustNiceOperator /\<\@!_\(_*\>\)\@=/ conceal cchar=
2727

28+
" For those who don't want to see `pub`...
29+
if exists('g:rust_conceal_pub')
30+
syn match rustPublicSigil contained "pu" conceal cchar=
31+
syn match rustPublicRest contained "b" conceal cchar= 
32+
syn match rustNiceOperator "pub " contains=rustPublicSigil,rustPublicRest
33+
endif
34+
2835
hi link rustNiceOperator Operator
2936

3037
if !exists('g:rust_conceal_mod_path')

trunk/src/etc/vim/syntax/rust.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ syn match rustAssert "\<assert\(\w\)*"
1414
syn keyword rustKeyword again as break
1515
syn keyword rustKeyword const copy do drop else export extern fail
1616
syn keyword rustKeyword for if impl import in let log
17-
syn keyword rustKeyword loop match mod module move mut new of owned priv pub pure
17+
syn keyword rustKeyword loop match mod module move mut new of owned priv pure
18+
syn match rustKeyword "\<pub\>"
1819
syn keyword rustKeyword ref return static to unchecked
1920
syn match rustKeyword "\<unsafe\>" " Allows also matching unsafe::foo()
2021
syn keyword rustKeyword use while with

0 commit comments

Comments
 (0)