uv 0.0.7.2 → 0.0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uv/{finding_syntaxes.rb → finding_syntax_nodes.rb} +30 -21
- data/lib/uv/syntaxes.rb +51 -0
- data/lib/uv/version.rb +1 -1
- data/lib/uv.rb +19 -12
- data/syntax/build.syntax +20 -20
- data/syntax/erlang.syntax +404 -404
- data/syntax/perl.syntax +426 -430
- data/test/test_uv.rb +14 -0
- metadata +9 -9
- data/syntax/mootools.syntax +0 -572
data/test/test_uv.rb
CHANGED
@@ -6,18 +6,32 @@ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
|
6
6
|
require 'uv'
|
7
7
|
|
8
8
|
class UvTest < Test::Unit::TestCase
|
9
|
+
|
10
|
+
Uv.debug=false
|
11
|
+
|
9
12
|
def test_parses_blank
|
10
13
|
assert_equal %(<pre class="mac_classic"></pre>), Uv.parse('', 'xhtml', 'css')
|
11
14
|
end
|
12
15
|
|
16
|
+
def test_init_syntaxes
|
17
|
+
assert_include Uv.init_syntaxes.keys, 'css'
|
18
|
+
end
|
19
|
+
|
13
20
|
def test_debugs
|
14
21
|
assert_kind_of Textpow::DebugProcessor, Uv.debug('', 'css')
|
15
22
|
end
|
16
23
|
|
17
24
|
def test_find_syntaxes_by_ext
|
25
|
+
Uv.init_syntaxes
|
18
26
|
assert_instance_of Array, Uv.find_syntaxes_by_ext("css")
|
19
27
|
assert_instance_of Textpow::SyntaxNode, Uv.find_syntaxes_by_ext("css").first
|
20
28
|
assert_equal "CSS", Uv.find_syntaxes_by_ext("css").first.name
|
21
29
|
end
|
22
30
|
|
31
|
+
def test_find_syntaxes
|
32
|
+
assert_equal [], Uv.find_syntaxes(["not_a_syntax_ext"])
|
33
|
+
assert_equal [], Uv.find_syntaxes([''])
|
34
|
+
assert_equal [], Uv.find_syntaxes([])
|
35
|
+
end
|
36
|
+
|
23
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.7.
|
4
|
+
version: 0.0.7.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2011-10-04 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: spox-textpow
|
17
|
-
requirement: &
|
17
|
+
requirement: &70213148526180 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70213148526180
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: spox-plist
|
28
|
-
requirement: &
|
28
|
+
requirement: &70213148525640 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70213148525640
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rake
|
39
|
-
requirement: &
|
39
|
+
requirement: &70213148525200 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70213148525200
|
48
48
|
description: Ruby powered syntax highlighting. Ruby 1.9 port of Ultraviolet
|
49
49
|
email:
|
50
50
|
- spox@modspox.com
|
@@ -65,8 +65,9 @@ files:
|
|
65
65
|
- bin/uv
|
66
66
|
- lib/uv.rb
|
67
67
|
- lib/uv/engine.rb
|
68
|
-
- lib/uv/
|
68
|
+
- lib/uv/finding_syntax_nodes.rb
|
69
69
|
- lib/uv/render_processor.rb
|
70
|
+
- lib/uv/syntaxes.rb
|
70
71
|
- lib/uv/utility.rb
|
71
72
|
- lib/uv/version.rb
|
72
73
|
- render/latex/active4d.render
|
@@ -204,7 +205,6 @@ files:
|
|
204
205
|
- syntax/mod_perl.syntax
|
205
206
|
- syntax/modula-3.syntax
|
206
207
|
- syntax/moinmoin.syntax
|
207
|
-
- syntax/mootools.syntax
|
208
208
|
- syntax/movable_type.syntax
|
209
209
|
- syntax/multimarkdown.syntax
|
210
210
|
- syntax/objective-c++.syntax
|
data/syntax/mootools.syntax
DELETED
@@ -1,572 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: MooTools
|
3
|
-
scopeName: source.js.mootools
|
4
|
-
repository:
|
5
|
-
array-functions:
|
6
|
-
name: meta.function.array.js.mootools
|
7
|
-
endCaptures:
|
8
|
-
"1":
|
9
|
-
name: support.function.array.js.mootools
|
10
|
-
begin: (\$(?:each|A)\()
|
11
|
-
contentName: variable.parameter.function.array.js.mootools
|
12
|
-
beginCaptures:
|
13
|
-
"1":
|
14
|
-
name: support.function.array.js.mootools
|
15
|
-
end: (\))
|
16
|
-
patterns:
|
17
|
-
- include: source.js
|
18
|
-
element-functions:
|
19
|
-
name: meta.function.element.js.mootools
|
20
|
-
endCaptures:
|
21
|
-
"1":
|
22
|
-
name: support.function.element.js.mootools
|
23
|
-
begin: (\$?\$\()
|
24
|
-
contentName: variable.parameter.function.element.js.mootools
|
25
|
-
beginCaptures:
|
26
|
-
"1":
|
27
|
-
name: support.function.element.js.mootools
|
28
|
-
end: (\))
|
29
|
-
patterns:
|
30
|
-
- include: source.js
|
31
|
-
hash-functions:
|
32
|
-
name: meta.function.hash.js.mootools
|
33
|
-
endCaptures:
|
34
|
-
"1":
|
35
|
-
name: support.function.hash.js.mootools
|
36
|
-
begin: (\$H\()
|
37
|
-
contentName: variable.parameter.function.hash.js.mootools
|
38
|
-
beginCaptures:
|
39
|
-
"1":
|
40
|
-
name: support.function.hash.js.mootools
|
41
|
-
end: (\))
|
42
|
-
patterns:
|
43
|
-
- include: source.js
|
44
|
-
fx-options:
|
45
|
-
patterns:
|
46
|
-
- name: support.class.keys.fx.options.js.mootools
|
47
|
-
match: \b(onStart|onComplete|transition|duration|unit|wait|fps)\b
|
48
|
-
- name: support.class.keys.fx.slide.options.js.mootools
|
49
|
-
match: \b(mode)\b
|
50
|
-
leading-space:
|
51
|
-
patterns:
|
52
|
-
- name: meta.leading-tabs
|
53
|
-
begin: ^(?=(\t| ))
|
54
|
-
end: (?=[^\t\s])
|
55
|
-
patterns:
|
56
|
-
- captures:
|
57
|
-
"6":
|
58
|
-
name: meta.even-tab.group6.spaces
|
59
|
-
"11":
|
60
|
-
name: meta.odd-tab.group11.spaces
|
61
|
-
"7":
|
62
|
-
name: meta.odd-tab.group7.spaces
|
63
|
-
"8":
|
64
|
-
name: meta.even-tab.group8.spaces
|
65
|
-
"9":
|
66
|
-
name: meta.odd-tab.group9.spaces
|
67
|
-
"1":
|
68
|
-
name: meta.odd-tab.group1.spaces
|
69
|
-
"2":
|
70
|
-
name: meta.even-tab.group2.spaces
|
71
|
-
"3":
|
72
|
-
name: meta.odd-tab.group3.spaces
|
73
|
-
"4":
|
74
|
-
name: meta.even-tab.group4.spaces
|
75
|
-
"10":
|
76
|
-
name: meta.even-tab.group10.spaces
|
77
|
-
"5":
|
78
|
-
name: meta.odd-tab.group5.spaces
|
79
|
-
match: ( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?
|
80
|
-
- captures:
|
81
|
-
"6":
|
82
|
-
name: meta.even-tab.group6.tab
|
83
|
-
"11":
|
84
|
-
name: meta.odd-tab.group11.tab
|
85
|
-
"7":
|
86
|
-
name: meta.odd-tab.group7.tab
|
87
|
-
"8":
|
88
|
-
name: meta.even-tab.group8.tab
|
89
|
-
"9":
|
90
|
-
name: meta.odd-tab.group9.tab
|
91
|
-
"1":
|
92
|
-
name: meta.odd-tab.group1.tab
|
93
|
-
"2":
|
94
|
-
name: meta.even-tab.group2.tab
|
95
|
-
"3":
|
96
|
-
name: meta.odd-tab.group3.tab
|
97
|
-
"4":
|
98
|
-
name: meta.even-tab.group4.tab
|
99
|
-
"10":
|
100
|
-
name: meta.even-tab.group10.tab
|
101
|
-
"5":
|
102
|
-
name: meta.odd-tab.group5.tab
|
103
|
-
match: (\t)(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?
|
104
|
-
comment: |
|
105
|
-
|
106
|
-
The leading-space code is the ribbon highlighing thomas Aylott contributed to source.js.prototype.
|
107
|
-
More info in this thread:
|
108
|
-
http://comox.textdrive.com/pipermail/textmate/2006-August/012373.html
|
109
|
-
|
110
|
-
dom-functions:
|
111
|
-
name: meta.function.dom.js.mootools
|
112
|
-
endCaptures:
|
113
|
-
"1":
|
114
|
-
name: support.function.dom.js.mootools
|
115
|
-
begin: (\$ES?\()
|
116
|
-
contentName: variable.parameter.function.dom.js.mootools
|
117
|
-
beginCaptures:
|
118
|
-
"1":
|
119
|
-
name: support.function.dom.js.mootools
|
120
|
-
end: (\))
|
121
|
-
patterns:
|
122
|
-
- include: source.js
|
123
|
-
uuid: 7E4B5859-2FB4-4D2A-9105-276BDE28B94E
|
124
|
-
foldingStartMarker: (^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$)
|
125
|
-
patterns:
|
126
|
-
- name: support.class.js.mootools
|
127
|
-
match: \b(Class|Array|Element|Event|Function|String)\b
|
128
|
-
comment: |-
|
129
|
-
|
130
|
-
Class
|
131
|
-
The base class object of the http://mootools.net framework.
|
132
|
-
http://docs.mootools.net/files/Core/Moo-js.html
|
133
|
-
- name: support.class.class.js.mootools
|
134
|
-
match: \b(empty|extend|implement)\b
|
135
|
-
- name: support.function.class.js.mootools
|
136
|
-
match: \b(extend|Native)\b
|
137
|
-
- name: support.function.utility.js.mootools
|
138
|
-
match: \$(type|chk|pick|random|clear)\b
|
139
|
-
comment: |
|
140
|
-
|
141
|
-
Utility
|
142
|
-
Contains Utility functions
|
143
|
-
http://docs.mootools.net/files/Core/Utility-js.html
|
144
|
-
|
145
|
-
- captures:
|
146
|
-
"1":
|
147
|
-
name: support.class.window.browser.js.mootools
|
148
|
-
match: window\.(ie|ie6|ie7|khtml|gecko)\b
|
149
|
-
- include: "#array-functions"
|
150
|
-
comment: |-
|
151
|
-
|
152
|
-
Array
|
153
|
-
A collection of The Array Object prototype methods.
|
154
|
-
http://docs.mootools.net/files/Native/Array-js.html
|
155
|
-
- name: support.class.array.js.mootools
|
156
|
-
match: \b(forEach|filter|map|every|some|indexOf|each|copy|remove|test|extend|associate)\b
|
157
|
-
- include: "#element-functions"
|
158
|
-
comment: |-
|
159
|
-
|
160
|
-
Element
|
161
|
-
Custom class to allow all of its methods to be used with any DOM element via the dollar function $.
|
162
|
-
http://docs.mootools.net/files/Native/Element-js.html
|
163
|
-
- name: support.class.element.js.mootools
|
164
|
-
match: \b(injectBefore|injectAfter|injectInside|adopt|remove|clone|replaceWith|appendText|hasClass|addClass|removeClass|toggleClass|setStyle|setStyles|setOpacity|getStyle|addEvent|removeEvent|removeEvents|fireEvent|getPrevious|getNext|getFirst|getLast|getParent|getChildren|setProperty|setProperties|setHTML|getProperty|getTag|scrollTo|getValue|getSize|getPosition|getTop|getLeft|getCoordinates)\b
|
165
|
-
- name: support.class.event.js.mootools
|
166
|
-
match: \b(stop|stopPropagation|preventDefault|bindWithEvent)\b
|
167
|
-
comment: |-
|
168
|
-
|
169
|
-
Event
|
170
|
-
Cross browser methods to manage events.
|
171
|
-
http://docs.mootools.net/files/Native/Event-js.html
|
172
|
-
- name: support.class.function.js.mootools
|
173
|
-
match: \b(create|pass|attempt|bind|bindAsEventListener|delay|periodical)\b
|
174
|
-
comment: |-
|
175
|
-
|
176
|
-
Function
|
177
|
-
A collection of The Function Object prototype methods.
|
178
|
-
http://docs.mootools.net/files/Native/Function-js.html
|
179
|
-
- name: support.class.string.js.mootools
|
180
|
-
match: \b(test|toInt|camelCase|hyphenate|capitalize|trim|clean|rgbToHex|hexToRgb)\b
|
181
|
-
comment: |-
|
182
|
-
|
183
|
-
String
|
184
|
-
A collection of The String Object prototype methods.
|
185
|
-
http://docs.mootools.net/files/Native/String-js.html
|
186
|
-
- name: support.class.number.js.mootools
|
187
|
-
match: \btoInt\b
|
188
|
-
- include: "#dom-functions"
|
189
|
-
comment: |-
|
190
|
-
|
191
|
-
DOM
|
192
|
-
Css Query related function and Element extensions.
|
193
|
-
http://docs.mootools.net/files/Addons/Dom-js.html
|
194
|
-
- name: support.class.dom.js.mootools
|
195
|
-
match: \b(getElements|getElementById|getElement|getElementsBySelector|getElementsByClassName)\b
|
196
|
-
comment: document. getElementsByClassName might belong somewhere else
|
197
|
-
- include: "#hash-functions"
|
198
|
-
comment: |-
|
199
|
-
|
200
|
-
Hash
|
201
|
-
It wraps an object that it uses internally as a map.
|
202
|
-
http://docs.mootools.net/files/Addons/Hash-js.html
|
203
|
-
-- note: several overlaps in here with named properties from array.js.mootools
|
204
|
-
- name: support.class.hash.js.mootools
|
205
|
-
match: \b(get|hasKey|set|remove|each|extend|empty|keys|values)\b
|
206
|
-
- name: support.class.color.js.mootools
|
207
|
-
match: \b(mix|invert|setHue|setSaturation|setBrightness)\b
|
208
|
-
comment: |-
|
209
|
-
|
210
|
-
Color
|
211
|
-
Creates a new Color Object, which is an array with some color specific methods.
|
212
|
-
http://docs.mootools.net/files/Addons/Color-js.html
|
213
|
-
- name: support.function.color.js.mootools
|
214
|
-
captures:
|
215
|
-
"1":
|
216
|
-
name: variable.parameter.function.js
|
217
|
-
match: \$(?:RGB|HSB)\(([^)]*)\)\b
|
218
|
-
- name: support.function.chain.js.mootools
|
219
|
-
match: \b(chain|(call|clear)Chain)\b
|
220
|
-
comment: |-
|
221
|
-
|
222
|
-
Common
|
223
|
-
Contains common implementations for custom classes.
|
224
|
-
http://docs.mootools.net/files/Addons/Common-js.html
|
225
|
-
- name: support.function.events.js.mootools
|
226
|
-
match: \b(add|fire|remove)Event\b
|
227
|
-
- name: support.function.options.js.mootools
|
228
|
-
match: \bsetOptions\b
|
229
|
-
- name: support.class.base.window.js.mootools
|
230
|
-
match: \bonDomReady\b
|
231
|
-
comment: |-
|
232
|
-
|
233
|
-
Window Base
|
234
|
-
Cross browser methods to get the window size, onDomReady method.
|
235
|
-
http://docs.mootools.net/files/Window/Window-Base-js.html
|
236
|
-
-- note: addEvent is already listed under Element
|
237
|
-
- name: support.class.size.window.js.mootools
|
238
|
-
match: \b(get(Width|Height|Scroll(Width|Height|Left|Top)))\b
|
239
|
-
comment: |-
|
240
|
-
|
241
|
-
Window Size
|
242
|
-
Cross browser methods to get various window dimensions.
|
243
|
-
http://docs.mootools.net/files/Window/Window-Size-js.html
|
244
|
-
-- note: getSize is already listed under Element
|
245
|
-
- name: support.class.ajax.js.mootools
|
246
|
-
match: \b(request|evalScripts)\b
|
247
|
-
comment: |-
|
248
|
-
|
249
|
-
Ajax
|
250
|
-
An Ajax class, For all your asynchronous needs.
|
251
|
-
http://docs.mootools.net/files/Remote/Ajax-js.html
|
252
|
-
- name: support.function.js.mootools
|
253
|
-
match: \btoQueryString\b
|
254
|
-
comment: "note: both Object and Element have a toQueryString function/property"
|
255
|
-
- name: support.class.element.js
|
256
|
-
match: \bsend\b
|
257
|
-
- name: support.function.asset.js.mootools
|
258
|
-
match: \b(javascript|css|images?)\b
|
259
|
-
comment: |-
|
260
|
-
|
261
|
-
Assets
|
262
|
-
provides dynamic loading for images, css and javascript files.
|
263
|
-
http://docs.mootools.net/files/Remote/Assets-js.html
|
264
|
-
- name: support.class.cookie.js.mootools
|
265
|
-
match: \b(set|get|remove)\b
|
266
|
-
comment: |-
|
267
|
-
|
268
|
-
Cookie
|
269
|
-
Class for creating, getting, and removing cookies.
|
270
|
-
http://docs.mootools.net/files/Remote/Assets-js.html
|
271
|
-
- name: support.class.json.js.mootools
|
272
|
-
match: \b(toString|evaluate)\b
|
273
|
-
comment: |-
|
274
|
-
|
275
|
-
Json
|
276
|
-
Simple Json parser and Stringyfier, See: http://www.json.org/
|
277
|
-
http://docs.mootools.net/files/Remote/Json-js.html
|
278
|
-
- name: support.class.json.js.mootools
|
279
|
-
match: \bJson\.Remote\b
|
280
|
-
comment: |-
|
281
|
-
|
282
|
-
Json Remote
|
283
|
-
Wrapped XHR with automated sending and receiving of Javascript Objects in Json Format.
|
284
|
-
http://docs.mootools.net/files/Remote/Json-Remote-js.html
|
285
|
-
- name: support.class.xhr.js.mootools
|
286
|
-
match: \bXHR\b
|
287
|
-
comment: |-
|
288
|
-
|
289
|
-
XHR
|
290
|
-
Contains the basic XMLHttpRequest Class Wrapper.
|
291
|
-
http://docs.mootools.net/files/Remote/XHR-js.html
|
292
|
-
- name: support.class.base.fx.js.mootools
|
293
|
-
match: \b(set|start|stop)\b
|
294
|
-
comment: |-
|
295
|
-
|
296
|
-
Fx.Base
|
297
|
-
Base class for the Mootools Effects (Moo.Fx) library.
|
298
|
-
http://docs.mootools.net/files/Effects/Fx-Base-js.html
|
299
|
-
- name: support.class.transitions.fx.js.mootools
|
300
|
-
match: \b(linear|sineInOut)\b
|
301
|
-
- name: support.class.keys.options.transitions.fx
|
302
|
-
match: \b(onStart|onComplete|transition|duration|unit|wait|fps)\b
|
303
|
-
- name: support.class.elements.fx.js.mootools
|
304
|
-
match: \b(start)\b
|
305
|
-
comment: |-
|
306
|
-
|
307
|
-
Fx.Elements
|
308
|
-
Fx.Elements allows you to apply any number of styles transitions to a selection of elements.
|
309
|
-
http://docs.mootools.net/files/Effects/Fx-Elements-js.html
|
310
|
-
- endCaptures:
|
311
|
-
"1":
|
312
|
-
name: punctuation.definition.parameters.end.js
|
313
|
-
begin: (new)\s+(Fx\.Elements)(\()
|
314
|
-
contentName: variable.parameter.fx.elements.js.mootools
|
315
|
-
beginCaptures:
|
316
|
-
"1":
|
317
|
-
name: keyword.operator.new.js
|
318
|
-
"2":
|
319
|
-
name: entity.name.type.instance.js.mootools
|
320
|
-
"3":
|
321
|
-
name: punctuation.definition.parameters.begin.js
|
322
|
-
end: (\)(;|$))
|
323
|
-
patterns:
|
324
|
-
- include: "#element-functions"
|
325
|
-
- include: "#array-functions"
|
326
|
-
- include: "#dom-functions"
|
327
|
-
- include: "#hash-functions"
|
328
|
-
- endCaptures:
|
329
|
-
"1":
|
330
|
-
name: punctuation.definition.parameters.end.js
|
331
|
-
begin: (\{)
|
332
|
-
contentName: variable.parameter.fx.elements.options.js.mootools
|
333
|
-
beginCaptures:
|
334
|
-
"1":
|
335
|
-
name: punctuation.definition.parameters.begin.js
|
336
|
-
end: (\})(?=\))
|
337
|
-
patterns:
|
338
|
-
- name: punctuation.separator.key-value.js.mootools
|
339
|
-
match: (:)
|
340
|
-
- include: "#fx-options"
|
341
|
-
- include: source.js
|
342
|
-
- name: support.class.scroll.fx.js.mootools
|
343
|
-
match: \b(scrollTo|to(Top|Bottom|Left|Right|Element))
|
344
|
-
comment: |-
|
345
|
-
|
346
|
-
Fx.Scroll
|
347
|
-
Scroll any element with an overflow, including the window element.
|
348
|
-
http://docs.mootools.net/files/Effects/Fx-Scroll-js.html
|
349
|
-
- endCaptures:
|
350
|
-
"1":
|
351
|
-
name: punctuation.definition.parameters.end.js
|
352
|
-
begin: (new)\s+(Fx\.Scroll)(\()
|
353
|
-
contentName: variable.parameter.fx.scroll.js.mootools
|
354
|
-
beginCaptures:
|
355
|
-
"1":
|
356
|
-
name: keyword.operator.new.js
|
357
|
-
"2":
|
358
|
-
name: entity.name.type.instance.js.mootools
|
359
|
-
"3":
|
360
|
-
name: punctuation.definition.parameters.begin.js
|
361
|
-
end: (\)(;|$))
|
362
|
-
patterns:
|
363
|
-
- include: "#element-functions"
|
364
|
-
- include: "#array-functions"
|
365
|
-
- include: "#dom-functions"
|
366
|
-
- include: "#hash-functions"
|
367
|
-
- endCaptures:
|
368
|
-
"1":
|
369
|
-
name: punctuation.definition.parameters.end.js
|
370
|
-
begin: (\{)
|
371
|
-
contentName: variable.parameter.fx.scroll.options.js.mootools
|
372
|
-
beginCaptures:
|
373
|
-
"1":
|
374
|
-
name: punctuation.definition.parameters.begin.js
|
375
|
-
end: (\})(?=\))
|
376
|
-
patterns:
|
377
|
-
- name: punctuation.separator.key-value.js.mootools
|
378
|
-
match: (:)
|
379
|
-
- include: "#fx-options"
|
380
|
-
- include: source.js
|
381
|
-
- name: support.class.slide.fx.js.mootools
|
382
|
-
match: \b(slide(In|Out)|hide|show|toggle)\b
|
383
|
-
comment: |-
|
384
|
-
|
385
|
-
Fx.Slide
|
386
|
-
The slide effect; slides an element in horizontally or vertically, the contents will fold inside.
|
387
|
-
http://docs.mootools.net/files/Effects/Fx-Slide-js.html
|
388
|
-
- endCaptures:
|
389
|
-
"1":
|
390
|
-
name: punctuation.definition.parameters.end.js
|
391
|
-
begin: (new)\s+(Fx\.Slide)(\()
|
392
|
-
contentName: variable.parameter.fx.slide.js.mootools
|
393
|
-
beginCaptures:
|
394
|
-
"1":
|
395
|
-
name: keyword.operator.new.js
|
396
|
-
"2":
|
397
|
-
name: entity.name.type.instance.js.mootools
|
398
|
-
"3":
|
399
|
-
name: punctuation.definition.parameters.begin.js
|
400
|
-
end: (\)(;|$))
|
401
|
-
patterns:
|
402
|
-
- include: "#element-functions"
|
403
|
-
- include: "#array-functions"
|
404
|
-
- include: "#dom-functions"
|
405
|
-
- include: "#hash-functions"
|
406
|
-
- endCaptures:
|
407
|
-
"1":
|
408
|
-
name: punctuation.definition.parameters.end.js
|
409
|
-
begin: (\{)
|
410
|
-
contentName: variable.parameter.fx.slide.options.js.mootools
|
411
|
-
beginCaptures:
|
412
|
-
"1":
|
413
|
-
name: punctuation.definition.parameters.begin.js
|
414
|
-
end: (\})(?=\))
|
415
|
-
patterns:
|
416
|
-
- name: punctuation.separator.key-value.js.mootools
|
417
|
-
match: (:)
|
418
|
-
- include: "#fx-options"
|
419
|
-
- include: source.js
|
420
|
-
- name: support.class.slide.fx.js.mootools
|
421
|
-
match: \b(hide|start)\b
|
422
|
-
comment: |-
|
423
|
-
|
424
|
-
Fx.Style
|
425
|
-
The Style effect; Extends Fx.Base, inherits all its properties.
|
426
|
-
http://docs.mootools.net/files/Effects/Fx-Style-js.html
|
427
|
-
- endCaptures:
|
428
|
-
"1":
|
429
|
-
name: punctuation.definition.parameters.end.js
|
430
|
-
begin: (new)\s+(Fx\.Style)(\()
|
431
|
-
contentName: variable.parameter.fx.style.js.mootools
|
432
|
-
beginCaptures:
|
433
|
-
"1":
|
434
|
-
name: keyword.operator.new.js
|
435
|
-
"2":
|
436
|
-
name: entity.name.type.instance.fx.style.js.mootools
|
437
|
-
"3":
|
438
|
-
name: punctuation.definition.parameters.begin.js
|
439
|
-
end: (\)(;|$))
|
440
|
-
patterns:
|
441
|
-
- include: "#element-functions"
|
442
|
-
- include: "#array-functions"
|
443
|
-
- include: "#dom-functions"
|
444
|
-
- include: "#hash-functions"
|
445
|
-
- endCaptures:
|
446
|
-
"1":
|
447
|
-
name: punctuation.definition.parameters.end.js
|
448
|
-
begin: ,\s*(\{)
|
449
|
-
contentName: variable.parameter.fx.style.options.js.mootools
|
450
|
-
beginCaptures:
|
451
|
-
"1":
|
452
|
-
name: punctuation.definition.parameters.begin.js
|
453
|
-
end: (\})(?=\))
|
454
|
-
patterns:
|
455
|
-
- name: punctuation.separator.key-value.js.mootools
|
456
|
-
match: (:)
|
457
|
-
- include: "#fx-options"
|
458
|
-
- include: source.js
|
459
|
-
- name: support.class.element.js.mootools
|
460
|
-
match: \b(effect)\b
|
461
|
-
- name: support.class.styles.fx.js.mootools
|
462
|
-
match: \b(start)\b
|
463
|
-
comment: |-
|
464
|
-
|
465
|
-
Fx.Styles
|
466
|
-
Allows you to animate multiple css properties at once; Extends Fx.Base, inherits all its properties.
|
467
|
-
http://docs.mootools.net/files/Effects/Fx-Styles-js.html
|
468
|
-
- endCaptures:
|
469
|
-
"1":
|
470
|
-
name: punctuation.definition.parameters.end.js
|
471
|
-
begin: (new)\s+(Fx\.Styles)(\()
|
472
|
-
contentName: variable.parameter.fx.styles.js.mootools
|
473
|
-
beginCaptures:
|
474
|
-
"1":
|
475
|
-
name: keyword.operator.new.js
|
476
|
-
"2":
|
477
|
-
name: entity.name.type.instance.js.mootools
|
478
|
-
"3":
|
479
|
-
name: punctuation.definition.parameters.begin.js
|
480
|
-
end: (\)(;|$))
|
481
|
-
patterns:
|
482
|
-
- include: "#element-functions"
|
483
|
-
- include: "#array-functions"
|
484
|
-
- include: "#dom-functions"
|
485
|
-
- include: "#hash-functions"
|
486
|
-
- endCaptures:
|
487
|
-
"1":
|
488
|
-
name: punctuation.definition.parameters.end.js
|
489
|
-
begin: (\{)
|
490
|
-
contentName: variable.parameter.fx.styles.options.js.mootools
|
491
|
-
beginCaptures:
|
492
|
-
"1":
|
493
|
-
name: punctuation.definition.parameters.begin.js
|
494
|
-
end: (\})(?=\))
|
495
|
-
patterns:
|
496
|
-
- name: punctuation.separator.key-value.js.mootools
|
497
|
-
match: (:)
|
498
|
-
- include: "#fx-options"
|
499
|
-
- include: source.js
|
500
|
-
- name: support.class.element.js.mootools
|
501
|
-
match: \b(effects)\b
|
502
|
-
- name: support.class.transitions.fx.js.mootools
|
503
|
-
match: \b(linear|quadIn|quadOut|quadInOut|cubicIn|cubicOut|cubicInOut|quartIn|quartOut|quartInOut|quintIn|quintOut|quintInOut|sineIn|sineOut|sineInOut|expoIn|expoOut|expoInOut|circIn|circOut|circInOut|elasticIn|elasticOut|elasticInOut|backIn|backOut|backInOut|bounceIn|bounceOut|bounceInOut)\b
|
504
|
-
comment: |-
|
505
|
-
|
506
|
-
Fx.Transitions
|
507
|
-
A collection of tweaning transitions for use with the Fx.Base classes.
|
508
|
-
http://docs.mootools.net/files/Effects/Fx-Transitions-js.html
|
509
|
-
- name: support.class.fx.utils.js.mootools
|
510
|
-
match: \b(toggle|show)\b
|
511
|
-
comment: |-
|
512
|
-
|
513
|
-
Fx.Utils
|
514
|
-
Contains Fx.Height, Fx.Width, Fx.Opacity.
|
515
|
-
http://docs.mootools.net/files/Effects/Fx-Styles-js.html
|
516
|
-
- endCaptures:
|
517
|
-
"1":
|
518
|
-
name: punctuation.definition.parameters.end.js
|
519
|
-
begin: (new)\s+(Fx\.(?:Height|Width|Opacity))(\()
|
520
|
-
contentName: variable.parameter.fx.utils.js.mootools
|
521
|
-
beginCaptures:
|
522
|
-
"1":
|
523
|
-
name: keyword.operator.new.js
|
524
|
-
"2":
|
525
|
-
name: entity.name.type.instance.js.mootools
|
526
|
-
"3":
|
527
|
-
name: punctuation.definition.parameters.begin.js
|
528
|
-
end: (\));?$
|
529
|
-
patterns:
|
530
|
-
- include: "#element-functions"
|
531
|
-
- include: "#array-functions"
|
532
|
-
- include: "#dom-functions"
|
533
|
-
- include: "#hash-functions"
|
534
|
-
- endCaptures:
|
535
|
-
"1":
|
536
|
-
name: punctuation.definition.parameters.end.js
|
537
|
-
begin: (\{)
|
538
|
-
contentName: variable.parameter.fx.utils.options.js.mootools
|
539
|
-
beginCaptures:
|
540
|
-
"1":
|
541
|
-
name: punctuation.definition.parameters.begin.js
|
542
|
-
end: (\})\)
|
543
|
-
patterns:
|
544
|
-
- name: punctuation.separator.key-value.js.mootools
|
545
|
-
match: (:)
|
546
|
-
- include: "#fx-options"
|
547
|
-
- include: source.js
|
548
|
-
- name: support.class.element.js.mootools
|
549
|
-
match: \b(makeResizable)\b
|
550
|
-
comment: |-
|
551
|
-
|
552
|
-
Drag.Base
|
553
|
-
Modify two css properties of an element based on the position of the mouse.
|
554
|
-
http://docs.mootools.net/files/Drag/Drag-Base-js.html
|
555
|
-
- name: support.class.element.js.mootools
|
556
|
-
match: \b(makeDraggable)\b
|
557
|
-
comment: |-
|
558
|
-
|
559
|
-
Drag.Move
|
560
|
-
Modify two css properties of an element based on the position of the mouse.
|
561
|
-
http://docs.mootools.net/files/Drag/Drag-Base-js.html
|
562
|
-
- include: "#leading-space"
|
563
|
-
- include: source.js
|
564
|
-
foldingStopMarker: (^\s*\}|^\s*\)|^(?!.*/\*).*\*/)
|
565
|
-
keyEquivalent: ^~J
|
566
|
-
comment: |
|
567
|
-
|
568
|
-
MooTools Framework by Valerio Proietti.
|
569
|
-
http://mootools.net
|
570
|
-
This syntax document is largely based on the documentation at http://docs.mootools.net
|
571
|
-
Initial bundle by Joe Maller.
|
572
|
-
|