Allow newlines and comments between method calls.

parent 4124047c
......@@ -4757,6 +4757,14 @@ parser_yylex(parser_state *p)
case '\13': /* '\v' */
space_seen = 1;
break;
case '#': /* comment as a whitespace */
pushback(p, '#');
goto retry;
case '\n': /* consecutive newlines */
p->lineno++;
p->column = 0;
pushback(p, '\n');
goto retry;
case '.':
if (!peek(p, '.')) {
pushback(p, '.');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment