Skip to content

Commit 511f30f

Browse files
antonsyndclaude
andcommitted
feat(lsp): add semantic token support for byte string literals
Handle BytesLiteralExpression in SemanticTokensHandler expression collector, emitting string semantic token type (same as StringLiteral). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7fca334 commit 511f30f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Sharpy.Lsp/Handlers/SemanticTokensHandler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,10 @@ private static void CollectExpressionTokens(
535535
EmitStringLiteralToken(tokens, strLit.LineStart, strLit.ColumnStart, strLit.LineEnd, strLit.ColumnEnd);
536536
break;
537537

538+
case BytesLiteralExpression bytesLit:
539+
EmitStringLiteralToken(tokens, bytesLit.LineStart, bytesLit.ColumnStart, bytesLit.LineEnd, bytesLit.ColumnEnd);
540+
break;
541+
538542
}
539543
}
540544

0 commit comments

Comments
 (0)