]> git.pld-linux.org Git - packages/gtk-doc.git/blob - gtk-doc-struct-end.patch
d6373855505de71be8ed36a62edba7bfaba1ae7f
[packages/gtk-doc.git] / gtk-doc-struct-end.patch
1 Detect struct end (and don't crash) on indented "}".
2
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
5 @@ -941,7 +941,7 @@
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)
11              if level <= 1 and sm:
12                  if symbol == '':
13                      symbol = sm.group(1)
This page took 0.072581 seconds and 2 git commands to generate.