code_rippa 0.0.7 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +36 -0
  3. data/LICENSE +2 -2
  4. data/README.md +18 -1
  5. data/bin/code_rippa +15 -16
  6. data/code_rippa.gemspec +12 -10
  7. data/lib/code_rippa.rb +69 -51
  8. data/lib/code_rippa/syntax/actionscript.syntax +52 -52
  9. data/lib/code_rippa/syntax/active4d.syntax +226 -180
  10. data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
  11. data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
  12. data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
  13. data/lib/code_rippa/syntax/ada.syntax +19 -18
  14. data/lib/code_rippa/syntax/antlr.syntax +85 -85
  15. data/lib/code_rippa/syntax/apache.syntax +103 -109
  16. data/lib/code_rippa/syntax/applescript.syntax +244 -229
  17. data/lib/code_rippa/syntax/asp.syntax +41 -36
  18. data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
  19. data/lib/code_rippa/syntax/bibtex.syntax +88 -90
  20. data/lib/code_rippa/syntax/blog_html.syntax +17 -29
  21. data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
  22. data/lib/code_rippa/syntax/blog_text.syntax +15 -15
  23. data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
  24. data/lib/code_rippa/syntax/build.syntax +27 -27
  25. data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
  26. data/lib/code_rippa/syntax/c.syntax +31 -34
  27. data/lib/code_rippa/syntax/cake.syntax +27 -27
  28. data/lib/code_rippa/syntax/camlp4.syntax +23 -23
  29. data/lib/code_rippa/syntax/cm.syntax +19 -18
  30. data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
  31. data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
  32. data/lib/code_rippa/syntax/context_free.syntax +106 -106
  33. data/lib/code_rippa/syntax/cs.syntax +31 -34
  34. data/lib/code_rippa/syntax/css.syntax +112 -112
  35. data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
  36. data/lib/code_rippa/syntax/csv.syntax +40 -44
  37. data/lib/code_rippa/syntax/d.syntax +80 -84
  38. data/lib/code_rippa/syntax/diff.syntax +46 -45
  39. data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
  40. data/lib/code_rippa/syntax/dot.syntax +26 -26
  41. data/lib/code_rippa/syntax/doxygen.syntax +26 -26
  42. data/lib/code_rippa/syntax/dylan.syntax +35 -35
  43. data/lib/code_rippa/syntax/eiffel.syntax +39 -42
  44. data/lib/code_rippa/syntax/erlang.syntax +514 -511
  45. data/lib/code_rippa/syntax/f-script.syntax +44 -44
  46. data/lib/code_rippa/syntax/fortran.syntax +80 -76
  47. data/lib/code_rippa/syntax/fxscript.syntax +78 -77
  48. data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
  49. data/lib/code_rippa/syntax/gri.syntax +47 -47
  50. data/lib/code_rippa/syntax/groovy.syntax +105 -114
  51. data/lib/code_rippa/syntax/gtd.syntax +10 -10
  52. data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
  53. data/lib/code_rippa/syntax/haml.syntax +50 -50
  54. data/lib/code_rippa/syntax/haskell.syntax +47 -47
  55. data/lib/code_rippa/syntax/html-asp.syntax +15 -15
  56. data/lib/code_rippa/syntax/html_django.syntax +15 -14
  57. data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
  58. data/lib/code_rippa/syntax/html_mason.syntax +75 -74
  59. data/lib/code_rippa/syntax/html_rails.syntax +17 -27
  60. data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
  61. data/lib/code_rippa/syntax/icalendar.syntax +15 -15
  62. data/lib/code_rippa/syntax/inform.syntax +26 -26
  63. data/lib/code_rippa/syntax/ini.syntax +30 -30
  64. data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
  65. data/lib/code_rippa/syntax/io.syntax +49 -46
  66. data/lib/code_rippa/syntax/java.syntax +117 -126
  67. data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
  68. data/lib/code_rippa/syntax/javascript.syntax +141 -141
  69. data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
  70. data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
  71. data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
  72. data/lib/code_rippa/syntax/json.syntax +39 -39
  73. data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
  74. data/lib/code_rippa/syntax/lexflex.syntax +136 -136
  75. data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
  76. data/lib/code_rippa/syntax/lilypond.syntax +246 -337
  77. data/lib/code_rippa/syntax/lisp.syntax +32 -32
  78. data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
  79. data/lib/code_rippa/syntax/logo.syntax +13 -14
  80. data/lib/code_rippa/syntax/logtalk.syntax +81 -81
  81. data/lib/code_rippa/syntax/lua.syntax +50 -48
  82. data/lib/code_rippa/syntax/m.syntax +78 -78
  83. data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
  84. data/lib/code_rippa/syntax/makefile.syntax +19 -19
  85. data/lib/code_rippa/syntax/man.syntax +9 -9
  86. data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
  87. data/lib/code_rippa/syntax/mips.syntax +34 -34
  88. data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
  89. data/lib/code_rippa/syntax/modula-3.syntax +24 -24
  90. data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
  91. data/lib/code_rippa/syntax/mootools.syntax +283 -300
  92. data/lib/code_rippa/syntax/movable_type.syntax +91 -90
  93. data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
  94. data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
  95. data/lib/code_rippa/syntax/objective-c.syntax +134 -138
  96. data/lib/code_rippa/syntax/ocaml.syntax +455 -453
  97. data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
  98. data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
  99. data/lib/code_rippa/syntax/opengl.syntax +6 -6
  100. data/lib/code_rippa/syntax/pascal.syntax +43 -42
  101. data/lib/code_rippa/syntax/perl.syntax +612 -615
  102. data/lib/code_rippa/syntax/plain_text.syntax +17 -20
  103. data/lib/code_rippa/syntax/postscript.syntax +71 -69
  104. data/lib/code_rippa/syntax/processing.syntax +60 -60
  105. data/lib/code_rippa/syntax/prolog.syntax +17 -20
  106. data/lib/code_rippa/syntax/property_list.syntax +338 -359
  107. data/lib/code_rippa/syntax/python.syntax +487 -509
  108. data/lib/code_rippa/syntax/python_django.syntax +9 -10
  109. data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
  110. data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
  111. data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
  112. data/lib/code_rippa/syntax/r.syntax +42 -42
  113. data/lib/code_rippa/syntax/r_console.syntax +7 -8
  114. data/lib/code_rippa/syntax/ragel.syntax +109 -115
  115. data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
  116. data/lib/code_rippa/syntax/regexp.syntax +26 -26
  117. data/lib/code_rippa/syntax/release_notes.syntax +46 -26
  118. data/lib/code_rippa/syntax/remind.syntax +146 -146
  119. data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
  120. data/lib/code_rippa/syntax/rez.syntax +46 -45
  121. data/lib/code_rippa/syntax/ruby.syntax +533 -601
  122. data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
  123. data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
  124. data/lib/code_rippa/syntax/s5.syntax +35 -51
  125. data/lib/code_rippa/syntax/scheme.syntax +162 -260
  126. data/lib/code_rippa/syntax/scilab.syntax +18 -18
  127. data/lib/code_rippa/syntax/setext.syntax +82 -82
  128. data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
  129. data/lib/code_rippa/syntax/slate.syntax +91 -91
  130. data/lib/code_rippa/syntax/sql.syntax +137 -139
  131. data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
  132. data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
  133. data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
  134. data/lib/code_rippa/syntax/strings_file.syntax +20 -23
  135. data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
  136. data/lib/code_rippa/syntax/sweave.syntax +45 -45
  137. data/lib/code_rippa/syntax/swig.syntax +34 -33
  138. data/lib/code_rippa/syntax/tcl.syntax +87 -86
  139. data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
  140. data/lib/code_rippa/syntax/textile.syntax +111 -145
  141. data/lib/code_rippa/syntax/tsv.syntax +31 -33
  142. data/lib/code_rippa/syntax/twiki.syntax +141 -141
  143. data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
  144. data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
  145. data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
  146. data/lib/code_rippa/syntax/xml.syntax +95 -95
  147. data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
  148. data/lib/code_rippa/syntax/xsl.syntax +31 -31
  149. data/lib/code_rippa/syntax/yaml.syntax +86 -86
  150. data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
  151. data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
  152. data/lib/code_rippa/version.rb +2 -2
  153. data/test/fixtures/hello.rb +5 -3
  154. data/test/test_private_methods.rb +40 -40
  155. data/test/test_public_methods.rb +9 -18
  156. metadata +61 -63
