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 = ""