Debian Codegraph @

tests/sc21.fw

raw
1 SC21: Test generic syntax checking of pragmas and typesetter directives.
2
3 1. Test pragma not at the start of line.
4 @p
5 @t
6
7 2. Test character following <special>p is not a blank.
8 @px
9 @tx
10 @p
11 @t
12
13 3. Test pragma line is too long (limit is 100)
14 1 2 3 4 5 6 7 8 9 1
15 @p 4567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
16 @p 45678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901
17 @t 4567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
18 @t 45678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901
19
20 4. Test various different pragma lines.
21 @p $#%@ 2525 sloth
22 @t $#%@ 2525 sloth
23
24 5. Test pragma with no arguments. (Will get a trailing blanks error.).
25 @p
26 @t
27
28 6. Test pragma with too many arguments.
29 @p a b c d e f g h i j k l m n o p q r s t u v w x y z
30 @t a b c d e f g h i j k l m n o p q r s t u v w x y z
31