Warning, /frameworks/syntax-highlighting/data/syntax/lpc.xml is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language>
0003
0004 <!--
0005 =============================================================================
0006 File: lpc.xml
0007 URL: http://www.metamorpher.de/files/lpc.xml
0008 Description: Syntax Highlighting for Lars Pensjo C (LPC)
0009 It is used in Multi User Dungeons which use LDMud as Gamedriver.
0010 For more information, see LDMud project: http://www.bearnip.com
0011 For best highlighting results, configure colors yourself.
0012 Author: Andreas Klauer (Andreas.Klauer@metamorpher.de)
0013 Changed: 2004-04-26
0014 License: Artistic
0015 =============================================================================
0016 -->
0017
0018
0019 <language name="LPC" version="4" kateversion="5.0" section="Sources" extensions="*.c;*.h;*.inc;*.o" author="Andreas Klauer (Andreas.Klauer@metamorpher.de)" license="Artistic" >
0020
0021 <highlighting>
0022
0023 <!-- Keyword Lists: -->
0024 <list name="modifiers">
0025 <item>private</item>
0026 <item>protected</item>
0027 <item>static</item>
0028 <item>public</item>
0029 <item>nomask</item>
0030 <item>varargs</item>
0031 <item>nosave</item>
0032 <item>virtual</item>
0033 </list>
0034 <list name="types">
0035 <item>void</item>
0036 <item>int</item>
0037 <item>status</item>
0038 <item>string</item>
0039 <item>object</item>
0040 <item>array</item>
0041 <item>mapping</item>
0042 <item>closure</item>
0043 <item>symbol</item>
0044 <item>float</item>
0045 <item>mixed</item>
0046 </list>
0047 <list name="keywords">
0048 <item>break</item>
0049 <item>continue</item>
0050 <item>return</item>
0051 <item>if</item>
0052 <item>else</item>
0053 <item>for</item>
0054 <item>foreach</item>
0055 <item>do</item>
0056 <item>while</item>
0057 <item>switch</item>
0058 <item>case</item>
0059 <item>inherit</item>
0060 <item>default</item>
0061 <item>variables</item>
0062 <item>functions</item>
0063 <item>publish</item>
0064 <item>nolog</item>
0065 </list>
0066
0067 <!-- Parsing Rules: -->
0068 <contexts>
0069 <context name="Normal" attribute="Default" lineEndContext="#stay">
0070 <RegExpr attribute="Region Marker" context="#stay" String="//\s*BEGIN.*$" beginRegion="regionMarker" firstNonSpace="true"/>
0071 <RegExpr attribute="Region Marker" context="#stay" String="//\s*END.*$" endRegion="regionMarker" firstNonSpace="true"/>
0072 <Detect2Chars attribute="Single-Line comments" context="Comment1" char="/" char1="/" />
0073 <Detect2Chars attribute="Multi-Line comments" context="Comment2" char="/" char1="*" beginRegion="blockComment" />
0074 <keyword String="modifiers" attribute="Modifier" context="#stay" />
0075 <keyword String="types" attribute="Datatype" context="#stay" />
0076 <keyword String="keywords" attribute="Keywords" context="#stay" />
0077 <DetectChar char="#" context="Preprocessor" attribute="Preprocessor" column="0"/>
0078 <Float attribute="Floats" context="Float Suffixes"/>
0079 <RegExpr String="0b[01]+" attribute="Binary" context="#stay" />
0080 <RegExpr String="0x[0-9a-fA-F]+" attribute="Hexadecimal" context="#stay" />
0081 <RegExpr String="0o[0-7]+" attribute="Octal" context="#stay" />
0082 <Int attribute="Integer" context="#stay" />
0083 <RegExpr String="#'[^\t ][^\t ,);}\]/]*" attribute="Closure" context="#stay" />
0084 <DetectChar attribute="Strings" context="String1" char=""" />
0085 <HlCStringChar attribute="Char" context="#stay" />
0086 <DetectChar attribute="Default" context="#stay" char="{" beginRegion="brace" />
0087 <DetectChar attribute="Default" context="#stay" char="}" endRegion="brace" />
0088 </context>
0089 <context name="Float Suffixes" attribute="Floats" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
0090 <AnyChar String="fFeE" attribute="Floats" context="#pop"/>
0091 </context>
0092 <context name="Comment1" attribute="Single-Line comments" lineEndContext="#pop">
0093 <LineContinue attribute="Single-Line comments" context="#stay" />
0094 <DetectSpaces />
0095 <IncludeRules context="##Comments" />
0096 </context>
0097 <context name="Comment2" attribute="Multi-Line comments" lineEndContext="#stay">
0098 <Detect2Chars attribute="Multi-Line comments" context="#pop" char="*" char1="/" endRegion="blockComment" />
0099 <DetectSpaces />
0100 <IncludeRules context="##Comments" />
0101 </context>
0102 <context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop">
0103 <LineContinue attribute="Preprocessor" context="#stay" />
0104 <Detect2Chars attribute="Single-Line comments" context="Comment1" char="/" char1="/" />
0105 <Detect2Chars attribute="Multi-Line comments" context="Comment2" char="/" char1="*" beginRegion="blockComment" />
0106 <keyword String="modifiers" attribute="Modifier" context="#stay" />
0107 <keyword String="types" attribute="Datatype" context="#stay" />
0108 <keyword String="keywords" attribute="Keywords" context="#stay" />
0109 <DetectChar attribute="Preprocessor-Strings" context="String2" char=""" />
0110 </context>
0111 <context name="String1" attribute="Strings" lineEndContext="#pop">
0112 <LineContinue attribute="Default" context="#stay" />
0113 <Detect2Chars char="\" char1="\" attribute="Strings" context="#stay" />
0114 <Detect2Chars char="\" char1=""" attribute="Strings" context="#stay" />
0115 <DetectChar char=""" attribute="Strings" context="#pop" />
0116 </context>
0117 <context name="String2" attribute="Preprocessor-Strings" lineEndContext="#pop">
0118 <LineContinue attribute="Default" context="#stay" />
0119 <Detect2Chars char="\" char1="\" attribute="Preprocessor-Strings" context="#stay" />
0120 <Detect2Chars char="\" char1=""" attribute="Preprocessor-Strings" context="#stay" />
0121 <DetectChar char=""" attribute="Preprocessor-Strings" context="#pop" />
0122 </context>
0123 </contexts>
0124
0125 <!-- Color Settings: -->
0126 <itemDatas>
0127 <itemData name="Default" defStyleNum="dsNormal" />
0128 <itemData name="Single-Line comments" defStyleNum="dsComment" />
0129 <itemData name="Multi-Line comments" defStyleNum="dsComment" />
0130 <itemData name="Modifier" defStyleNum="dsDataType" />
0131 <itemData name="Datatype" defStyleNum="dsDataType" />
0132 <itemData name="Keywords" defStyleNum="dsKeyword" />
0133 <itemData name="Preprocessor" defStyleNum="dsOthers" />
0134 <itemData name="Floats" defStyleNum="dsFloat" />
0135 <itemData name="Binary" defStyleNum="dsBaseN" />
0136 <itemData name="Hexadecimal" defStyleNum="dsBaseN" />
0137 <itemData name="Octal" defStyleNum="dsBaseN" />
0138 <itemData name="Integer" defStyleNum="dsDecVal" />
0139 <itemData name="Closure" defStyleNum="dsOthers" />
0140 <itemData name="Strings" defStyleNum="dsString" />
0141 <itemData name="Preprocessor-Strings" defStyleNum="dsString" />
0142 <itemData name="Char" defStyleNum="dsChar" />
0143 <itemData name="Region Marker" defStyleNum="dsRegionMarker" />
0144 </itemDatas>
0145 </highlighting>
0146
0147 <!-- This is not for highlighting, but for detecting comments.
0148 It allows Kate to hide comments if the user wished to do so. -->
0149 <general>
0150 <comments>
0151 <comment name="singleLine" start="//" />
0152 <comment name="multiLine" start="/*" end="*/" region="blockComment" />
0153 </comments>
0154 <keywords casesensitive="1" />
0155 </general>
0156
0157 </language>
0158 <!-- kate: space-indent on; indent-width 2; replace-tabs on; -->
0159 <!-- === End of file. === -->