weggli icon indicating copy to clipboard operation
weggli copied to clipboard

function argument parse error

Open ioo0s opened this issue 2 years ago • 1 comments

I now have a scenario where the func call is test (IN arg1, IN arg2, OUT &arg3), then i want to match the 3rd arg, but when i was build source to tree , it have some error in argument node.

call_expression function: (identifier) arguments: (argument_list (ERROR (identifier)) (identifier) (ERROR (identifier)) (identifier) 

so i don't know how to match the (ERROR (identifier)) (identifier) , or how could i fixed it then it can identify this parameter.

I can ensure that this parameter is in the correct format for a certain scenario

ioo0s avatar Jun 05 '23 02:06 ioo0s

When I try this syntax, it matches OUT, but it's not what I want. I expect to match arg3.

weggli '_ $fn(_,_,$id){
_;
}'

ioo0s avatar Jun 05 '23 04:06 ioo0s