1 Detect struct end (and don't crash) on indented "}".
3 --- gtk-doc-1.33.2/gtkdoc/scan.py.orig 2021-06-21 17:26:04.628579149 +0200
4 +++ gtk-doc-1.33.2/gtkdoc/scan.py 2021-06-21 17:26:07.118565660 +0200
6 # comments will cause problems.
7 if in_declaration == 'struct' or in_declaration == 'union':
8 # Same regex as for enum
9 - sm = re.search(r'\n\}\s*(?:(\w+)?%s)?;\s*$' % optional_decorators_regex, decl)
10 + sm = re.search(r'\n\s*\}\s*(?:(\w+)?%s)?;\s*$' % optional_decorators_regex, decl)