File: jsp.xml

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (226 lines) | stat: -rw-r--r-- 11,804 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
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="&lt;%@\s*[a-zA-Z0-9_\.]*" attribute="Jsp Directive" context="Jsp Standard Directive"/>
        <RegExpr String="&lt;\s*jsp:(declaration|expression|scriptlet)\s*&gt;" attribute="Jsp Scriptlet" context="Jsp Scriptlet"/>
        <RegExpr String="&lt;\s*\/?s*jsp:[a-zA-Z0-9_\.]*" attribute="Jsp Directive" context="Jsp Xml Directive"/>
        <IncludeRules context="FindJspScriptlet"/>
        <StringDetect String="&lt;!--" attribute="Html Comment" context="Html Comment" beginRegion="HtmlComment"/>
        <IncludeRules context="FindJspCustomTag"/>
        <StringDetect String="&lt;![CDATA[" attribute="Normal Text" context="#stay"/>
        <StringDetect String="]]&gt;" attribute="Normal Text" context="#stay"/>
        <WordDetect String="&lt;script" attribute="Normal Text" context="JS" beginRegion="script" />
        <WordDetect String="&lt;style" attribute="Normal Text" context="CSS" beginRegion="style" />
        <RegExpr String="&lt;\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="&gt;" />
        <Detect2Chars attribute="Normal Text" context="#pop" char="/" char1="&gt;" endRegion="style" />
        <IncludeRules context="Html Attribute" />
      </context>

      <context name="CSS content" attribute="Normal Text" lineEndContext="#stay">
        <StringDetect attribute="Normal Text" context="#pop#pop" String="&lt;/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="&gt;" />
        <Detect2Chars attribute="Normal Text" context="#pop" char="/" char1="&gt;" 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="&lt;/script" endRegion="script" />
        <RegExpr attribute="Jsp Comment" context="JS comment close" String="//(?=.*&lt;/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="&lt;/script" endRegion="script" />
      </context>

      <context name="Jsp Standard Directive" attribute="Jsp Param Name" lineEndContext="#stay">
        <Detect2Chars char="%" char1="&gt;" 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*&gt;" 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="--%&gt;" attribute="Jsp Comment" context="#pop" endRegion="JspComment"/>
        <DetectSpaces />
        <IncludeRules context="##Comments" />
      </context>

      <context name="Jsp Custom Tag" attribute="Identifier" lineEndContext="#stay">
        <RegExpr String="\/?&gt;" 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="&quot;" 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="&gt;" attribute="Jsp Directive" context="#pop#pop"/>
      </context>

      <context name="Jsp Xml Directive Value" attribute="Jsp Param Value" lineEndContext="#stay">
        <IncludeRules context="FindJspScriptlet"/>
        <DetectChar char="&quot;" 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*&gt;" attribute="Jsp Directive" context="#pop#pop"/>
      </context>

      <context name="Jsp Custom Tag Value" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="FindJspScriptlet"/>
        <DetectChar char="&quot;" attribute="Types" context="Jsp Double Quoted Custom Tag Value"/>
        <DetectChar char="'" attribute="Types" context="Jsp Single Quoted Custom Tag Value"/>
        <RegExpr String="\/?&gt;" attribute="Normal Text" context="#pop#pop"/>
      </context>

      <context name="Jsp Double Quoted Param Value" attribute="Jsp Param Value" lineEndContext="#stay">
        <DetectChar char="&quot;" 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="&quot;" 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="&gt;" attribute="Jsp Scriptlet" context="#pop" endRegion="JspScriptlet"/>
        <RegExpr String="&lt;\s*jsp:(declaration|expression|scriptlet)\s*&gt;" 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="\/?&gt;" 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;|&amp;quot;|&amp;#34;)" attribute="Types" context="Html Double Quoted Value"/>
        <RegExpr String="('|&amp;#39;)" attribute="Types" context="Html Single Quoted Value"/>
        <RegExpr String="\s*#?-?_?\.?[a-zA-Z0-9]*" attribute="Types" context="Html Unquoted Value"/>
        <RegExpr String="\/?&gt;" 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;|&amp;quot;|&amp;#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="('|&amp;#39;)" attribute="Types" context="#pop#pop"/>
      </context>

      <context name="Html Unquoted Value" attribute="Types" lineEndContext="#stay">
        <IncludeRules context="FindJspScriptlet"/>
        <IncludeRules context="FindJspCustomTag"/>
        <RegExpr String="\/?&gt;" 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="\/*--&gt;" 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="&lt;%--" attribute="Jsp Comment" context="Jsp Comment" beginRegion="JspComment"/>
        <RegExpr String="&lt;%[!=]?" attribute="Jsp Scriptlet" context="Jsp Scriptlet" beginRegion="JspScriptlet"/>
      </context>

      <context name="FindJspCustomTag" attribute="Normal Text" lineEndContext="#stay">
        <RegExpr String="&lt;\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="&lt;%--" end="--%&gt;" region="JspComment" />
    </comments>
    <keywords casesensitive="1" />
  </general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->