Skip to content

Commit

Permalink
refactor: make_grammar.js
Browse files Browse the repository at this point in the history
- Remove unused variables/functions
- Remove single token choice node
- Apply prettier formatting
  • Loading branch information
guilhas07 committed Jan 14, 2025
1 parent 0f9b190 commit 43207df
Show file tree
Hide file tree
Showing 8 changed files with 7,061 additions and 7,154 deletions.
9 changes: 2 additions & 7 deletions dialects/helm/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,8 @@
]
},
"yaml_no_injection_text": {
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "-"
}
]
"type": "STRING",
"value": "-"
},
"text": {
"type": "CHOICE",
Expand Down
13 changes: 4 additions & 9 deletions dialects/helm/src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -2578,11 +2578,6 @@
}
}
},
{
"type": "yaml_no_injection_text",
"named": true,
"fields": {}
},
{
"type": " ",
"named": false
Expand All @@ -2607,10 +2602,6 @@
"type": ",",
"named": false
},
{
"type": "-",
"named": false
},
{
"type": "-}}",
"named": false
Expand Down Expand Up @@ -2711,6 +2702,10 @@
"type": "with",
"named": false
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down
Loading

0 comments on commit 43207df

Please sign in to comment.