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

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