ruby-uv 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/README.rdoc +79 -0
  4. data/Rakefile +1 -0
  5. data/bin/theme2latexrender +122 -0
  6. data/bin/theme2xhtmlrender +158 -0
  7. data/bin/uv +140 -0
  8. data/lib/uv/engine.rb +4 -0
  9. data/lib/uv/render_processor.rb +140 -0
  10. data/lib/uv/utility.rb +67 -0
  11. data/lib/uv/version.rb +3 -0
  12. data/lib/uv.rb +98 -0
  13. data/render/latex/active4d.render +132 -0
  14. data/render/latex/all_hallows_eve.render +96 -0
  15. data/render/latex/amy.render +171 -0
  16. data/render/latex/blackboard.render +111 -0
  17. data/render/latex/brilliance_black.render +552 -0
  18. data/render/latex/brilliance_dull.render +561 -0
  19. data/render/latex/cobalt.render +162 -0
  20. data/render/latex/dawn.render +126 -0
  21. data/render/latex/eiffel.render +132 -0
  22. data/render/latex/espresso_libre.render +123 -0
  23. data/render/latex/idle.render +93 -0
  24. data/render/latex/iplastic.render +99 -0
  25. data/render/latex/lazy.render +96 -0
  26. data/render/latex/mac_classic.render +135 -0
  27. data/render/latex/magicwb_amiga.render +117 -0
  28. data/render/latex/pastels_on_dark.render +204 -0
  29. data/render/latex/slush_poppies.render +123 -0
  30. data/render/latex/spacecadet.render +81 -0
  31. data/render/latex/sunburst.render +186 -0
  32. data/render/latex/twilight.render +153 -0
  33. data/render/latex/zenburnesque.render +126 -0
  34. data/render/old/txt2tags.render +131 -0
  35. data/render/xhtml/active4d.render +140 -0
  36. data/render/xhtml/all_hallows_eve.render +104 -0
  37. data/render/xhtml/amy.render +179 -0
  38. data/render/xhtml/blackboard.render +119 -0
  39. data/render/xhtml/brilliance_black.render +560 -0
  40. data/render/xhtml/brilliance_dull.render +569 -0
  41. data/render/xhtml/cobalt.render +170 -0
  42. data/render/xhtml/dawn.render +134 -0
  43. data/render/xhtml/eiffel.render +140 -0
  44. data/render/xhtml/espresso_libre.render +131 -0
  45. data/render/xhtml/idle.render +101 -0
  46. data/render/xhtml/iplastic.render +107 -0
  47. data/render/xhtml/lazy.render +104 -0
  48. data/render/xhtml/mac_classic.render +143 -0
  49. data/render/xhtml/magicwb_amiga.render +125 -0
  50. data/render/xhtml/pastels_on_dark.render +212 -0
  51. data/render/xhtml/railscasts.render +93 -0
  52. data/render/xhtml/slush_poppies.render +131 -0
  53. data/render/xhtml/spacecadet.render +83 -0
  54. data/render/xhtml/sunburst.render +194 -0
  55. data/render/xhtml/twilight.render +161 -0
  56. data/render/xhtml/zenburnesque.render +134 -0
  57. data/ruby-uv.gemspec +24 -0
  58. data/syntax/actionscript.syntax +97 -0
  59. data/syntax/active4d.syntax +276 -0
  60. data/syntax/active4d_html.syntax +311 -0
  61. data/syntax/active4d_ini.syntax +50 -0
  62. data/syntax/active4d_library.syntax +21 -0
  63. data/syntax/ada.syntax +33 -0
  64. data/syntax/antlr.syntax +151 -0
  65. data/syntax/apache.syntax +191 -0
  66. data/syntax/applescript.syntax +384 -0
  67. data/syntax/asp.syntax +70 -0
  68. data/syntax/asp_vb.net.syntax +129 -0
  69. data/syntax/bibtex.syntax +151 -0
  70. data/syntax/blog_html.syntax +41 -0
  71. data/syntax/blog_markdown.syntax +42 -0
  72. data/syntax/blog_text.syntax +27 -0
  73. data/syntax/blog_textile.syntax +27 -0
  74. data/syntax/build.syntax +53 -0
  75. data/syntax/bulletin_board.syntax +287 -0
  76. data/syntax/cake.syntax +55 -0
  77. data/syntax/camlp4.syntax +36 -0
  78. data/syntax/cm.syntax +32 -0
  79. data/syntax/coldfusion.syntax +119 -0
  80. data/syntax/context_free.syntax +176 -0
  81. data/syntax/cs.syntax +59 -0
  82. data/syntax/css.syntax +195 -0
  83. data/syntax/css_experimental.syntax +1925 -0
  84. data/syntax/csv.syntax +68 -0
  85. data/syntax/d.syntax +142 -0
  86. data/syntax/diff.syntax +81 -0
  87. data/syntax/dokuwiki.syntax +204 -0
  88. data/syntax/dot.syntax +47 -0
  89. data/syntax/doxygen.syntax +43 -0
  90. data/syntax/dylan.syntax +62 -0
  91. data/syntax/eiffel.syntax +78 -0
  92. data/syntax/erlang.syntax +922 -0
  93. data/syntax/f-script.syntax +80 -0
  94. data/syntax/fortran.syntax +141 -0
  95. data/syntax/fxscript.syntax +142 -0
  96. data/syntax/greasemonkey.syntax +34 -0
  97. data/syntax/gri.syntax +83 -0
  98. data/syntax/groovy.syntax +191 -0
  99. data/syntax/gtd.syntax +22 -0
  100. data/syntax/gtdalt.syntax +143 -0
  101. data/syntax/haml.syntax +88 -0
  102. data/syntax/haskell.syntax +88 -0
  103. data/syntax/html-asp.syntax +27 -0
  104. data/syntax/html.syntax +362 -0
  105. data/syntax/html_django.syntax +36 -0
  106. data/syntax/html_for_asp.net.syntax +424 -0
  107. data/syntax/html_mason.syntax +119 -0
  108. data/syntax/html_rails.syntax +40 -0
  109. data/syntax/html_tcl.syntax +26 -0
  110. data/syntax/icalendar.syntax +32 -0
  111. data/syntax/inform.syntax +48 -0
  112. data/syntax/ini.syntax +55 -0
  113. data/syntax/installer_distribution_script.syntax +77 -0
  114. data/syntax/io.syntax +81 -0
  115. data/syntax/java.syntax +211 -0
  116. data/syntax/javaproperties.syntax +20 -0
  117. data/syntax/javascript.syntax +256 -0
  118. data/syntax/javascript_+_prototype.syntax +72 -0
  119. data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  120. data/syntax/jquery_javascript.syntax +114 -0
  121. data/syntax/json.syntax +136 -0
  122. data/syntax/languagedefinition.syntax +708 -0
  123. data/syntax/latex.syntax +566 -0
  124. data/syntax/latex_beamer.syntax +41 -0
  125. data/syntax/latex_log.syntax +50 -0
  126. data/syntax/latex_memoir.syntax +64 -0
  127. data/syntax/lexflex.syntax +219 -0
  128. data/syntax/lighttpd.syntax +54 -0
  129. data/syntax/lilypond.syntax +492 -0
  130. data/syntax/lisp.syntax +61 -0
  131. data/syntax/literate_haskell.syntax +24 -0
  132. data/syntax/logo.syntax +29 -0
  133. data/syntax/logtalk.syntax +152 -0
  134. data/syntax/lua.syntax +86 -0
  135. data/syntax/m.syntax +142 -0
  136. data/syntax/macports_portfile.syntax +163 -0
  137. data/syntax/makefile.syntax +36 -0
  138. data/syntax/man.syntax +17 -0
  139. data/syntax/mediawiki.syntax +567 -0
  140. data/syntax/mips.syntax +66 -0
  141. data/syntax/mod_perl.syntax +50 -0
  142. data/syntax/modula-3.syntax +47 -0
  143. data/syntax/moinmoin.syntax +189 -0
  144. data/syntax/mootools.syntax +572 -0
  145. data/syntax/movable_type.syntax +162 -0
  146. data/syntax/multimarkdown.syntax +39 -0
  147. data/syntax/objective-c++.syntax +18 -0
  148. data/syntax/objective-c.syntax +233 -0
  149. data/syntax/ocaml.syntax +764 -0
  150. data/syntax/ocamllex.syntax +167 -0
  151. data/syntax/ocamlyacc.syntax +184 -0
  152. data/syntax/opengl.syntax +14 -0
  153. data/syntax/pascal.syntax +77 -0
  154. data/syntax/perl.syntax +1115 -0
  155. data/syntax/plain_text.syntax +32 -0
  156. data/syntax/postscript.syntax +114 -0
  157. data/syntax/processing.syntax +106 -0
  158. data/syntax/prolog.syntax +40 -0
  159. data/syntax/property_list.syntax +635 -0
  160. data/syntax/python.syntax +868 -0
  161. data/syntax/python_django.syntax +21 -0
  162. data/syntax/qmake_project.syntax +114 -0
  163. data/syntax/qt_c++.syntax +26 -0
  164. data/syntax/quake3_config.syntax +32 -0
  165. data/syntax/r.syntax +81 -0
  166. data/syntax/r_console.syntax +16 -0
  167. data/syntax/ragel.syntax +201 -0
  168. data/syntax/rd_r_documentation.syntax +91 -0
  169. data/syntax/regexp.syntax +50 -0
  170. data/syntax/release_notes.syntax +46 -0
  171. data/syntax/remind.syntax +253 -0
  172. data/syntax/restructuredtext.syntax +250 -0
  173. data/syntax/rez.syntax +80 -0
  174. data/syntax/ruby.syntax +1035 -0
  175. data/syntax/ruby_experimental.syntax +145 -0
  176. data/syntax/ruby_on_rails.syntax +88 -0
  177. data/syntax/s5.syntax +69 -0
  178. data/syntax/scheme.syntax +347 -0
  179. data/syntax/scilab.syntax +41 -0
  180. data/syntax/setext.syntax +147 -0
  181. data/syntax/shell-unix-generic.syntax +384 -0
  182. data/syntax/slate.syntax +149 -0
  183. data/syntax/sql.syntax +237 -0
  184. data/syntax/sql_rails.syntax +18 -0
  185. data/syntax/ssh-config.syntax +33 -0
  186. data/syntax/standard_ml.syntax +121 -0
  187. data/syntax/strings_file.syntax +39 -0
  188. data/syntax/subversion_commit_message.syntax +36 -0
  189. data/syntax/sweave.syntax +84 -0
  190. data/syntax/swig.syntax +57 -0
  191. data/syntax/tcl.syntax +152 -0
  192. data/syntax/template_toolkit.syntax +121 -0
  193. data/syntax/tex.syntax +86 -0
  194. data/syntax/tex_math.syntax +49 -0
  195. data/syntax/textile.syntax +215 -0
  196. data/syntax/tsv.syntax +50 -0
  197. data/syntax/twiki.syntax +241 -0
  198. data/syntax/txt2tags.syntax +79 -0
  199. data/syntax/vectorscript.syntax +57 -0
  200. data/syntax/xhtml_1.0.syntax +4027 -0
  201. data/syntax/xml.syntax +180 -0
  202. data/syntax/xml_strict.syntax +92 -0
  203. data/syntax/xsl.syntax +60 -0
  204. data/syntax/yaml.syntax +160 -0
  205. data/syntax/yui_javascript.syntax +176 -0
  206. data/test/test_uv.rb +17 -0
  207. data/vendor/assets/stylesheets/active4d.css +117 -0
  208. data/vendor/assets/stylesheets/all_hallows_eve.css +75 -0
  209. data/vendor/assets/stylesheets/all_uv_themes.css +4 -0
  210. data/vendor/assets/stylesheets/amy.css +150 -0
  211. data/vendor/assets/stylesheets/blackboard.css +91 -0
  212. data/vendor/assets/stylesheets/brilliance_black.css +608 -0
  213. data/vendor/assets/stylesheets/brilliance_dull.css +602 -0
  214. data/vendor/assets/stylesheets/cobalt.css +152 -0
  215. data/vendor/assets/stylesheets/dawn.css +124 -0
  216. data/vendor/assets/stylesheets/eiffel.css +124 -0
  217. data/vendor/assets/stylesheets/espresso_libre.css +112 -0
  218. data/vendor/assets/stylesheets/idle.css +65 -0
  219. data/vendor/assets/stylesheets/iplastic.css +83 -0
  220. data/vendor/assets/stylesheets/lazy.css +76 -0
  221. data/vendor/assets/stylesheets/mac_classic.css +126 -0
  222. data/vendor/assets/stylesheets/magicwb_amiga.css +107 -0
  223. data/vendor/assets/stylesheets/pastels_on_dark.css +191 -0
  224. data/vendor/assets/stylesheets/railscasts.css +74 -0
  225. data/vendor/assets/stylesheets/slush_poppies.css +88 -0
  226. data/vendor/assets/stylesheets/spacecadet.css +54 -0
  227. data/vendor/assets/stylesheets/sunburst.css +183 -0
  228. data/vendor/assets/stylesheets/twilight.css +140 -0
  229. data/vendor/assets/stylesheets/zenburnesque.css +94 -0
  230. metadata +302 -0
