Skip to content

Commit 3f08560

Browse files
authored
Merge pull request swiftlang#1903 from ahoppen/macro-highlighting
Add semantic highlighting for macros
2 parents a30385a + 4303e44 commit 3f08560

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)