mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bugfix for \n
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user