JavaScript example: Fix automatic semicolon insertion

Fix parsing of inputs like this:

  foo() // comment
  bar()
redux
David Majda 10 years ago
parent c70c8551b4
commit b271d66442

@ -513,7 +513,7 @@ _
EOS
= __ ";"
/ _ LineTerminatorSequence
/ _ SingleLineComment? LineTerminatorSequence
/ _ &"}"
/ __ EOF

Loading…
Cancel
Save