multiline eval support

This commit is contained in:
marauder2k7 2024-06-07 20:44:44 +01:00
parent 8140ed9b64
commit 1c43959c07
4 changed files with 107 additions and 111 deletions

View file

@ -116,7 +116,8 @@ HEXDIGIT [a-fA-F0-9]
("///"([^/\n\r][^\n\r]*)?[\n\r]+)+ { return(Sc_ScanDocBlock()); }
"//"[^\n\r]* ;
[\r] ;
\n.* { yycolumn = 1;
\n.* {
yycolumn = 1;
lines.push_back(String::ToString("%s", yytext+1));
if (lines.size() > Con::getIntVariable("$scriptErrorLineCount", 10))
lines.erase(lines.begin());