summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mduponchelle1@gmail.com>2020-09-29 21:26:12 +0000
committerMathieu Duponchelle <mduponchelle1@gmail.com>2020-09-29 21:26:12 +0000
commite8801ae471079955ec2b82270ee262f81077da74 (patch)
tree26b5f71f4b2322641b6d116f2bed28797745dd6e
parent0de9608f6f23fc837122fdf52528774ae47acc25 (diff)
parent8c0e2808cd977128c3e5656ff268ae4ee9abc17a (diff)
downloadgobject-introspection-e8801ae471079955ec2b82270ee262f81077da74.tar.gz
Merge branch 'revert-section-matching' into 'master'
Revert "giscanner: Fix section matching for documentation" See merge request GNOME/gobject-introspection!241
-rw-r--r--giscanner/annotationparser.py7
-rw-r--r--tests/scanner/annotationparser/gi/identifier_section.xml34
2 files changed, 1 insertions, 40 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index c9ff5c2b..f8257206 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -1357,12 +1357,7 @@ class GtkDocCommentBlockParser(object):
result = SECTION_RE.match(line)
if result:
- # 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_name = 'SECTION:%s' % (result.group('section_name'), )
identifier_delimiter = None
identifier_fields = None
identifier_fields_start = None
diff --git a/tests/scanner/annotationparser/gi/identifier_section.xml b/tests/scanner/annotationparser/gi/identifier_section.xml
index 380ab87b..fad2b2ed 100644
--- a/tests/scanner/annotationparser/gi/identifier_section.xml
+++ b/tests/scanner/annotationparser/gi/identifier_section.xml
@@ -329,38 +329,4 @@ returns nothing.</description>
*/</output>
</test>
-
-<test>
- <!--
- Section name in different case styles
- See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/350
- -->
- <input>/**
- * SECTION:Meep-App
- * @short_description: module for gtk-doc unit test
- *
- * This file contains non-sense code for the sole purpose of testing the docs.
- */</input>
- <parser>
- <docblock>
- <identifier>
- <name>SECTION:meepapp</name>
- </identifier>
- <parameters>
- <parameter>
- <name>short_description</name>
- <description>module for gtk-doc unit test</description>
- </parameter>
- </parameters>
- <description>This file contains non-sense code for the sole purpose of testing the docs.</description>
- </docblock>
- </parser>
- <output>/**
- * SECTION:meepapp
- * @short_description: module for gtk-doc unit test
- *
- * This file contains non-sense code for the sole purpose of testing the docs.
- */</output>
-</test>
-
</tests>