1 // NOTE: This is a test file for kate's LPC syntax highlighting.
2 
3 // This is a Single-Line Comment
4 /* This is a Multi-
5                    Line Comment */
6 
7 // This again is a Single-Line Comment which should end here /*
8 
9 // And this is an evil single line comment \
10    which should include this and the next line because of the \
11    Do not use this style at home, kids.
12 // BEGIN region marker
13 
14 // END of region marker
15 
create()16 private void create()
17 {
18 // Some Preprocessor stuff:
19 #define SOME_STUFF if(foo("bar")) \
20                    { \
21                        bar("foo"); \
22                    } // Preprocessor, Keyword, Preprocessor-String, Multiline
23 
24     // Some closures:
25     #'create;
26     #'?!;
27 
28 
29     /* Some other Data Types: */
30 
31     int i = 1;            // Integer.
32     float b = 2.34;       // Float.
33     int c = 0b001;        // Binary
34     int e = 0x019Beef;    // Hexadecimal
35     int f = 0o2345;       // Octal
36     string a = "Wheee";   // String
37     string x = "Wheee\
38      heee";               // Multi-Line String, again, don't use this.
39 
40 
41 
42     /* Some keywords: */
43     if(1)
44     {
45         switch(2)
46         {
47             case 3:
48                 4;
49                 break;
50         }
51     }
52 
53     else
54     {
55         return 0;
56     }
57 }
58 
59 /*
60 WARNING: If the above function is part of a multi-line comment,
61          it's buggy. The WARNING: itself should be a comment-keyword.
62          That's not actually part of the language, but simply used
63          to highlight important stuff inside comments like TODO: etc.
64 */
65