@@ -1,572 +1,555 @@
1
- ---
1
+ ---
2
2
  name: MooTools
3
3
  scopeName: source.js.mootools
4
- repository:
5
- array-functions:
4
+ repository:
5
+ array-functions:
6
6
  name: meta.function.array.js.mootools
7
- endCaptures:
8
- "1":
7
+ endCaptures:
8
+ '1':
9
9
  name: support.function.array.js.mootools
10
- begin: (\$(?:each|A)\()
10
+ begin: "(\\$(?:each|A)\\()"
11
11
  contentName: variable.parameter.function.array.js.mootools
12
- beginCaptures:
13
- "1":
12
+ beginCaptures:
13
+ '1':
14
14
  name: support.function.array.js.mootools
15
- end: (\))
16
- patterns:
15
+ end: "(\\))"
16
+ patterns:
17
17
  - include: source.js
18
- element-functions:
18
+ element-functions:
19
19
  name: meta.function.element.js.mootools
20
- endCaptures:
21
- "1":
20
+ endCaptures:
21
+ '1':
22
22
  name: support.function.element.js.mootools
23
- begin: (\$?\$\()
23
+ begin: "(\\$?\\$\\()"
24
24
  contentName: variable.parameter.function.element.js.mootools
25
- beginCaptures:
26
- "1":
25
+ beginCaptures:
26
+ '1':
27
27
  name: support.function.element.js.mootools
28
- end: (\))
29
- patterns:
28
+ end: "(\\))"
29
+ patterns:
30
30
  - include: source.js
31
- hash-functions:
31
+ hash-functions:
32
32
  name: meta.function.hash.js.mootools
