Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?xml version="1.0"?>
2
<!-- $Id: javascript.xml,v 1.2 2007/06/05 21:57:21 ssttoo Exp $ -->
3
 
4
<highlight lang="javascript" case = "no">
5
 
6
  <authors>
7
    <author name="Andrey Demenev" email ="demenev@gmail.com"/>
8
  </authors>
9
 
10
  <default innerClass="code" />
11
 
12
  <region name="block" delimClass="brackets" innerClass="code" start="\{" end="\}">
13
    <contains all="yes"/>
14
  </region>
15
 
16
  <region name="brackets" delimClass="brackets" innerClass="code" start="\(" end="\)">
17
    <contains all="yes"/>
18
  </region>
19
 
20
  <region name="sqbrackets" delimClass="brackets" innerClass="code" start="\[" end="\]">
21
    <contains all="yes"/>
22
  </region>
23
 
24
 
25
  <region name="mlcomment" innerClass="comment" start="\/\*" end="\*\/" >
26
    <contains block="cvstag"/>
27
  </region>
28
 
29
  <region name="strdouble" delimClass="quotes" innerClass="string" start="&quot;" end="&quot;"/>
30
 
31
  <region name="strsingle" delimClass="quotes" innerClass="string" start="'" end="'" />
32
 
33
  <block name="escaped" match="\\\\|\\&quot;|\\'|\\`" innerClass="special" contained="yes">
34
    <onlyin region="strsingle"/>
35
  </block>
36
 
37
  <block name="descaped" match="\\\\|\\&quot;|\\'|\\`|\\t|\\n|\\r" innerClass="special" contained="yes">
38
    <onlyin region="strdouble"/>
39
  </block>
40
 
41
  <region name="comment" start="\/\/" end="/$/m" innerClass="comment">
42
    <contains block="cvstag"/>
43
  </region>
44
 
45
  <block name="identifier" match="[a-z_]\w*" innerClass="identifier" case="no"/>
46
 
47
  <block name="number" match="\d*\.?\d+" innerClass="number"/>
48
 
49
  <block name="url" match="((https?|ftp):\/\/[\w\?\.\-\&amp;=\/%+]+)|(^|[\s,!?])www\.\w+\.\w+[\w\?\.\&amp;=\/%+]*" innerClass="url" contained="yes">
50
    <onlyin region="mlcomment"/>
51
    <onlyin region="comment"/>
52
  </block>
53
 
54
  <block name="email" match="\w+[\.\w\-]+@(\w+[\.\w\-])+" innerClass="url" contained="yes">
55
    <onlyin region="mlcomment"/>
56
    <onlyin region="comment"/>
57
  </block>
58
 
59
  <block name="note" match="\b(note|fixme):" innerClass="inlinedoc" contained="yes" case="no">
60
    <onlyin region="mlcomment"/>
61
    <onlyin region="comment"/>
62
  </block>
63
 
64
 
65
  <block name="cvstag" match="\$\w+:.+\$" innerClass="inlinedoc" contained="yes">
66
    <onlyin region="mlcomment"/>
67
    <onlyin region="comment"/>
68
  </block>
69
 
70
  <keywords name="builtin" inherits="identifier" innerClass="builtin" case = "yes">
71
    <keyword match="String"/>
72
    <keyword match="Array"/>
73
    <keyword match="RegExp"/>
74
    <keyword match="Function"/>
75
    <keyword match="Math"/>
76
    <keyword match="Number"/>
77
    <keyword match="Date"/>
78
    <keyword match="Image"/>
79
    <keyword match="window"/>
80
    <keyword match="document"/>
81
    <keyword match="navigator"/>
82
    <keyword match="onAbort"/>
83
    <keyword match="onBlur"/>
84
    <keyword match="onChange"/>
85
    <keyword match="onClick"/>
86
    <keyword match="onDblClick"/>
87
    <keyword match="onDragDrop"/>
88
    <keyword match="onError"/>
89
    <keyword match="onFocus"/>
90
    <keyword match="onKeyDown"/>
91
    <keyword match="onKeyPress"/>
92
    <keyword match="onKeyUp"/>
93
    <keyword match="onLoad"/>
94
    <keyword match="onMouseDown"/>
95
    <keyword match="onMouseOver"/>
96
    <keyword match="onMouseOut"/>
97
    <keyword match="onMouseMove"/>
98
    <keyword match="onMouseUp"/>
99
    <keyword match="onMove"/>
100
    <keyword match="onReset"/>
101
    <keyword match="onResize"/>
102
    <keyword match="onSelect"/>
103
    <keyword match="onSubmit"/>
104
    <keyword match="onUnload"/>
105
  </keywords>
106
 
107
  <keywords name="reserved" inherits="identifier" innerClass="reserved" case = "yes">
108
    <keyword match="break"/>
109
    <keyword match="continue"/>
110
    <keyword match="do"/>
111
    <keyword match="while"/>
112
    <keyword match="do"/>
113
    <keyword match="export"/>
114
    <keyword match="for"/>
115
    <keyword match="in"/>
116
    <keyword match="if"/>
117
    <keyword match="else"/>
118
    <keyword match="import"/>
119
    <keyword match="return"/>
120
    <keyword match="label"/>
121
    <keyword match="switch"/>
122
    <keyword match="case"/>
123
    <keyword match="var"/>
124
    <keyword match="with"/>
125
    <keyword match="delete"/>
126
    <keyword match="new"/>
127
    <keyword match="this"/>
128
    <keyword match="typeof"/>
129
    <keyword match="void"/>
130
    <keyword match="abstract"/>
131
    <keyword match="boolean"/>
132
    <keyword match="byte"/>
133
    <keyword match="catch"/>
134
    <keyword match="char"/>
135
    <keyword match="class"/>
136
    <keyword match="const"/>
137
    <keyword match="continue"/>
138
    <keyword match="debugger"/>
139
    <keyword match="default"/>
140
    <keyword match="double"/>
141
    <keyword match="enum"/>
142
    <keyword match="extends"/>
143
    <keyword match="false"/>
144
    <keyword match="final"/>
145
    <keyword match="finally"/>
146
    <keyword match="float"/>
147
    <keyword match="function"/>
148
    <keyword match="implements"/>
149
    <keyword match="goto"/>
150
    <keyword match="in"/>
151
    <keyword match="instanceof"/>
152
    <keyword match="int"/>
153
    <keyword match="interface"/>
154
    <keyword match="long"/>
155
    <keyword match="native"/>
156
    <keyword match="null"/>
157
    <keyword match="package"/>
158
    <keyword match="private"/>
159
    <keyword match="protected"/>
160
    <keyword match="public"/>
161
    <keyword match="short"/>
162
    <keyword match="static"/>
163
    <keyword match="super"/>
164
    <keyword match="synchronized"/>
165
    <keyword match="throw"/>
166
    <keyword match="throws"/>
167
    <keyword match="transient"/>
168
    <keyword match="true"/>
169
    <keyword match="try"/>
170
    <keyword match="volatile"/>
171
  </keywords>
172
 
173
</highlight>