From cb4c98bd4e9e306e64153b6652962acd8b84527b Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Wed, 5 Jun 2019 16:42:52 +0200 Subject: [PATCH] Added support for parsing attributes on function calls Signed-off-by: Maciej Kurc (cherry picked from commit b619b43ddd2763a31b3fccc2300707929719172f) --- parse.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parse.y b/parse.y index b3495a0f0..ca196ae84 100644 --- a/parse.y +++ b/parse.y @@ -3533,11 +3533,12 @@ expr_primary function call. If a system identifier, then a system function call. It can also be a call to a class method (function). */ - | hierarchy_identifier '(' expression_list_with_nuls ')' - { list*expr_list = $3; + | hierarchy_identifier attribute_list_opt '(' expression_list_with_nuls ')' + { list*expr_list = $4; strip_tail_items(expr_list); PECallFunction*tmp = pform_make_call_function(@1, *$1, *expr_list); delete $1; + delete $2; $$ = tmp; } | implicit_class_handle '.' hierarchy_identifier '(' expression_list_with_nuls ')'