summaryrefslogtreecommitdiff
path: root/source4/build/pidl/idl.gram
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/idl.gram')
-rw-r--r--source4/build/pidl/idl.gram10
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/build/pidl/idl.gram b/source4/build/pidl/idl.gram
index 1a44f6e908..69a6e2458b 100644
--- a/source4/build/pidl/idl.gram
+++ b/source4/build/pidl/idl.gram
@@ -66,6 +66,12 @@ union_element: '[' 'case' '(' constant ')' ']' base_element ';'
"CASE" => $item{constant},
"DATA" => $item{base_element}
}}
+ | 'default' base_element ';'
+ {{
+ "TYPE" => "UNION_ELEMENT",
+ "CASE" => "default",
+ "DATA" => $item{base_element}
+ }}
base_element: property_list(s?) type pointer(s?) identifier array_len(?)
{{
@@ -82,8 +88,8 @@ array_len:
{ "*" }
| '[' '*' ']'
{ "*" }
- | '[' <commit> text ']'
- { "$item{text}" }
+ | '[' <commit> anytext ']'
+ { "$item{anytext}" }
| <error?>
element_list1: base_element(s? /;/) ';'