|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE language SYSTEM "language.dtd">
|
|
|
|
<!--
|
|
|
|
This file is part of TDE's kate project.
|
|
|
|
|
|
|
|
copyright : (C) 2004 by Dominik Haumann
|
|
|
|
email : dhdev at gmx dot de
|
|
|
|
|
|
|
|
last change : 2004-03-26
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the
|
|
|
|
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
-->
|
|
|
|
<language name="ANSI C89" section="Sources"
|
|
|
|
version="1.11" kateversion="2.5"
|
|
|
|
indenter="cstyle"
|
|
|
|
extensions="*.c;*.C;*.h"
|
|
|
|
mimetype="text/x-csrc;text/x-c++src;text/x-chdr"
|
|
|
|
priority="2"
|
|
|
|
author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
|
|
|
|
<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="Normal Text" lineEndContext="#stay" name="Normal">
|
|
|
|
<DetectSpaces />
|
|
|
|
<RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="Outscoped" firstNonSpace="true" />
|
|
|
|
<DetectChar attribute="Preprocessor" context="Preprocessor" char="#" firstNonSpace="true" />
|
|
|
|
<keyword attribute="Keyword" context="#stay" String="keywords"/>
|
|
|
|
<keyword attribute="Data Type" context="#stay" String="types"/>
|
|
|
|
<DetectIdentifier />
|
|
|
|
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
|
|
|
|
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
|
|
|
|
<Float attribute="Float" context="#stay">
|
|
|
|
<AnyChar String="fF" attribute="Float" context="#stay"/>
|
|
|
|
</Float>
|
|
|
|
<HlCOct attribute="Octal" context="#stay"/>
|
|
|
|
<HlCHex attribute="Hex" context="#stay"/>
|
|
|
|
<Int attribute="Decimal" context="#stay" >
|
|
|
|
<StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Decimal" context="#stay" String="U" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
|
|
|
|
</Int>
|
|
|
|
<HlCChar attribute="Char" context="#stay"/>
|
|
|
|
<DetectChar attribute="String" context="String" char="""/>
|
|
|
|
<Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="blockcomment"/>
|
|
|
|
<AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/>
|
|
|
|
</context>
|
|
|
|
<context attribute="String" lineEndContext="#pop" name="String">
|
|
|
|
<LineContinue attribute="String" context="#stay"/>
|
|
|
|
<HlCStringChar attribute="String Char" context="#stay"/>
|
|
|
|
<DetectChar attribute="String" context="#pop" char="""/>
|
|
|
|
</context>
|
|
|
|
<context attribute="Comment" lineEndContext="#stay" name="comment">
|
|
|
|
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="blockcomment"/>
|
|
|
|
<IncludeRules context="##Alerts" />
|
|
|
|
</context>
|
|
|
|
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
|
|
|
|
<LineContinue attribute="Preprocessor" context="#stay"/>
|
|
|
|
<RegExpr attribute="Preprocessor" context="Define" String="define.*((?=\\))"/>
|
|
|
|
<RegExpr attribute="Preprocessor" context="#stay" String="define.*"/>
|
|
|
|
<RangeDetect attribute="Prep. Lib" context="#stay" char=""" char1="""/>
|
|
|
|
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/>
|
|
|
|
<Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="blockcomment"/>
|
|
|
|
</context>
|
|
|
|
<context attribute="Preprocessor" lineEndContext="#pop" name="Define">
|
|
|
|
<LineContinue attribute="Preprocessor" context="#stay"/>
|
|
|
|
</context>
|
|
|
|
<context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
|
|
|
|
<Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="Comment"/>
|
|
|
|
<IncludeRules context="##Alerts" />
|
|
|
|
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" />
|
|
|
|
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*(endif|else|elif)" endRegion="Outscoped" firstNonSpace="true" />
|
|
|
|
</context>
|
|
|
|
<context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
|
|
|
|
<Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="Comment"/>
|
|
|
|
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" />
|
|
|
|
<RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="Outscoped" firstNonSpace="true" />
|
|
|
|
</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"/>
|
|
|
|
</itemDatas>
|
|
|
|
</highlighting>
|
|
|
|
<general>
|
|
|
|
<comments>
|
|
|
|
<comment name="multiLine" start="/*" end="*/" />
|
|
|
|
</comments>
|
|
|
|
<keywords casesensitive="1" />
|
|
|
|
</general>
|
|
|
|
</language>
|