We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3893f0 commit fb99330Copy full SHA for fb99330
utils/vim/syntax/swift.vim
@@ -158,6 +158,11 @@ syn match swiftOperator "\.\.[<.]" skipwhite nextgroup=swiftTypeParameters
158
159
syn match swiftChar /'\([^'\\]\|\\\(["'tnr0\\]\|x[0-9a-fA-F]\{2}\|u[0-9a-fA-F]\{4}\|U[0-9a-fA-F]\{8}\)\)'/
160
161
+syn match swiftTupleIndexNumber nextgroup=swiftTupleIndexNumber contains=swiftDecimal
162
+ \ /\.[0-9]\+/
163
+syn match swiftDecimal contained
164
+ \ /[0-9]\+/
165
+
166
syn match swiftPreproc /#\(\<file\>\|\<line\>\|\<function\>\)/
167
syn match swiftPreproc /^\s*#\(\<if\>\|\<else\>\|\<elseif\>\|\<endif\>\|\<error\>\|\<warning\>\)/
168
syn region swiftPreprocFalse start="^\s*#\<if\>\s\+\<false\>" end="^\s*#\(\<else\>\|\<elseif\>\|\<endif\>\)"
0 commit comments