* add field names to object elements
* dont hide template interpolation start/end and quoted template start/end tokens
This commit is contained in:
@@ -13,7 +13,9 @@ foo = "foo bar"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
escaped backslash at end
|
||||
@@ -30,7 +32,9 @@ foo = "foo\\"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
string literal escaped template interpolation
|
||||
@@ -47,7 +51,9 @@ foo = "$${foo.bar}"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
template chars but no template 1
|
||||
@@ -64,7 +70,9 @@ foo = "$$$"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
template chars but no template 2
|
||||
@@ -81,7 +89,9 @@ foo = "100%"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
template chars but no template 3
|
||||
@@ -98,7 +108,9 @@ foo = "%\n\t"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
template chars but no template 4
|
||||
@@ -115,7 +127,9 @@ foo = "%%\n\t"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
template chars but no template 5
|
||||
@@ -132,7 +146,9 @@ foo = "$$"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
template chars but no template 6
|
||||
@@ -149,7 +165,9 @@ foo = "%%{\n\t"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
================================================================================
|
||||
escaped template
|
||||
@@ -166,4 +184,6 @@ foo = "$${ var.bar }"
|
||||
(expression
|
||||
(literal_value
|
||||
(string_lit
|
||||
(template_literal)))))))
|
||||
(quoted_template_start)
|
||||
(template_literal)
|
||||
(quoted_template_end)))))))
|
||||
|
||||
Reference in New Issue
Block a user