mirror of https://github.com/AMT-Cheif/drift.git
Scan [identifiers] in sql queries (#724)
This commit is contained in:
parent
a01f5be2ac
commit
640cae1244
|
@ -192,6 +192,9 @@ class Scanner {
|
||||||
_identifier(escapeChar: $backquote);
|
_identifier(escapeChar: $backquote);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case $lbracket:
|
||||||
|
_identifier(escapeChar: $rbracket);
|
||||||
|
break;
|
||||||
case $space:
|
case $space:
|
||||||
case $cr:
|
case $cr:
|
||||||
case $tab:
|
case $tab:
|
||||||
|
|
|
@ -48,6 +48,7 @@ Map<String, TokenType> testCases = {
|
||||||
'@foo': TokenType.atSignVariable,
|
'@foo': TokenType.atSignVariable,
|
||||||
':named': TokenType.colonVariable,
|
':named': TokenType.colonVariable,
|
||||||
'"spo\uD83C\uDF83ky"': TokenType.identifier,
|
'"spo\uD83C\uDF83ky"': TokenType.identifier,
|
||||||
|
'[account name]': TokenType.identifier,
|
||||||
};
|
};
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
Loading…
Reference in New Issue