diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2019-08-26 10:53:50 -0500 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2019-08-26 10:53:50 -0500 |
commit | 6a899ffd880d7937e6e8fd540552c65f945dce53 (patch) | |
tree | bb1e4663b0bdc1cf07993533c5a52c484d2f3062 /pyparsing.py | |
parent | 84a12454849a69ca827c64869b65266d6df4c72a (diff) | |
download | pyparsing-git-6a899ffd880d7937e6e8fd540552c65f945dce53.tar.gz |
Fixed bug when ZeroOrMore parses no matching exprs, did not include a named result containing []
Diffstat (limited to 'pyparsing.py')
-rw-r--r-- | pyparsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyparsing.py b/pyparsing.py index c2f1f5a..31a1560 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -96,7 +96,7 @@ classes inherit from. Use the docstrings for examples of how to: """ __version__ = "3.0.0a1" -__versionTime__ = "26 Aug 2019 01:46 UTC" +__versionTime__ = "26 Aug 2019 11:15 UTC" __author__ = "Paul McGuire <ptmcg@users.sourceforge.net>" import string @@ -4615,7 +4615,7 @@ class ZeroOrMore(_MultipleMatch): try: return super().parseImpl(instring, loc, doActions) except (ParseException, IndexError): - return loc, [] + return loc, ParseResults([], name=self.resultsName) def __str__(self): if hasattr(self, "name"): |