@@ -0,0 +1,276 @@
1
+ ---
2
+ name: Active4D
3
+ fileTypes: []
4
+
5
+ scopeName: source.active4d
6
+ repository:
7
+ escaped_char:
8
+ name: constant.character.escape.active4d
9
+ match: \\.
10
+ interpolated_variable:
11
+ name: variable.other.interpolated.local.active4d
12
+ captures:
13
+ "1":
14
+ name: punctuation.definition.variable.active4d
15
+ match: (\$)[\w_]+({(".+?"|\d+|\$[\w_]+)})*(\[\[\d+\]\])*
16
+ interpolated_table_field:
17
+ name: variable.other.interpolated.table-field.active4d
18
+ match: \[\w[\w_ ]*\][\w_]+(\[\[\d+\]\])*
19
+ interpolated_string:
20
+ patterns:
21
+ - include: "#escaped_char"
22
+ - include: "#interpolated_code"
23
+ - include: "#interpolated_table_field"
24
+ - include: "#interpolated_variable"
25
+ - include: "#interpolated_collection_ref"
26
+ interpolated_code:
27
+ name: source.interpolated.active4d
28
+ endCaptures:
29
+ "0":
30
+ name: punctuation.definition.string.end.active4d
31
+ begin: "`"
32
+ beginCaptures:
33
+ "0":
34
+ name: punctuation.definition.string.begin.active4d
35
+ end: "`"
36
+ patterns:
37
+ - include: $self
38
+ interpolated_collection_ref:
39
+ name: variable.other.interpolated.collection-ref.active4d
40
+ match: (_form|_query|_request|globals|session)({(".+?"|\d+|\$[\w_]+)})+(\[\[\d+\]\])*
41
+ fusedoc:
42
+ name: text.xml
43
+ begin: (?=^\s*<fusedoc )
44
+ end: (?<=</fusedoc>)
45
+ patterns:
46
+ - include: text.xml
47
+ uuid: 8C2BF09D-AE95-479B-B516-F8DB62C86A0C
48
+ foldingStartMarker: |-
49
+ (?x)
50
+ (^\s*(?i:if|while|for\ each|for|case\ of|repeat|method|save output)\b
51
+ )
52
+ patterns:
53
+ - name: comment.line.backtick.active4d
54
+ captures:
55
+ "1":
56
+ name: punctuation.definition.comment.active4d
57
+ match: (`).*$\n?
58
+ - name: comment.line.double-slash.active4d
59
+ captures:
60
+ "1":
61
+ name: punctuation.definition.comment.active4d
62
+ match: (//).*$\n?
63
+ - name: comment.line.double-backslash.continuation.active4d
64
+ captures:
65
+ "1":
66
+ name: punctuation.definition.comment.active4d
67
+ match: (\\\\).*$\n?
68
+ - name: comment.block.active4d
69
+ captures:
70
+ "0":
71
+ name: punctuation.definition.comment.active4d
72
+ begin: /\*
73
+ end: \*/
74
+ patterns:
75
+ - include: "#fusedoc"
76
+ - name: string.quoted.double.active4d
77
+ endCaptures:
78
+ "0":
79
+ name: punctuation.definition.string.end.active4d
80
+ begin: "\"(?!\"\")"
81
+ beginCaptures:
82
+ "0":
83
+ name: punctuation.definition.string.begin.active4d
84
+ end: "\""
85
+ patterns:
86
+ - include: "#escaped_char"
87
+ - name: string.quoted.triple.heredoc.active4d
88
+ endCaptures:
89
+ "0":
90
+ name: punctuation.definition.string.end.active4d
91
+ begin: "\"\"\""
92
+ beginCaptures:
93
+ "0":
94
+ name: punctuation.definition.string.begin.active4d
95
+ end: "\"\"\""
96
+ patterns:
97
+ - include: "#escaped_char"
98
+ - name: string.interpolated.quoted.single.active4d
99
+ endCaptures:
100
+ "0":
101
+ name: punctuation.definition.string.end.active4d
102
+ begin: "'(?!'')"
103
+ beginCaptures:
104
+ "0":
105
+ name: punctuation.definition.string.begin.active4d
106
+ end: "'"
107
+ patterns:
108
+ - include: "#interpolated_string"
109
+ - name: string.interpolated.quoted.triple.heredoc.active4d
110
+ endCaptures:
111
+ "0":
112
+ name: punctuation.definition.string.end.active4d
113
+ begin: "'''"
114
+ beginCaptures:
115
+ "0":
116
+ name: punctuation.definition.string.begin.active4d
117
+ end: "'''"
118
+ patterns:
119
+ - include: "#interpolated_string"
120
+ - name: constant.numeric.active4d
121
+ match: (?<![[:alpha:]])[\-]?(?:0x[[:xdigit:]]{1,4}|\d+(\.\d+)?)(?![[:alpha:]])
122
+ - name: constant.language.boolean.active4d
123
+ match: \b(?i)(true|false)\b
124
+ - name: variable.other.local.active4d
125
+ captures:
126
+ "1":
127
+ name: punctuation.definition.variable.active4d
128
+ match: (\$)[\w_]+
129
+ - name: variable.other.interprocess.active4d
130
+ captures:
131
+ "1":
132
+ name: punctuation.definition.variable.active4d
133
+ match: (\<\>)[\w_]+
134
+ - name: variable.other.table-field.active4d
135
+ captures:
136
+ "1":
137
+ name: punctuation.definition.variable.active4d
138
+ "2":
139
+ name: punctuation.definition.variable.active4d
140
+ match: (\[)[^\[].*?(\])([\w_ ]+)?
141
+ - name: constant.other.date.active4d
142
+ captures:
143
+ "1":
144
+ name: punctuation.definition.constant.active4d
145
+ "2":
146
+ name: punctuation.definition.constant.active4d
147
+ match: (!)\d{1,2}/\d{1,2}/\d{2,4}(!)
148
+ - name: constant.other.time.active4d
149
+ captures:
150
+ "1":
151
+ name: punctuation.definition.constant.active4d
152
+ "2":
153
+ name: punctuation.definition.constant.active4d
154
+ match: (\?)\d{1,2}:\d{1,2}:\d{1,2}(\?)
155
+ - name: meta.function.active4d
156
+ captures:
157
+ "1":
158
+ name: storage.type.function.active4d
159
+ "2":
160
+ name: entity.name.function.active4d
161
+ match: ^\s*(method)\s*("[^"]+")(?!\s*\()
162
+ comment: method definition without parameters
163
+ - name: meta.function.active4d
164
+ endCaptures:
165
+ "1":
166
+ name: punctuation.definition.parameters.active4d
167
+ begin: ^\s*(method)\s*((")[^"]+("))\s*(\()
168
+ beginCaptures:
169
+ "1":
170
+ name: storage.type.function.active4d
171
+ "2":
172
+ name: entity.name.function.active4d
173
+ "3":
174
+ name: punctuation.definition.entity.active4d
175
+ "4":
176
+ name: punctuation.definition.entity.active4d
177
+ "5":
178
+ name: punctuation.definition.parameters.active4d
179
+ end: (\))\s*(?:(?:\\\\|//|`).*)?$
180
+ patterns:
181
+ - name: variable.parameter.function.active4d
182
+ captures:
183
+ "1":
184
+ name: keyword.operator.active4d
185
+ "2":
186
+ name: punctuation.definition.variable.active4d
187
+ "3":
188
+ name: punctuation.separator.parameters.active4d
189
+ match: (&)?(\$)[\w_]+(;)?
190
+ - endCaptures:
191
+ "1":
192
+ name: punctuation.separator.parameters.active4d
193
+ begin: (=)
194
+ beginCaptures:
195
+ "1":
196
+ name: punctuation.separator.key-value.active4d
197
+ end: (;)|(?=\))
198
+ patterns:
199
+ - include: $self
200
+ comment: method definition with parameters
201
+ - name: keyword.operator.active4d
202
+ match: |-
203
+ (?x) (
204
+ :=
205
+ | \+=
206
+ | \-=
207
+ | /=
208
+ | \\=
209
+ | \*=
210
+ | \%=
211
+ | \^=
212
+ | &=
213
+ | \|=
214
+ | <<=
215
+ | >>=
216
+ | >
217
+ | <
218
+ | >=
219
+ | <=
220
+ | =
221
+ | =~
222
+ | \#
223
+ | \#~
224
+ | ~
225
+ | !~
226
+ | \+
227
+ | \+\+
228
+ | \-
229
+ | \-\-
230
+ | /
231
+ | \\
232
+ | \*
233
+ | \*\+
234
+ | \*/
235
+ | %
236
+ | &
237
+ | \|
238
+ | \^
239
+ | \^\|
240
+ | <<
241
+ | >>
242
+ | \?\+
243
+ | \?\-
244
+ | \?\?
245
+ | \}
246
+ | \{
247
+ | ;
248
+ | \:
249
+ | \]\]
250
+ | \[\[
251
+ | \->)
252
+ - name: keyword.control.active4d
253
+ match: \b(?i)(end (if|for each|for|while|case)|if|else|while|for each|for|case of|repeat|until|break|continue)\b
254
+ - name: keyword.other.active4d
255
+ match: \b(?i)(end method|method|define|return|exit|self|import|require|global|throw)\b
256
+ - name: support.constant.active4d
257
+ match: (?i)\b(Write Mode|Text without length|Text array|String array|Short|Real array|Read Mode|Read and Write|Pointer array|Picture array|No current record|New record|Month Day Year|MM DD YYYY Forced|MM DD YYYY|MAXTEXTLEN|MAXLONG|Longint array|Long|Line feed|Is Undefined|Is Time|Is Text|Is String Var|Is Real|Is Pointer|Is Picture|Is Longint|Is Integer|Is Date|Is Boolean|Is BLOB|Is Alpha Field|Into variable|Into set|Into named selection|Into current selection|Integer array|Hour Min Sec|Hour Min|HH MM SS|HH MM AM PM|HH MM|Get Pathname|Date array|Carriage return|Boolean array|Array 2D|Abbreviated|Abbr Month Day|A4D Parameter Mode Separate|A4D Parameter Mode Query|A4D Parameter Mode Form|A4D License Type Deployment|A4D Encoding Tags|A4D Encoding Quotes|A4D Encoding None|A4D Encoding HTML|A4D Encoding Extended|A4D Encoding Ampersand|A4D Encoding All|A4D Charset Win|A4D Charset Shift_JIS|A4D Charset Mac|A4D Charset ISO Latin1|A4D Charset GB2312)\b
258
+ - name: support.function.active4d
259
+ match: (?i)\b(_request|_query|_form|Year of|writep|writeln|writebr|write to console|write raw|write png|WRITE PICTURE FILE|write jpg|write jpeg|write gif|write blob|write|Win to Mac|week of year|variable name|VALIDATE TRANSACTION|utc to local time|utc to local datetime|USE SET|USE NAMED SELECTION|url to native path|url encode query|url encode path|url encode|url decode query|url decode path|url decode|Uppercase|unlock globals|UNLOAD RECORD|UNION|Undefined|type descriptor|Type|Trunc|True|trim|timestamp year|timestamp time|timestamp string|timestamp second|timestamp month|timestamp minute|timestamp millisecond|timestamp hour|timestamp difference|timestamp day|timestamp date|timestamp|time to longint|Time string|Time|Tickcount|throw|TEXT TO BLOB|Test semaphore|Test path name|Table name|Table|Substring|Structure file|STRING LIST TO ARRAY|String|START TRANSACTION|split string|SORT ARRAY|slice string|Size of array|set session timeout|set session array|set session|set script timeout|set response status|set response header|set response cookie path|set response cookie expires|set response cookie domain|set response cookie|set response buffer|SET QUERY LIMIT|SET QUERY DESTINATION|set platform charset|set output encoding|set output charset|set log level|set local|set global array|set global|set expires date|set expires|set error page|SET DOCUMENT POSITION|SET DEFAULT CENTURY|set current script timeout|set content type|set content charset|set collection array|set collection|set cache control|SET AUTOMATIC RELATIONS|set array|session to blob|session query|session local|session internal id|session id|session has|session|Sequence number|SEND PACKET|Semaphore|SELECTION TO ARRAY|SELECTION RANGE TO ARRAY|Selected record number|SCAN INDEX|save upload to field|SAVE RECORD|save output|save collection|Round|right trim|response headers|response cookies|response buffer size|RESOLVE POINTER|resize array|require|requested url|request query|request info|request cookies|Replace string|REMOVE FROM SET|RELATE ONE SELECTION|RELATE ONE|RELATE MANY SELECTION|RELATE MANY|regex split|regex replace|regex quote pattern|regex match all|regex match|regex find in array|regex find all in array|regex callback replace|REDUCE SELECTION|redirect|Records in table|Records in set|Records in selection|Record number|RECEIVE PACKET|READ WRITE|READ PICTURE FILE|Read only state|READ ONLY|random between|Random|QUERY WITH ARRAY|QUERY SELECTION BY FORMULA|QUERY SELECTION|query params has|query params|QUERY BY FORMULA|QUERY|PREVIOUS RECORD|Position|Picture size|PICTURE PROPERTIES|parameter mode|param text|ORDER BY FORMULA|ORDER BY|Open document|ONE RECORD SELECT|Num|Not|nil pointer|Nil|NEXT RECORD|next item|new local collection|new global collection|new collection|native to url path|multisort named arrays|multisort arrays|MOVE DOCUMENT|more items|Month of|min of|Milliseconds|method exists|merge collections|md5 sum|max of|Mac to Win|Mac to ISO|mac to html|Lowercase|longint to time|log message|Locked|lock globals|local variables|local time to utc|local datetime to utc|LOAD RECORD|load collection|LIST TO ARRAY|library list|Length|left trim|LAST RECORD|last of|last not of|join paths|join array|ISO to Mac|Is in set|is array|is an iterator|is a collection|INTERSECTION|interpolate string|Int|insert into array|INSERT ELEMENT|include into|include|in error|import|identical strings|hide session field|GOTO SELECTED RECORD|GOTO RECORD|globals has|globals|global|get version|get utc delta|get upload size|get upload remote filename|get upload extension|get upload encoding|get upload content type|get timestamp datetime|get time remaining|get session timeout|get session stats|get session names|get session item|get session array size|get session array|get session|get script timeout|get root|get response headers|get response header|get response cookies|get response cookie path|get response cookie expires|get response cookie domain|get response cookie|get response buffer|get request value|get request infos|get request info|get request cookies|get request cookie|get query params|get query param count|get query param choices|get query param|Get pointer|get platform charset|GET PICTURE FROM LIBRARY|get output encoding|get output charset|get log level|get local|get license info|get library list|get item value|get item type|get item key|get item array|Get indexed string|get global keys|get global item|get global array size|get global array|get global|get form variables|get form variable count|get form variable choices|get form variable|GET FIELD PROPERTIES|get field pointer|get field numbers|get expires date|get expires|get error page|Get document position|get current script timeout|get content type|get content charset|get collection keys|get collection item count|get collection item|get collection array size|get collection array|get collection|get call chain|get cache control|get auto relations|full requested url|form variables has|form variables|FOLDER LIST|FIRST RECORD|first of|first not of|Find index key|Find in array|fill array|filename of|file exists|Field name|Field|False|extension of|execute in 4d|EXECUTE|End selection|end save output|enclose|DOCUMENT TO BLOB|DOCUMENT LIST|DISTINCT VALUES|directory separator|directory of|directory exists|DIFFERENCE|Delete string|delete session item|DELETE SELECTION|delete response header|delete response cookie|DELETE RECORD|delete global|DELETE FOLDER|DELETE ELEMENT|DELETE DOCUMENT|delete collection item|DELAY PROCESS|defined|define|default directory|deep copy collection|deep clear collection|Dec|day of year|Day of|Day number|Date|C_TIME|C_TEXT|C_STRING|C_REAL|C_POINTER|C_PICTURE|C_LONGINT|C_DATE|C_BOOLEAN|C_BLOB|CUT NAMED SELECTION|Current time|current realm|Current process|current platform|current path|Current method name|current line number|current library name|current file|Current date|CREATE SET FROM ARRAY|CREATE SET|CREATE SELECTION FROM ARRAY|CREATE RECORD|CREATE FOLDER|CREATE EMPTY SET|Create document|count uploads|Count tables|count session items|count response headers|count response cookies|count request infos|count request cookies|count query params|Count in array|count globals|count form variables|Count fields|count collection items|copy upload|COPY SET|COPY NAMED SELECTION|COPY DOCUMENT|copy collection|COPY ARRAY|concat|compare strings|collection to blob|collection has|collection|CLOSE DOCUMENT|CLEAR VARIABLE|CLEAR SET|CLEAR SEMAPHORE|clear response buffer|CLEAR NAMED SELECTION|clear collection|clear buffer (deprecated)|clear array|choose|Char|cell|capitalize|CANCEL TRANSACTION|call method|call 4d method|build query string|blowfish encrypt|blowfish decrypt|BLOB to text|blob to session|BLOB TO DOCUMENT|blob to collection|BLOB size|Before selection|base64 encode|base64 decode|AUTOMATIC RELATIONS|auto relate|authenticate|auth user|auth type|auth password|Ascii|ARRAY TEXT|ARRAY STRING|ARRAY REAL|ARRAY POINTER|ARRAY PICTURE|ARRAY LONGINT|ARRAY INTEGER|ARRAY DATE|ARRAY BOOLEAN|append to array|Append document|ALL RECORDS|add to timestamp|ADD TO SET|Add to date|add element|Abs|abandon session|abandon response cookie)\b
260
+ comment: 4D and Active4D commands
261
+ - name: support.function.active4d
262
+ match: (?i)\b((yearMonthDay|writeDumpStyles|writeBold|write|warnInvalidField|valueList|valueCountNoCase|valueCount|validPrice|validEmailAddress|validateTextFields|unlockAndLoad|truncateText|timedOut|sourceRowCount|sort|setTitle|setTimeout|setSMTPHost|setSMTPAuthorization|setSeparator|setRelateOne|setMailMethod|setDivId|setDefaults|setColumnData|setColumnArray|setAt|sendMail|sendFuseaction|saveFormToSession|rowCount|reverseArray|rest|qualify|previous|prepend|postHandleError|persistent|ordinalOf|nextID|next|newFromSelection|newFromRowSet|newFromFile|newFromData|newFromCachedSelection|newFromArrays|newFromArray|new|move|maxRows|makeURL|makeSafeMailto|makeLinks|makeFuseboxLinks|listToArray|len|last|isLast|isFuseboxRequest|isFirst|isBeforeFirst|isAfterLast|insertAt|hideUniqueField|hideField|handleError|gotoRow|getVariablesIterator|getUniqueID|getTitle|getTimeout|getStarts|getStart|getSMTPHost|getSMTPAuthUser|getSMTPAuthPassword|getSMTPAuthorization|getRow|getPointerReferent|getPictureDescriptor|getPersistentList|getMailMethod|getEnd|getEmptyFields|getDefaults|getData|getColumn|getAt|fuseboxNew|formVariableListToQuery|formatUSPhone|first|findRow|findNoCase|findColumn|find|filterCollection|embedVariables|embedQueryParams|embedFormVariables|embedFormVariableList|embedCollectionItems|embedCollection|dumpPersistent|dumpLib|dumpDefaults|dump session stats|dump session|dump selection|dump RowSet|dump request info|dump request|dump query params|dump locals|dump license info|dump form variables|dump collection|dump array|dump|deleteSelection|deleteAt|currentRow|core|containsNoCase|contains|columnCount|collectionToQuery|collectionItemsToQuery|clearPersistent|chopText|checkSession|checkboxState|changeDelims|camelCaseText|buildSelectValueMenu|buildSelectMenu|buildRecordList|buildOptionsFromSelection|buildOptionsFromRowSet|buildOptionsFromOptionList|buildOptionsFromOptionArray|buildOptionsFromLists|buildOptionsFromArrays|buildArrayValueList|buildArrayList|beforeFirst|articleFor|arrayToList|append|afterLast|addMetaTag|addJS|addJavascript|addDumpStyles|addCSS|add))\b
263
+ comment: library methods
264
+ - name: support.variable.active4d
265
+ match: (?i)\b(OK|Document|fusebox\.conf\.fuseaction)\b
266
+ - captures:
267
+ "1":
268
+ name: support.class.active4d
269
+ "2":
270
+ name: support.function.active4d
271
+ match: (?<!\$)\b((?:a4d\.(?:console|debug|lists|utils|web)|Batch|Breadcrumbs|fusebox\.conf|fusebox\.head|fusebox|RowSet))\.([[:alpha:]][[[:alnum:]]_ ]+[[:alnum:]])
272
+ foldingStopMarker: |-
273
+ (?x)
274
+ (^\s*(?i:end\ (if|while|for\ each|for|case|method|save output)|until)\b
275
+ )
276
+ keyEquivalent: ^~A
@@ -0,0 +1,311 @@
1
+ ---
2
+ name: HTML (Active4D)
3
+ fileTypes:
4
+ - a4d
5
+ - a4p
6
+ scopeName: text.html.strict.active4d
7
+ repository:
8
+ tag-stuff:
9
+ patterns:
10
+ - include: "#tag-id-attribute"
11
+ - include: "#tag-generic-attribute"
12
+ - include: "#string-double-quoted"
13
+ - include: "#string-single-quoted"
14
+ - include: "#embedded-code"
15
+ string-double-quoted:
16
+ name: string.quoted.double.html
17
+ endCaptures:
18
+ "0":
19
+ name: punctuation.definition.string.end.html
20
+ begin: "\""
21
+ beginCaptures:
22
+ "0":
23
+ name: punctuation.definition.string.begin.html
24
+ end: "\""
25
+ patterns:
26
+ - include: "#embedded-code"
27
+ - include: "#entities"
28
+ entities:
29
+ patterns:
30
+ - name: constant.character.entity.html
31
+ captures:
32
+ "1":
33
+ name: punctuation.definition.entity.html
34
+ "3":
35
+ name: punctuation.terminator.entity.html
36
+ match: (&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)
37
+ - name: invalid.illegal.bad-ampersand.html
38
+ match: "&"
39
+ embedded-js:
40
+ patterns:
41
+ - include: "#string-double-quoted-js"
42
+ - include: "#string-single-quoted-js"
43
+ - include: "#embedded-code"
44
+ string-single-quoted:
45
+ name: string.quoted.single.html
46
+ endCaptures:
47
+ "0":
48
+ name: punctuation.definition.string.end.html
49
+ begin: "'"
50
+ beginCaptures:
51
+ "0":
52
+ name: punctuation.definition.string.begin.html
53
+ end: "'"
54
+ patterns:
55
+ - include: "#embedded-code"
56
+ - include: "#entities"
57
+ tag-id-attribute:
58
+ name: meta.attribute-with-value.id.html
59
+ captures:
60
+ "1":
61
+ name: entity.other.attribute-name.id.html
62
+ "2":
63
+ name: punctuation.separator.key-value.html
64
+ begin: \b(id)\b\s*(=)
65
+ end: (?<='|")
66
+ patterns:
67
+ - name: string.quoted.double.html
68
+ endCaptures:
69
+ "0":
70
+ name: punctuation.definition.string.end.html
71
+ begin: "\""
72
+ contentName: meta.toc-list.id.html
73
+ beginCaptures:
74
+ "0":
75
+ name: punctuation.definition.string.begin.html
76
+ end: "\""
77
+ patterns:
78
+ - include: "#embedded-code"
79
+ - include: "#entities"
80
+ - name: string.quoted.single.html
81
+ endCaptures:
82
+ "0":
83
+ name: punctuation.definition.string.end.html
84
+ begin: "'"
85
+ contentName: meta.toc-list.id.html
86
+ beginCaptures:
87
+ "0":
88
+ name: punctuation.definition.string.begin.html
89
+ end: "'"
90
+ patterns:
91
+ - include: "#embedded-code"
92
+ - include: "#entities"
93
+ string-double-quoted-js:
94
+ name: string.quoted.double.js
95
+ endCaptures:
96
+ "0":
97
+ name: punctuation.definition.string.end.js
98
+ begin: "\""
99
+ beginCaptures:
100
+ "0":
101
+ name: punctuation.definition.string.begin.js
102
+ end: "\""
103
+ patterns:
104
+ - include: "#embedded-code"
105
+ tag-generic-attribute:
106
+ name: entity.other.attribute-name.html
107
+ match: \b([a-zA-Z-:]+)
108
+ string-single-quoted-js:
109
+ name: string.quoted.single.js
110
+ endCaptures:
111
+ "0":
112
+ name: punctuation.definition.string.end.js
113
+ begin: "'"
114
+ beginCaptures:
115
+ "0":
116
+ name: punctuation.definition.string.begin.js
117
+ end: "'"
118
+ patterns:
119
+ - include: "#embedded-code"
120
+ embedded-code:
121
+ name: source.active4d.embedded.html
122
+ endCaptures:
123
+ "0":
124
+ name: punctuation.section.embedded.active4d
125
+ begin: <%
126
+ beginCaptures:
127
+ "0":
128
+ name: punctuation.section.embedded.active4d
129
+ end: "%>"
130
+ patterns:
131
+ - include: source.active4d
132
+ uuid: E666209C-4477-4D83-8B49-9463DFBACD9F
133
+ foldingStartMarker: |-
134
+ (?x)
135
+ (<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
136
+ |<!--(?!.*-->)
137
+ |^\s*<%(?!.*%>)
138
+ |(^\s*|<%\s*)(?i:if|while|for\ each|for|case\ of|repeat|method|save\ output)\b
139
+ )
140
+ patterns:
141
+ - name: meta.tag.any.html
142
+ endCaptures:
143
+ "1":
144
+ name: punctuation.definition.tag.html
145
+ "2":
146
+ name: meta.scope.between-tag-pair.html
147
+ "3":
148
+ name: entity.name.tag.html
149
+ "4":
150
+ name: punctuation.definition.tag.html
151
+ begin: (<)([a-zA-Z0-9:]+)(?=[^>]*></\2>)
152
+ beginCaptures:
153
+ "1":
154
+ name: punctuation.definition.tag.html
155
+ "2":
156
+ name: entity.name.tag.html
157
+ end: (>(<)/)(\2)(>)
158
+ patterns:
159
+ - include: "#tag-stuff"
160
+ - name: meta.tag.preprocessor.xml.html
161
+ captures:
162
+ "1":
163
+ name: punctuation.definition.tag.xml.html
164
+ "2":
165
+ name: entity.name.tag.xml.html
166
+ begin: (<\?)(xml)
167
+ end: (\?>)
168
+ patterns:
169
+ - include: "#tag-generic-attribute"
170
+ - include: "#string-double-quoted"
171
+ - include: "#string-single-quoted"
172
+ - name: comment.block.html
173
+ captures:
174
+ "0":
175
+ name: punctuation.definition.comment.html
176
+ begin: <!--
177
+ end: -->
178
+ patterns:
179
+ - name: invalid.illegal.bad-comments-or-CDATA.html
180
+ match: --
181
+ - name: meta.tag.sgml.html
182
+ captures:
183
+ "0":
184
+ name: punctuation.definition.tag.html
185
+ begin: <!
186
+ end: ">"
187
+ patterns:
188
+ - name: meta.tag.sgml.doctype.html
189
+ captures:
190
+ "1":
191
+ name: entity.name.tag.doctype.html
192
+ begin: (DOCTYPE)
193
+ end: (?=>)
194
+ patterns:
195
+ - name: string.quoted.double.doctype.identifiers-and-DTDs.html
196
+ match: "\"[^\">]*\""
197
+ - name: constant.other.inline-data.html
198
+ begin: \[CDATA\[
199
+ end: "]](?=>)"
200
+ - name: invalid.illegal.bad-comments-or-CDATA.html
201
+ match: (\s*)(?!--|>)\S(\s*)
202
+ - name: meta.tag.processor.html
203
+ endCaptures:
204
+ "0":
205
+ name: punctuation.section.embedded.active4d
206
+ "1":
207
+ name: meta.scope.between-tag-pair.html
208
+ begin: <%(?=%>)
209
+ beginCaptures:
210
+ "0":
211
+ name: punctuation.section.embedded.active4d
212
+ end: (%)>
213
+ patterns:
214
+ - include: "#embedded-code"
215
+ - include: "#embedded-code"
216
+ - name: source.css.embedded.html
217
+ captures:
218
+ "1":
219
+ name: punctuation.definition.tag.html
220
+ "2":
221
+ name: entity.name.tag.style.html
222
+ "3":
223
+ name: punctuation.definition.tag.html
224
+ begin: (?:^\s+)?(<)((?i:style))\b(?![^>]*/>)
225
+ end: (</)((?i:style))(>)(?:\s*\n)?
226
+ patterns:
227
+ - include: "#tag-stuff"
228
+ - begin: (>)
229
+ beginCaptures:
230
+ "1":
231
+ name: punctuation.definition.tag.html
232
+ end: (?=</(?i:style))
233
+ patterns:
234
+ - include: "#embedded-code"
235
+ - include: source.css
236
+ - name: source.js.embedded.html
237
+ endCaptures:
238
+ "1":
239
+ name: entity.name.tag.script.html
240
+ "2":
241
+ name: punctuation.definition.tag.html
242
+ begin: (?:^\s+)?(<)((?i:script))\b(?![^>]*/>)
243
+ beginCaptures:
244
+ "1":
245
+ name: punctuation.definition.tag.html
246
+ "2":
247
+ name: entity.name.tag.script.html
248
+ end: (?<=</(script|SCRIPT))(>)(?:\s*\n)?
249
+ patterns:
250
+ - include: "#tag-stuff"
251
+ - captures:
252
+ "1":
253
+ name: punctuation.definition.tag.html
254
+ begin: (?<!</(?:script|SCRIPT))(>)
255
+ end: (</)((?i:script))
256
+ patterns:
257
+ - include: "#embedded-js"
258
+ - include: source.js
259
+ - name: meta.tag.structure.any.html
260
+ captures:
261
+ "1":
262
+ name: punctuation.definition.tag.html
263
+ "2":
264
+ name: entity.name.tag.structure.any.html
265
+ begin: (</?)((?i:body|head|html)\b)
266
+ end: (>)
267
+ patterns:
268
+ - include: "#tag-stuff"
269
+ - name: meta.tag.block.any.html
270
+ captures:
271
+ "1":
272
+ name: punctuation.definition.tag.html
273
+ "2":
274
+ name: entity.name.tag.block.any.html
275
+ begin: (</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\b)
276
+ end: (>)
277
+ patterns:
278
+ - include: "#tag-stuff"
279
+ - name: meta.tag.inline.any.html
280
+ captures:
281
+ "1":
282
+ name: punctuation.definition.tag.html
283
+ "2":
284
+ name: entity.name.tag.inline.any.html
285
+ begin: (</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\b)
286
+ end: (>)
287
+ patterns:
288
+ - include: "#tag-stuff"
289
+ - name: meta.tag.other.html
290
+ captures:
291
+ "1":
292
+ name: punctuation.definition.tag.html
293
+ "2":
294
+ name: entity.name.tag.other.html
295
+ begin: (</?)([a-zA-Z0-9:]+)
296
+ end: (>)
297
+ patterns:
298
+ - include: "#tag-stuff"
299
+ - include: "#entities"
300
+ - name: invalid.illegal.incomplete.html
301
+ match: <>
302
+ - name: invalid.illegal.bad-angle-bracket.html
303
+ match: <(?=\W)|>
304
+ foldingStopMarker: |-
305
+ (?x)
306
+ (</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
307
+ |^(?!.*?<!--).*?-->
308
+ |^\s*%>
309
+ |(^\s*|<%\s*)(?i:end\ (if|while|for\ each|for|case|method|save\ output)|until)\b
310
+ )
311
+ keyEquivalent: ^~A
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: Active4D Config
3
+ fileTypes:
4
+ - ini
5
+ scopeName: text.active4d-ini
6
+ repository:
7
+ escaped_char:
8
+ name: constant.character.escape.active4d-ini
9
+ match: \\.
10
+ uuid: BECA5580-F845-4715-889C-134DF4BF67C2
11
+ patterns:
12
+ - name: comment.line.double-slash.active4d-ini
13
+ captures:
14
+ "1":
15
+ name: punctuation.definition.comment.active4d-ini
16
+ match: (//).*$\n?
17
+ - name: comment.line.backtick.active4d-ini
18
+ captures:
19
+ "1":
20
+ name: punctuation.definition.comment.active4d-ini
21
+ match: (`).*$\n?
22
+ - name: comment.line.double-backslash.continuation.active4d-ini
23
+ captures:
24
+ "1":
25
+ name: punctuation.definition.comment.active4d-ini
26
+ match: (\\\\).*$\n?
27
+ - name: comment.block.active4d-ini
28
+ captures:
29
+ "0":
30
+ name: punctuation.definition.comment.active4d-ini
31
+ begin: /\*
32
+ end: \*/
33
+ - name: string.quoted.double.active4d-ini
34
+ endCaptures:
35
+ "0":
36
+ name: punctuation.definition.string.end.active4d-ini
37
+ begin: "\"(?!\"\")"
38
+ beginCaptures:
39
+ "0":
40
+ name: punctuation.definition.string.begin.active4d-ini
41
+ end: "\""
42
+ patterns:
43
+ - include: "#escaped_char"
44
+ - name: constant.language.boolean.active4d-ini
45
+ match: \b(?i)(true|false|yes|no)\b
46
+ - name: keyword.operator.active4d-ini
47
+ match: "="
48
+ - name: support.constant.active4d-ini
49
+ match: (?i)((\b(use sessions|use session cookies|session var name|session timeout|session purge interval|session cookie path|session cookie name|session cookie domain|serve nonexecutables|script timeout|safe script dirs|safe doc dirs|root|refresh interval|receive timeout|platform charset|parameter mode|output encoding|output charset|max request size|log level|lib extension|lib dirs|http error page|fusebox page|expires|executable extensions|error page|default page|content charset|client is web server|cache control|auto relate one|auto relate many|auto refresh libs|auto create vars)\b)|(\<default\>|\<web\>|\<4d volume\>|\<boot volume\>))
50
+ keyEquivalent: ^~A
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: Active4D Library
3
+ fileTypes:
4
+ - a4l
5
+ scopeName: source.active4d.library
6
+ uuid: A595B09A-3829-48CB-958B-7D6C4646409D
7
+ foldingStartMarker: |-
8
+ (?x)
9
+ (^\s*(?i:if|while|for\ each|for|case\ of|repeat|method)\b
10
+ |^\s*<fusedoc\ fuse
11
+ )
12
+ patterns:
13
+ - name: keyword.other.active4d
14
+ match: (?i:end library|library)
15
+ - include: source.active4d
16
+ foldingStopMarker: |-
17
+ (?x)
18
+ (^\s*(?i:end\ (if|while|for\ each|for|case|method)|until)\b
19
+ |^\s*</fusedoc>
20
+ )
21
+ keyEquivalent: ^~A