fix parser bug

This commit is contained in:
axmanwang
2012-04-12 15:59:01 +08:00
parent 8a6bd52078
commit 9477ae4119
13 changed files with 72 additions and 1516 deletions
@@ -503,9 +503,11 @@ public class Lexer {
token = LITERAL_CHARS;
break;
} else {
System.arraycopy(buf, np + 1, sbuf, 0, sp);
hasSpecial = true;
putChar('\'');
if (!hasSpecial) {
System.arraycopy(buf, np + 1, sbuf, 0, sp);
hasSpecial = true;
}
putChar('\'');
continue;
}
}