summaryrefslogtreecommitdiffstats
path: root/kate/data/lpc.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/lpc.xml')
-rw-r--r--kate/data/lpc.xml95
1 files changed, 48 insertions, 47 deletions
diff --git a/kate/data/lpc.xml b/kate/data/lpc.xml
index a30d220d7..bf1dac5e2 100644
--- a/kate/data/lpc.xml
+++ b/kate/data/lpc.xml
@@ -16,61 +16,61 @@ License: Artistic
-->
-<language name="LPC" version="1" kateversion="2.4" section="Sources" extensions="*.c;*.h;*.inc;*.o" author="Andreas Klauer (Andreas.Klauer@metamorpher.de)" license="Artistic" >
+<language name="LPC" version="2" kateversion="2.4" section="Sources" extensions="*.c;*.h;*.inc;*.o" author="Andreas Klauer (Andreas.Klauer@metamorpher.de)" license="Artistic" >
<highlighting>
<!-- Keyword Lists: -->
<list name="modifiers">
- <item> private </item>
- <item> protected </item>
- <item> static </item>
- <item> public </item>
- <item> nomask </item>
- <item> varargs </item>
- <item> nosave </item>
- <item> virtual </item>
+ <item>private</item>
+ <item>protected</item>
+ <item>static</item>
+ <item>public</item>
+ <item>nomask</item>
+ <item>varargs</item>
+ <item>nosave</item>
+ <item>virtual</item>
</list>
<list name="types">
- <item> void </item>
- <item> int </item>
- <item> status </item>
- <item> string </item>
- <item> object </item>
- <item> array </item>
- <item> mapping </item>
- <item> closure </item>
- <item> symbol </item>
- <item> float </item>
- <item> mixed </item>
+ <item>void</item>
+ <item>int</item>
+ <item>status</item>
+ <item>string</item>
+ <item>object</item>
+ <item>array</item>
+ <item>mapping</item>
+ <item>closure</item>
+ <item>symbol</item>
+ <item>float</item>
+ <item>mixed</item>
</list>
<list name="keywords">
- <item> break </item>
- <item> continue </item>
- <item> return </item>
- <item> if </item>
- <item> else </item>
- <item> for </item>
- <item> foreach </item>
- <item> do </item>
- <item> while </item>
- <item> switch </item>
- <item> case </item>
- <item> inherit </item>
- <item> default </item>
- <item> variables </item>
- <item> functions </item>
- <item> publish </item>
- <item> nolog </item>
+ <item>break</item>
+ <item>continue</item>
+ <item>return</item>
+ <item>if</item>
+ <item>else</item>
+ <item>for</item>
+ <item>foreach</item>
+ <item>do</item>
+ <item>while</item>
+ <item>switch</item>
+ <item>case</item>
+ <item>inherit</item>
+ <item>default</item>
+ <item>variables</item>
+ <item>functions</item>
+ <item>publish</item>
+ <item>nolog</item>
</list>
<list name="attention">
- <item> FIXME </item>
- <item> HACK </item>
- <item> NOTE </item>
- <item> NOTICE </item>
- <item> TODO </item>
- <item> WARNING </item>
- <item> ### </item>
+ <item>FIXME</item>
+ <item>HACK</item>
+ <item>NOTE</item>
+ <item>NOTICE</item>
+ <item>TODO</item>
+ <item>WARNING</item>
+ <item>###</item>
</list>
<!-- Parsing Rules: -->
@@ -84,9 +84,7 @@ License: Artistic
<keyword String="types" attribute="Datatype" context="#stay" />
<keyword String="keywords" attribute="Keywords" context="#stay" />
<DetectChar char="#" context="Preprocessor" attribute="Preprocessor" column="0"/>
- <Float attribute="Floats" context="#stay">
- <AnyChar String="fFeE" context="#stay" />
- </Float>
+ <Float attribute="Floats" context="Float Suffixes"/>
<RegExpr String="0b[01]+" attribute="Binary" context="#stay" />
<RegExpr String="0x[0-9a-fA-F]+" attribute="Hexadecimal" context="#stay" />
<RegExpr String="0o[0-7]+" attribute="Octal" context="#stay" />
@@ -97,6 +95,9 @@ License: Artistic
<DetectChar attribute="Default" context="#stay" char="{" beginRegion="brace" />
<DetectChar attribute="Default" context="#stay" char="}" endRegion="brace" />
</context>
+ <context name="Float Suffixes" attribute="Floats" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
+ <AnyChar String="fFeE" attribute="Floats" context="#pop"/>
+ </context>
<context name="Comment1" attribute="Single-Line comments" lineEndContext="#pop">
<LineContinue attribute="Single-Line comments" context="#stay" />
<keyword attribute="Alert" context="#stay" String="attention" />