Skip to content

Commit 2788883

Browse files
authored
Merge pull request #19534 from tokorom/vim-tuple-index-number
2 parents 04bddc2 + 75b5c11 commit 2788883

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/vim/syntax/swift.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ syn match swiftOperator "\.\.[<.]" skipwhite nextgroup=swiftTypeParameters
158158

159159
syn match swiftChar /'\([^'\\]\|\\\(["'tnr0\\]\|x[0-9a-fA-F]\{2}\|u[0-9a-fA-F]\{4}\|U[0-9a-fA-F]\{8}\)\)'/
160160

161+
syn match swiftTupleIndexNumber contains=swiftDecimal
162+
\ /\.[0-9]\+/
163+
syn match swiftDecimal contained
164+
\ /[0-9]\+/
165+
161166
syn match swiftPreproc /#\(\<file\>\|\<line\>\|\<function\>\)/
162167
syn match swiftPreproc /^\s*#\(\<if\>\|\<else\>\|\<elseif\>\|\<endif\>\|\<error\>\|\<warning\>\)/
163168
syn region swiftPreprocFalse start="^\s*#\<if\>\s\+\<false\>" end="^\s*#\(\<else\>\|\<elseif\>\|\<endif\>\)"

0 commit comments

Comments
 (0)