Skip to content

Commit

Permalink
fix: single dash breaks yaml highlighting (#24)
Browse files Browse the repository at this point in the history
* fix: add yaml_no_injection_text to fix #23

* chore: build grammar

* chore: add comment for yaml_no_injection_text rule
  • Loading branch information
qvalentin authored Oct 13, 2024
1 parent cb370ff commit ca52fbf
Show file tree
Hide file tree
Showing 8 changed files with 8,554 additions and 7,917 deletions.
13 changes: 13 additions & 0 deletions dialects/helm/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"_block": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "yaml_no_injection_text"
},
{
"type": "SYMBOL",
"name": "text"
Expand All @@ -21,6 +25,15 @@
}
]
},
"yaml_no_injection_text": {
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "-"
}
]
},
"text": {
"type": "CHOICE",
"members": [
Expand Down
49 changes: 49 additions & 0 deletions dialects/helm/src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down Expand Up @@ -623,6 +627,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down Expand Up @@ -820,6 +828,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down Expand Up @@ -1032,6 +1044,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down Expand Up @@ -1162,6 +1178,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down Expand Up @@ -1430,6 +1450,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down Expand Up @@ -1560,6 +1584,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down Expand Up @@ -1929,6 +1957,10 @@
{
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
}
]
}
Expand Down Expand Up @@ -2274,6 +2306,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand Down Expand Up @@ -2486,6 +2522,10 @@
"type": "with_action",
"named": true
},
{
"type": "yaml_no_injection_text",
"named": true
},
{
"type": "{{",
"named": false
Expand All @@ -2502,6 +2542,11 @@
}
}
},
{
"type": "yaml_no_injection_text",
"named": true,
"fields": {}
},
{
"type": " ",
"named": false
Expand All @@ -2526,6 +2571,10 @@
"type": ",",
"named": false
},
{
"type": "-",
"named": false
},
{
"type": "-}}",
"named": false
Expand Down
Loading

0 comments on commit ca52fbf

Please sign in to comment.