Skip to content

Commit 7e28534

Browse files
committed
fix build
1 parent a911b79 commit 7e28534

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/language/semantictokens/HighlightingHelper.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ export function highlightType (node: AstNode, acceptor: SemanticTokenAcceptor, p
2727
})
2828
}
2929

30-
export function highlightTypeDeclaration (node: AstNode, acceptor: SemanticTokenAcceptor, keyword: string) {
30+
export function highlightTypeDeclaration (node: AstNode, acceptor: SemanticTokenAcceptor, keyword: string, hasName: boolean = true) {
3131
highlightKeyword(node, acceptor, keyword)
32-
highlightType(node, acceptor, 'name', [SemanticTokenModifiers.declaration])
32+
if (hasName) {
33+
highlightType(node, acceptor, 'name', [SemanticTokenModifiers.declaration])
34+
}
3335
}
3436

3537
export function highlightField (node: AstNode, acceptor: SemanticTokenAcceptor, keywords: string[], property: string, type: SemanticTokenTypes = SemanticTokenTypes.enumMember) {

0 commit comments

Comments
 (0)