feat: add missing KF6 framework recipes
This commit is contained in:
@@ -0,0 +1,226 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language>
|
||||
<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">
|
||||
<highlighting>
|
||||
|
||||
<list name="jsp-reserved-words">
|
||||
<item>and</item>
|
||||
<item>eq</item>
|
||||
<item>gt</item>
|
||||
<item>true</item>
|
||||
<item>instanceof</item>
|
||||
<item>or</item>
|
||||
<item>ne</item>
|
||||
<item>le</item>
|
||||
<item>false</item>
|
||||
<item>empty</item>
|
||||
<item>not</item>
|
||||
<item>lt</item>
|
||||
<item>ge</item>
|
||||
<item>null</item>
|
||||
<item>div</item>
|
||||
<item>mod</item>
|
||||
</list>
|
||||
|
||||
<contexts>
|
||||
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr String="<%@\s*[a-zA-Z0-9_\.]*" attribute="Jsp Directive" context="Jsp Standard Directive"/>
|
||||
<RegExpr String="<\s*jsp:(declaration|expression|scriptlet)\s*>" attribute="Jsp Scriptlet" context="Jsp Scriptlet"/>
|
||||
<RegExpr String="<\s*\/?s*jsp:[a-zA-Z0-9_\.]*" attribute="Jsp Directive" context="Jsp Xml Directive"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<StringDetect String="<!--" attribute="Html Comment" context="Html Comment" beginRegion="HtmlComment"/>
|
||||
<IncludeRules context="FindJspCustomTag"/>
|
||||
<StringDetect String="<![CDATA[" attribute="Normal Text" context="#stay"/>
|
||||
<StringDetect String="]]>" attribute="Normal Text" context="#stay"/>
|
||||
<WordDetect String="<script" attribute="Normal Text" context="JS" beginRegion="script" />
|
||||
<WordDetect String="<style" attribute="Normal Text" context="CSS" beginRegion="style" />
|
||||
<RegExpr String="<\s*\/?\s*[a-zA-Z0-9_]*" attribute="Normal Text" context="Html Attribute"/>
|
||||
</context>
|
||||
|
||||
<context name="CSS" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Normal Text" context="CSS content" char=">" />
|
||||
<Detect2Chars attribute="Normal Text" context="#pop" char="/" char1=">" endRegion="style" />
|
||||
<IncludeRules context="Html Attribute" />
|
||||
</context>
|
||||
|
||||
<context name="CSS content" attribute="Normal Text" lineEndContext="#stay">
|
||||
<StringDetect attribute="Normal Text" context="#pop#pop" String="</style>" endRegion="style" />
|
||||
<IncludeRules context="##CSS" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="JS" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar attribute="Normal Text" context="JS content" char=">" />
|
||||
<Detect2Chars attribute="Normal Text" context="#pop" char="/" char1=">" endRegion="script" />
|
||||
<IncludeRules context="Html Attribute" />
|
||||
</context>
|
||||
|
||||
<context name="JS content" attribute="Normal Text" lineEndContext="#stay">
|
||||
<WordDetect attribute="Normal Text" context="#pop#pop!Html Attribute" String="</script" endRegion="script" />
|
||||
<RegExpr attribute="Jsp Comment" context="JS comment close" String="//(?=.*</script)" />
|
||||
<IncludeRules context="Normal##JavaScript" includeAttrib="true"/>
|
||||
</context>
|
||||
<context name="JS comment close" attribute="Jsp Comment" lineEndContext="#stay">
|
||||
<DetectSpaces/>
|
||||
<IncludeRules context="##Comments" />
|
||||
<DetectIdentifier/>
|
||||
<StringDetect attribute="Normal Text" context="#pop#pop#pop" String="</script" endRegion="script" />
|
||||
</context>
|
||||
|
||||
<context name="Jsp Standard Directive" attribute="Jsp Param Name" lineEndContext="#stay">
|
||||
<Detect2Chars char="%" char1=">" attribute="Jsp Directive" context="#pop"/>
|
||||
<RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Standard Directive Value"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<IncludeRules context="FindJspCustomTag"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Xml Directive" attribute="Jsp Param Name" lineEndContext="#stay">
|
||||
<RegExpr String="\s*\/?\s*>" attribute="Jsp Directive" context="#pop"/>
|
||||
<RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Xml Directive Value"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Comment" attribute="Jsp Comment" lineEndContext="#stay">
|
||||
<StringDetect String="--%>" attribute="Jsp Comment" context="#pop" endRegion="JspComment"/>
|
||||
<DetectSpaces />
|
||||
<IncludeRules context="##Comments" />
|
||||
</context>
|
||||
|
||||
<context name="Jsp Custom Tag" attribute="Identifier" lineEndContext="#stay">
|
||||
<RegExpr String="\/?>" attribute="Keyword" context="#pop"/>
|
||||
<RegExpr String="\s*=\s*" attribute="Normal Text" context="Jsp Custom Tag Value"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Standard Directive Value" attribute="Jsp Param Value" lineEndContext="#stay">
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<DetectChar char=""" attribute="Jsp Param Value" context="Jsp Double Quoted Param Value"/>
|
||||
<DetectChar char="'" attribute="Jsp Param Value" context="Jsp Single Quoted Param Value"/>
|
||||
<Detect2Chars char="%" char1=">" attribute="Jsp Directive" context="#pop#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Xml Directive Value" attribute="Jsp Param Value" lineEndContext="#stay">
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<DetectChar char=""" attribute="Jsp Param Value" context="Jsp Double Quoted Param Value"/>
|
||||
<DetectChar char="'" attribute="Jsp Param Value" context="Jsp Single Quoted Param Value"/>
|
||||
<RegExpr String="\s*\/?\s*>" attribute="Jsp Directive" context="#pop#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Custom Tag Value" attribute="Normal Text" lineEndContext="#stay">
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<DetectChar char=""" attribute="Types" context="Jsp Double Quoted Custom Tag Value"/>
|
||||
<DetectChar char="'" attribute="Types" context="Jsp Single Quoted Custom Tag Value"/>
|
||||
<RegExpr String="\/?>" attribute="Normal Text" context="#pop#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Double Quoted Param Value" attribute="Jsp Param Value" lineEndContext="#stay">
|
||||
<DetectChar char=""" attribute="Jsp Param Value" context="#pop#pop"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Single Quoted Param Value" attribute="Jsp Param Value" lineEndContext="#stay">
|
||||
<DetectChar char="'" attribute="Jsp Param Value" context="#pop#pop"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Double Quoted Custom Tag Value" attribute="Types" lineEndContext="#stay">
|
||||
<DetectChar char=""" attribute="Types" context="#pop#pop"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Single Quoted Custom Tag Value" attribute="Types" lineEndContext="#stay">
|
||||
<DetectChar char="'" attribute="Types" context="#pop#pop"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Scriptlet" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars char="%" char1=">" attribute="Jsp Scriptlet" context="#pop" endRegion="JspScriptlet"/>
|
||||
<RegExpr String="<\s*jsp:(declaration|expression|scriptlet)\s*>" attribute="Jsp Scriptlet" context="Jsp Scriptlet"/>
|
||||
<keyword String="jsp-reserved-words" attribute="Keyword" context="#stay"/>
|
||||
<IncludeRules context="##Java" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="Jsp Expression" attribute="Normal Text" lineEndContext="#stay">
|
||||
<DetectChar char="}" attribute="Jsp Expression" context="#pop"/>
|
||||
<keyword String="jsp-reserved-words" attribute="Keyword" context="#stay"/>
|
||||
<IncludeRules context="##Java" includeAttrib="true"/>
|
||||
</context>
|
||||
|
||||
<context name="Html Attribute" attribute="Identifier" lineEndContext="#stay">
|
||||
<RegExpr String="\/?>" attribute="Normal Text" context="#pop"/>
|
||||
<RegExpr String="\s*=\s*" attribute="Normal Text" context="Html Value"/>
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
</context>
|
||||
|
||||
<context name="Html Value" attribute="Types" lineEndContext="#stay">
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<IncludeRules context="FindJspCustomTag"/>
|
||||
<RegExpr String="("|&quot;|&#34;)" attribute="Types" context="Html Double Quoted Value"/>
|
||||
<RegExpr String="('|&#39;)" attribute="Types" context="Html Single Quoted Value"/>
|
||||
<RegExpr String="\s*#?-?_?\.?[a-zA-Z0-9]*" attribute="Types" context="Html Unquoted Value"/>
|
||||
<RegExpr String="\/?>" attribute="Normal Text" context="#pop#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Html Double Quoted Value" attribute="Types" lineEndContext="#stay">
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<IncludeRules context="FindJspCustomTag"/>
|
||||
<RegExpr String="("|&quot;|&#34;)" attribute="Types" context="#pop#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Html Single Quoted Value" attribute="Types" lineEndContext="#stay">
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<IncludeRules context="FindJspCustomTag"/>
|
||||
<RegExpr String="('|&#39;)" attribute="Types" context="#pop#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Html Unquoted Value" attribute="Types" lineEndContext="#stay">
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<IncludeRules context="FindJspCustomTag"/>
|
||||
<RegExpr String="\/?>" attribute="Normal Text" context="#pop#pop#pop"/>
|
||||
<DetectSpaces attribute="Types" context="#pop#pop"/>
|
||||
</context>
|
||||
|
||||
<context name="Html Comment" attribute="Html Comment" lineEndContext="#stay">
|
||||
<IncludeRules context="FindJspScriptlet"/>
|
||||
<RegExpr String="\/*-->" attribute="Html Comment" context="#pop" endRegion="HtmlComment"/>
|
||||
<IncludeRules context="##Comments" />
|
||||
</context>
|
||||
|
||||
<context name="FindJspScriptlet" attribute="Normal Text" lineEndContext="#stay">
|
||||
<Detect2Chars char="$" char1="{" attribute="Jsp Expression" context="Jsp Expression"/>
|
||||
<StringDetect String="<%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
|
||||
<RegExpr String="<%[!=]?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
|
||||
</context>
|
||||
|
||||
<context name="FindJspCustomTag" attribute="Normal Text" lineEndContext="#stay">
|
||||
<RegExpr String="<\s*\/?\s*\$?\w*:\$?\w*" attribute="Keyword" context="Jsp Custom Tag"/>
|
||||
</context>
|
||||
|
||||
</contexts>
|
||||
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal Text" defStyleNum="dsNormal"/>
|
||||
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
||||
<itemData name="Identifier" defStyleNum="dsOthers"/>
|
||||
<itemData name="Types" defStyleNum="dsDataType"/>
|
||||
|
||||
<itemData name="Html Comment" defStyleNum="dsComment"/>
|
||||
|
||||
<itemData name="Jsp Directive" defStyleNum="dsBuiltIn" bold="true" italic="true"/>
|
||||
<itemData name="Jsp Scriptlet" defStyleNum="dsPreprocessor" bold="true" italic="false"/>
|
||||
<itemData name="Jsp Expression" defStyleNum="dsPreprocessor" bold="true" italic="false"/>
|
||||
<itemData name="Jsp Comment" defStyleNum="dsComment"/>
|
||||
|
||||
<itemData name="Jsp Param Name" defStyleNum="dsOthers"/>
|
||||
<itemData name="Jsp Param Value" defStyleNum="dsString"/>
|
||||
</itemDatas>
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="multiLine" start="<%--" end="--%>" region="JspComment" />
|
||||
</comments>
|
||||
<keywords casesensitive="1" />
|
||||
</general>
|
||||
</language>
|
||||
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
|
||||
Reference in New Issue
Block a user