Skip to content

Commit 4303e44

Browse files
committed
Add semantic highlighting for macros
1 parent e93b7ed commit 4303e44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SourceKitLSP/Swift/SyntaxHighlightingTokenParser.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ struct SyntaxHighlightingTokenParser {
156156
values.refFunctionPostfixOperator,
157157
values.refFunctionInfixOperator:
158158
return (.operator, [])
159+
case values.declMacro:
160+
return (.macro, [.declaration])
161+
case values.refMacro:
162+
return (.macro, [])
159163
case values.declVarStatic,
160164
values.declVarClass,
161165
values.declVarInstance:

0 commit comments

Comments
 (0)