Fix lexer for empty input.
This commit is contained in:
parent
077fae50af
commit
3b482c1c73
3 changed files with 17 additions and 2 deletions
|
|
@ -148,7 +148,9 @@ bool SqlLexer::nextBasicToken(int &startpos, int &length, BasicTokenType &tokent
|
|||
// m_state = LexerState::InBlockComment;
|
||||
// }
|
||||
else if (c == QChar::Null) {
|
||||
break;
|
||||
length = 0;
|
||||
tokentype = BasicTokenType::End;
|
||||
return true;
|
||||
}
|
||||
else if (c == '$') {
|
||||
return parseDollarQuote(startpos, length, tokentype, out);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue