2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
unescaped tab
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "foo bar"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
2021-06-19 16:56:35 +02:00
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
escaped backslash at end
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "foo\\"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
string literal escaped template interpolation
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "$${foo.bar}"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
template chars but no template 1
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "$$$"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
template chars but no template 2
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "100%"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
template chars but no template 3
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "%\n\t"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
2021-06-14 23:33:28 +02:00
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
template chars but no template 4
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "%%\n\t"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
2021-06-14 23:33:28 +02:00
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
template chars but no template 5
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "$$"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
2021-06-14 23:33:28 +02:00
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
template chars but no template 6
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "%%{\n\t"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
2021-06-14 23:33:28 +02:00
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|
2021-06-14 00:55:24 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-19 16:56:35 +02:00
|
|
|
escaped template
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
foo = "$${ var.bar }"
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-14 00:55:24 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
2021-06-14 23:33:28 +02:00
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end)))))))
|