Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/highlight.y.fold
1 | /* Yacc / Bison hl test file. | 1 | <beginfold id='9'>/*</beginfold id='9'> Yacc / Bison hl test file. | ||
---|---|---|---|---|---|
2 | * It won't compile :-) Sure ! | 2 | * It won't compile :-) Sure ! | ||
3 | */ | 3 | <endfold id='9'>*/</endfold id='9'> | ||
4 | 4 | | |||
5 | <beginfold id='1'>%{</beginfold id='1'> | 5 | <beginfold id='1'>%{</beginfold id='1'> | ||
6 | 6 | | |||
7 | #include <iostream> | 7 | #include <iostream> | ||
8 | using namespace std; | 8 | using namespace std; | ||
9 | 9 | | |||
10 | extern KateParser *parser; | 10 | extern KateParser *parser; | ||
11 | 11 | | |||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 80 | <endfold id='7'>h</endfold id='7'>ello<beginfold id='7'>:</beginfold id='7'> | |||
82 | | gram2 | 82 | | gram2 | ||
83 | <endfold id='7'>;</endfold id='7'>; | 83 | <endfold id='7'>;</endfold id='7'>; | ||
84 | 84 | | |||
85 | <endfold id='3'></endfold id='3'><beginfold id='6'>%%</beginfold id='6'> | 85 | <endfold id='3'></endfold id='3'><beginfold id='6'>%%</beginfold id='6'> | ||
86 | 86 | | |||
87 | #include <stdio.h> | 87 | #include <stdio.h> | ||
88 | 88 | | |||
89 | int main(void) | 89 | int main(void) | ||
90 | <beginfold id='9'>{</beginfold id='9'> | 90 | <beginfold id='10'>{</beginfold id='10'> | ||
91 | puts("Hello, World!"); | 91 | puts("Hello, World!"); | ||
92 | return 0; | 92 | return 0; | ||
93 | <endfold id='9'>}</endfold id='9'> | 93 | <endfold id='10'>}</endfold id='10'> | ||
94 | 94 | | |||
95 | // ALERT NOTE | 95 | // ALERT NOTE |