1.1 --- a/moinformat/parsers/common.py Sun Oct 03 17:52:57 2021 +0200
1.2 +++ b/moinformat/parsers/common.py Mon Oct 04 22:18:01 2021 +0200
1.3 @@ -169,6 +169,7 @@
1.4 self.queued = None
1.5 else:
1.6 self.matching = None
1.7 + self.match = None
1.8
1.9 # Find the first matching pattern.
1.10
1.11 @@ -194,6 +195,9 @@
1.12 return self.s[self.pos:]
1.13 else:
1.14 return None
1.15 +
1.16 + # Return the preceding text, requiring the match to be retrieved.
1.17 +
1.18 else:
1.19 self.groups = self.filter_groups()
1.20 return self.s[self.pos:self.start]
1.21 @@ -481,6 +485,7 @@
1.22 # End of input.
1.23
1.24 if not self.matching_pattern():
1.25 + self.match_group()
1.26 break
1.27
1.28 # Obtain any feature.