]> code.delx.au - gnu-emacs-elpa/blob - packages/sm-c-mode/sm-c-mode-test.c
* sm-c-mode.el (sm-c-font-lock-keywords): Match function defs.
[gnu-emacs-elpa] / packages / sm-c-mode / sm-c-mode-test.c
1 /* -*- sm-c -*- */
2
3 #define toto /* bla
4 bla */ \
5 if (a) { \
6 f \
7 }
8
9 DEFUN ()
10
11 int main (void)
12 {
13 if (a)
14 do
15 if (b)
16 if (c)
17 printf ("hello\n");
18 else
19 printf ("there\n");
20 else
21 printf ("elsewhere\n");
22 while (6);
23 else if (b)
24 printf ("wow\n");
25 else
26 if (c)
27 printf ("weee\n");
28 else
29 printf ("wop\n");
30
31 switch (a)
32 {
33 case 1:
34 {
35 if (a)
36 {
37 y = 5;
38 case 2:
39 x = 3;
40 }
41 }
42 }
43 }
44
45 static struct myownspecialstruct
46 *testfunction
47 (args)
48 {
49 return NULL;
50 }