fix: allow empty string literals

This commit is contained in:
Michael Hoffmann
2022-06-02 19:14:44 +02:00
parent 8a13647a4d
commit a87b709739
7 changed files with 9557 additions and 9499 deletions

View File

@@ -29,6 +29,25 @@ block_1 {}
(block_start)
(block_end))))
================================================================================
basic block with empty type
================================================================================
block_1 "" {
}
--------------------------------------------------------------------------------
(config_file
(body
(block
(identifier)
(string_lit
(quoted_template_start)
(quoted_template_end))
(block_start)
(block_end))))
================================================================================
block with attribute
================================================================================
@@ -166,8 +185,8 @@ locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") }
(template_literal)
(quoted_template_end))))
(expression
(template_expr
(quoted_template
(literal_value
(string_lit
(quoted_template_start)
(quoted_template_end)))))))))
(block_end))))