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="11" kateversion="5.79" 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="<%@\s*[a-zA-Z0-9_\.]*" attribute="Jsp Directive" context="Jsp Standard Directive"/> 0028 <RegExpr String="<\s*jsp:(declaration|expression|scriptlet)\s*>" attribute="Jsp Scriptlet" context="Jsp Scriptlet"/> 0029 <RegExpr String="<\s*\/?s*jsp:[a-zA-Z0-9_\.]*" attribute="Jsp Directive" context="Jsp Xml Directive"/> 0030 <IncludeRules context="FindJspScriptlet"/> 0031 <StringDetect String="<!--" attribute="Html Comment" context="Html Comment" beginRegion="HtmlComment"/> 0032 <IncludeRules context="FindJspCustomTag"/> 0033 <StringDetect String="<![CDATA[" attribute="Normal Text" context="#stay"/> 0034 <StringDetect String="]]>" attribute="Normal Text" context="#stay"/> 0035 <WordDetect String="<script" attribute="Normal Text" context="JS" beginRegion="script" /> 0036 <WordDetect String="<style" attribute="Normal Text" context="CSS" beginRegion="style" /> 0037 <RegExpr String="<\s*\/?\s*[a-zA-Z0-9_]*" attribute="Normal Text" context="Html Attribute"/> 0038 </context> 0039 0040 <context name="CSS" attribute="Normal Text" lineEndContext="#stay"> 0041 <DetectChar attribute="Normal Text" context="CSS content" char=">" /> 0042 <Detect2Chars attribute="Normal Text" context="#pop" char="/" char1=">" endRegion="style" /> 0043 <IncludeRules context="Html Attribute" /> 0044 </context> 0045 0046 <context name="CSS content" attribute="Normal Text" lineEndContext="#stay"> 0047 <StringDetect attribute="Normal Text" context="#pop#pop" String="</style>" endRegion="style" /> 0048 <IncludeRules context="##CSS" includeAttrib="true"/> 0049 </context> 0050 0051 <context name="JS" attribute="Normal Text" lineEndContext="#stay"> 0052 <DetectChar attribute="Normal Text" context="JS content" char=">" /> 0053 <Detect2Chars attribute="Normal Text" context="#pop" char="/" char1=">" endRegion="script" /> 0054 <IncludeRules context="Html Attribute" /> 0055 </context> 0056 0057 <context name="JS content" attribute="Normal Text" lineEndContext="#stay"> 0058 <WordDetect attribute="Normal Text" context="#pop#pop!Html Attribute" String="</script" endRegion="script" /> 0059 <RegExpr attribute="Jsp Comment" context="JS comment close" String="//(?=.*</script)" /> 0060 <IncludeRules context="Normal##JavaScript" includeAttrib="true"/> 0061 </context> 0062 <context name="JS comment close" attribute="Jsp Comment" lineEndContext="#stay"> 0063 <DetectSpaces/> 0064 <IncludeRules context="##Comments" /> 0065 <DetectIdentifier/> 0066 <StringDetect attribute="Normal Text" context="#pop#pop#pop" String="</script" endRegion="script" /> 0067 </context> 0068 0069 <context name="Jsp Standard Directive" attribute="Jsp Param Name" lineEndContext="#stay"> 0070 <Detect2Chars char="%" char1=">" attribute="Jsp Directive" context="#pop"/> 0071 <RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Standard Directive Value"/> 0072 <IncludeRules context="FindJspScriptlet"/> 0073 <IncludeRules context="FindJspCustomTag"/> 0074 </context> 0075 0076 <context name="Jsp Xml Directive" attribute="Jsp Param Name" lineEndContext="#stay"> 0077 <RegExpr String="\s*\/?\s*>" attribute="Jsp Directive" context="#pop"/> 0078 <RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Xml Directive Value"/> 0079 <IncludeRules context="FindJspScriptlet"/> 0080 </context> 0081 0082 <context name="Jsp Comment" attribute="Jsp Comment" lineEndContext="#stay"> 0083 <StringDetect String="--%>" attribute="Jsp Comment" context="#pop" endRegion="JspComment"/> 0084 <DetectSpaces /> 0085 <IncludeRules context="##Comments" /> 0086 </context> 0087 0088 <context name="Jsp Custom Tag" attribute="Identifier" lineEndContext="#stay"> 0089 <RegExpr String="\/?>" attribute="Keyword" context="#pop"/> 0090 <RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Custom Tag Value"/> 0091 <IncludeRules context="FindJspScriptlet"/> 0092 </context> 0093 0094 <context name="Jsp Standard Directive Value" attribute="Jsp Param Value" lineEndContext="#stay"> 0095 <IncludeRules context="FindJspScriptlet"/> 0096 <DetectChar char=""" attribute="Jsp Param Value" context="Jsp Double Quoted Param Value"/> 0097 <DetectChar char="'" attribute="Jsp Param Value" context="Jsp Single Quoted Param Value"/> 0098 <Detect2Chars char="%" char1=">" attribute="Jsp Directive" context="#pop#pop"/> 0099 </context> 0100 0101 <context name="Jsp Xml Directive Value" attribute="Jsp Param Value" lineEndContext="#stay"> 0102 <IncludeRules context="FindJspScriptlet"/> 0103 <DetectChar char=""" attribute="Jsp Param Value" context="Jsp Double Quoted Param Value"/> 0104 <DetectChar char="'" attribute="Jsp Param Value" context="Jsp Single Quoted Param Value"/> 0105 <RegExpr String="\s*\/?\s*>" attribute="Jsp Directive" context="#pop#pop"/> 0106 </context> 0107 0108 <context name="Jsp Custom Tag Value" attribute="Normal Text" lineEndContext="#stay"> 0109 <IncludeRules context="FindJspScriptlet"/> 0110 <DetectChar char=""" attribute="Types" context="Jsp Double Quoted Custom Tag Value"/> 0111 <DetectChar char="'" attribute="Types" context="Jsp Single Quoted Custom Tag Value"/> 0112 <RegExpr String="\/?>" attribute="Normal Text" context="#pop#pop"/> 0113 </context> 0114 0115 <context name="Jsp Double Quoted Param Value" attribute="Jsp Param Value" lineEndContext="#stay"> 0116 <DetectChar char=""" attribute="Jsp Param Value" context="#pop#pop"/> 0117 <IncludeRules context="FindJspScriptlet"/> 0118 </context> 0119 0120 <context name="Jsp Single Quoted Param Value" attribute="Jsp Param Value" lineEndContext="#stay"> 0121 <DetectChar char="'" attribute="Jsp Param Value" context="#pop#pop"/> 0122 <IncludeRules context="FindJspScriptlet"/> 0123 </context> 0124 0125 <context name="Jsp Double Quoted Custom Tag Value" attribute="Types" lineEndContext="#stay"> 0126 <DetectChar char=""" attribute="Types" context="#pop#pop"/> 0127 <IncludeRules context="FindJspScriptlet"/> 0128 </context> 0129 0130 <context name="Jsp Single Quoted Custom Tag Value" attribute="Types" lineEndContext="#stay"> 0131 <DetectChar char="'" attribute="Types" context="#pop#pop"/> 0132 <IncludeRules context="FindJspScriptlet"/> 0133 </context> 0134 0135 <context name="Jsp Scriptlet" attribute="Normal Text" lineEndContext="#stay"> 0136 <Detect2Chars char="%" char1=">" attribute="Jsp Scriptlet" context="#pop" endRegion="JspScriptlet"/> 0137 <RegExpr String="<\s*jsp:(declaration|expression|scriptlet)\s*>" attribute="Jsp Scriptlet" context="Jsp Scriptlet"/> 0138 <keyword String="jsp-reserved-words" attribute="Keyword" context="#stay"/> 0139 <IncludeRules context="##Java" includeAttrib="true"/> 0140 </context> 0141 0142 <context name="Jsp Expression" attribute="Normal Text" lineEndContext="#stay"> 0143 <DetectChar char="}" attribute="Jsp Expression" context="#pop"/> 0144 <keyword String="jsp-reserved-words" attribute="Keyword" context="#stay"/> 0145 <IncludeRules context="##Java" includeAttrib="true"/> 0146 </context> 0147 0148 <context name="Html Attribute" attribute="Identifier" lineEndContext="#stay"> 0149 <RegExpr String="\/?>" attribute="Normal Text" context="#pop"/> 0150 <RegExpr String="\s*=\s*" attribute="Normal Text" context="Html Value"/> 0151 <IncludeRules context="FindJspScriptlet"/> 0152 </context> 0153 0154 <context name="Html Value" attribute="Types" lineEndContext="#stay"> 0155 <IncludeRules context="FindJspScriptlet"/> 0156 <IncludeRules context="FindJspCustomTag"/> 0157 <RegExpr String="("|&quot;|&#34;)" attribute="Types" context="Html Double Quoted Value"/> 0158 <RegExpr String="('|&#39;)" attribute="Types" context="Html Single Quoted Value"/> 0159 <RegExpr String="\s*#?-?_?\.?[a-zA-Z0-9]*" attribute="Types" context="Html Unquoted Value"/> 0160 <RegExpr String="\/?>" attribute="Normal Text" context="#pop#pop"/> 0161 </context> 0162 0163 <context name="Html Double Quoted Value" attribute="Types" lineEndContext="#stay"> 0164 <IncludeRules context="FindJspScriptlet"/> 0165 <IncludeRules context="FindJspCustomTag"/> 0166 <RegExpr String="("|&quot;|&#34;)" attribute="Types" context="#pop#pop"/> 0167 </context> 0168 0169 <context name="Html Single Quoted Value" attribute="Types" lineEndContext="#stay"> 0170 <IncludeRules context="FindJspScriptlet"/> 0171 <IncludeRules context="FindJspCustomTag"/> 0172 <RegExpr String="('|&#39;)" attribute="Types" context="#pop#pop"/> 0173 </context> 0174 0175 <context name="Html Unquoted Value" attribute="Types" lineEndContext="#stay"> 0176 <IncludeRules context="FindJspScriptlet"/> 0177 <IncludeRules context="FindJspCustomTag"/> 0178 <RegExpr String="\/?>" attribute="Normal Text" context="#pop#pop#pop"/> 0179 <DetectSpaces attribute="Types" context="#pop#pop"/> 0180 </context> 0181 0182 <context name="Html Comment" attribute="Html Comment" lineEndContext="#stay"> 0183 <IncludeRules context="FindJspScriptlet"/> 0184 <RegExpr String="\/*-->" attribute="Html Comment" context="#pop" endRegion="HtmlComment"/> 0185 <IncludeRules context="##Comments" /> 0186 </context> 0187 0188 <context name="FindJspScriptlet" attribute="Normal Text" lineEndContext="#stay"> 0189 <Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/> 0190 <StringDetect String="<%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/> 0191 <RegExpr String="<%[!=]?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/> 0192 </context> 0193 0194 <context name="FindJspCustomTag" attribute="Normal Text" lineEndContext="#stay"> 0195 <RegExpr String="<\s*\/?\s*\$?\w*:\$?\w*" attribute="Keyword" context="Jsp Custom Tag"/> 0196 </context> 0197 0198 </contexts> 0199 0200 0201 <itemDatas> 0202 <itemData name="Normal Text" defStyleNum="dsNormal"/> 0203 <itemData name="Keyword" defStyleNum="dsKeyword"/> 0204 <itemData name="Identifier" defStyleNum="dsOthers"/> 0205 <itemData name="Types" defStyleNum="dsDataType"/> 0206 0207 <itemData name="Html Comment" defStyleNum="dsComment"/> 0208 0209 <itemData name="Jsp Directive" defStyleNum="dsBuiltIn" bold="true" italic="true"/> 0210 <itemData name="Jsp Scriptlet" defStyleNum="dsPreprocessor" bold="true" italic="false"/> 0211 <itemData name="Jsp Expression" defStyleNum="dsPreprocessor" bold="true" italic="false"/> 0212 <itemData name="Jsp Comment" defStyleNum="dsComment"/> 0213 0214 <itemData name="Jsp Param Name" defStyleNum="dsOthers"/> 0215 <itemData name="Jsp Param Value" defStyleNum="dsString"/> 0216 </itemDatas> 0217 </highlighting> 0218 0219 <general> 0220 <comments> 0221 <comment name="multiLine" start="<%--" end="--%>" region="JspComment" /> 0222 </comments> 0223 <keywords casesensitive="1" /> 0224 </general> 0225 </language> 0226 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->