summaryrefslogtreecommitdiff
path: root/examples/idlParse.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2021-08-01 12:57:10 -0500
committerptmcg <ptmcg@austin.rr.com>2021-08-01 12:57:10 -0500
commitf22dcdc9be6aebf7defc1ef43e39c53921ba7566 (patch)
treed40b225f53c90a0b4676c59323251c9c2c825df6 /examples/idlParse.py
parent1688592bd97e573174e9eab482846e0f1194652a (diff)
downloadpyparsing-git-f22dcdc9be6aebf7defc1ef43e39c53921ba7566.tar.gz
Update __versionTime__; blacken core code and examples
Diffstat (limited to 'examples/idlParse.py')
-rw-r--r--examples/idlParse.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/idlParse.py b/examples/idlParse.py
index f5398b7..62becd2 100644
--- a/examples/idlParse.py
+++ b/examples/idlParse.py
@@ -170,9 +170,10 @@ def CORBA_IDL_BNF():
moduleItem = (
interfaceDef | exceptionDef | constDef | typedefDef | moduleDef
).setName("moduleItem")
- moduleDef << module_ + identifier + lbrace + ZeroOrMore(
- moduleItem
- ) + rbrace + semi
+ (
+ moduleDef
+ << module_ + identifier + lbrace + ZeroOrMore(moduleItem) + rbrace + semi
+ )
bnf = moduleDef | OneOrMore(moduleItem)