Accept =begin and =end with spaces after

This commit is contained in:
Carson McDonald
2014-04-28 14:15:03 -04:00
parent af95acec17
commit b2f3919bc2
+7 -2
View File
@@ -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;
}
}