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

@@ -11,32 +11,12 @@ foo = "bar\uZZ"
(attribute
(identifier)
(expression
(literal_value
(string_lit
(template_expr
(quoted_template
(template_literal
(ERROR
(UNEXPECTED '\')))))))))
================================================================================
literal multi line error
================================================================================
foo = "
bar"
--------------------------------------------------------------------------------
(config_file
(body
(attribute
(identifier)
(expression
(literal_value
(string_lit
(ERROR
(UNEXPECTED '\n'))
(template_literal)))))))
================================================================================
unescaped tab
================================================================================
@@ -67,8 +47,8 @@ foo = "foo\bar"
(attribute
(identifier)
(expression
(literal_value
(string_lit
(template_expr
(quoted_template
(template_literal
(ERROR
(UNEXPECTED '\')))))))))