summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-05-30 13:24:51 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:55:24 +0200
commit2f11cda9ec19262833486ab796d5708d01353c3b (patch)
tree038a7ca5281a03af14daf89f81fdbdc555a076f9 /tests
parentc3b42eeddca29a716f30df3c2bb093e53b6e62ea (diff)
downloadgobject-introspection-2f11cda9ec19262833486ab796d5708d01353c3b.tar.gz
giscanner: fix GTK-Doc identifier parsing
No need to track what type of identifier we've found as we don't use that information later on. Continue searching for an identifier if it's not found on the first line like gtkdoc-mkdb does.
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/annotationparser/gi/identifier.xml19
1 files changed, 16 insertions, 3 deletions
diff --git a/tests/scanner/annotationparser/gi/identifier.xml b/tests/scanner/annotationparser/gi/identifier.xml
index 3682ab24..b8de9c84 100644
--- a/tests/scanner/annotationparser/gi/identifier.xml
+++ b/tests/scanner/annotationparser/gi/identifier.xml
@@ -13,8 +13,14 @@
* Above identifier is not on the first line.
**/</input>
<parser>
+ <docblock>
+ <identifier>
+ <name>SECTION:test_invalid_section_identifier</name>
+ </identifier>
+ <description>Above identifier is not on the first line.</description>
+ </docblock>
<messages>
- <message>2: Warning: Test: ignoring unrecognized GTK-Doc comment block, identifier not found:
+ <message>2: Warning: Test: identifier not found on the first line:
* This is not a valid section identifier
^</message>
</messages>
@@ -27,11 +33,18 @@
-->
<input>/**
+
+
* SECTION:meepapp
*/</input>
<parser>
+ <docblock>
+ <identifier>
+ <name>SECTION:meepapp</name>
+ </identifier>
+ </docblock>
<messages>
- <message>2: Warning: Test: ignoring unrecognized GTK-Doc comment block, identifier not found:
+ <message>2: Warning: Test: identifier not found on the first line:
^</message>
</messages>
@@ -84,7 +97,7 @@ The application class handles ...</description>
*/</input>
<parser>
<messages>
- <message>2: Warning: Test: ignoring unrecognized GTK-Doc comment block, identifier not found:
+ <message>2: Warning: Test: identifier not found on the first line:
* gnm_cell_set_expr_and_value: Stores (WITHOUT COPYING) the supplied value, and
^</message>
</messages>