Warning, file /frameworks/syntax-highlighting/autotests/input/highlight_lpc.c was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // NOTE: This is a test file for kate's LPC syntax highlighting. 0002 0003 // This is a Single-Line Comment 0004 /* This is a Multi- 0005 Line Comment */ 0006 0007 // This again is a Single-Line Comment which should end here /* 0008 0009 // And this is an evil single line comment \ 0010 which should include this and the next line because of the \ 0011 Do not use this style at home, kids. 0012 // BEGIN region marker 0013 0014 // END of region marker 0015 0016 private void create() 0017 { 0018 // Some Preprocessor stuff: 0019 #define SOME_STUFF if(foo("bar")) \ 0020 { \ 0021 bar("foo"); \ 0022 } // Preprocessor, Keyword, Preprocessor-String, Multiline 0023 0024 // Some closures: 0025 #'create; 0026 #'?!; 0027 0028 0029 /* Some other Data Types: */ 0030 0031 int i = 1; // Integer. 0032 float b = 2.34; // Float. 0033 int c = 0b001; // Binary 0034 int e = 0x019Beef; // Hexadecimal 0035 int f = 0o2345; // Octal 0036 string a = "Wheee"; // String 0037 string x = "Wheee\ 0038 heee"; // Multi-Line String, again, don't use this. 0039 0040 0041 0042 /* Some keywords: */ 0043 if(1) 0044 { 0045 switch(2) 0046 { 0047 case 3: 0048 4; 0049 break; 0050 } 0051 } 0052 0053 else 0054 { 0055 return 0; 0056 } 0057 } 0058 0059 /* 0060 WARNING: If the above function is part of a multi-line comment, 0061 it's buggy. The WARNING: itself should be a comment-keyword. 0062 That's not actually part of the language, but simply used 0063 to highlight important stuff inside comments like TODO: etc. 0064 */