Permalink
Browse files

newline after continue/break ends the statement (fixes #154)

  • Loading branch information...
1 parent d03ac93 commit b01fa40a33a6b38c104042aff9ddfe9b0d644c50 @mishoo mishoo committed May 24, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/parse-js.js
View
@@ -871,7 +871,10 @@ function parse($TEXT, exigent_mode, embed_tokens) {
};
function break_cont(type) {
- var name = is("name") ? S.token.value : null;
+ var name;
+ if (!can_insert_semicolon()) {
+ name = is("name") ? S.token.value : null;
+ }
if (name != null) {
next();
if (!member(name, S.labels))

0 comments on commit b01fa40

Please sign in to comment.