handle quoted template expressions and template interpolations

This commit is contained in:
mhoffm
2021-06-14 00:55:24 +02:00
parent 3c984653bb
commit 7b91d51683
20 changed files with 5381 additions and 4751 deletions

View File

@@ -10,10 +10,7 @@ foo = bar()
(body
(attribute
(identifier)
(expression
(expr_term
(function_call
(identifier)))))))
(expression (expr_term (function_call (identifier)))))))
==================
unary function call
@@ -32,10 +29,7 @@ foo = bar("foo")
(function_call
(identifier)
(function_arguments
(expression
(expr_term
(literal_value
(string_lit)))))))))))
(expression (expr_term (template_expr (quoted_template)))))))))))
==================
variadic function call
@@ -77,7 +71,7 @@ foo = bar(
(function_call
(identifier)
(function_arguments
(expression (expr_term (literal_value (string_lit))))
(expression (expr_term (literal_value (string_lit))))
(expression (expr_term (literal_value (string_lit)))))))))))
(expression (expr_term (template_expr (quoted_template))))
(expression (expr_term (template_expr (quoted_template))))
(expression (expr_term (template_expr (quoted_template)))))))))))