aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pidl/idl.yp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pidl/idl.yp')
-rw-r--r--tools/pidl/idl.yp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pidl/idl.yp b/tools/pidl/idl.yp
index 1f6f22e1a1..43f1db82c8 100644
--- a/tools/pidl/idl.yp
+++ b/tools/pidl/idl.yp
@@ -174,7 +174,7 @@ enum_element: identifier
| identifier '=' anytext { "$_[1]$_[2]$_[3]" }
;
-bitmap_body: '{' bitmap_elements '}' { $_[2] };
+bitmap_body: '{' opt_bitmap_elements '}' { $_[2] };
opt_bitmap_body: | bitmap_body;
bitmap: 'bitmap' optional_identifier opt_bitmap_body
{{
@@ -189,6 +189,8 @@ bitmap_elements:
| bitmap_elements ',' bitmap_element { push(@{$_[1]}, $_[3]); $_[1] }
;
+opt_bitmap_elements: | bitmap_elements;
+
bitmap_element: identifier '=' anytext { "$_[1] ( $_[3] )" }
;