33
- endCaptures:
34
- "1":
33
+ endCaptures:
34
+ '1':
35
35
  name: support.function.hash.js.mootools
36
- begin: (\$H\()
36
+ begin: "(\\$H\\()"
37
37
  contentName: variable.parameter.function.hash.js.mootools
38
- beginCaptures:
39
- "1":
38
+ beginCaptures:
39
+ '1':
40
40
  name: support.function.hash.js.mootools
41
- end: (\))
42
- patterns:
41
+ end: "(\\))"
42
+ patterns:
43
43
  - include: source.js
44
- fx-options:
45
- patterns:
44
+ fx-options:
45
+ patterns:
46
46
  - name: support.class.keys.fx.options.js.mootools
47
- match: \b(onStart|onComplete|transition|duration|unit|wait|fps)\b
47
+ match: "\\b(onStart|onComplete|transition|duration|unit|wait|fps)\\b"
48
48
  - name: support.class.keys.fx.slide.options.js.mootools
49
- match: \b(mode)\b
50
- leading-space:
51
- patterns:
49
+ match: "\\b(mode)\\b"
50
+ leading-space:
51
+ patterns:
52
52
  - name: meta.leading-tabs
53
- begin: ^(?=(\t| ))
54
- end: (?=[^\t\s])
55
- patterns:
56
- - captures:
57
- "6":
53
+ begin: "^(?=(\\t| ))"
54
+ end: "(?=[^\\t\\s])"
55
+ patterns:
56
+ - captures:
57
+ '6':
58
58
  name: meta.even-tab.group6.spaces
59
- "11":
59
+ '11':
60
60
  name: meta.odd-tab.group11.spaces
61
- "7":
61
+ '7':
62
62
  name: meta.odd-tab.group7.spaces
63
- "8":
63
+ '8':
64
64
  name: meta.even-tab.group8.spaces
65
- "9":
65
+ '9':
66
66
  name: meta.odd-tab.group9.spaces
67
- "1":
67
+ '1':
68
68
  name: meta.odd-tab.group1.spaces
69
- "2":
69
+ '2':
70
70
  name: meta.even-tab.group2.spaces
71
- "3":
71
+ '3':
72
72
  name: meta.odd-tab.group3.spaces
73
- "4":
73
+ '4':
74
74
  name: meta.even-tab.group4.spaces
75
- "10":
75
+ '10':
76
76
  name: meta.even-tab.group10.spaces
77
- "5":
77
+ '5':
78
78
  name: meta.odd-tab.group5.spaces
