make designMode property available from js
[kdelibs.git] / kate / tests / highlight_lpc.c
blobfe5c629799c37db037dd116ce49680cc7cdc899c
1 // NOTE: This is a test file for kate's LPC syntax highlighting.
3 // This is a Single-Line Comment
4 /* This is a Multi-
5 Line Comment */
7 // This again is a Single-Line Comment which should end here /*
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
14 // END of region marker
16 private void create()
18 // Some Preprocessor stuff:
19 #define SOME_STUFF if(foo("bar")) \
20 { \
21 bar("foo"); \
22 } // Preprocessor, Keyword, Preprocessor-String, Multiline
24 // Some closures:
25 #'create;
26 #'?!;
29 /* Some other Data Types: */
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.
42 /* Some keywords: */
43 if(1)
45 switch(2)
47 case 3:
49 break;
53 else
55 return 0;
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.