diff options
| author | Nobuyoshi Nakada <[email protected]> | 2017-04-23 11:41:00 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <[email protected]> | 2017-04-23 11:41:00 +0900 |
| commit | d54f9f8f783cae5a96fc66c74960f18488fd315b (patch) | |
| tree | 1c3e9fd1c073cc851668666a44a3e1659f1b9c31 /mrbgems/mruby-compiler/core/parse.y | |
| parent | 809b7ca3f4e93dc44ec4ba7d2cf3716834f25887 (diff) | |
| download | mruby-d54f9f8f783cae5a96fc66c74960f18488fd315b.tar.gz mruby-d54f9f8f783cae5a96fc66c74960f18488fd315b.zip | |
Fix embedded document with unterminated terminator
`skips()` is `mrb_bool` function, should return `FALSE` at EOF, not
`EOF`.
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 3e4e146f0..7d66bf21f 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -3580,7 +3580,7 @@ skips(parser_state *p, const char *s) /* skip until first char */ for (;;) { c = nextc(p); - if (c < 0) return c; + if (c < 0) return FALSE; if (c == '\n') { p->lineno++; p->column = 0; |
