textpow1x 0.11.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. data/Gemfile +1 -2
  2. data/Gemfile.lock +11 -10
  3. data/README.rdoc +4 -6
  4. data/Rakefile +2 -7
  5. data/lib/textpow.rb +4 -0
  6. data/lib/textpow/syntax/actionscript.syntax +97 -0
  7. data/lib/textpow/syntax/active4d.syntax +276 -0
  8. data/lib/textpow/syntax/active4d_html.syntax +311 -0
  9. data/lib/textpow/syntax/active4d_ini.syntax +50 -0
  10. data/lib/textpow/syntax/active4d_library.syntax +21 -0
  11. data/lib/textpow/syntax/ada.syntax +33 -0
  12. data/lib/textpow/syntax/antlr.syntax +151 -0
  13. data/lib/textpow/syntax/apache.syntax +191 -0
  14. data/lib/textpow/syntax/applescript.syntax +384 -0
  15. data/lib/textpow/syntax/asp.syntax +70 -0
  16. data/lib/textpow/syntax/asp_vb.net.syntax +129 -0
  17. data/lib/textpow/syntax/bibtex.syntax +151 -0
  18. data/lib/textpow/syntax/blog_html.syntax +41 -0
  19. data/lib/textpow/syntax/blog_markdown.syntax +42 -0
  20. data/lib/textpow/syntax/blog_text.syntax +27 -0
  21. data/lib/textpow/syntax/blog_textile.syntax +27 -0
  22. data/lib/textpow/syntax/broken/markdown.syntax +543 -0
  23. data/lib/textpow/syntax/broken/php.syntax +1253 -0
  24. data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
  25. data/lib/textpow/syntax/build.syntax +53 -0
  26. data/lib/textpow/syntax/bulletin_board.syntax +287 -0
  27. data/lib/textpow/syntax/c++.syntax +186 -0
  28. data/lib/textpow/syntax/c.syntax +414 -0
  29. data/lib/textpow/syntax/cake.syntax +55 -0
  30. data/lib/textpow/syntax/camlp4.syntax +36 -0
  31. data/lib/textpow/syntax/cm.syntax +32 -0
  32. data/lib/textpow/syntax/coffeescript.syntax +216 -0
  33. data/lib/textpow/syntax/coldfusion.syntax +119 -0
  34. data/lib/textpow/syntax/context_free.syntax +176 -0
  35. data/lib/textpow/syntax/cs.syntax +59 -0
  36. data/lib/textpow/syntax/css.syntax +195 -0
  37. data/lib/textpow/syntax/css_experimental.syntax +1925 -0
  38. data/lib/textpow/syntax/csv.syntax +68 -0
  39. data/lib/textpow/syntax/d.syntax +142 -0
  40. data/lib/textpow/syntax/diff.syntax +81 -0
  41. data/lib/textpow/syntax/dokuwiki.syntax +204 -0
  42. data/lib/textpow/syntax/dot.syntax +47 -0
  43. data/lib/textpow/syntax/doxygen.syntax +43 -0
  44. data/lib/textpow/syntax/dylan.syntax +62 -0
  45. data/lib/textpow/syntax/eiffel.syntax +78 -0
  46. data/lib/textpow/syntax/erlang.syntax +922 -0
  47. data/lib/textpow/syntax/f-script.syntax +80 -0
  48. data/lib/textpow/syntax/fortran.syntax +141 -0
  49. data/lib/textpow/syntax/fxscript.syntax +142 -0
  50. data/lib/textpow/syntax/greasemonkey.syntax +34 -0
  51. data/lib/textpow/syntax/gri.syntax +83 -0
  52. data/lib/textpow/syntax/groovy.syntax +191 -0
  53. data/lib/textpow/syntax/gtd.syntax +22 -0
  54. data/lib/textpow/syntax/gtdalt.syntax +143 -0
  55. data/lib/textpow/syntax/haml.syntax +88 -0
  56. data/lib/textpow/syntax/haskell.syntax +88 -0
  57. data/lib/textpow/syntax/html-asp.syntax +27 -0
  58. data/lib/textpow/syntax/html.syntax +362 -0
  59. data/lib/textpow/syntax/html_django.syntax +36 -0
  60. data/lib/textpow/syntax/html_for_asp.net.syntax +424 -0
  61. data/lib/textpow/syntax/html_mason.syntax +119 -0
  62. data/lib/textpow/syntax/html_rails.syntax +40 -0
  63. data/lib/textpow/syntax/html_tcl.syntax +26 -0
  64. data/lib/textpow/syntax/icalendar.syntax +32 -0
  65. data/lib/textpow/syntax/inform.syntax +48 -0
  66. data/lib/textpow/syntax/ini.syntax +55 -0
  67. data/lib/textpow/syntax/installer_distribution_script.syntax +77 -0
  68. data/lib/textpow/syntax/io.syntax +81 -0
  69. data/lib/textpow/syntax/java.syntax +211 -0
  70. data/lib/textpow/syntax/javaproperties.syntax +20 -0
  71. data/lib/textpow/syntax/javascript.syntax +256 -0
  72. data/lib/textpow/syntax/javascript_+_prototype.syntax +72 -0
  73. data/lib/textpow/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  74. data/lib/textpow/syntax/jquery_javascript.syntax +114 -0
  75. data/lib/textpow/syntax/json.syntax +136 -0
  76. data/lib/textpow/syntax/languagedefinition.syntax +708 -0
  77. data/lib/textpow/syntax/latex.syntax +566 -0
  78. data/lib/textpow/syntax/latex_beamer.syntax +41 -0
  79. data/lib/textpow/syntax/latex_log.syntax +50 -0
  80. data/lib/textpow/syntax/latex_memoir.syntax +64 -0
  81. data/lib/textpow/syntax/lexflex.syntax +219 -0
  82. data/lib/textpow/syntax/lighttpd.syntax +54 -0
  83. data/lib/textpow/syntax/lilypond.syntax +492 -0
  84. data/lib/textpow/syntax/lisp.syntax +61 -0
  85. data/lib/textpow/syntax/literate_haskell.syntax +24 -0
  86. data/lib/textpow/syntax/logo.syntax +29 -0
  87. data/lib/textpow/syntax/logtalk.syntax +152 -0
  88. data/lib/textpow/syntax/lua.syntax +86 -0
  89. data/lib/textpow/syntax/m.syntax +142 -0
  90. data/lib/textpow/syntax/macports_portfile.syntax +163 -0
  91. data/lib/textpow/syntax/mail.syntax +118 -0
  92. data/lib/textpow/syntax/makefile.syntax +36 -0
  93. data/lib/textpow/syntax/man.syntax +17 -0
  94. data/lib/textpow/syntax/mediawiki.syntax +567 -0
  95. data/lib/textpow/syntax/mel.syntax +92 -0
  96. data/lib/textpow/syntax/mips.syntax +66 -0
  97. data/lib/textpow/syntax/mod_perl.syntax +50 -0
  98. data/lib/textpow/syntax/modula-3.syntax +47 -0
  99. data/lib/textpow/syntax/moinmoin.syntax +189 -0
  100. data/lib/textpow/syntax/mootools.syntax +572 -0
  101. data/lib/textpow/syntax/movable_type.syntax +162 -0
  102. data/lib/textpow/syntax/multimarkdown.syntax +39 -0
  103. data/lib/textpow/syntax/objective-c++.syntax +18 -0
  104. data/lib/textpow/syntax/objective-c.syntax +233 -0
  105. data/lib/textpow/syntax/ocaml.syntax +764 -0
  106. data/lib/textpow/syntax/ocamllex.syntax +167 -0
  107. data/lib/textpow/syntax/ocamlyacc.syntax +184 -0
  108. data/lib/textpow/syntax/old/YAML.yaml +160 -0
  109. data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
  110. data/lib/textpow/syntax/opengl.syntax +14 -0
  111. data/lib/textpow/syntax/pascal.syntax +77 -0
  112. data/lib/textpow/syntax/perl.syntax +1113 -0
  113. data/lib/textpow/syntax/plain_text.syntax +32 -0
  114. data/lib/textpow/syntax/pmwiki.syntax +113 -0
  115. data/lib/textpow/syntax/postscript.syntax +114 -0
  116. data/lib/textpow/syntax/processing.syntax +106 -0
  117. data/lib/textpow/syntax/prolog.syntax +40 -0
  118. data/lib/textpow/syntax/property_list.syntax +635 -0
  119. data/lib/textpow/syntax/python.syntax +868 -0
  120. data/lib/textpow/syntax/python_django.syntax +21 -0
  121. data/lib/textpow/syntax/qmake_project.syntax +114 -0
  122. data/lib/textpow/syntax/qt_c++.syntax +26 -0
  123. data/lib/textpow/syntax/quake3_config.syntax +32 -0
  124. data/lib/textpow/syntax/r.syntax +81 -0
  125. data/lib/textpow/syntax/r_console.syntax +16 -0
  126. data/lib/textpow/syntax/ragel.syntax +201 -0
  127. data/lib/textpow/syntax/rd_r_documentation.syntax +91 -0
  128. data/lib/textpow/syntax/regexp.syntax +50 -0
  129. data/lib/textpow/syntax/regular_expressions_oniguruma.syntax +107 -0
  130. data/lib/textpow/syntax/regular_expressions_python.syntax +109 -0
  131. data/lib/textpow/syntax/release_notes.syntax +46 -0
  132. data/lib/textpow/syntax/remind.syntax +253 -0
  133. data/lib/textpow/syntax/restructuredtext.syntax +250 -0
  134. data/lib/textpow/syntax/rez.syntax +80 -0
  135. data/lib/textpow/syntax/ruby.syntax +1035 -0
  136. data/lib/textpow/syntax/ruby_experimental.syntax +145 -0
  137. data/lib/textpow/syntax/ruby_on_rails.syntax +88 -0
  138. data/lib/textpow/syntax/s5.syntax +69 -0
  139. data/lib/textpow/syntax/sass.syntax +45 -0
  140. data/lib/textpow/syntax/scheme.syntax +347 -0
  141. data/lib/textpow/syntax/scilab.syntax +41 -0
  142. data/lib/textpow/syntax/setext.syntax +147 -0
  143. data/lib/textpow/syntax/shell-unix-generic.syntax +384 -0
  144. data/lib/textpow/syntax/slate.syntax +149 -0
  145. data/lib/textpow/syntax/smarty.syntax +63 -0
  146. data/lib/textpow/syntax/sql.syntax +237 -0
  147. data/lib/textpow/syntax/sql_rails.syntax +18 -0
  148. data/lib/textpow/syntax/ssh-config.syntax +33 -0
  149. data/lib/textpow/syntax/standard_ml.syntax +121 -0
  150. data/lib/textpow/syntax/strings_file.syntax +39 -0
  151. data/lib/textpow/syntax/subversion_commit_message.syntax +36 -0
  152. data/lib/textpow/syntax/sweave.syntax +84 -0
  153. data/lib/textpow/syntax/swig.syntax +57 -0
  154. data/lib/textpow/syntax/tcl.syntax +152 -0
  155. data/lib/textpow/syntax/template_toolkit.syntax +121 -0
  156. data/lib/textpow/syntax/tex.syntax +86 -0
  157. data/lib/textpow/syntax/tex_math.syntax +49 -0
  158. data/lib/textpow/syntax/textile.syntax +215 -0
  159. data/lib/textpow/syntax/tsv.syntax +50 -0
  160. data/lib/textpow/syntax/twiki.syntax +241 -0
  161. data/lib/textpow/syntax/txt2tags.syntax +79 -0
  162. data/lib/textpow/syntax/vectorscript.syntax +57 -0
  163. data/lib/textpow/syntax/xhtml_1.0.syntax +4027 -0
  164. data/lib/textpow/syntax/xml.syntax +180 -0
  165. data/lib/textpow/syntax/xml_strict.syntax +92 -0
  166. data/lib/textpow/syntax/xsl.syntax +60 -0
  167. data/lib/textpow/syntax/yaml.syntax +160 -0
  168. data/lib/textpow/syntax/yui_javascript.syntax +176 -0
  169. data/lib/textpow/version.rb +2 -2
  170. data/spec/spec_helper.rb +2 -0
  171. data/spec/textpow_spec.rb +34 -0
  172. metadata +169 -5
  173. data/test/textpow_test.rb +0 -24
@@ -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
@@ -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