Skip to content

Commit

Permalink
fix: allow variables to start with numbers (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhas07 authored Jan 14, 2025
1 parent ca52fbf commit 4cf9141
Show file tree
Hide file tree
Showing 6 changed files with 7,670 additions and 7,525 deletions.
33 changes: 31 additions & 2 deletions dialects/helm/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,37 @@
"type": "FIELD",
"name": "name",
"content": {
"type": "SYMBOL",
"name": "identifier"
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "REPEAT1",
"content": {
"type": "CHOICE",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "PATTERN",
"value": "\\p{L}"
},
{
"type": "STRING",
"value": "_"
}
]
},
{
"type": "PATTERN",
"value": "[0-9]"
}
]
}
}
},
"named": true,
"value": "identifier"
}
},
{
Expand Down
Loading

0 comments on commit 4cf9141

Please sign in to comment.