scanner: Parse comments with */ not on a new line, but emit a warning
[platform/upstream/gobject-introspection.git] / tests / scanner / annotationparser / gi / syntax.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <tests>
4
5 <test>
6   <!--
7   Not GTK-Doc
8   -->
9   <commentblock>//Test</commentblock>
10 </test>
11
12 <test>
13   <!--
14   Not GTK-Doc
15   -->
16   <commentblock>// Test</commentblock>
17 </test>
18
19 <test>
20   <!--
21   Not GTK-Doc
22   -->
23   <commentblock>/*Test*/</commentblock>
24 </test>
25
26 <test>
27   <!--
28   Not GTK-Doc
29   -->
30   <commentblock>/* Test */</commentblock>
31 </test>
32
33 <test>
34   <!--
35   Not GTK-Doc
36   -->
37   <commentblock>/* Test
38 something */</commentblock>
39 </test>
40
41 <test>
42   <!--
43   Not GTK-Doc
44   -->
45   <commentblock>/*
46 Test
47 something */</commentblock>
48 </test>
49
50 <test>
51   <!--
52   Not GTK-Doc
53   -->
54   <commentblock>/**Test*/</commentblock>
55 </test>
56
57 <test>
58   <!--
59   Not GTK-Doc
60   -->
61   <commentblock>/** Test */</commentblock>
62 </test>
63
64 <test>
65   <!--
66   Not GTK-Doc
67   -->
68   <commentblock>/** Test
69 something */</commentblock>
70 </test>
71
72 <test>
73   <!--
74   Technically not GTK-Doc, but we need to support this for backwards compatibility
75   -->
76   <commentblock>/**
77 Test
78 something */</commentblock>
79   <docblock>
80     <identifier>
81       <name>Test</name>
82     </identifier>
83     <description>something</description>
84   </docblock>
85 </test>
86
87 <test>
88   <!--
89   Technically not GTK-Doc, but we need to support this for backwards compatibility
90   -->
91   <commentblock>/**
92 Test
93 something **/</commentblock>
94   <docblock>
95     <identifier>
96       <name>Test</name>
97     </identifier>
98     <description>something</description>
99   </docblock>
100 </test>
101
102 <test>
103   <!--
104   Broken comment block, signal the start of the comment block description followed
105   by a parameter instead.
106   -->
107   <commentblock>/**
108  * SECTION:meepapp
109  *
110  * @short_description: the application class
111  *
112  * The application class handles ...
113  */</commentblock>
114   <docblock>
115     <identifier>
116       <name>SECTION:meepapp</name>
117     </identifier>
118     <parameters>
119       <parameter>
120         <name>short_description</name>
121         <description>the application class</description>
122       </parameter>
123     </parameters>
124     <description>The application class handles ...</description>
125   </docblock>
126 </test>
127
128 </tests>