Scan [identifiers] in sql queries (#724)

This commit is contained in:
Simon Binder 2020-07-22 10:43:44 +02:00
parent a01f5be2ac
commit 640cae1244
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 4 additions and 0 deletions

View File

@ -192,6 +192,9 @@ class Scanner {
_identifier(escapeChar: $backquote);
}
break;
case $lbracket:
_identifier(escapeChar: $rbracket);
break;
case $space:
case $cr:
case $tab:

View File

@ -48,6 +48,7 @@ Map<String, TokenType> testCases = {
'@foo': TokenType.atSignVariable,
':named': TokenType.colonVariable,
'"spo\uD83C\uDF83ky"': TokenType.identifier,
'[account name]': TokenType.identifier,
};
void main() {