Skip to content

Commit b17feb2

Browse files
committed
---
yaml --- r: 125711 b: refs/heads/try c: ca6ffac h: refs/heads/master i: 125709: 0312916 125707: 33d6579 125703: 26671bb 125695: 7ee0c8a v: v3
1 parent 4d652d8 commit b17feb2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f2fa55903e378368ed9173560f03a0ef16e371c2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 9fc8394d3bce22ab483f98842434c84c396212ae
5-
refs/heads/try: f15d6d28396e8700b6c3f2704204a2769e710403
5+
refs/heads/try: ca6ffac4e4683705b895e368375103315ca0e1ca
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/etc/vim/syntax/rust.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ syn region rustBoxPlacementBalance start="(" end=")" containedin=rustBoxPlace
6060
syn region rustBoxPlacementBalance start="\[" end="\]" containedin=rustBoxPlacement transparent
6161
" {} are handled by rustFoldBraces
6262

63+
syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end=")" contains=TOP nextgroup=rustMacroRepeatCount
64+
syn match rustMacroRepeatCount ".\?[*+]" contained
65+
syn match rustMacroVariable "$\w\+"
66+
6367
" Reserved (but not yet used) keywords {{{2
6468
syn keyword rustReservedKeyword alignof be do offsetof priv pure sizeof typeof unsized yield
6569

@@ -233,6 +237,9 @@ hi def link rustBinNumber rustNumber
233237
hi def link rustIdentifierPrime rustIdentifier
234238
hi def link rustTrait rustType
235239

240+
hi def link rustMacroRepeatCount rustMacroRepeatDelimiters
241+
hi def link rustMacroRepeatDelimiters Macro
242+
hi def link rustMacroVariable Define
236243
hi def link rustSigil StorageClass
237244
hi def link rustEscape Special
238245
hi def link rustEscapeUnicode rustEscape

0 commit comments

Comments
 (0)