79
- match: ( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?
80
- - captures:
81
- "6":
79
+ match: "( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?"
80
+ - captures:
81
+ '6':
82
82
  name: meta.even-tab.group6.tab
83
- "11":
83
+ '11':
84
84
  name: meta.odd-tab.group11.tab
85
- "7":
85
+ '7':
86
86
  name: meta.odd-tab.group7.tab
87
- "8":
87
+ '8':
88
88
  name: meta.even-tab.group8.tab
89
- "9":
89
+ '9':
90
90
  name: meta.odd-tab.group9.tab
91
- "1":
91
+ '1':
92
92
  name: meta.odd-tab.group1.tab
93
- "2":
93
+ '2':
94
94
  name: meta.even-tab.group2.tab
95
- "3":
95
+ '3':
96
96
  name: meta.odd-tab.group3.tab
97
- "4":
97
+ '4':
98
98
  name: meta.even-tab.group4.tab
99
- "10":
99
+ '10':
100
100
  name: meta.even-tab.group10.tab
101
- "5":
101
+ '5':
102
102
  name: meta.odd-tab.group5.tab
103
- match: (\t)(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?
104
- comment: |
105
-
103
+ match: "(\\t)(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?"
104
+ comment: |2
105
+
106
106
  The leading-space code is the ribbon highlighing thomas Aylott contributed to source.js.prototype.
107
107
  More info in this thread:
108
108
  http://comox.textdrive.com/pipermail/textmate/2006-August/012373.html
109
-
110
- dom-functions:
109
+ dom-functions:
111
110
  name: meta.function.dom.js.mootools
112
- endCaptures:
113
- "1":
111
+ endCaptures:
112
+ '1':
114
113
  name: support.function.dom.js.mootools
115
- begin: (\$ES?\()
114
+ begin: "(\\$ES?\\()"
116
115
  contentName: variable.parameter.function.dom.js.mootools
117
- beginCaptures:
118
- "1":
116
+ beginCaptures:
117
+ '1':
119
118
  name: support.function.dom.js.mootools
120
- end: (\))
121
- patterns:
119
+ end: "(\\))"
120
+ patterns:
122
121
  - include: source.js
123
122
  uuid: 7E4B5859-2FB4-4D2A-9105-276BDE28B94E
124
- foldingStartMarker: (^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$)
125
- patterns:
123
+ foldingStartMarker: "(^.*{[^}]*$|^.*\\([^\\)]*$|^.*/\\*(?!.*\\*/).*$)"
124
+ patterns:
126
125
  - 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
126
+ match: "\\b(Class|Array|Element|Event|Function|String)\\b"
127
+ comment: "\nClass\nThe base class object of the http://mootools.net framework. \nhttp://docs.mootools.net/files/Core/Moo-js.html"
133
128
  - name: support.class.class.js.mootools
134
- match: \b(empty|extend|implement)\b
129
+ match: "\\b(empty|extend|implement)\\b"
135
130
  - name: support.function.class.js.mootools
136
- match: \b(extend|Native)\b
131
+ match: "\\b(extend|Native)\\b"
137
132
  - name: support.function.utility.js.mootools
138
- match: \$(type|chk|pick|random|clear)\b
139
- comment: |
140
-
133
+ match: "\\$(type|chk|pick|random|clear)\\b"
134
+ comment: |2
135
+
141
136
  Utility
142
137
  Contains Utility functions
143
138
  http://docs.mootools.net/files/Core/Utility-js.html
144
-
145
- - captures:
146
- "1":
139
+ - captures:
140
+ '1':
147
141
  name: support.class.window.browser.js.mootools
148
142
  match: window\.(ie|ie6|ie7|khtml|gecko)\b
149
143
  - include: "#array-functions"
150
- comment: |-
151
-
144
+ comment: |2-
145
+
152
146
  Array
153
147
  A collection of The Array Object prototype methods.
154
148
  http://docs.mootools.net/files/Native/Array-js.html
155
149
  - name: support.class.array.js.mootools
156
- match: \b(forEach|filter|map|every|some|indexOf|each|copy|remove|test|extend|associate)\b
150
+ match: "\\b(forEach|filter|map|every|some|indexOf|each|copy|remove|test|extend|associate)\\b"
157
151
  - include: "#element-functions"
158
- comment: |-
159
-
152
+ comment: |2-
153
+
160
154
  Element
161
155
  Custom class to allow all of its methods to be used with any DOM element via the dollar function $.
162
156
  http://docs.mootools.net/files/Native/Element-js.html
163
157
  - 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
158
+ 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
159
  - name: support.class.event.js.mootools
166
- match: \b(stop|stopPropagation|preventDefault|bindWithEvent)\b
167
- comment: |-
168
-
160
+ match: "\\b(stop|stopPropagation|preventDefault|bindWithEvent)\\b"
161
+ comment: |2-
162
+
169
163
  Event
170
164
  Cross browser methods to manage events.
171
165
  http://docs.mootools.net/files/Native/Event-js.html
172
166
  - name: support.class.function.js.mootools
173
- match: \b(create|pass|attempt|bind|bindAsEventListener|delay|periodical)\b
174
- comment: |-
175
-
167
+ match: "\\b(create|pass|attempt|bind|bindAsEventListener|delay|periodical)\\b"
168
+ comment: |2-
169
+
176
170
  Function
177
171
  A collection of The Function Object prototype methods.
178
172
  http://docs.mootools.net/files/Native/Function-js.html
179
173
  - name: support.class.string.js.mootools
180
- match: \b(test|toInt|camelCase|hyphenate|capitalize|trim|clean|rgbToHex|hexToRgb)\b
181
- comment: |-
182
-
174
+ match: "\\b(test|toInt|camelCase|hyphenate|capitalize|trim|clean|rgbToHex|hexToRgb)\\b"
175
+ comment: |2-
176
+
183
177
  String
184
178
  A collection of The String Object prototype methods.
185
179
  http://docs.mootools.net/files/Native/String-js.html
186
180
  - name: support.class.number.js.mootools
187
- match: \btoInt\b
181
+ match: "\\btoInt\\b"
188
182
  - include: "#dom-functions"
189
- comment: |-
190
-
183
+ comment: |2-
184
+
191
185
  DOM
192
186
  Css Query related function and Element extensions.
193
187
  http://docs.mootools.net/files/Addons/Dom-js.html
194
188
  - name: support.class.dom.js.mootools
195
- match: \b(getElements|getElementById|getElement|getElementsBySelector|getElementsByClassName)\b
196
- comment: document. getElementsByClassName might belong somewhere else
189
+ match: "\\b(getElements|getElementById|getElement|getElementsBySelector|getElementsByClassName)\\b"
190
+ comment: "document. getElementsByClassName\tmight belong somewhere else"
197
191
  - include: "#hash-functions"
198
- comment: |-
199
-
192
+ comment: |2-
193
+
200
194
  Hash
201
195
  It wraps an object that it uses internally as a map.
202
196
  http://docs.mootools.net/files/Addons/Hash-js.html
203
197
  -- note: several overlaps in here with named properties from array.js.mootools
204
198
  - name: support.class.hash.js.mootools
205
- match: \b(get|hasKey|set|remove|each|extend|empty|keys|values)\b
199
+ match: "\\b(get|hasKey|set|remove|each|extend|empty|keys|values)\\b"
206
200
  - name: support.class.color.js.mootools
207
- match: \b(mix|invert|setHue|setSaturation|setBrightness)\b
208
- comment: |-
209
-
201
+ match: "\\b(mix|invert|setHue|setSaturation|setBrightness)\\b"
202
+ comment: |2-
203
+
210
204
  Color
211
205
  Creates a new Color Object, which is an array with some color specific methods.
212
206
  http://docs.mootools.net/files/Addons/Color-js.html
213
207
  - name: support.function.color.js.mootools
214
- captures:
215
- "1":
208
+ captures:
209
+ '1':
216
210
  name: variable.parameter.function.js
217
- match: \$(?:RGB|HSB)\(([^)]*)\)\b
211
+ match: "\\$(?:RGB|HSB)\\(([^)]*)\\)\\b"
218
212
  - name: support.function.chain.js.mootools
219
- match: \b(chain|(call|clear)Chain)\b
220
- comment: |-
221
-
213
+ match: "\\b(chain|(call|clear)Chain)\\b"
214
+ comment: |2-
215
+
222
216
  Common
223
217
  Contains common implementations for custom classes.
224
218
  http://docs.mootools.net/files/Addons/Common-js.html
225
219
  - name: support.function.events.js.mootools
226
- match: \b(add|fire|remove)Event\b
220
+ match: "\\b(add|fire|remove)Event\\b"
227
221
  - name: support.function.options.js.mootools
228
- match: \bsetOptions\b
222
+ match: "\\bsetOptions\\b"
229
223
  - name: support.class.base.window.js.mootools
230
- match: \bonDomReady\b
231
- comment: |-
232
-
224
+ match: "\\bonDomReady\\b"
225
+ comment: |2-
226
+
233
227
  Window Base
234
228
  Cross browser methods to get the window size, onDomReady method.
235
229
  http://docs.mootools.net/files/Window/Window-Base-js.html
236
230
  -- note: addEvent is already listed under Element
237
231
  - name: support.class.size.window.js.mootools
238
- match: \b(get(Width|Height|Scroll(Width|Height|Left|Top)))\b
239
- comment: |-
240
-
232
+ match: "\\b(get(Width|Height|Scroll(Width|Height|Left|Top)))\\b"
233
+ comment: |2-
234
+
241
235
  Window Size
242
236
  Cross browser methods to get various window dimensions.
243
237
  http://docs.mootools.net/files/Window/Window-Size-js.html
244
238
  -- note: getSize is already listed under Element
245
239
  - name: support.class.ajax.js.mootools
246
- match: \b(request|evalScripts)\b
247
- comment: |-
248
-
240
+ match: "\\b(request|evalScripts)\\b"
241
+ comment: |2-
242
+
249
243
  Ajax
250
244
  An Ajax class, For all your asynchronous needs.
251
245
  http://docs.mootools.net/files/Remote/Ajax-js.html
252
246
  - name: support.function.js.mootools
253
- match: \btoQueryString\b
254
- comment: "note: both Object and Element have a toQueryString function/property"
247
+ match: "\\btoQueryString\\b"
248
+ comment: 'note: both Object and Element have a toQueryString function/property'
255
249
  - name: support.class.element.js
256
- match: \bsend\b
250
+ match: "\\bsend\\b"
257
251
  - name: support.function.asset.js.mootools
258
- match: \b(javascript|css|images?)\b
259
- comment: |-
260
-
252
+ match: "\\b(javascript|css|images?)\\b"
253
+ comment: |2-
254
+
261
255
  Assets
262
256
  provides dynamic loading for images, css and javascript files.
263
257
  http://docs.mootools.net/files/Remote/Assets-js.html
264
258
  - name: support.class.cookie.js.mootools
265
- match: \b(set|get|remove)\b
266
- comment: |-
267
-
259
+ match: "\\b(set|get|remove)\\b"
260
+ comment: |2-
261
+
268
262
  Cookie
269
263
  Class for creating, getting, and removing cookies.
270
264
  http://docs.mootools.net/files/Remote/Assets-js.html
271
265
  - name: support.class.json.js.mootools
272
- match: \b(toString|evaluate)\b
273
- comment: |-
274
-
266
+ match: "\\b(toString|evaluate)\\b"
267
+ comment: |2-
268
+
275
269
  Json
276
270
  Simple Json parser and Stringyfier, See: http://www.json.org/
277
271
  http://docs.mootools.net/files/Remote/Json-js.html
278
272
  - name: support.class.json.js.mootools
279
- match: \bJson\.Remote\b
280
- comment: |-
281
-
273
+ match: "\\bJson\\.Remote\\b"
274
+ comment: |2-
275
+
282
276
  Json Remote
283
277
  Wrapped XHR with automated sending and receiving of Javascript Objects in Json Format.
284
278
  http://docs.mootools.net/files/Remote/Json-Remote-js.html
285
279
  - name: support.class.xhr.js.mootools
286
- match: \bXHR\b
287
- comment: |-
288
-
280
+ match: "\\bXHR\\b"
281
+ comment: |2-
282
+
289
283
  XHR
290
284
  Contains the basic XMLHttpRequest Class Wrapper.
291
285
  http://docs.mootools.net/files/Remote/XHR-js.html
292
286
  - 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
287
+ match: "\\b(set|start|stop)\\b"
288
+ comment: "\nFx.Base\t\t\t\nBase class for the Mootools Effects (Moo.Fx) library.\t\t\t\nhttp://docs.mootools.net/files/Effects/Fx-Base-js.html"
299
289
  - name: support.class.transitions.fx.js.mootools
300
- match: \b(linear|sineInOut)\b
290
+ match: "\\b(linear|sineInOut)\\b"
301
291
  - name: support.class.keys.options.transitions.fx
302
- match: \b(onStart|onComplete|transition|duration|unit|wait|fps)\b
292
+ match: "\\b(onStart|onComplete|transition|duration|unit|wait|fps)\\b"
303
293
  - name: support.class.elements.fx.js.mootools
304
- match: \b(start)\b
305
- comment: |-
306
-
294
+ match: "\\b(start)\\b"
295
+ comment: |2-
296
+
307
297
  Fx.Elements
308
298
  Fx.Elements allows you to apply any number of styles transitions to a selection of elements.
309
299
  http://docs.mootools.net/files/Effects/Fx-Elements-js.html
310
- - endCaptures:
311
- "1":
300
+ - endCaptures:
301
+ '1':
312
302
  name: punctuation.definition.parameters.end.js
313
- begin: (new)\s+(Fx\.Elements)(\()
303
+ begin: "(new)\\s+(Fx\\.Elements)(\\()"
314
304
  contentName: variable.parameter.fx.elements.js.mootools
315
- beginCaptures:
316
- "1":
305
+ beginCaptures:
306
+ '1':
317
307
  name: keyword.operator.new.js
318
- "2":
308
+ '2':
319
309
  name: entity.name.type.instance.js.mootools
320
- "3":
310
+ '3':
321
311
  name: punctuation.definition.parameters.begin.js
322
- end: (\)(;|$))
323
- patterns:
312
+ end: "(\\)(;|$))"
313
+ patterns:
324
314
  - include: "#element-functions"
325
315
  - include: "#array-functions"
326
316
  - include: "#dom-functions"
327
317
  - include: "#hash-functions"
328
- - endCaptures:
329
- "1":
318
+ - endCaptures:
319
+ '1':
330
320
  name: punctuation.definition.parameters.end.js
331
- begin: (\{)
321
+ begin: "(\\{)"
332
322
  contentName: variable.parameter.fx.elements.options.js.mootools
333
- beginCaptures:
334
- "1":
323
+ beginCaptures:
324
+ '1':
335
325
  name: punctuation.definition.parameters.begin.js
336
- end: (\})(?=\))
337
- patterns:
326
+ end: "(\\})(?=\\))"
327
+ patterns:
338
328
  - name: punctuation.separator.key-value.js.mootools
339
- match: (:)
329
+ match: "(:)"
340
330
  - include: "#fx-options"
341
331
  - include: source.js
342
332
  - name: support.class.scroll.fx.js.mootools
343
- match: \b(scrollTo|to(Top|Bottom|Left|Right|Element))
344
- comment: |-
345
-
333
+ match: "\\b(scrollTo|to(Top|Bottom|Left|Right|Element))"
334
+ comment: |2-
335
+
346
336
  Fx.Scroll
347
337
  Scroll any element with an overflow, including the window element.
348
338
  http://docs.mootools.net/files/Effects/Fx-Scroll-js.html
349
- - endCaptures:
350
- "1":
339
+ - endCaptures:
340
+ '1':
351
341
  name: punctuation.definition.parameters.end.js
352
- begin: (new)\s+(Fx\.Scroll)(\()
342
+ begin: "(new)\\s+(Fx\\.Scroll)(\\()"
353
343
  contentName: variable.parameter.fx.scroll.js.mootools
354
- beginCaptures:
355
- "1":
344
+ beginCaptures:
345
+ '1':
356
346
  name: keyword.operator.new.js
357
- "2":
347
+ '2':
358
348
  name: entity.name.type.instance.js.mootools
359
- "3":
349
+ '3':
360
350
  name: punctuation.definition.parameters.begin.js
361
- end: (\)(;|$))
362
- patterns:
351
+ end: "(\\)(;|$))"
352
+ patterns:
363
353
  - include: "#element-functions"
364
354
  - include: "#array-functions"
365
355
  - include: "#dom-functions"
366
356
  - include: "#hash-functions"
367
- - endCaptures:
368
- "1":
357
+ - endCaptures:
358
+ '1':
369
359
  name: punctuation.definition.parameters.end.js
370
- begin: (\{)
360
+ begin: "(\\{)"
371
361
  contentName: variable.parameter.fx.scroll.options.js.mootools
372
- beginCaptures:
373
- "1":
362
+ beginCaptures:
363
+ '1':
374
364
  name: punctuation.definition.parameters.begin.js
375
- end: (\})(?=\))
376
- patterns:
365
+ end: "(\\})(?=\\))"
366
+ patterns:
377
367
  - name: punctuation.separator.key-value.js.mootools
378
- match: (:)
368
+ match: "(:)"
379
369
  - include: "#fx-options"
380
370
  - include: source.js
381
371
  - name: support.class.slide.fx.js.mootools
382
- match: \b(slide(In|Out)|hide|show|toggle)\b
383
- comment: |-
384
-
372
+ match: "\\b(slide(In|Out)|hide|show|toggle)\\b"
373
+ comment: |2-
374
+
385
375
  Fx.Slide
386
376
  The slide effect; slides an element in horizontally or vertically, the contents will fold inside.
