We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb8fbf4 commit 9c0076eCopy full SHA for 9c0076e
src/parser/JavaScript.ts
@@ -16,7 +16,7 @@ const optionalWhitespace = optional(whitespace()).map(state => [
16
state.result,
17
]);
18
19
-const optionalSemicolon = regex(/;?/).map(state => [
+const optionalSemicolon = optional(string(";")).map(state => [
20
NodeType.Separator,
21
22
0 commit comments