Skip to content

Commit 4aaafc2

Browse files
committed
avoid computing escape sequence semantic tokens when skipping them
1 parent c997286 commit 4aaafc2

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
@@ -713,7 +713,7 @@ fn writeNodeTokens(builder: *Builder, node: Ast.Node.Index) error{OutOfMemory}!v
713713
.char_literal,
714714
=> {
715715
try writeToken(builder, main_token, .string);
716-
if (builder.overlappingTokenSupport) {
716+
if (!builder.limited and builder.overlappingTokenSupport) {
717717
const string_start = tree.tokenStart(main_token);
718718
const string = offsets.nodeToSlice(tree, node);
719719
var offset: usize = 0;

0 commit comments

Comments
 (0)