Error() and Warning() functions for reporting compiler errors/warnings now respects newlines as part of valid error messages.

This commit is contained in:
Nipunn Koorapati
2012-04-21 01:44:10 -04:00
parent 040421942f
commit 138c7acf22
3 changed files with 27 additions and 17 deletions

2
lex.ll
View File

@@ -704,7 +704,7 @@ lEscapeChar(char *str, char *pChar, SourcePos *pos)
str = tail - 1; str = tail - 1;
break; break;
default: default:
Error(*pos, "Bad character escape sequence: '%s'\n.", str); Error(*pos, "Bad character escape sequence: '%s'.", str);
break; break;
} }
} }