mirror of
https://github.com/pnx/tree-sitter-dotenv
synced 2026-06-16 01:54:56 +02:00
make string_content optional instead of matching empty values.
This commit is contained in:
parent
4d71a8548b
commit
8c66bd3605
5 changed files with 303 additions and 257 deletions
|
|
@ -45,13 +45,13 @@ module.exports = grammar({
|
|||
|
||||
_literal_string: $ => seq(
|
||||
"'",
|
||||
alias(/[^']*/, $.string_content),
|
||||
optional(alias(/[^']+/, $.string_content)),
|
||||
"'",
|
||||
),
|
||||
|
||||
_string: $ => seq(
|
||||
'"',
|
||||
alias(/[^"]*/, $.string_content),
|
||||
optional(alias(/[^"]+/, $.string_content)),
|
||||
'"',
|
||||
),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue