Skip to content

Commit 0cfcc3e

Browse files
committed
avoid computing escape sequence semantic tokens when skipping them
1 parent 5f5fda0 commit 0cfcc3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/semantic_tokens.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ fn writeNodeTokens(builder: *Builder, node: Ast.Node.Index) error{OutOfMemory}!v
733733
.char_literal,
734734
=> {
735735
try writeToken(builder, main_token, .string);
736-
if (builder.overlappingTokenSupport) {
736+
if (!builder.limited and builder.overlappingTokenSupport) {
737737
const string_start = tree.tokenStart(main_token);
738738
const string = offsets.nodeToSlice(tree, node);
739739
var offset: usize = 0;

0 commit comments

Comments
 (0)