fix binary operators
This commit is contained in:
@@ -53,3 +53,31 @@ foo = 1+2
|
||||
(numeric_lit))
|
||||
(literal_value
|
||||
(numeric_lit))))))))
|
||||
|
||||
================================================================================
|
||||
precedence in binary operators
|
||||
================================================================================
|
||||
|
||||
foo = a != b && c == d
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
(attribute
|
||||
(identifier)
|
||||
(expression
|
||||
(operation
|
||||
(binary_operation
|
||||
(operation
|
||||
(binary_operation
|
||||
(variable_expr
|
||||
(identifier))
|
||||
(variable_expr
|
||||
(identifier))))
|
||||
(operation
|
||||
(binary_operation
|
||||
(variable_expr
|
||||
(identifier))
|
||||
(variable_expr
|
||||
(identifier))))))))))
|
||||
|
||||
@@ -343,13 +343,20 @@ resource "azurerm_storage_blob" "proxy_cert" {
|
||||
(expression
|
||||
(operation
|
||||
(binary_operation
|
||||
(variable_expr
|
||||
(identifier))
|
||||
(operation
|
||||
(binary_operation
|
||||
(operation
|
||||
(binary_operation
|
||||
(variable_expr
|
||||
(identifier))
|
||||
(get_attr
|
||||
(identifier))
|
||||
(template_expr
|
||||
(quoted_template))))
|
||||
(variable_expr
|
||||
(identifier))))
|
||||
(get_attr
|
||||
(identifier))
|
||||
(ERROR
|
||||
(template_expr
|
||||
(quoted_template)))
|
||||
(template_expr
|
||||
(quoted_template)))))
|
||||
(expression
|
||||
|
||||
Reference in New Issue
Block a user