7
|
1 Test for 'errorformat'.
|
|
2
|
|
3 STARTTEST
|
|
4 :so small.vim
|
|
5 :/start of errorfile/,/end of errorfile/w! Xerrorfile
|
|
6 :/start of testfile/,/end of testfile/w! Xtestfile
|
|
7 :cf Xerrorfile
|
|
8 rA
|
|
9 :cn
|
|
10 rB
|
|
11 :cn
|
|
12 rC
|
|
13 :cn
|
|
14 rD
|
|
15 :cn
|
|
16 rE
|
|
17 :w! test.out " Write contents of this file
|
|
18 :qa!
|
|
19 ENDTEST
|
|
20
|
|
21 start of errorfile
|
|
22
|
|
23 printf(" %d \n", (number/other)%10 );
|
|
24 ..................^
|
|
25 %CC-E-NOSEMI, Missing ";".
|
|
26 at line number 4 in file SYS$DISK:XTESTFILE
|
|
27
|
|
28 other=10000000;
|
|
29 .............^
|
|
30 %CC-E-UNDECLARED, In this statement, "oszt" is not declared.
|
|
31 at line number 7 in file SYS$DISK:XTESTFILE
|
|
32
|
|
33 for (i = 0; i<7 ; i++ ){
|
|
34 ..................^
|
|
35 %CC-E-UNDECLARED, In this statement, "i" is not declared.
|
|
36 at line number 16 in file SYS$DISK:XTESTFILE
|
|
37
|
|
38 some other error somewhere here.
|
|
39 ...........................^
|
|
40 %CC-W-WARRING, Sorry, but no expalnation for such an warring.
|
|
41 at line number 19 in file SYS$DISK:XTESTFILE
|
|
42
|
|
43 and finally some other error exactly here.
|
|
44 .....................................^
|
|
45 %CC-I-INFORMATIONAL, It should be some informational message.
|
|
46 at line number 20 in file SYS$DISK:XTESTFILE
|
|
47
|
|
48 Does anyone know what is the problem and how to correct ?? :)
|
|
49 end of errorfile
|
|
50
|
|
51 start of testfile
|
|
52 01234567890123456789012345678901234567
|
|
53 line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
54 line 4 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
55 line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
56 line 6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
57 line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
58 line 8 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
59 line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
60 line 10 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
61 line 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
62 line 12 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
63 line 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
64 line 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
65 line 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
66 line 16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
67 line 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
68 line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
69 line 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
70 line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
71 line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
72 line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
73 end of testfile
|