Warning, /frameworks/syntax-highlighting/autotests/folding/highlight_lpc.c.fold is written in an unsupported language. File is not indexed.

0001 // NOTE: This is a test file for kate's LPC syntax highlighting.
0002 
0003 // This is a Single-Line Comment
0004 <beginfold id='1'>/*</beginfold id='1'> This is a Multi-
0005                    Line Comment <endfold id='1'>*/</endfold id='1'>
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 <beginfold id='2'>// BEGIN region marker</beginfold id='2'>
0013 
0014 <endfold id='2'>// END of region marker</endfold id='2'>
0015 
0016 private void create()
0017 <beginfold id='3'>{</beginfold id='3'>
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     <beginfold id='1'>/*</beginfold id='1'> Some other Data Types: <endfold id='1'>*/</endfold id='1'>
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     <beginfold id='1'>/*</beginfold id='1'> Some keywords: <endfold id='1'>*/</endfold id='1'>
0043     if(1)
0044     <beginfold id='3'>{</beginfold id='3'>
0045         switch(2)
0046         <beginfold id='3'>{</beginfold id='3'>
0047             case 3:
0048                 4;
0049                 break;
0050         <endfold id='3'>}</endfold id='3'>
0051     <endfold id='3'>}</endfold id='3'>
0052 
0053     else
0054     <beginfold id='3'>{</beginfold id='3'>
0055         return 0;
0056     <endfold id='3'>}</endfold id='3'>
0057 <endfold id='3'>}</endfold id='3'>
0058 
0059 <beginfold id='1'>/*</beginfold id='1'>
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 <endfold id='1'>*/</endfold id='1'>