File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,9 @@ syn match swiftTupleIndexNumber contains=swiftDecimal
207207syn match swiftDecimal contained
208208 \ /[0-9]\+/
209209
210+ " This is a superset of the Preproc macros below, so it must come FIRST
211+ syn match swiftFreestandingMacro
212+ \ /#\<[A-Za-z_][A-Za-z_0-9]*\>/
210213syn match swiftPreproc
211214 \ /#\(\<column\>\|\<dsohandle\>\|\<file\>\|\<line\>\|\<function\>\)/
212215syn match swiftPreproc
@@ -271,6 +274,7 @@ hi def link swiftLabel Operator
271274hi def link swiftMutating Statement
272275hi def link swiftPreproc PreCondit
273276hi def link swiftPreprocFalse Comment
277+ hi def link swiftFreestandingMacro Macro
274278hi def link swiftAttribute Type
275279hi def link swiftTodo Todo
276280hi def link swiftNil Constant
You can’t perform that action at this time.
0 commit comments