-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve syntax errors when a reserved keyword is used as an identifier (
#3389) With this improper use of reserved keywords will produce better errors, e.g: edgedb> WITH select := '1' SELECT 1; error: EdgeQLSyntaxError: Unexpected keyword 'select' ┌─ query:1:6 │ 1 │ WITH select := '1' SELECT 1; │ ^^^^^^ Use a different identifier or quote the name with backticks: `select` │ = Token 'select' is a reserved keyword and cannot be used as an identifier
- Loading branch information
Showing
3 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters