textpow 0.10.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. data/.travis.yml +7 -0
  2. data/Gemfile +10 -0
  3. data/Gemfile.lock +30 -0
  4. data/{History.txt → History.rdoc} +10 -0
  5. data/{README.txt → MIT-LICENSE.txt} +0 -30
  6. data/README.rdoc +82 -0
  7. data/Rakefile +42 -49
  8. data/bin/plist2syntax +0 -0
  9. data/bin/plist2yaml +0 -0
  10. data/examples/benchmark_js.rb +13 -0
  11. data/examples/jquery.js +9046 -0
  12. data/lib/textpow.rb +43 -3
  13. data/lib/textpow/debug_processor.rb +35 -35
  14. data/lib/textpow/recording_processor.rb +13 -0
  15. data/lib/textpow/score_manager.rb +60 -60
  16. data/lib/textpow/syntax.rb +303 -262
  17. data/lib/textpow/syntax/broken/markdown.syntax +519 -0
  18. data/lib/textpow/syntax/broken/php.syntax +1253 -0
  19. data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
  20. data/lib/textpow/syntax/old/YAML.yaml +160 -0
  21. data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
  22. data/lib/textpow/syntax/source.actionscript.syntax +97 -0
  23. data/lib/textpow/syntax/source.active4d.library.syntax +21 -0
  24. data/lib/textpow/syntax/source.active4d.syntax +276 -0
  25. data/lib/textpow/syntax/source.ada.syntax +33 -0
  26. data/lib/textpow/syntax/source.antlr.syntax +151 -0
  27. data/lib/textpow/syntax/source.apache-config.mod_perl.syntax +50 -0
  28. data/lib/textpow/syntax/source.apache-config.syntax +191 -0
  29. data/lib/textpow/syntax/source.applescript.syntax +384 -0
  30. data/lib/textpow/syntax/source.asp.syntax +70 -0
  31. data/lib/textpow/syntax/source.asp.vb.net.syntax +129 -0
  32. data/lib/textpow/syntax/source.c++.qt.syntax +26 -0
  33. data/lib/textpow/syntax/source.c++.syntax +186 -0
  34. data/lib/textpow/syntax/source.c-sharp.syntax +59 -0
  35. data/lib/textpow/syntax/source.c.ragel.syntax +201 -0
  36. data/lib/textpow/syntax/source.c.syntax +414 -0
  37. data/lib/textpow/syntax/source.camlp4.ocaml.syntax +36 -0
  38. data/lib/textpow/syntax/source.cm.syntax +32 -0
  39. data/lib/textpow/syntax/source.coffee.syntax +216 -0
  40. data/lib/textpow/syntax/source.context-free.syntax +176 -0
  41. data/lib/textpow/syntax/source.css.beta.syntax +1925 -0
  42. data/lib/textpow/syntax/source.css.syntax +195 -0
  43. data/lib/textpow/syntax/source.d.syntax +142 -0
  44. data/lib/textpow/syntax/source.diff.syntax +81 -0
  45. data/lib/textpow/syntax/source.dot.syntax +47 -0
  46. data/lib/textpow/syntax/source.dylan.syntax +62 -0
  47. data/lib/textpow/syntax/source.eiffel.syntax +78 -0
  48. data/lib/textpow/syntax/source.erlang.syntax +922 -0
  49. data/lib/textpow/syntax/source.fortran.syntax +141 -0
  50. data/lib/textpow/syntax/source.fscript.syntax +80 -0
  51. data/lib/textpow/syntax/source.fxscript.syntax +142 -0
  52. data/lib/textpow/syntax/source.gri.syntax +83 -0
  53. data/lib/textpow/syntax/source.groovy.groovy.syntax +191 -0
  54. data/lib/textpow/syntax/source.haskell.syntax +88 -0
  55. data/lib/textpow/syntax/source.icalendar.syntax +32 -0
  56. data/lib/textpow/syntax/source.inform.syntax +48 -0
  57. data/lib/textpow/syntax/source.ini.syntax +55 -0
  58. data/lib/textpow/syntax/source.io.syntax +81 -0
  59. data/lib/textpow/syntax/source.java-props.syntax +20 -0
  60. data/lib/textpow/syntax/source.java.syntax +211 -0
  61. data/lib/textpow/syntax/source.js.greasemonkey.syntax +34 -0
  62. data/lib/textpow/syntax/source.js.jquery.syntax +114 -0
  63. data/lib/textpow/syntax/source.js.mootools.syntax +572 -0
  64. data/lib/textpow/syntax/source.js.prototype.bracketed.syntax +140 -0
  65. data/lib/textpow/syntax/source.js.prototype.syntax +72 -0
  66. data/lib/textpow/syntax/source.js.syntax +256 -0
  67. data/lib/textpow/syntax/source.js.yui.syntax +176 -0
  68. data/lib/textpow/syntax/source.json.syntax +136 -0
  69. data/lib/textpow/syntax/source.lex.syntax +219 -0
  70. data/lib/textpow/syntax/source.lighttpd-config.syntax +54 -0
  71. data/lib/textpow/syntax/source.lilypond.syntax +492 -0
  72. data/lib/textpow/syntax/source.lisp.syntax +61 -0
  73. data/lib/textpow/syntax/source.logo.syntax +29 -0
  74. data/lib/textpow/syntax/source.logtalk.syntax +152 -0
  75. data/lib/textpow/syntax/source.lua.syntax +86 -0
  76. data/lib/textpow/syntax/source.makefile.syntax +36 -0
  77. data/lib/textpow/syntax/source.matlab.syntax +142 -0
  78. data/lib/textpow/syntax/source.mel.syntax +92 -0
  79. data/lib/textpow/syntax/source.mips.syntax +66 -0
  80. data/lib/textpow/syntax/source.ml.syntax +121 -0
  81. data/lib/textpow/syntax/source.modula-3.syntax +47 -0
  82. data/lib/textpow/syntax/source.nant-build.syntax +53 -0
  83. data/lib/textpow/syntax/source.objc++.syntax +18 -0
  84. data/lib/textpow/syntax/source.objc.syntax +233 -0
  85. data/lib/textpow/syntax/source.ocaml.syntax +764 -0
  86. data/lib/textpow/syntax/source.ocamllex.syntax +167 -0
  87. data/lib/textpow/syntax/source.ocamlyacc.syntax +184 -0
  88. data/lib/textpow/syntax/source.open-gl.syntax +14 -0
  89. data/lib/textpow/syntax/source.pascal.syntax +77 -0
  90. data/lib/textpow/syntax/source.pascal.vectorscript.syntax +57 -0
  91. data/lib/textpow/syntax/source.perl.syntax +1113 -0
  92. data/lib/textpow/syntax/source.php.cake.syntax +55 -0
  93. data/lib/textpow/syntax/source.plist.tm-grammar.syntax +708 -0
  94. data/lib/textpow/syntax/source.postscript.syntax +114 -0
  95. data/lib/textpow/syntax/source.processing.syntax +106 -0
  96. data/lib/textpow/syntax/source.prolog.syntax +40 -0
  97. data/lib/textpow/syntax/source.python.django.syntax +21 -0
  98. data/lib/textpow/syntax/source.python.syntax +868 -0
  99. data/lib/textpow/syntax/source.qmake.syntax +114 -0
  100. data/lib/textpow/syntax/source.quake-config.syntax +32 -0
  101. data/lib/textpow/syntax/source.r-console.syntax +16 -0
  102. data/lib/textpow/syntax/source.r.syntax +81 -0
  103. data/lib/textpow/syntax/source.regexp.oniguruma.syntax +107 -0
  104. data/lib/textpow/syntax/source.regexp.python.syntax +109 -0
  105. data/lib/textpow/syntax/source.regexp.syntax +50 -0
  106. data/lib/textpow/syntax/source.remind.syntax +253 -0
  107. data/lib/textpow/syntax/source.rez.syntax +80 -0
  108. data/lib/textpow/syntax/source.ruby.experimental.syntax +145 -0
  109. data/lib/textpow/syntax/source.ruby.rails.syntax +88 -0
  110. data/lib/textpow/syntax/source.ruby.syntax +1035 -0
  111. data/lib/textpow/syntax/source.s5.syntax +69 -0
  112. data/lib/textpow/syntax/source.sass.syntax +45 -0
  113. data/lib/textpow/syntax/source.scheme.syntax +347 -0
  114. data/lib/textpow/syntax/source.scilab.syntax +41 -0
  115. data/lib/textpow/syntax/source.scss.syntax +527 -0
  116. data/lib/textpow/syntax/source.shell.syntax +384 -0
  117. data/lib/textpow/syntax/source.slate.syntax +149 -0
  118. data/lib/textpow/syntax/source.smarty.syntax +63 -0
  119. data/lib/textpow/syntax/source.sql.ruby.syntax +18 -0
  120. data/lib/textpow/syntax/source.sql.syntax +237 -0
  121. data/lib/textpow/syntax/source.ssh-config.syntax +33 -0
  122. data/lib/textpow/syntax/source.strings.syntax +39 -0
  123. data/lib/textpow/syntax/source.swig.syntax +57 -0
  124. data/lib/textpow/syntax/source.tcl.macports.syntax +163 -0
  125. data/lib/textpow/syntax/source.tcl.syntax +152 -0
  126. data/lib/textpow/syntax/source.yaml.syntax +160 -0
  127. data/lib/textpow/syntax/text.active4d-ini.syntax +50 -0
  128. data/lib/textpow/syntax/text.bbcode.syntax +287 -0
  129. data/lib/textpow/syntax/text.bibtex.syntax +151 -0
  130. data/lib/textpow/syntax/text.blog.html.syntax +41 -0
  131. data/lib/textpow/syntax/text.blog.markdown.syntax +42 -0
  132. data/lib/textpow/syntax/text.blog.syntax +27 -0
  133. data/lib/textpow/syntax/text.blog.textile.syntax +27 -0
  134. data/lib/textpow/syntax/text.gtdalt.syntax +143 -0
  135. data/lib/textpow/syntax/text.haml.syntax +88 -0
  136. data/lib/textpow/syntax/text.html.asp.net.syntax +424 -0
  137. data/lib/textpow/syntax/text.html.asp.syntax +27 -0
  138. data/lib/textpow/syntax/text.html.basic.syntax +362 -0
  139. data/lib/textpow/syntax/text.html.cfm.syntax +119 -0
  140. data/lib/textpow/syntax/text.html.django.syntax +36 -0
  141. data/lib/textpow/syntax/text.html.dokuwiki.syntax +204 -0
  142. data/lib/textpow/syntax/text.html.doxygen.syntax +43 -0
  143. data/lib/textpow/syntax/text.html.markdown.multimarkdown.syntax +39 -0
  144. data/lib/textpow/syntax/text.html.mason.syntax +119 -0
  145. data/lib/textpow/syntax/text.html.mediawiki.syntax +567 -0
  146. data/lib/textpow/syntax/text.html.mt.syntax +162 -0
  147. data/lib/textpow/syntax/text.html.ruby.syntax +40 -0
  148. data/lib/textpow/syntax/text.html.strict.active4d.syntax +311 -0
  149. data/lib/textpow/syntax/text.html.tcl.syntax +26 -0
  150. data/lib/textpow/syntax/text.html.textile.syntax +215 -0
  151. data/lib/textpow/syntax/text.html.tt.syntax +121 -0
  152. data/lib/textpow/syntax/text.html.twiki.syntax +241 -0
  153. data/lib/textpow/syntax/text.html.xhtml.1-strict.syntax +4027 -0
  154. data/lib/textpow/syntax/text.log.latex.syntax +50 -0
  155. data/lib/textpow/syntax/text.mail.markdown.syntax +118 -0
  156. data/lib/textpow/syntax/text.man.syntax +17 -0
  157. data/lib/textpow/syntax/text.moinmoin.syntax +189 -0
  158. data/lib/textpow/syntax/text.plain.gtd.syntax +22 -0
  159. data/lib/textpow/syntax/text.plain.release-notes.syntax +46 -0
  160. data/lib/textpow/syntax/text.plain.syntax +32 -0
  161. data/lib/textpow/syntax/text.plist.syntax +635 -0
  162. data/lib/textpow/syntax/text.pmwiki.syntax +113 -0
  163. data/lib/textpow/syntax/text.restructuredtext.syntax +250 -0
  164. data/lib/textpow/syntax/text.setext.syntax +147 -0
  165. data/lib/textpow/syntax/text.subversion-commit.syntax +36 -0
  166. data/lib/textpow/syntax/text.tabular.csv.syntax +68 -0
  167. data/lib/textpow/syntax/text.tabular.tsv.syntax +50 -0
  168. data/lib/textpow/syntax/text.tex.latex.beamer.syntax +41 -0
  169. data/lib/textpow/syntax/text.tex.latex.haskell.syntax +24 -0
  170. data/lib/textpow/syntax/text.tex.latex.memoir.syntax +64 -0
  171. data/lib/textpow/syntax/text.tex.latex.rd.syntax +91 -0
  172. data/lib/textpow/syntax/text.tex.latex.sweave.syntax +84 -0
  173. data/lib/textpow/syntax/text.tex.latex.syntax +566 -0
  174. data/lib/textpow/syntax/text.tex.math.syntax +49 -0
  175. data/lib/textpow/syntax/text.tex.syntax +86 -0
  176. data/lib/textpow/syntax/text.txt2tags.syntax +79 -0
  177. data/lib/textpow/syntax/text.xml.apple-dist.syntax +77 -0
  178. data/lib/textpow/syntax/text.xml.strict.syntax +92 -0
  179. data/lib/textpow/syntax/text.xml.syntax +180 -0
  180. data/lib/textpow/syntax/text.xml.xsl.syntax +60 -0
  181. data/lib/textpow/version.rb +3 -0
  182. data/spec/fixtures/objeck.plist +107 -0
  183. data/spec/fixtures/utf8.txt +1 -0
  184. data/spec/spec_helper.rb +2 -0
  185. data/spec/textpow/score_manager_spec.rb +20 -0
  186. data/spec/textpow/syntax_files_spec.rb +26 -0
  187. data/spec/textpow/syntax_spec.rb +225 -0
  188. data/spec/textpow_spec.rb +57 -0
  189. data/textpow.gemspec +19 -0
  190. metadata +246 -68
  191. data/Manifest.txt +0 -13
  192. data/mm/manual.mm +0 -266
  193. data/test/test_textpow.rb +0 -25
