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

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language>
0003 <language version="9" kateversion="5.62" name="JSP" section="Markup" extensions="*.jsp;*.JSP" mimetype="text/html" casesensitive="false" author="Rob Martin (rob@gamepimp.com)" license="LGPL">
0004   <highlighting>
0005 
0006     <list name="jsp-reserved-words">
0007       <item>and</item>
0008       <item>eq</item>
0009       <item>gt</item>
0010       <item>true</item>
0011       <item>instanceof</item>
0012       <item>or</item>
0013       <item>ne</item>
0014       <item>le</item>
0015       <item>false</item>
0016       <item>empty</item>
0017       <item>not</item>
0018       <item>lt</item>
0019       <item>ge</item>
0020       <item>null</item>
0021       <item>div</item>
0022       <item>mod</item>
0023     </list>
0024 
0025     <contexts>
0026       <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
0027         <RegExpr String="&lt;%@\s*[a-zA-Z0-9_\.]*" attribute="Jsp Directive" context="Jsp Standard Directive"/>
0028         <RegExpr String="&lt;\s*jsp:(declaration|expression|scriptlet)\s*&gt;" attribute="Jsp Scriptlet" context="Jsp Scriptlet"/>
0029         <RegExpr String="&lt;\s*\/?s*jsp:[a-zA-Z0-9_\.]*" attribute="Jsp Directive" context="Jsp Xml Directive"/>
0030         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0031         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0032         <StringDetect String="&lt;!--" attribute="Html Comment" context="Html Comment" beginRegion="HtmlComment"/>
0033         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0034         <RegExpr String="&lt;\s*\/?\s*\$?[a-zA-Z0-9_]*:\$?[a-zA-Z0-9_]*" attribute="Keyword" context="Jsp Custom Tag"/>
0035         <StringDetect String="&lt;![CDATA[" attribute="Normal Text" context="#stay"/>
0036         <StringDetect String="]]&gt;" attribute="Normal Text" context="#stay"/>
0037         <RegExpr String="&lt;script\b" attribute="Normal Text" context="JS" beginRegion="script" />
0038         <RegExpr String="&lt;style\b" attribute="Normal Text" context="CSS" beginRegion="style" />
0039         <RegExpr String="&lt;\s*\/?\s*[a-zA-Z0-9_]*" attribute="Normal Text" context="Html Attribute"/>
0040       </context>
0041 
0042       <context name="CSS" attribute="Normal Text" lineEndContext="#stay">
0043         <DetectChar attribute="Normal Text" context="CSS content" char="&gt;" />
0044         <Detect2Chars attribute="Normal Text" context="#pop" char="/" char1="&gt;" endRegion="style" />
0045         <IncludeRules context="Html Attribute" />
0046       </context>
0047 
0048       <context name="CSS content" attribute="Normal Text" lineEndContext="#stay">
0049         <StringDetect attribute="Normal Text" context="#pop#pop" String="&lt;/style>" endRegion="style" />
0050         <IncludeRules context="##CSS" includeAttrib="true"/>
0051       </context>
0052 
0053       <context name="JS" attribute="Normal Text" lineEndContext="#stay">
0054         <DetectChar attribute="Normal Text" context="JS content" char="&gt;" />
0055         <Detect2Chars attribute="Normal Text" context="#pop" char="/" char1="&gt;" endRegion="script" />
0056         <IncludeRules context="Html Attribute" />
0057       </context>
0058 
0059       <context name="JS content" attribute="Normal Text" lineEndContext="#stay">
0060         <RegExpr attribute="Normal Text" context="#pop#pop!Html Attribute" String="&lt;/script\b" endRegion="script" />
0061         <RegExpr attribute="Jsp Comment" context="JS comment close" String="//(?=.*&lt;/script)" />
0062         <IncludeRules context="Normal##JavaScript" includeAttrib="true"/>
0063       </context>
0064       <context name="JS comment close" attribute="Jsp Comment" lineEndContext="#stay">
0065         <DetectSpaces/>
0066         <IncludeRules context="##Comments" />
0067         <DetectIdentifier/>
0068         <StringDetect attribute="Normal Text" context="#pop#pop#pop" String="&lt;/script" endRegion="script" />
0069       </context>
0070 
0071       <context name="Jsp Standard Directive" attribute="Jsp Param Name" lineEndContext="#stay">
0072         <Detect2Chars char="%" char1="&gt;" attribute="Jsp Directive" context="#pop"/>
0073         <RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Standard Directive Value"/>
0074         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0075         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0076         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0077         <RegExpr String="&lt;\s*\/?\s*\$?\w*:\$?\w*" attribute="Keyword" context="Jsp Custom Tag"/>
0078       </context>
0079 
0080       <context name="Jsp Xml Directive" attribute="Jsp Param Name" lineEndContext="#stay">
0081         <RegExpr String="\s*\/?\s*&gt;" attribute="Jsp Directive" context="#pop"/>
0082         <RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Xml Directive Value"/>
0083         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0084         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0085         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0086       </context>
0087 
0088       <context name="Jsp Comment" attribute="Jsp Comment" lineEndContext="#stay">
0089         <StringDetect String="--%&gt;" attribute="Jsp Comment" context="#pop" endRegion="JspComment"/>
0090         <DetectSpaces />
0091         <IncludeRules context="##Comments" />
0092       </context>
0093 
0094       <context name="Jsp Custom Tag" attribute="Identifier" lineEndContext="#stay">
0095         <RegExpr String="\/?&gt;" attribute="Keyword" context="#pop"/>
0096         <RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Custom Tag Value"/>
0097         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0098         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0099         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0100       </context>
0101 
0102       <context name="Jsp Standard Directive Value" attribute="Jsp Param Value" lineEndContext="#stay">
0103         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0104         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0105         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0106         <DetectChar char="&quot;" attribute="Jsp Param Value" context="Jsp Double Quoted Param Value"/>
0107         <DetectChar char="'" attribute="Jsp Param Value" context="Jsp Single Quoted Param Value"/>
0108         <Detect2Chars char="%" char1="&gt;" attribute="Jsp Directive" context="#pop#pop"/>
0109       </context>
0110 
0111       <context name="Jsp Xml Directive Value" attribute="Jsp Param Value" lineEndContext="#stay">
0112         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0113         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0114         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0115         <DetectChar char="&quot;" attribute="Jsp Param Value" context="Jsp Double Quoted Param Value"/>
0116         <DetectChar char="'" attribute="Jsp Param Value" context="Jsp Single Quoted Param Value"/>
0117         <RegExpr String="\s*\/?\s*&gt;" attribute="Jsp Directive" context="#pop#pop"/>
0118       </context>
0119 
0120       <context name="Jsp Custom Tag Value" attribute="Normal Text" lineEndContext="#stay">
0121         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0122         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0123         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0124         <DetectChar char="&quot;" attribute="Types" context="Jsp Double Quoted Custom Tag Value"/>
0125         <DetectChar char="'" attribute="Types" context="Jsp Single Quoted Custom Tag Value"/>
0126         <RegExpr String="\/?&gt;" attribute="Normal Text" context="#pop#pop"/>
0127       </context>
0128 
0129       <context name="Jsp Double Quoted Param Value" attribute="Jsp Param Value" lineEndContext="#stay">
0130         <DetectChar char="&quot;" attribute="Jsp Param Value" context="#pop#pop"/>
0131         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0132         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0133         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0134       </context>
0135 
0136       <context name="Jsp Single Quoted Param Value" attribute="Jsp Param Value" lineEndContext="#stay">
0137         <DetectChar char="'" attribute="Jsp Param Value" context="#pop#pop"/>
0138         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0139         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0140         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0141       </context>
0142 
0143       <context name="Jsp Double Quoted Custom Tag Value" attribute="Types" lineEndContext="#stay">
0144         <DetectChar char="&quot;" attribute="Types" context="#pop#pop"/>
0145         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0146         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0147         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0148       </context>
0149 
0150       <context name="Jsp Single Quoted Custom Tag Value" attribute="Types" lineEndContext="#stay">
0151         <DetectChar char="'" attribute="Types" context="#pop#pop"/>
0152         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0153         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0154         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0155       </context>
0156 
0157       <context name="Jsp Scriptlet" attribute="Normal Text" lineEndContext="#stay">
0158         <Detect2Chars char="%" char1="&gt;" attribute="Jsp Scriptlet" context="#pop" endRegion="JspScriptlet"/>
0159         <RegExpr String="&lt;\s*jsp:(declaration|expression|scriptlet)\s*&gt;" attribute="Jsp Scriptlet" context="Jsp Scriptlet"/>
0160         <keyword String="jsp-reserved-words" attribute="Keyword" context="#stay"/>
0161         <IncludeRules context="##Java" includeAttrib="true"/>
0162       </context>
0163 
0164       <context name="Jsp Expression" attribute="Normal Text" lineEndContext="#stay">
0165         <DetectChar char="}" attribute="Jsp Expression" context="#pop"/>
0166         <keyword String="jsp-reserved-words" attribute="Keyword" context="#stay"/>
0167         <IncludeRules context="##Java" includeAttrib="true"/>
0168       </context>
0169 
0170       <context name="Html Attribute" attribute="Identifier" lineEndContext="#stay">
0171         <RegExpr String="\/?&gt;" attribute="Normal Text" context="#pop"/>
0172         <RegExpr String="\s*=\s*" attribute="Normal Text" context="Html Value"/>
0173         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0174         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0175         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0176       </context>
0177 
0178       <context name="Html Value" attribute="Types" lineEndContext="#stay">
0179         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0180         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0181         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0182         <RegExpr String="&lt;\s*\/?\s*\$?\w*:\$?\w*" attribute="Keyword" context="Jsp Custom Tag"/>
0183         <RegExpr String="(&quot;|&amp;quot;|&amp;#34;)" attribute="Types" context="Html Double Quoted Value"/>
0184         <RegExpr String="('|&amp;#39;)" attribute="Types" context="Html Single Quoted Value"/>
0185         <RegExpr String="\s*#?-?_?\.?[a-zA-Z0-9]*" attribute="Types" context="Html Unquoted Value"/>
0186         <RegExpr String="\/?&gt;" attribute="Normal Text" context="#pop#pop"/>
0187       </context>
0188 
0189       <context name="Html Double Quoted Value" attribute="Types" lineEndContext="#stay">
0190         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0191         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0192         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0193         <RegExpr String="&lt;\s*\/?\s*\$?\w*:\$?\w*" attribute="Keyword" context="Jsp Custom Tag"/>
0194         <RegExpr String="(&quot;|&amp;quot;|&amp;#34;)" attribute="Types" context="#pop#pop"/>
0195       </context>
0196 
0197       <context name="Html Single Quoted Value" attribute="Types" lineEndContext="#stay">
0198         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0199         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0200         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0201         <RegExpr String="&lt;\s*\/?\s*\$?\w*:\$?\w*" attribute="Keyword" context="Jsp Custom Tag"/>
0202         <RegExpr String="('|&amp;#39;)" attribute="Types" context="#pop#pop"/>
0203       </context>
0204 
0205       <context name="Html Unquoted Value" attribute="Types" lineEndContext="#stay">
0206         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0207         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0208         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0209         <RegExpr String="&lt;\s*\/?\s*\$?\w*:\$?\w*" attribute="Keyword" context="Jsp Custom Tag"/>
0210         <RegExpr String="\/?&gt;" attribute="Normal Text" context="#pop#pop#pop"/>
0211         <DetectSpaces attribute="Types" context="#pop#pop"/>
0212       </context>
0213 
0214       <context name="Html Comment" attribute="Html Comment" lineEndContext="#stay">
0215         <StringDetect String="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
0216         <RegExpr String="&lt;%(!|=)?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
0217         <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
0218         <RegExpr String="\/*--&gt;" attribute="Html Comment" context="#pop" endRegion="HtmlComment"/>
0219         <IncludeRules context="##Comments" />
0220       </context>
0221 
0222     </contexts>
0223 
0224 
0225     <itemDatas>
0226       <itemData name="Normal Text" defStyleNum="dsNormal"/>
0227       <itemData name="Keyword" defStyleNum="dsKeyword"/>
0228       <itemData name="Identifier" defStyleNum="dsOthers"/>
0229       <itemData name="Types" defStyleNum="dsDataType"/>
0230 
0231       <itemData name="Html Comment" defStyleNum="dsComment"/>
0232 
0233       <itemData name="Jsp Directive" defStyleNum="dsBuiltIn" bold="true" italic="true"/>
0234       <itemData name="Jsp Scriptlet" defStyleNum="dsPreprocessor" bold="true" italic="false"/>
0235       <itemData name="Jsp Expression" defStyleNum="dsPreprocessor" bold="true" italic="false"/>
0236       <itemData name="Jsp Comment" defStyleNum="dsComment"/>
0237 
0238       <itemData name="Jsp Param Name" defStyleNum="dsOthers"/>
0239       <itemData name="Jsp Param Value" defStyleNum="dsString"/>
0240     </itemDatas>
0241   </highlighting>
0242 
0243   <general>
0244     <comments>
0245       <comment name="multiLine" start="&lt;%--" end="--%&gt;" region="JspComment" />
0246     </comments>
0247     <keywords casesensitive="1" />
0248   </general>
0249 </language>
0250 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->