bug fixed for mysql lexer. issue #1407

This commit is contained in:
wenshao
2016-09-11 22:47:46 +08:00
parent 3a4c54a425
commit d069606a9e
2 changed files with 74 additions and 0 deletions
@@ -255,8 +255,13 @@ public class MySqlLexer extends Lexer {
if (!isIdentifierChar(ch)) {
if (ch == '-' && pos < text.length() - 1) {
if (mark > 0 && text.charAt(mark - 1) == '.') {
break;
}
char next_char = text.charAt(pos + 1);
if (isIdentifierChar(next_char)) {
bufPos++;
continue;
}
}