1
0
Fork 0
mirror of https://github.com/pnx/tree-sitter-dotenv synced 2026-08-18 01:48:13 +02:00

fix: parse multi-word unquoted string values

This commit is contained in:
Henrik Hautakoski 2026-07-22 19:43:59 +02:00
parent 38ed78c2ed
commit b0e11dc786
5 changed files with 509 additions and 404 deletions

13
src/grammar.json generated
View file

@ -212,9 +212,22 @@
{
"type": "SYMBOL",
"name": "_literal_string"
},
{
"type": "SYMBOL",
"name": "_unquoted_string"
}
]
},
"_unquoted_string": {
"type": "ALIAS",
"content": {
"type": "PATTERN",
"value": "[^\\#\\s\\\"\\'\\$]+(?:[ \\t]+[^\\#\\s\\\"\\'\\$]+)+"
},
"named": true,
"value": "string_content"
},
"_literal_string": {
"type": "SEQ",
"members": [