We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c133416 commit 0138f72Copy full SHA for 0138f72
src/language/parsing/trivia.ts
@@ -26,7 +26,7 @@ const singleLineComment = sequence([
26
zeroOrMore(butNot(anySingleCharacter, literal('\n'), 'newline')),
27
])
28
29
-export const whitespace = regularExpression(/\s+/)
+export const whitespace = regularExpression(/^\s+/)
30
31
export const trivia = oneOrMore(
32
oneOf([whitespace, singleLineComment, blockComment]),
0 commit comments