summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/c.xml
Side-by-side diff
Diffstat (limited to 'share/tinykate/syntax/c.xml') (more/less context) (ignore whitespace changes)
-rw-r--r--share/tinykate/syntax/c.xml126
1 files changed, 126 insertions, 0 deletions
diff --git a/share/tinykate/syntax/c.xml b/share/tinykate/syntax/c.xml
new file mode 100644
index 0000000..17d7851
--- a/dev/null
+++ b/share/tinykate/syntax/c.xml
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd">
+<language name="C" version="1.00" kateversion="2.0" section="Sources" extensions="*.c;*.C;*.h" mimetype="text/x-c++src;text/x-chdr;text/x-csrc">
+ <highlighting>
+ <list name="keywords">
+ <item> break </item>
+ <item> case </item>
+ <item> continue </item>
+ <item> default </item>
+ <item> do </item>
+ <item> else </item>
+ <item> enum </item>
+ <item> extern </item>
+ <item> for </item>
+ <item> goto </item>
+ <item> if </item>
+ <item> return </item>
+ <item> sizeof </item>
+ <item> struct </item>
+ <item> switch </item>
+ <item> typedef </item>
+ <item> union </item>
+ <item> while </item>
+ </list>
+ <list name="types">
+ <item> auto </item>
+ <item> char </item>
+ <item> const </item>
+ <item> double </item>
+ <item> float </item>
+ <item> int </item>
+ <item> long </item>
+ <item> register </item>
+ <item> short </item>
+ <item> signed </item>
+ <item> static </item>
+ <item> unsigned </item>
+ <item> void </item>
+ <item> volatile </item>
+ </list>
+ <contexts>
+ <context attribute="0" lineEndContext="#stay">
+ <keyword attribute="1" context="#stay" String="keywords"/>
+ <keyword attribute="2" context="#stay" String="types"/>
+ <Float attribute="6" context="#stay">
+ <AnyChar String="fF" attribute="6" context="#stay"/>
+ </Float>
+ <HlCOct attribute="4" context="#stay"/>
+ <HlCHex attribute="5" context="#stay"/>
+ <Int attribute="3" context="#stay" >
+ <StringDetect attribute="3" context="#stay" String="ULL" insensitive="TRUE"/>
+ <StringDetect attribute="3" context="#stay" String="LUL" insensitive="TRUE"/>
+ <StringDetect attribute="3" context="#stay" String="LLU" insensitive="TRUE"/>
+ <StringDetect attribute="3" context="#stay" String="UL" insensitive="TRUE"/>
+ <StringDetect attribute="3" context="#stay" String="LU" insensitive="TRUE"/>
+ <StringDetect attribute="3" context="#stay" String="LL" insensitive="TRUE"/>
+ <StringDetect attribute="3" context="#stay" String="U" insensitive="TRUE"/>
+ <StringDetect attribute="3" context="#stay" String="L" insensitive="TRUE"/>
+ </Int>
+ <HlCChar attribute="7" context="#stay"/>
+ <DetectChar attribute="8" context="1" char="&quot;"/>
+ <Detect2Chars attribute="10" context="2" char="/" char1="/"/>
+ <Detect2Chars attribute="10" context="3" char="/" char1="*"/>
+ <AnyChar attribute="11" context="#stay" String="!%&amp;()+,-&lt;=&gt;?[]^{|}~"/>
+ <StringDetect attribute="12" context="8" String="#if 0" insensitive="FALSE"/>
+ <RegExpr attribute="12" context="4" String="#"/>
+ </context>
+ <context attribute="8" lineEndContext="#pop">
+ <LineContinue attribute="8" context="#stay"/>
+ <HlCStringChar attribute="9" context="#stay"/>
+ <DetectChar attribute="8" context="#pop" char="&quot;"/>
+ </context>
+ <context attribute="10" lineEndContext="#pop">
+ <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" />
+ </context>
+ <context attribute="10" lineEndContext="#stay">
+ <Detect2Chars attribute="10" context="#pop" char="*" char1="/"/>
+ <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" />
+ </context>
+ <context attribute="12" lineEndContext="#pop">
+ <LineContinue attribute="12" context="#stay"/>
+ <RangeDetect attribute="13" context="#stay" char="&quot;" char1="&quot;"/>
+ <RangeDetect attribute="13" context="#stay" char="&lt;" char1="&gt;"/>
+ <Detect2Chars attribute="10" context="2" char="/" char1="/"/>
+ <Detect2Chars attribute="10" context="5" char="/" char1="*"/>
+ </context>
+ <context attribute="10" lineEndContext="#stay">
+ <Detect2Chars attribute="10" context="#pop" char="*" char1="/" />
+ </context>
+ <context attribute="0" lineEndContext="#pop" />
+ <context attribute="0" lineEndContext="#pop" />
+ <context attribute="10" lineEndContext="#stay">
+ <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" />
+ <RegExpr attribute="10" context="9" String="#if" />
+ <RegExpr attribute="12" context="#pop" String="#endif" />
+ <RegExpr attribute="12" context="#pop" String="#else" />
+ </context>
+ <context attribute="10" lineEndContext="#stay">
+ <RegExpr attribute="10" context="9" String="#if" />
+ <RegExpr attribute="10" context="#pop" String="#endif" />
+ </context>
+ </contexts>
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal"/>
+ <itemData name="Keyword" defStyleNum="dsKeyword"/>
+ <itemData name="Data Type" defStyleNum="dsDataType"/>
+ <itemData name="Decimal" defStyleNum="dsDecVal"/>
+ <itemData name="Octal" defStyleNum="dsBaseN"/>
+ <itemData name="Hex" defStyleNum="dsBaseN"/>
+ <itemData name="Float" defStyleNum="dsFloat"/>
+ <itemData name="Char" defStyleNum="dsChar"/>
+ <itemData name="String" defStyleNum="dsString"/>
+ <itemData name="String Char" defStyleNum="dsChar"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ <itemData name="Symbol" defStyleNum="dsNormal"/>
+ <itemData name="Preprocessor" defStyleNum="dsOthers"/>
+ <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
+ </itemDatas>
+ </highlighting>
+ <general>
+ <comments>
+ <comment name="multiLine" start="/*" end="*/" />
+ </comments>
+ <keywords casesensitive="1" />
+ </general>
+</language>