bugfix for \n

This commit is contained in:
Yako
2015-07-22 17:32:24 +08:00
parent 68e190b2af
commit a005d448e5
2 changed files with 48 additions and 5 deletions
@@ -674,17 +674,21 @@ public class Lexer {
ch = charAt(++pos);
if(ch == '\\') {
hasSpecial = true;
continue;
}
if (ch == '\"' && charAt(pos - 1) != '\\') {
scanChar();
token = LITERAL_ALIAS;
break;
}
if(ch == '\\') {
scanChar();
if (ch == '"') {
hasSpecial = true;
} else {
unscan();
}
}
if (bufPos == buf.length) {
putChar(ch);
} else {