diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-07-18 07:19:36 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-10-08 20:55:27 +0200 |
commit | cc43ce2ee57ebec00c339429671e41587ec02a24 (patch) | |
tree | 4d2226910e81d9823b396ba4092bbe56a3879e99 /giscanner/annotationparser.py | |
parent | 2f11cda9ec19262833486ab796d5708d01353c3b (diff) | |
download | gobject-introspection-cc43ce2ee57ebec00c339429671e41587ec02a24.tar.gz |
giscanner: fix GTK-Doc section parsing
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r-- | giscanner/annotationparser.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 8a010e07..b8f243df 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -288,11 +288,7 @@ EMPTY_LINE_RE = re.compile( ''', re.UNICODE | re.VERBOSE) -# Program matching SECTION identifiers. -# -# Results in 2 symbolic groups: -# - group 1 = delimiter -# - group 2 = section_name +# Pattern matching SECTION identifiers. SECTION_RE = re.compile( r''' ^ # start @@ -301,7 +297,9 @@ SECTION_RE = re.compile( \s* # 0 or more whitespace characters (?P<delimiter>:?) # delimiter \s* # 0 or more whitespace characters - (?P<section_name>\w\S+)? # section name + (?P<section_name>\w\S+?) # section name + \s* # 0 or more whitespace characters + :? # invalid delimiter \s* # 0 or more whitespace characters $ ''', |