@@ -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
@@ -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,33 @@
1
+ ---
2
+ name: Ada
3
+ fileTypes:
4
+ - adb
5
+ - ads
6
+ scopeName: source.ada
7
+ uuid: 0AB8A36E-6B1D-11D9-B034-000D93589AF6
8
+ foldingStartMarker: \b(?i:(procedure|package|function|task|type|loop))\b
9
+ patterns:
10
+ - name: keyword.control.ada
11
+ match: \b(?i:(abort|else|new|return|abs|elsif|not|reverse|abstract|end|null|accept|entry|select|access|exception|of|separate|aliased|exit|or|subtype|all|others|and|for|out|tagged|array|function|task|at|package|terminate|generic|pragma|then|begin|goto|private|type|body|procedure|if|protected|until|case|in|use|constant|is|raise|range|when|declare|limited|record|while|delay|loop|rem|with|delta|renames|digits|mod|requeue|xor|do))\b
12
+ - name: constant.numeric.ada
13
+ match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b
14
+ - name: string.quoted.double.ada
15
+ endCaptures:
16
+ "0":
17
+ name: punctuation.definition.string.end.ada
18
+ begin: "\""
19
+ beginCaptures:
20
+ "0":
21
+ name: punctuation.definition.string.begin.ada
22
+ end: "\""
23
+ patterns:
24
+ - name: invalid.illegal.lf-in-string.ada
25
+ match: \n
26
+ - name: comment.line.double-dash.ada
27
+ captures:
28
+ "1":
29
+ name: punctuation.definition.comment.ada
30
+ match: (--)(.*)$\n?
31
+ foldingStopMarker: \b(?i:(end))\b
32
+ keyEquivalent: ^~A
33
+ comment: Ada -- chris@cjack.com. Feel free to modify, distribute, be happy. Share and enjoy.
@@ -0,0 +1,151 @@
1
+ ---
2
+ name: ANTLR
3
+ fileTypes:
4
+ - g
5
+ scopeName: source.antlr
6
+ repository:
7
+ nested-curly:
8
+ name: source.embedded.java-or-c.antlr
9
+ captures:
10
+ "0":
11
+ name: punctuation.section.group.antlr
12
+ begin: \{
13
+ end: \}
14
+ patterns:
15
+ - name: keyword.control.java-or-c
16
+ match: \b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\b
17
+ - name: storage.type.java-or-c
18
+ match: \b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\b
19
+ - name: storage.modifier.java-or-c
20
+ match: \b(const|extern|register|restrict|static|volatile|inline)\b
21
+ - name: constant.language.java-or-c
22
+ match: \b(NULL|true|false|TRUE|FALSE)\b
23
+ - name: keyword.operator.sizeof.java-or-c
24
+ match: \b(sizeof)\b
25
+ - name: constant.numeric.java-or-c
26
+ match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b
27
+ - name: string.quoted.double.java-or-c
28
+ endCaptures:
29
+ "0":
30
+ name: punctuation.definition.string.end.java-or-c
31
+ begin: "\""
32
+ beginCaptures:
33
+ "0":
34
+ name: punctuation.definition.string.begin.java-or-c
35
+ end: "\""
36
+ patterns:
37
+ - name: constant.character.escape.antlr
38
+ match: \\.
39
+ - name: string.quoted.single.java-or-c
40
+ endCaptures:
41
+ "0":
42
+ name: punctuation.definition.string.end.java-or-c
43
+ begin: "'"
44
+ beginCaptures:
45
+ "0":
46
+ name: punctuation.definition.string.begin.java-or-c
47
+ end: "'"
48
+ patterns:
49
+ - name: constant.character.escape.antlr
50
+ match: \\.
51
+ - name: support.constant.eof-char.antlr
52
+ match: \bEOF_CHAR\b
53
+ - include: "#comments"
54
+ comments:
55
+ patterns:
56
+ - name: comment.block.antlr
57
+ captures:
58
+ "0":
59
+ name: punctuation.definition.comment.antlr
60
+ begin: /\*
61
+ end: \*/
62
+ - name: comment.line.double-slash.antlr
63
+ captures:
64
+ "1":
65
+ name: punctuation.definition.comment.antlr
66
+ match: (//).*$\n?
67
+ strings:
68
+ patterns:
69
+ - name: string.quoted.double.antlr
70
+ endCaptures:
71
+ "0":
72
+ name: punctuation.definition.string.end.antlr
73
+ begin: "\""
74
+ beginCaptures:
75
+ "0":
76
+ name: punctuation.definition.string.begin.antlr
77
+ end: "\""
78
+ patterns:
79
+ - name: constant.character.escape.antlr
80
+ match: \\(u\h{4}|.)
81
+ - name: string.quoted.single.antlr
82
+ endCaptures:
83
+ "0":
84
+ name: punctuation.definition.string.end.antlr
85
+ begin: "'"
86
+ beginCaptures:
87
+ "0":
88
+ name: punctuation.definition.string.begin.antlr
89
+ end: "'"
90
+ patterns:
91
+ - name: constant.character.escape.antlr
92
+ match: \\(u\h{4}|.)
93
+ uuid: ACABDECD-4F22-47D9-A5F4-DBA957A2A1CC
94
+ patterns:
95
+ - include: "#strings"
96
+ - include: "#comments"
97
+ - name: meta.options.antlr
98
+ begin: \boptions\b
99
+ beginCaptures:
100
+ "0":
101
+ name: keyword.other.options.antlr
102
+ end: (?<=\})
103
+ patterns:
104
+ - name: meta.options-block.antlr
105
+ captures:
106
+ "0":
107
+ name: punctuation.section.options.antlr
108
+ begin: \{
109
+ end: \}
110
+ patterns:
111
+ - include: "#strings"
112
+ - include: "#comments"
113
+ - name: constant.numeric.antlr
114
+ match: \b\d+\b
115
+ - name: variable.other.option.antlr
116
+ match: \b(k|charVocabulary|filter|greedy|paraphrase|exportVocab|buildAST|defaultErrorHandler|language|namespace|namespaceStd|namespaceAntlr|genHashLines)\b
117
+ - name: constant.language.boolean.antlr
118
+ match: \b(true|false)\b
119
+ - name: meta.definition.class.antlr
120
+ captures:
121
+ "1":
122
+ name: storage.type.antlr
123
+ "2":
124
+ name: entity.name.type.class.antlr
125
+ begin: ^(class)\b\s+(\w+)
126
+ end: ;
127
+ patterns:
128
+ - name: meta.definition.class.extends.antlr
129
+ captures:
130
+ "1":
131
+ name: storage.modifier.antlr
132
+ begin: \b(extends)\b\s+
133
+ end: (?=;)
134
+ patterns:
135
+ - name: support.class.antlr
136
+ match: \b(Parser|Lexer|TreeWalker)\b
137
+ - name: storage.modifier.antlr
138
+ match: ^protected\b
139
+ - name: entity.name.type.token.antlr
140
+ match: ^[[:upper:]_][[:upper:][:digit:]_]*\b
141
+ - name: meta.rule.antlr
142
+ captures:
143
+ "1":
144
+ name: entity.name.function.rule.antlr
145
+ "2":
146
+ name: keyword.control.antlr
147
+ match: ^(\w+)(?:\s+(returns\b))?
148
+ - name: constant.other.token.antlr
149
+ match: \b[[:upper:]_][[:upper:][:digit:]_]*\b
150
+ - include: "#nested-curly"
151
+ keyEquivalent: ^~A