Skip to content

Commit

Permalink
Fix bracket/brace names in sql.grammar (#12)
Browse files Browse the repository at this point in the history
The bracket and brace is switched.

ASCII 91 = "[", which matches "BracketL" at https://github.com/codemirror/lang-sql/blob/main/src/tokens.ts#L25, but was "{" on L45 in sql.grammar

FIX: Fix syntax tree node names for curly and square brackets, which had their names swapped.
  • Loading branch information
sfc-gh-nchen committed Dec 7, 2022
1 parent ebf115f commit a10023c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sql.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ element {
Null
ParenL[@name="("]
ParenR[@name=")"]
BraceL[@name="["]
BraceR[@name="]"]
BracketL[@name="{"]
BracketR[@name="}"]
BraceL[@name="{"]
BraceR[@name="}"]
BracketL[@name="["]
BracketR[@name="]"]
Semi[@name=";"]
Dot[@name="."]
Operator
Expand Down

0 comments on commit a10023c

Please sign in to comment.