description parsing working
This commit is contained in:
parent
9464739ae1
commit
f81c144252
@ -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:
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user