Warning, /frameworks/syntax-highlighting/data/syntax/groovy.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language
0003 [
0004         <!ENTITY int "(?:[0-9]++(_++[0-9]++)*+)">
0005         <!ENTITY hex "(?:[0-9a-fA-F]++(_++[0-9a-fA-F]++)*+)">
0006         <!ENTITY exp "(?:[eE][-+]?&int;)">
0007         <!ENTITY float "(\b&int;(\.((&int;&exp;?+|&exp;)[fFdD]?\b|[dDfFgG]\b)?|&exp;[fFdD]?\b|[dDfFgG]\b)|\.&int;&exp;?[dDfFgG]?\b)">
0008         <!ENTITY hexfloat "\b0[xX](&hex;\.?+&hex;?+|\.&hex;?)[pP][-+]?&int;[dDfFgG]?\b">
0009 ]>
0010 <!--
0011     Based on the java syntax file 1.19 by Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)
0012 -->
0013 <language name="Groovy" version="11" kateversion="5.62" section="Sources" extensions="*.groovy;*.gradle;*.gvy;Jenkinsfile" license="LGPL" author="Chris Reeves (chris@ev-soft.net)">
0014         <highlighting>
0015                 <list name="java15">
0016                         <include>java15##Java</include>
0017                 </list>
0018                 <list name="keywords">
0019                         <item>as</item>
0020                         <item>assert</item>
0021                         <item>class</item>
0022                         <item>default</item>
0023                         <item>enum</item>
0024                         <item>extends</item>
0025                         <item>false</item>
0026                         <item>implements</item>
0027                         <item>import</item>
0028                         <item>in</item>
0029                         <item>instanceof</item>
0030                         <item>native</item>
0031                         <item>abstract</item>
0032                         <item>interface</item>
0033                         <item>new</item>
0034                         <item>null</item>
0035                         <item>package</item>
0036                         <item>super</item>
0037                         <item>this</item>
0038                         <item>throws</item>
0039                         <item>trait</item>
0040                         <item>true</item>
0041                         <item>var</item>
0042                 </list>
0043                 <list name="control flow">
0044                         <item>break</item>
0045                         <item>case</item>
0046                         <item>catch</item>
0047                         <item>continue</item>
0048                         <item>do</item>
0049                         <item>else</item>
0050                         <item>finally</item>
0051                         <item>for</item>
0052                         <item>goto</item>
0053                         <item>if</item>
0054                         <item>return</item>
0055                         <item>switch</item>
0056                         <item>throw</item>
0057                         <item>try</item>
0058                         <item>while</item>
0059                 </list>
0060                 <list name="types">
0061                         <item>def</item>
0062 
0063                         <item>boolean</item>
0064                         <item>byte</item>
0065                         <item>char</item>
0066                         <item>double</item>
0067                         <item>float</item>
0068                         <item>int</item>
0069                         <item>long</item>
0070                         <item>short</item>
0071                         <item>void</item>
0072                 </list>
0073                 <contexts>
0074                         <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
0075                                 <DetectSpaces context="#stay"/>
0076 
0077                                 <DetectChar attribute="Symbol" context="Dot" char="." lookAhead="1"/>
0078                                 <DetectChar attribute="Symbol" context="AfterSymbol" char="{" beginRegion="Brace1"/>
0079                                 <DetectChar attribute="Symbol" context="AfterSymbol" char="}" endRegion="Brace1"/>
0080 
0081                                 <!-- Comment next line if you don't use Javadoc tool -->
0082                                 <IncludeRules context="##Javadoc"/>
0083                                 <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
0084                                 <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
0085 
0086                                 <AnyChar attribute="Symbol" context="AfterSymbol" String="()[]&amp;|+,-/*&lt;=&gt;;!%?:~^"/>
0087 
0088                                 <AnyChar context="Number" String="0123456789" lookAhead="1"/>
0089 
0090                                 <DetectChar attribute="String" context="StringSQ" char="'"/>
0091                                 <DetectChar attribute="String" context="StringDQ" char="&quot;"/>
0092                                 <Detect2Chars attribute="String" context="StringDollarSlashy" char="$" char1="/"/>
0093 
0094                                 <keyword attribute="Keyword" context="#stay" String="keywords"/>
0095                                 <keyword attribute="Control Flow" context="#stay" String="control flow"/>
0096                                 <keyword attribute="Data Type" context="#stay" String="types"/>
0097                                 <keyword attribute="Java15" context="#stay" String="java15"/>
0098 
0099                                 <RegExpr attribute="Function" context="#stay" String="\b[_a-zA-Z]\w*(?=[\s]*(/\*\s*\d+\s*\*/\s*)?[(])" />
0100                                 <DetectIdentifier attribute="Normal Text"/>
0101                         </context>
0102 
0103                         <context attribute="Normal Text" lineEndContext="#stay" name="Dot">
0104                                 <IncludeRules context="FindFloat"/>
0105                                 <DetectChar attribute="Symbol" context="#pop!Member" char="." />
0106                         </context>
0107                         <context attribute="Normal Text" lineEndContext="#stay" name="Member" fallthroughContext="#pop">
0108                                 <DetectSpaces attribute="Normal Text" context="#stay"/>
0109                                 <RegExpr attribute="Function" context="#pop" String="\b[_a-zA-Z]\w*(?=[\s]*(/\*\s*\d+\s*\*/\s*)?[({'&quot;])" />
0110                                 <Detect2Chars attribute="Comment" context="#pop!Commentar 1" char="/" char1="/"/>
0111                                 <DetectChar attribute="String" context="#pop!StringSlashy" char="/"/>
0112                         </context>
0113 
0114                         <context attribute="Normal Text" lineEndContext="#stay" name="AfterSymbol" fallthroughContext="#pop">
0115                                 <DetectSpaces attribute="Normal Text" context="#stay"/>
0116                                 <Detect2Chars attribute="Comment" context="#pop!Commentar 1" char="/" char1="/"/>
0117                                 <DetectChar attribute="String" context="#pop!StringSlashy" char="/"/>
0118                         </context>
0119 
0120                         <context attribute="Normal Text" lineEndContext="#stay" name="Number">
0121                                 <IncludeRules context="FindFloat"/>
0122                                 <RegExpr attribute="Hex" context="#pop" String="\b0[xX]&hex;[lL]?\b"/>
0123                                 <RegExpr attribute="Binary" context="#pop" String="\b0[bB][01]++(_++[01]++)*+[gGiIlL]?\b"/>
0124                                 <RegExpr attribute="Octal" context="#pop" String="\b0_*+[0-7]++(_++[0-7_]++)*+[gGiIlL]?\b"/>
0125                                 <RegExpr attribute="Decimal" context="#pop" String="\b(0|[1-9][0-9]*+(_++[0-9_]++)*+)[gGiIlL]?\b"/>
0126                                 <AnyChar attribute="Error" context="#pop" String="0123456789"/>
0127                         </context>
0128                         <context attribute="Normal Text" lineEndContext="#stay" name="FindFloat">
0129                                 <RegExpr attribute="Float" context="#pop" String="&float;|&hexfloat;"/>
0130                         </context>
0131 
0132                         <context attribute="String" lineEndContext="#pop" name="StringSQ" fallthroughContext="#pop!StringInSQ">
0133                                 <Detect2Chars attribute="String" context="#pop!String3SQ" char="'" char1="'"/>
0134                                 <DetectChar attribute="String" context="#pop" char="'"/>
0135                         </context>
0136                         <context attribute="String" lineEndContext="#pop" name="StringInSQ">
0137                                 <DetectChar context="StringEscapedChar" char="\" lookAhead="1"/>
0138                                 <DetectChar attribute="String" context="#pop" char="'"/>
0139                         </context>
0140                         <context attribute="String" lineEndContext="#pop!StringIn3SQ" name="String3SQ" fallthroughContext="#pop!StringIn3SQ">
0141                                 <LineContinue attribute="Symbol" context="#pop!StringIn3SQ" char="\"/>
0142                         </context>
0143                         <context attribute="String" lineEndContext="#stay" name="StringIn3SQ">
0144                                 <DetectChar context="StringEscapedChar" char="\" lookAhead="1"/>
0145                                 <StringDetect attribute="String" context="#pop" String="'''"/>
0146                         </context>
0147 
0148                         <context attribute="String" lineEndContext="#pop" name="StringDQ" fallthroughContext="#pop!StringInDQ">
0149                                 <Detect2Chars attribute="String" context="#pop!String3DQ" char="&quot;" char1="&quot;"/>
0150                                 <DetectChar attribute="String" context="#pop" char="&quot;"/>
0151                         </context>
0152                         <context attribute="String" lineEndContext="#pop" name="StringInDQ">
0153                                 <DetectChar attribute="String Interpolation" context="Interpolation" char="$"/>
0154                                 <DetectChar context="StringEscapedChar" char="\" lookAhead="1"/>
0155                                 <DetectChar attribute="String" context="#pop" char="&quot;"/>
0156                         </context>
0157                         <context attribute="String" lineEndContext="#pop!StringIn3DQ" name="String3DQ" fallthroughContext="#pop!StringIn3DQ">
0158                                 <LineContinue attribute="Symbol" context="#pop!StringIn3DQ" char="\"/>
0159                         </context>
0160                         <context attribute="String" lineEndContext="#stay" name="StringIn3DQ">
0161                                 <DetectChar attribute="String Interpolation" context="Interpolation" char="$"/>
0162                                 <DetectChar context="StringEscapedChar" char="\" lookAhead="1"/>
0163                                 <StringDetect attribute="String" context="#pop" String="&quot;&quot;&quot;"/>
0164                         </context>
0165 
0166                         <context attribute="String" lineEndContext="#stay" name="StringSlashy">
0167                                 <DetectChar attribute="String Interpolation" context="Interpolation" char="$"/>
0168                                 <DetectChar context="StringSlashyEscapedChar" char="\" lookAhead="1"/>
0169                                 <DetectChar attribute="String" context="#pop" char="/"/>
0170                         </context>
0171                         <context attribute="String" lineEndContext="#pop" name="StringSlashyEscapedChar">
0172                                 <Detect2Chars attribute="String" context="#pop" char="\" char1="/"/>
0173                                 <IncludeRules context="StringEscapedChar"/>
0174                         </context>
0175 
0176                         <context attribute="String" lineEndContext="#stay" name="StringDollarSlashy">
0177                                 <DetectChar context="InterpolationDollarSlashy" char="$" lookAhead="1"/>
0178                                 <Detect2Chars attribute="String" context="#pop" char="/" char1="$"/>
0179                         </context>
0180                         <context attribute="String" lineEndContext="#stay" name="InterpolationDollarSlashy">
0181                                 <Detect2Chars attribute="String Interpolation" context="#pop!InInterpolation" char="$" char1="{"/>
0182                                 <Detect2Chars attribute="String Char" context="#pop" char="$" char1="$"/>
0183                                 <Detect2Chars attribute="String Char" context="#pop" char="$" char1="/"/>
0184                                 <RegExpr attribute="String Interpolation" context="#pop!InterpolationIdent" String="\$[_a-zA-Z]\w*" />
0185                                 <DetectChar attribute="String" context="#pop" char="$"/>
0186                         </context>
0187 
0188                         <context attribute="String" lineEndContext="#stay" name="Interpolation" fallthroughContext="#pop">
0189                                 <DetectChar attribute="String Interpolation" context="#pop!InInterpolation" char="{"/>
0190                                 <DetectIdentifier attribute="String Interpolation" context="#pop!InterpolationIdent"/>
0191                         </context>
0192                         <context attribute="String Interpolation" lineEndContext="#stay" name="InInterpolation">
0193                                 <DetectChar attribute="String Interpolation" context="#pop" char="}"/>
0194                                 <IncludeRules context="Normal"/>
0195                         </context>
0196                         <context attribute="String Interpolation" lineEndContext="#pop" name="InterpolationIdent" fallthroughContext="#pop">
0197                                 <DetectChar attribute="Symbol" context="InterpolationMember" char="."/>
0198                         </context>
0199                         <context attribute="String Interpolation" lineEndContext="#stay" name="InterpolationMember" fallthroughContext="#pop#pop">
0200                                 <DetectIdentifier attribute="String Interpolation" context="#pop"/>
0201                         </context>
0202 
0203                         <context attribute="String" lineEndContext="#pop" name="StringEscapedChar">
0204                                 <HlCStringChar attribute="String Char" context="#pop"/>
0205                                 <RegExpr attribute="String Char" context="#pop" String="\\u[0-9a-fA-F]{4}"/>
0206                                 <RegExpr attribute="Error" context="#pop" String="\\(u[0-9a-fA-F]*|.)?"/>
0207                         </context>
0208 
0209                         <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
0210                                 <DetectSpaces />
0211                                 <IncludeRules context="##Comments"/>
0212                         </context>
0213                         <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
0214                                 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
0215                                 <DetectSpaces />
0216                                 <IncludeRules context="##Comments"/>
0217                         </context>
0218 
0219                 </contexts>
0220                 <itemDatas>
0221                         <itemData name="Normal Text"  defStyleNum="dsNormal"/>
0222                         <itemData name="Keyword"      defStyleNum="dsKeyword"/>
0223                         <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/>
0224                         <itemData name="Function"     defStyleNum="dsFunction"/>
0225                         <itemData name="Data Type"    defStyleNum="dsDataType"/>
0226                         <itemData name="Decimal"      defStyleNum="dsDecVal" spellChecking="false"/>
0227                         <itemData name="Octal"        defStyleNum="dsBaseN" spellChecking="false"/>
0228                         <itemData name="Hex"          defStyleNum="dsBaseN" spellChecking="false"/>
0229                         <itemData name="Binary"       defStyleNum="dsBaseN" spellChecking="false"/>
0230                         <itemData name="Float"        defStyleNum="dsFloat" spellChecking="false"/>
0231                         <itemData name="String"       defStyleNum="dsString"/>
0232                         <itemData name="String Char"  defStyleNum="dsSpecialChar"/>
0233                         <itemData name="String Interpolation" defStyleNum="dsSpecialString"/>
0234                         <itemData name="Comment"      defStyleNum="dsComment"/>
0235                         <itemData name="Symbol"       defStyleNum="dsOperator"/>
0236                         <itemData name="Java15"       defStyleNum="dsBuiltIn" bold="1" italic="0"/>
0237                         <itemData name="Error"       defStyleNum="dsError" spellChecking="false"/>
0238                 </itemDatas>
0239         </highlighting>
0240         <general>
0241                 <comments>
0242                         <comment name="singleLine" start="//"/>
0243                         <comment name="multiLine" start="/*" end="*/" region="Comment"/>
0244                 </comments>
0245                 <keywords casesensitive="1"/>
0246         </general>
0247 </language>
0248 <!-- kate: replace-tabs off; -->