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:
parent
38ed78c2ed
commit
b0e11dc786
5 changed files with 509 additions and 404 deletions
13
src/grammar.json
generated
13
src/grammar.json
generated
|
|
@ -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": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue