diff --git a/events/event_parser.py b/events/event_parser.py index 18d7e7f..5b8f0e5 100644 --- a/events/event_parser.py +++ b/events/event_parser.py @@ -110,7 +110,9 @@ class EventParser(FileParser): first_line=event_match.group(0), moving_window=moving_window ) # Description will be parsed separately later - description = " " + description = self._search_for_descrip_string_generic( + moving_window=moving_window, break_pattern=r'[\s]*static const(?:expr)?[\s]*Event[\s]*' + ) if event_full_match: name = event_match.group(EVENT_NAME_IDX) if macro_api_match: diff --git a/parserbase/parser.py b/parserbase/parser.py index 35ae89a..a258977 100644 --- a/parserbase/parser.py +++ b/parserbase/parser.py @@ -247,6 +247,6 @@ class FileParser: else: return "" resulting_description = re.search( - r"\[EXPORT][\s]*:[\s]*\[COMMENT](.*)", descrip_string + r"\[EXPORT][\s]*:[\s]*\[COMMENT][\s](.*)", descrip_string ) return resulting_description.group(1)