skip to the next line and reset column after =end

This commit is contained in:
Nobuyoshi Nakada
2014-04-30 12:32:18 +09:00
parent 82fce52211
commit cf3b880df6
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -4206,6 +4206,9 @@ parser_yylex(parser_state *p)
}
c = nextc(p);
} while (!(c < 0 || isspace(c)));
if (c != '\n') skip(p, '\n');
p->lineno++;
p->column = 0;
goto retry;
}
}
+1 -1
View File
@@ -309,6 +309,6 @@ this is a comment that has extra after =begin and =end with spaces after it
=end
=begin this is a comment
this is a comment that has extra after =begin and =end with tabs after it
=end
=end xxxxxxxxxxxxxxxxxxxxxxxxxx
true
end