Skip to content

Commit bd7da58

Browse files
committed
fixes multi-byte comment lexing
1 parent 19be74a commit bd7da58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/lexer/lexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ func positionAfterWhitespace(body []byte, startPosition int) (position int, rune
625625
// SourceCharacter but not LineTerminator
626626
(code > 0x001F || code == 0x0009) && code != 0x000A && code != 0x000D {
627627
position += n
628-
runePosition++
628+
runePosition += n
629629
continue
630630
} else {
631631
break

0 commit comments

Comments
 (0)