simplify whitespace handling; support hexadecimal numeric literals; allow empty configs

This commit is contained in:
mhoffm
2021-06-20 00:03:58 +02:00
parent b1c3109853
commit 22d0a7253c
15 changed files with 12984 additions and 13226 deletions

View File

@@ -10,8 +10,7 @@ block_1 {
(config_file
(body
(block
(identifier)
(body))))
(identifier))))
================================================================================
basic block on one line
@@ -69,8 +68,7 @@ block_1 {
(identifier)
(body
(block
(identifier)
(body))))))
(identifier))))))
================================================================================
nested block on one line
@@ -122,20 +120,22 @@ locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") }
(config_file
(body
(one_line_block
(block
(identifier)
(identifier)
(expression
(function_call
(body
(attribute
(identifier)
(function_arguments
(expression
(function_call
(identifier)))
(expression
(literal_value
(string_lit
(template_literal))))
(expression
(template_expr
(quoted_template)))))))))
(expression
(function_call
(identifier)
(function_arguments
(expression
(function_call
(identifier)))
(expression
(literal_value
(string_lit
(template_literal))))
(expression
(template_expr
(quoted_template)))))))))))