diff options
Diffstat (limited to 'tests/scanner/annotationparser/gi/syntax.xml')
-rw-r--r-- | tests/scanner/annotationparser/gi/syntax.xml | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/syntax.xml b/tests/scanner/annotationparser/gi/syntax.xml new file mode 100644 index 00000000..f07e4fbd --- /dev/null +++ b/tests/scanner/annotationparser/gi/syntax.xml @@ -0,0 +1,136 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<tests> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>//Test</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>// Test</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/*Test*/</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/* Test */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/* Test +something */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/* +Test +something */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/**Test*/</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/** Test */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/** Test +something */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/** +*/</commentblock> +</test> + +<test> + <!-- + Technically not GTK-Doc, but we need to support this for backwards compatibility + --> + <commentblock>/** +Test +something */</commentblock> + <docblock> + <identifier> + <name>Test</name> + </identifier> + <description>something</description> + </docblock> +</test> + +<test> + <!-- + Technically not GTK-Doc, but we need to support this for backwards compatibility + --> + <commentblock>/** +Test +something **/</commentblock> + <docblock> + <identifier> + <name>Test</name> + </identifier> + <description>something</description> + </docblock> +</test> + +<test> + <!-- + Broken comment block, signal the start of the comment block description followed + by a parameter instead. + --> + <commentblock>/** + * SECTION:meepapp + * + * @short_description: the application class + * + * The application class handles ... + */</commentblock> + <docblock> + <identifier> + <name>SECTION:meepapp</name> + </identifier> + <parameters> + <parameter> + <name>short_description</name> + <description>the application class</description> + </parameter> + </parameters> + <description>The application class handles ...</description> + </docblock> +</test> + +</tests> |