add precedence to splat operators; test for associativity
This commit is contained in:
@@ -52,9 +52,9 @@ foo = bar.*.foo
|
||||
(variable_expr
|
||||
(identifier))
|
||||
(splat
|
||||
(attr_splat))
|
||||
(get_attr
|
||||
(identifier))))))
|
||||
(attr_splat
|
||||
(get_attr
|
||||
(identifier))))))))
|
||||
|
||||
================================================================================
|
||||
full splat
|
||||
@@ -64,6 +64,26 @@ foo = bar[*].foo
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
(attribute
|
||||
(identifier)
|
||||
(expression
|
||||
(variable_expr
|
||||
(identifier))
|
||||
(splat
|
||||
(full_splat
|
||||
(get_attr
|
||||
(identifier))))))))
|
||||
|
||||
================================================================================
|
||||
full splat repeated
|
||||
================================================================================
|
||||
|
||||
foo = bar[*][*].a.b.c[d]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
(attribute
|
||||
@@ -73,5 +93,15 @@ foo = bar[*].foo
|
||||
(identifier))
|
||||
(splat
|
||||
(full_splat))
|
||||
(get_attr
|
||||
(identifier))))))
|
||||
(splat
|
||||
(full_splat
|
||||
(get_attr
|
||||
(identifier))
|
||||
(get_attr
|
||||
(identifier))
|
||||
(get_attr
|
||||
(identifier))
|
||||
(index
|
||||
(expression
|
||||
(variable_expr
|
||||
(identifier))))))))))
|
||||
|
||||
Reference in New Issue
Block a user