description parsing working

This commit is contained in:
Robin Müller 2021-06-21 12:57:07 +02:00
parent 9464739ae1
commit f81c144252
No known key found for this signature in database
GPG Key ID: FC76078F520434A5
2 changed files with 4 additions and 2 deletions

View File

@ -110,7 +110,9 @@ class EventParser(FileParser):
first_line=event_match.group(0), moving_window=moving_window first_line=event_match.group(0), moving_window=moving_window
) )
# Description will be parsed separately later # 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: if event_full_match:
name = event_match.group(EVENT_NAME_IDX) name = event_match.group(EVENT_NAME_IDX)
if macro_api_match: if macro_api_match:

View File

@ -247,6 +247,6 @@ class FileParser:
else: else:
return "" return ""
resulting_description = re.search( resulting_description = re.search(
r"\[EXPORT][\s]*:[\s]*\[COMMENT](.*)", descrip_string r"\[EXPORT][\s]*:[\s]*\[COMMENT][\s](.*)", descrip_string
) )
return resulting_description.group(1) return resulting_description.group(1)