diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-08-01 17:52:14 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-08-01 17:52:14 +0900 |
| commit | 1ff6dfd081664625d71c0f6fcb3c2c1ae58ef1f5 (patch) | |
| tree | f8116eac8847c5a4a07c67cad104f6bb61d5cdb1 | |
| parent | d271bf0aa6e44a315802cf4246f5b92552be010a (diff) | |
| download | mruby-1ff6dfd081664625d71c0f6fcb3c2c1ae58ef1f5.tar.gz mruby-1ff6dfd081664625d71c0f6fcb3c2c1ae58ef1f5.zip | |
should not leave open code on syntax errors; close #413
| -rw-r--r-- | tools/mirb/mirb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index 4159f12bd..54588d57e 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -50,10 +50,10 @@ is_code_block_open(struct mrb_parser_state *parser) code_block_open = TRUE; } else if (strcmp(message, "syntax error, unexpected keyword_end") == 0) { - code_block_open = TRUE; + code_block_open = FALSE; } else if (strcmp(message, "syntax error, unexpected tREGEXP_BEG") == 0) { - code_block_open = TRUE; + code_block_open = FALSE; } return code_block_open; } |
