mirror of
https://github.com/pnx/tree-sitter-dotenv
synced 2026-08-19 14:18: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,6 +13,8 @@ EMPTY_WITH_COMMENT_WHITESPACE = # comment
|
|||
|
||||
STRING_VALUE_WITH_COMMENT = 'string content' # comment
|
||||
STRING_VALUE_WITH_COMMENT = "string" # comment
|
||||
STRING_MULTIWORD_WITH_COMMENT = one two three # comment
|
||||
SINGLE_WORD_WITH_COMMENT = singleword # comment
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -35,6 +37,14 @@ STRING_VALUE_WITH_COMMENT = "string" # comment
|
|||
(assignment
|
||||
key: (identifier)
|
||||
value: (string
|
||||
(string_content)))
|
||||
(string_content)))
|
||||
(comment)
|
||||
(assignment
|
||||
key: (identifier)
|
||||
value: (string
|
||||
(string_content)))
|
||||
(comment)
|
||||
(assignment
|
||||
key: (identifier)
|
||||
value: (value))
|
||||
(comment))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue