From e6f5ff18129984b591a6a286968b1ace42c278b2 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 21 Jun 2021 16:09:47 +0200 Subject: [PATCH] important bugfix --- events/event_parser.py | 1 - parserbase/parser.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/events/event_parser.py b/events/event_parser.py index 5b8f0e5..a1ca741 100644 --- a/events/event_parser.py +++ b/events/event_parser.py @@ -109,7 +109,6 @@ class EventParser(FileParser): event_full_match = self.__build_multi_line_event_string( first_line=event_match.group(0), moving_window=moving_window ) - # Description will be parsed separately later description = self._search_for_descrip_string_generic( moving_window=moving_window, break_pattern=r'[\s]*static const(?:expr)?[\s]*Event[\s]*' ) diff --git a/parserbase/parser.py b/parserbase/parser.py index a258977..71a7df0 100644 --- a/parserbase/parser.py +++ b/parserbase/parser.py @@ -225,7 +225,6 @@ class FileParser: ) if not descrip_match: while current_idx > 0: - current_idx -= 1 if re.search( break_pattern, moving_window[current_idx] ): @@ -235,6 +234,7 @@ class FileParser: ) if descrip_match: break + current_idx -= 1 if descrip_match: current_build_idx = current_idx descrip_string = ""