Warning, /frameworks/syntax-highlighting/data/syntax/ansic89.xml is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <!DOCTYPE language> 0003 <language name="ANSI C89" section="Sources" 0004 version="8" kateversion="5.0" 0005 indenter="cstyle" 0006 extensions="*.c;*.C;*.h" 0007 mimetype="text/x-csrc;text/x-c++src;text/x-chdr" 0008 priority="2" 0009 author="Dominik Haumann (dhaumann@kde.org)" license="MIT"> 0010 <highlighting> 0011 <list name="keywords"> 0012 <item>break</item> 0013 <item>case</item> 0014 <item>continue</item> 0015 <item>default</item> 0016 <item>do</item> 0017 <item>else</item> 0018 <item>enum</item> 0019 <item>extern</item> 0020 <item>for</item> 0021 <item>goto</item> 0022 <item>if</item> 0023 <item>return</item> 0024 <item>sizeof</item> 0025 <item>struct</item> 0026 <item>switch</item> 0027 <item>typedef</item> 0028 <item>union</item> 0029 <item>while</item> 0030 </list> 0031 <list name="types"> 0032 <item>auto</item> 0033 <item>char</item> 0034 <item>const</item> 0035 <item>double</item> 0036 <item>float</item> 0037 <item>int</item> 0038 <item>long</item> 0039 <item>register</item> 0040 <item>short</item> 0041 <item>signed</item> 0042 <item>static</item> 0043 <item>unsigned</item> 0044 <item>void</item> 0045 <item>volatile</item> 0046 </list> 0047 <contexts> 0048 <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> 0049 <DetectSpaces /> 0050 <RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="Outscoped" firstNonSpace="true" /> 0051 <DetectChar attribute="Preprocessor" context="Preprocessor" char="#" firstNonSpace="true" /> 0052 <keyword attribute="Keyword" context="#stay" String="keywords"/> 0053 <keyword attribute="Data Type" context="#stay" String="types"/> 0054 <DetectIdentifier /> 0055 <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" /> 0056 <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" /> 0057 <Float attribute="Float" context="Float Suffixes"/> 0058 <HlCOct attribute="Octal" context="#stay"/> 0059 <HlCHex attribute="Hex" context="#stay"/> 0060 <Int attribute="Decimal" context="Int Suffixes"/> 0061 <HlCChar attribute="Char" context="#stay"/> 0062 <DetectChar attribute="String" context="String" char="""/> 0063 <Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="blockcomment"/> 0064 <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/> 0065 </context> 0066 <context name="Float Suffixes" attribute="Float" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> 0067 <AnyChar String="fF" attribute="Float" context="#pop"/> 0068 </context> 0069 <context name="Int Suffixes" attribute="Decimal" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> 0070 <StringDetect attribute="Decimal" context="#pop" String="ULL" insensitive="true"/> 0071 <StringDetect attribute="Decimal" context="#pop" String="LLU" insensitive="true"/> 0072 <StringDetect attribute="Decimal" context="#pop" String="UL" insensitive="true"/> 0073 <StringDetect attribute="Decimal" context="#pop" String="LU" insensitive="true"/> 0074 <StringDetect attribute="Decimal" context="#pop" String="LL" insensitive="true"/> 0075 <AnyChar attribute="Decimal" context="#pop" String="ULul"/> 0076 </context> 0077 <context attribute="String" lineEndContext="#pop" name="String"> 0078 <LineContinue attribute="String" context="#stay"/> 0079 <HlCStringChar attribute="String Char" context="#stay"/> 0080 <DetectChar attribute="String" context="#pop" char="""/> 0081 </context> 0082 <context attribute="Comment" lineEndContext="#stay" name="comment"> 0083 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="blockcomment"/> 0084 <IncludeRules context="##Comments" /> 0085 </context> 0086 <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor"> 0087 <LineContinue attribute="Preprocessor" context="#stay"/> 0088 <RegExpr attribute="Preprocessor" context="#stay" String="define(?:[^\\]++|\\.)++"/> 0089 <RangeDetect attribute="Prep. Lib" context="#stay" char=""" char1="""/> 0090 <RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/> 0091 <Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="blockcomment"/> 0092 </context> 0093 <context attribute="Comment" lineEndContext="#stay" name="Outscoped" > 0094 <Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="Comment"/> 0095 <IncludeRules context="##Comments" /> 0096 <RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" /> 0097 <RegExpr attribute="Preprocessor" context="#pop" String="#\s*(?:endif|else|elif)" endRegion="Outscoped" firstNonSpace="true" /> 0098 </context> 0099 <context attribute="Comment" lineEndContext="#stay" name="Outscoped intern"> 0100 <Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="Comment"/> 0101 <RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" /> 0102 <RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="Outscoped" firstNonSpace="true" /> 0103 </context> 0104 </contexts> 0105 <itemDatas> 0106 <itemData name="Normal Text" defStyleNum="dsNormal"/> 0107 <itemData name="Keyword" defStyleNum="dsKeyword"/> 0108 <itemData name="Data Type" defStyleNum="dsDataType"/> 0109 <itemData name="Decimal" defStyleNum="dsDecVal"/> 0110 <itemData name="Octal" defStyleNum="dsBaseN"/> 0111 <itemData name="Hex" defStyleNum="dsBaseN"/> 0112 <itemData name="Float" defStyleNum="dsFloat"/> 0113 <itemData name="Char" defStyleNum="dsChar"/> 0114 <itemData name="String" defStyleNum="dsString"/> 0115 <itemData name="String Char" defStyleNum="dsSpecialChar"/> 0116 <itemData name="Comment" defStyleNum="dsComment"/> 0117 <itemData name="Symbol" defStyleNum="dsOperator"/> 0118 <itemData name="Preprocessor" defStyleNum="dsPreprocessor"/> 0119 <itemData name="Prep. Lib" defStyleNum="dsImport"/> 0120 </itemDatas> 0121 </highlighting> 0122 <general> 0123 <comments> 0124 <comment name="multiLine" start="/*" end="*/" region="blockcomment" /> 0125 </comments> 0126 <keywords casesensitive="1" /> 0127 </general> 0128 </language> 0129 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->