diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-06-15 10:02:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-06-17 12:18:57 +0900 |
| commit | d895c5fe5aa8e65f7e98b79494602a0f0d442a30 (patch) | |
| tree | b8730ec95ff1c46b3f568d1c1bbb45aee7aa952e | |
| parent | c1901539a885de7e9e3998c7e59ec9286d24fd88 (diff) | |
| download | mruby-d895c5fe5aa8e65f7e98b79494602a0f0d442a30.tar.gz mruby-d895c5fe5aa8e65f7e98b79494602a0f0d442a30.zip | |
Fixed wrong behavior on `..` at the beginning of the line.
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 37d4d1bf1..baa69b556 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -4758,8 +4758,7 @@ parser_yylex(parser_state *p) space_seen = 1; break; case '.': - if ((c = nextc(p)) != '.') { - pushback(p, c); + if (!peek(p, '.')) { pushback(p, '.'); goto retry; } |
