diff --git a/source4/build/pidl/idl.gram b/source4/build/pidl/idl.gram index 4605c4c7126..e349a532ff7 100644 --- a/source4/build/pidl/idl.gram +++ b/source4/build/pidl/idl.gram @@ -135,8 +135,13 @@ type : text: /[\w\s\..?-]*/ -anytext: call(s?) - {{ "$item[1][0]" }} +text2: /[\w\s\*\>\/\..?-]*/ + +anytext: text2 '(' anytext ')' anytext + {{ "$item[1]($item[4])$item[6]" }} + | text2 '+' anytext + {{ "$item[1]+$item[3]" }} + | text2 call: expression '(' expression ')' {{ "$item[1]($item[4])" }}