1
0

開業が挿入されていなかったバグを修正

This commit is contained in:
otya128
2016-08-30 23:43:40 +09:00
parent 7b0a0dd950
commit d36f7fb552
2 changed files with 2 additions and 1 deletions

View File

@@ -770,6 +770,7 @@ class Parser
void syntaxError() void syntaxError()
{ {
stderr.writeln("Syntax error (", lex.getLine(), ')', " Mysterious ", lex.front().type); stderr.writeln("Syntax error (", lex.getLine(), ')', " Mysterious ", lex.front().type);
stderr.writeln(this.getLine(lex.location));
try try
{ {
throw new Exception("Stacktrace"); throw new Exception("Stacktrace");

View File

@@ -145,7 +145,7 @@ struct Slot
program.clear(); program.clear();
foreach(l; splitter(data, "\n")) foreach(l; splitter(data, "\n"))
{ {
program.insertBack(l); program.insertBack(l ~ '\n');
} }
} }
} }