From b271d6644216228af6260151328aebdb269b7942 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sun, 6 Apr 2014 15:27:52 +0200 Subject: [PATCH] JavaScript example: Fix automatic semicolon insertion Fix parsing of inputs like this: foo() // comment bar() --- examples/javascript.pegjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/javascript.pegjs b/examples/javascript.pegjs index 3151b18..74b02e9 100644 --- a/examples/javascript.pegjs +++ b/examples/javascript.pegjs @@ -513,7 +513,7 @@ _ EOS = __ ";" - / _ LineTerminatorSequence + / _ SingleLineComment? LineTerminatorSequence / _ &"}" / __ EOF