Skip to content

Commit 06de786

Browse files
author
cabrol
committed
Add support for special characters in comment blocks
Signed-off-by: qcabrol
1 parent d346df7 commit 06de786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dissect/cstruct/cstruct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def _parse_fields(self, s):
417417
#parse the comment header
418418
if d['commentBlock'] is not None and d['commentBlock'].startswith('/*'):
419419
commentfields = re.finditer(
420-
r'@(?P<commentType>[a-zA-Z0-9_\-\/,.]+):[ \t]*(?P<commentVal>[a-zA-Z0-9_\-,.]+)',
420+
r'@(?P<commentType>[a-zA-Z0-9_\-\/,.\°\%]+):[ \t]*(?P<commentVal>[a-zA-Z0-9_\-,.\°\%]+)',
421421
d['commentBlock'],
422422
)
423423
for cf in commentfields:

0 commit comments

Comments
 (0)