mirror of
https://github.com/pnx/tree-sitter-dotenv
synced 2026-08-22 02:58:11 +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
|
|
@ -2,6 +2,11 @@
|
|||
String values
|
||||
================================================================================
|
||||
|
||||
key = multi word non quoted string
|
||||
key = hyphenated-value another.value
|
||||
key = value with trailing spaces
|
||||
key = singleword
|
||||
|
||||
key = "quoted string"
|
||||
key = ""
|
||||
|
||||
|
|
@ -11,6 +16,21 @@ key = ''
|
|||
--------------------------------------------------------------------------------
|
||||
|
||||
(document
|
||||
(assignment
|
||||
(identifier)
|
||||
(string
|
||||
(string_content)))
|
||||
(assignment
|
||||
(identifier)
|
||||
(string
|
||||
(string_content)))
|
||||
(assignment
|
||||
(identifier)
|
||||
(string
|
||||
(string_content)))
|
||||
(assignment
|
||||
(identifier)
|
||||
(value))
|
||||
(assignment
|
||||
(identifier)
|
||||
(string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue