diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 22:01:05 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 22:01:05 +0100 |
commit | 278f4c9f5a449c4f52398a0b82aabb7b3e4d01ce (patch) | |
tree | 2542a8d0b2b9fc3096e9acb7378e615c94c980f5 | |
parent | 99b97e628e0fe06dbeadee8c6b959b4c9bc92777 (diff) | |
parent | c696e3cb8e53229a438a8509a05e9d0ff27b8b4a (diff) |
Merge commit 'c696e3cb' into wireguard-next-tmp7-1
-rw-r--r-- | filter/config.Y | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/filter/config.Y b/filter/config.Y index 06fff53b..dae05d90 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -1014,17 +1014,15 @@ static_attr: | ONLINK { $$ = f_new_static_attr(T_BOOL, SA_ONLINK, 0); } ; -term_dot_method: term '.' { f_method_call_start($1); } method_name_cont { $$ = $4; }; +term_dot_method: term '.' { f_method_call_start($1); } method_name_cont { f_method_call_end(); $$ = $4; }; method_name_cont: CF_SYM_METHOD_BARE { $$ = $1->method->new_inst(FM.object, NULL); - f_method_call_end(); } | CF_SYM_METHOD_ARGS { f_method_call_args(); } '(' var_list ')' { $$ = $1->method->new_inst(FM.object, $4); - f_method_call_end(); } ; @@ -1202,10 +1200,10 @@ cmd: | CASE term '{' switch_body '}' { $$ = f_new_inst(FI_SWITCH, $2, $4); } - | lvalue '.' { f_method_call_start(f_lval_getter(&$1)); } method_name_cont ';' { + f_method_call_end(); $$ = f_lval_setter(&$1, $4); } | BT_ASSERT '(' get_cf_position term get_cf_position ')' ';' { $$ = assert_done($4, $3 + 1, $5 - 1); } |