Skip to content

Commit

Permalink
fix: allow val_interpolated as key in record_entry (#178)
Browse files Browse the repository at this point in the history
This PR fixes the following parsing error.

<img width="526" alt="image"
src="https://github.com/user-attachments/assets/bfca903a-6db0-4e83-b288-0c5a93615994"
/>
  • Loading branch information
blindFS authored Dec 29, 2024
1 parent 249c39d commit 9822fc6
Show file tree
Hide file tree
Showing 5 changed files with 164,030 additions and 163,012 deletions.
1 change: 1 addition & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,7 @@ module.exports = grammar({
seq(alias($.cmd_identifier, $.identifier), repeat($._separator)),
alias($._record_key, $.identifier),
$.val_string,
$.val_interpolated,
$.val_number,
$.val_variable,
$.expr_parenthesized,
Expand Down
4 changes: 4 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -13862,6 +13862,10 @@
"type": "SYMBOL",
"name": "val_string"
},
{
"type": "SYMBOL",
"name": "val_interpolated"
},
{
"type": "SYMBOL",
"name": "val_number"
Expand Down
4 changes: 4 additions & 0 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3743,6 +3743,10 @@
"type": "identifier",
"named": true
},
{
"type": "val_interpolated",
"named": true
},
{
"type": "val_number",
"named": true
Expand Down
Loading

0 comments on commit 9822fc6

Please sign in to comment.