summaryrefslogtreecommitdiff
path: root/giscanner/annotationparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r--giscanner/annotationparser.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index f8257206..c9ff5c2b 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -1357,7 +1357,12 @@ class GtkDocCommentBlockParser(object):
result = SECTION_RE.match(line)
if result:
- identifier_name = 'SECTION:%s' % (result.group('section_name'), )
+ # Some projects use kebab-case or CamelCase for section
+ # names. Convert them all to flat case so we can match
+ # them easily later on.
+ identifier_name = 'SECTION:%s' % (result.group('section_name')
+ .replace("-", "")
+ .lower(), )
identifier_delimiter = None
identifier_fields = None
identifier_fields_start = None