Skip to content

Commit

Permalink
Accept =begin and =end with spaces after
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonmcdonald committed Apr 28, 2014
1 parent af95ace commit b2f3919
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/parse.y
Expand Up @@ -4189,8 +4189,13 @@ parser_yylex(parser_state *p)

case '=':
if (p->column == 1) {
if (peeks(p, "begin\n")) {
skips(p, "\n=end\n");
if (peeks(p, "begin ") || peeks(p, "begin\n")) {
if (skips(p, "\n=end ")) {
goto retry;
}
if (skips(p, "\n=end\n")) {
goto retry;
}
goto retry;
}
}
Expand Down

0 comments on commit b2f3919

Please sign in to comment.