387
377
  http://docs.mootools.net/files/Effects/Fx-Slide-js.html
388
- - endCaptures:
389
- "1":
378
+ - endCaptures:
379
+ '1':
390
380
  name: punctuation.definition.parameters.end.js
391
- begin: (new)\s+(Fx\.Slide)(\()
381
+ begin: "(new)\\s+(Fx\\.Slide)(\\()"
392
382
  contentName: variable.parameter.fx.slide.js.mootools
393
- beginCaptures:
394
- "1":
383
+ beginCaptures:
384
+ '1':
395
385
  name: keyword.operator.new.js
396
- "2":
386
+ '2':
397
387
  name: entity.name.type.instance.js.mootools
398
- "3":
388
+ '3':
399
389
  name: punctuation.definition.parameters.begin.js
400
- end: (\)(;|$))
401
- patterns:
390
+ end: "(\\)(;|$))"
391
+ patterns:
402
392
  - include: "#element-functions"
403
393
  - include: "#array-functions"
404
394
  - include: "#dom-functions"
405
395
  - include: "#hash-functions"
406
- - endCaptures:
407
- "1":
396
+ - endCaptures:
397
+ '1':
408
398
  name: punctuation.definition.parameters.end.js
409
- begin: (\{)
399
+ begin: "(\\{)"
410
400
  contentName: variable.parameter.fx.slide.options.js.mootools
411
- beginCaptures:
412
- "1":
401
+ beginCaptures:
402
+ '1':
413
403
  name: punctuation.definition.parameters.begin.js
414
- end: (\})(?=\))
415
- patterns:
404
+ end: "(\\})(?=\\))"
405
+ patterns:
416
406
  - name: punctuation.separator.key-value.js.mootools
417
- match: (:)
407
+ match: "(:)"
418
408
  - include: "#fx-options"
419
409
  - include: source.js
420
410
  - name: support.class.slide.fx.js.mootools
421
- match: \b(hide|start)\b
422
- comment: |-
423
-
411
+ match: "\\b(hide|start)\\b"
412
+ comment: |2-
413
+
424
414
  Fx.Style
425
415
  The Style effect; Extends Fx.Base, inherits all its properties.
426
416
  http://docs.mootools.net/files/Effects/Fx-Style-js.html
427
- - endCaptures:
428
- "1":
417
+ - endCaptures:
418
+ '1':
429
419
  name: punctuation.definition.parameters.end.js
430
- begin: (new)\s+(Fx\.Style)(\()
420
+ begin: "(new)\\s+(Fx\\.Style)(\\()"
431
421
  contentName: variable.parameter.fx.style.js.mootools
432
- beginCaptures:
433
- "1":
422
+ beginCaptures:
423
+ '1':
434
424
  name: keyword.operator.new.js
435
- "2":
425
+ '2':
436
426
  name: entity.name.type.instance.fx.style.js.mootools
437
- "3":
427
+ '3':
438
428
  name: punctuation.definition.parameters.begin.js
439
- end: (\)(;|$))
440
- patterns:
429
+ end: "(\\)(;|$))"
430
+ patterns:
441
431
  - include: "#element-functions"
442
432
  - include: "#array-functions"
443
433
  - include: "#dom-functions"
444
434
  - include: "#hash-functions"
445
- - endCaptures:
446
- "1":
435
+ - endCaptures:
436
+ '1':
447
437
  name: punctuation.definition.parameters.end.js
448
- begin: ,\s*(\{)
438
+ begin: ",\\s*(\\{)"
449
439
  contentName: variable.parameter.fx.style.options.js.mootools
450
- beginCaptures:
451
- "1":
440
+ beginCaptures:
441
+ '1':
452
442
  name: punctuation.definition.parameters.begin.js
453
- end: (\})(?=\))
454
- patterns:
443
+ end: "(\\})(?=\\))"
444
+ patterns:
455
445
  - name: punctuation.separator.key-value.js.mootools
456
- match: (:)
446
+ match: "(:)"
457
447
  - include: "#fx-options"
458
448
  - include: source.js
459
449
  - name: support.class.element.js.mootools
460
- match: \b(effect)\b
450
+ match: "\\b(effect)\\b"
461
451
  - 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":
452
+ match: "\\b(start)\\b"
453
+ comment: "\nFx.Styles\nAllows you to animate multiple css properties at once; Extends
454
+ Fx.Base, inherits all its properties. \nhttp://docs.mootools.net/files/Effects/Fx-Styles-js.html"
455
+ - endCaptures:
456
+ '1':
470
457
  name: punctuation.definition.parameters.end.js
471
- begin: (new)\s+(Fx\.Styles)(\()
458
+ begin: "(new)\\s+(Fx\\.Styles)(\\()"
472
459
  contentName: variable.parameter.fx.styles.js.mootools
473
- beginCaptures:
474
- "1":
460
+ beginCaptures:
461
+ '1':
475
462
  name: keyword.operator.new.js
476
- "2":
463
+ '2':
477
464
  name: entity.name.type.instance.js.mootools
478
- "3":
465
+ '3':
479
466
  name: punctuation.definition.parameters.begin.js
480
- end: (\)(;|$))
481
- patterns:
467
+ end: "(\\)(;|$))"
468
+ patterns:
482
469
  - include: "#element-functions"
