File: warning_lists.pas

package info (click to toggle)
pasdoc 0.16.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,572 kB
  • sloc: pascal: 28,894; javascript: 7,665; xml: 2,597; makefile: 523; sh: 417
file content (37 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ @abstract(Test various pasdoc warnings related to lists.)

  These should cause warnings:
  @orderedList( @@ @item(One) )
  @unorderedList( @- @item(One) )
  @orderedList( @item(One) -- )
  @unorderedList( @item(One) --- )
  @orderedList( foo @item(One) bar )
  @orderedList( http://pasdoc.sf.net/ @item(One) )
  
  These should cause warnings, because @@item must always
  be placed directly inside @@orderedList or @@unorderedList,
  and @@orderedList and @@unorderedList can contain only
  @@item tags.
  
  @orderedList( @author(kambi) )
  @unorderedList( @code(begin end) )
  @item(Item at toplevel is not allowed.)
  @code( @item(Item inside @@-tag other than @@xxxList is not allowed.) )
  
  Warnings related to @@definitionList and @@itemLabel:
  
  @orderedList( @itemLabel( @@itemLabel is allowed only inside
    @@definitionList ) )
    
  Warnings related to @@itemSpacing:
    
  @itemSpacing(compact)
  @orderedList( @itemSpacing(ThisIsInvalid) )
}
unit warning_lists;

interface

implementation

end.