simplify whitespace handling; support hexadecimal numeric literals; allow empty configs
This commit is contained in:
@@ -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 '\')))))))))
|
||||
|
||||
Reference in New Issue
Block a user