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.
|