Warning, /frameworks/syntax-highlighting/data/syntax/opencl.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="OpenCL" section="Sources"
0004           version="9" kateversion="5.0"
0005           indenter="cstyle"
0006           extensions="*.cl"
0007           mimetype="text/x-clsrc"
0008           priority="5">
0009   <highlighting>
0010     <list name="keywords">
0011       <item>__constant</item>
0012       <item>__global</item>
0013       <item>__local</item>
0014       <item>__private</item>
0015       <item>__kernel</item>
0016       <item>__read_only</item>
0017       <item>__write_only</item>
0018       <item>constant</item>
0019       <item>global</item>
0020       <item>local</item>
0021       <item>private</item>
0022       <item>kernel</item>
0023       <item>read_only</item>
0024       <item>write_only</item>
0025       <item>break</item>
0026       <item>case</item>
0027       <item>continue</item>
0028       <item>default</item>
0029       <item>do</item>
0030       <item>else</item>
0031       <item>enum</item>
0032       <item>for</item>
0033       <item>goto</item>
0034       <item>if</item>
0035       <item>inline</item>
0036       <item>return</item>
0037       <item>sizeof</item>
0038       <item>struct</item>
0039       <item>switch</item>
0040       <item>typedef</item>
0041       <item>union</item>
0042       <item>while</item>
0043     </list>
0044     <list name="types">
0045       <item>bool</item>
0046       <item>uchar</item>
0047       <item>uchar2</item>
0048       <item>uchar3</item>
0049       <item>uchar4</item>
0050       <item>uchar8</item>
0051       <item>uchar16</item>
0052       <item>char</item>
0053       <item>char2</item>
0054       <item>char3</item>
0055       <item>char4</item>
0056       <item>char8</item>
0057       <item>char16</item>
0058       <item>const</item>
0059       <item>double</item>
0060       <item>double2</item>
0061       <item>double3</item>
0062       <item>double4</item>
0063       <item>double8</item>
0064       <item>double16</item>
0065       <item>event_t</item>
0066       <item>float</item>
0067       <item>float2</item>
0068       <item>float3</item>
0069       <item>float4</item>
0070       <item>float8</item>
0071       <item>float16</item>
0072       <item>half</item>
0073       <item>half2</item>
0074       <item>half3</item>
0075       <item>half4</item>
0076       <item>half8</item>
0077       <item>half16</item>
0078       <item>image1d_t</item>
0079       <item>image2d_t</item>
0080       <item>image3d_t</item>
0081       <item>uint</item>
0082       <item>uint2</item>
0083       <item>uint3</item>
0084       <item>uint4</item>
0085       <item>uint8</item>
0086       <item>uint16</item>
0087           <item>int</item>
0088       <item>int2</item>
0089       <item>int3</item>
0090       <item>int4</item>
0091       <item>int8</item>
0092       <item>int16</item>
0093       <item>ulong</item>
0094       <item>ulong2</item>
0095       <item>ulong3</item>
0096       <item>ulong4</item>
0097       <item>ulong8</item>
0098       <item>ulong16</item>
0099       <item>long</item>
0100       <item>long2</item>
0101       <item>long3</item>
0102       <item>long4</item>
0103       <item>long8</item>
0104       <item>long16</item>
0105       <item>restrict</item>
0106       <item>sampler_t</item>
0107       <item>ushort</item>
0108       <item>ushort2</item>
0109       <item>ushort3</item>
0110       <item>ushort4</item>
0111       <item>ushort8</item>
0112       <item>ushort16</item>
0113       <item>short</item>
0114       <item>short2</item>
0115       <item>short3</item>
0116       <item>short4</item>
0117       <item>short8</item>
0118       <item>short16</item>
0119       <item>signed</item>
0120       <item>static</item>
0121       <item>unsigned</item>
0122       <item>void</item>
0123       <item>volatile</item>
0124     </list>
0125     <contexts>
0126       <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
0127         <DetectSpaces />
0128         <RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0\s*$" beginRegion="PP" firstNonSpace="true" />
0129         <DetectChar context="AfterHash" char="#" firstNonSpace="true" lookAhead="true" />
0130         <keyword attribute="Keyword" context="#stay" String="keywords"/>
0131         <keyword attribute="Data Type" context="#stay" String="types"/>
0132         <DetectIdentifier />
0133         <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
0134         <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
0135         <Float attribute="Float" context="Float Suffixes"/>
0136         <HlCOct attribute="Octal" context="#stay"/>
0137         <HlCHex attribute="Hex" context="#stay"/>
0138         <Int attribute="Decimal" context="Int Suffixes"/>
0139         <HlCChar attribute="Char" context="#stay"/>
0140         <DetectChar attribute="String" context="String" char="&quot;"/>
0141         <IncludeRules context="FindComments" />
0142         <AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
0143       </context>
0144 
0145       <context name="FindComments" attribute="Normal Text" lineEndContext="#pop">
0146         <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="true" />
0147         <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true" />
0148       </context>
0149 
0150       <context name="MatchComment" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
0151         <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
0152         <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
0153         <IncludeRules context="##Doxygen" />
0154         <Detect2Chars attribute="Comment" context="#pop!Commentar 1" char="/" char1="/"/>
0155         <Detect2Chars attribute="Comment" context="#pop!Commentar 2" char="/" char1="*" beginRegion="Comment"/>
0156       </context>
0157 
0158       <context name="Float Suffixes" attribute="Float" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
0159           <AnyChar String="fFhH" attribute="Float" context="#pop"/>
0160       </context>
0161 
0162       <context name="Int Suffixes" attribute="Decimal" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
0163           <StringDetect attribute="Decimal" context="#pop" String="ULL" insensitive="true"/>
0164           <StringDetect attribute="Decimal" context="#pop" String="LLU" insensitive="true"/>
0165           <StringDetect attribute="Decimal" context="#pop" String="UL" insensitive="true"/>
0166           <StringDetect attribute="Decimal" context="#pop" String="LU" insensitive="true"/>
0167           <StringDetect attribute="Decimal" context="#pop" String="LL" insensitive="true"/>
0168           <AnyChar attribute="Decimal" context="#pop" String="ULJulj"/>
0169       </context>
0170 
0171       <context attribute="String" lineEndContext="#pop" name="String">
0172         <LineContinue attribute="String" context="#stay"/>
0173         <HlCStringChar attribute="String Char" context="#stay"/>
0174         <DetectChar attribute="String" context="#pop" char="&quot;"/>
0175       </context>
0176 
0177       <context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">
0178       </context>
0179 
0180       <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
0181         <LineContinue attribute="Comment" context="#stay"/>
0182         <DetectSpaces />
0183         <IncludeRules context="##Comments" />
0184       </context>
0185 
0186       <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
0187         <DetectSpaces />
0188         <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
0189         <IncludeRules context="##Comments" />
0190       </context>
0191 
0192       <context attribute="Error" lineEndContext="#pop" name="AfterHash">
0193         <!-- define, elif, else, endif, error, if, ifdef, ifndef, include, include_next, line, pragma, undef, warning -->
0194         <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
0195         <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" />
0196         <RegExpr attribute="Preprocessor" context="Define" String="#\s*define(?:[^\\]++|\\.)++" insensitive="true" firstNonSpace="true" />
0197         <RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)|#\s+[0-9]+" insensitive="true" firstNonSpace="true" />
0198       </context>
0199 
0200       <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
0201         <LineContinue attribute="Preprocessor" context="#stay"/>
0202         <RangeDetect attribute="Prep. Lib" context="#stay" char="&quot;" char1="&quot;"/>
0203         <RangeDetect attribute="Prep. Lib" context="#stay" char="&lt;" char1="&gt;"/>
0204         <IncludeRules context="FindComments" />
0205       </context>
0206 
0207       <context attribute="Preprocessor" lineEndContext="#pop" name="Define">
0208         <LineContinue attribute="Preprocessor" context="#stay"/>
0209       </context>
0210 
0211       <context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
0212         <DetectSpaces />
0213         <IncludeRules context="##Comments" />
0214         <DetectIdentifier />
0215         <DetectChar attribute="String" context="String" char="&quot;"/>
0216         <IncludeRules context="FindComments" />
0217         <RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
0218         <RegExpr attribute="Preprocessor" context="#pop" String="#\s*el(?:se|if)" firstNonSpace="true" />
0219         <RegExpr attribute="Preprocessor" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
0220       </context>
0221 
0222       <context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
0223         <DetectSpaces />
0224         <IncludeRules context="##Comments" />
0225         <DetectIdentifier />
0226         <DetectChar attribute="String" context="String" char="&quot;"/>
0227         <IncludeRules context="FindComments" />
0228         <RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
0229         <RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
0230       </context>
0231     </contexts>
0232     <itemDatas>
0233       <itemData name="Normal Text"  defStyleNum="dsNormal" spellChecking="false"/>
0234       <itemData name="Keyword"      defStyleNum="dsKeyword" spellChecking="false"/>
0235       <itemData name="Data Type"    defStyleNum="dsDataType" spellChecking="false"/>
0236       <itemData name="Decimal"      defStyleNum="dsDecVal" spellChecking="false"/>
0237       <itemData name="Octal"        defStyleNum="dsBaseN" spellChecking="false"/>
0238       <itemData name="Hex"          defStyleNum="dsBaseN" spellChecking="false"/>
0239       <itemData name="Float"        defStyleNum="dsFloat" spellChecking="false"/>
0240       <itemData name="Char"         defStyleNum="dsChar" spellChecking="false"/>
0241       <itemData name="String"       defStyleNum="dsString"/>
0242       <itemData name="String Char"  defStyleNum="dsChar"/>
0243       <itemData name="Comment"      defStyleNum="dsComment"/>
0244       <itemData name="Symbol"       defStyleNum="dsOperator" spellChecking="false"/>
0245       <itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/>
0246       <itemData name="Prep. Lib"    defStyleNum="dsOthers" spellChecking="false"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
0247       <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
0248       <itemData name="Error"        defStyleNum="dsError" spellChecking="false"/>
0249     </itemDatas>
0250   </highlighting>
0251   <general>
0252     <comments>
0253       <comment name="singleLine" start="//" />
0254       <comment name="multiLine" start="/*" end="*/" region="Comment" />
0255     </comments>
0256     <keywords casesensitive="1" additionalDeliminator="'&quot;" />
0257   </general>
0258 </language>
0259 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->