483
470
  - include: "#array-functions"
484
471
  - include: "#dom-functions"
485
472
  - include: "#hash-functions"
486
- - endCaptures:
487
- "1":
473
+ - endCaptures:
474
+ '1':
488
475
  name: punctuation.definition.parameters.end.js
489
- begin: (\{)
476
+ begin: "(\\{)"
490
477
  contentName: variable.parameter.fx.styles.options.js.mootools
491
- beginCaptures:
492
- "1":
478
+ beginCaptures:
479
+ '1':
493
480
  name: punctuation.definition.parameters.begin.js
494
- end: (\})(?=\))
495
- patterns:
481
+ end: "(\\})(?=\\))"
482
+ patterns:
496
483
  - name: punctuation.separator.key-value.js.mootools
497
- match: (:)
484
+ match: "(:)"
498
485
  - include: "#fx-options"
499
486
  - include: source.js
500
487
  - name: support.class.element.js.mootools
501
- match: \b(effects)\b
488
+ match: "\\b(effects)\\b"
502
489
  - 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
-
490
+ 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"
491
+ comment: |2-
492
+
506
493
  Fx.Transitions
507
494
  A collection of tweaning transitions for use with the Fx.Base classes.
508
495
  http://docs.mootools.net/files/Effects/Fx-Transitions-js.html
509
496
  - name: support.class.fx.utils.js.mootools
510
- match: \b(toggle|show)\b
511
- comment: |-
512
-
497
+ match: "\\b(toggle|show)\\b"
498
+ comment: |2-
499
+
513
500
  Fx.Utils
514
501
  Contains Fx.Height, Fx.Width, Fx.Opacity.
515
502
  http://docs.mootools.net/files/Effects/Fx-Styles-js.html
516
- - endCaptures:
517
- "1":
503
+ - endCaptures:
504
+ '1':
518
505
  name: punctuation.definition.parameters.end.js
519
- begin: (new)\s+(Fx\.(?:Height|Width|Opacity))(\()
506
+ begin: "(new)\\s+(Fx\\.(?:Height|Width|Opacity))(\\()"
520
507
  contentName: variable.parameter.fx.utils.js.mootools
521
- beginCaptures:
522
- "1":
508
+ beginCaptures:
509
+ '1':
523
510
  name: keyword.operator.new.js
524
- "2":
511
+ '2':
525
512
  name: entity.name.type.instance.js.mootools
526
- "3":
513
+ '3':
527
514
  name: punctuation.definition.parameters.begin.js
528
- end: (\));?$
529
- patterns:
515
+ end: "(\\));?$"
516
+ patterns:
530
517
  - include: "#element-functions"
531
518
  - include: "#array-functions"
532
519
  - include: "#dom-functions"
533
520
  - include: "#hash-functions"
534
- - endCaptures:
535
- "1":
521
+ - endCaptures:
522
+ '1':
536
523
  name: punctuation.definition.parameters.end.js
537
- begin: (\{)
524
+ begin: "(\\{)"
538
525
  contentName: variable.parameter.fx.utils.options.js.mootools
539
- beginCaptures:
540
- "1":
526
+ beginCaptures:
527
+ '1':
541
528
  name: punctuation.definition.parameters.begin.js
542
- end: (\})\)
543
- patterns:
529
+ end: "(\\})\\)"
530
+ patterns:
544
531
  - name: punctuation.separator.key-value.js.mootools
545
- match: (:)
532
+ match: "(:)"
546
533
  - include: "#fx-options"
547
534
  - include: source.js
548
535
  - name: support.class.element.js.mootools
549
- match: \b(makeResizable)\b
550
- comment: |-
551
-
536
+ match: "\\b(makeResizable)\\b"
537
+ comment: |2-
538
+
552
539
  Drag.Base
553
540
  Modify two css properties of an element based on the position of the mouse.
554
541
  http://docs.mootools.net/files/Drag/Drag-Base-js.html
555
542
  - name: support.class.element.js.mootools
556
- match: \b(makeDraggable)\b
557
- comment: |-
558
-
543
+ match: "\\b(makeDraggable)\\b"
544
+ comment: |2-
545
+
559
546
  Drag.Move
560
547
  Modify two css properties of an element based on the position of the mouse.
561
548
  http://docs.mootools.net/files/Drag/Drag-Base-js.html
562
549
  - include: "#leading-space"
563
550
  - 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
-
551
+ foldingStopMarker: "(^\\s*\\}|^\\s*\\)|^(?!.*/\\*).*\\*/)"
552
+ keyEquivalent: "^~J"
553
+ comment: "\nMooTools Framework by Valerio Proietti. \nhttp://mootools.net\nThis syntax
554
+ document is largely based on the documentation at http://docs.mootools.net\nInitial
555
+ bundle by Joe Maller. \n"