Index: client/dom/scripts/idlparser.py |
diff --git a/client/dom/scripts/idlparser.py b/client/dom/scripts/idlparser.py |
index 0dc59c691e6a208cd553785d6d158fbe82a1a00e..26293fac2db5f40b9188d715d1d60639ac6278cb 100755 |
--- a/client/dom/scripts/idlparser.py |
+++ b/client/dom/scripts/idlparser.py |
@@ -144,7 +144,8 @@ class IDLParser(object): |
# Web IDL: |
[MAYBE(ExtAttrs), 'const', Type, Id, '=', ConstExpr, ';'], |
# WebKit: |
- ['const', MAYBE(ExtAttrs), Type, Id, '=', ConstExpr, ';'], |
+ [OR(['const', MAYBE(ExtAttrs)], [MAYBE(ExtAttrs), 'const']), |
+ Type, Id, '=', ConstExpr, ';'], |
# FremontCut: |
[MAYBE(_Annotations), MAYBE(ExtAttrs), 'const', Type, Id, '=', |
ConstExpr, ';']) |