ultraviolet 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. data/History.txt +5 -0
  2. data/Manifest.txt +216 -0
  3. data/README.txt +52 -0
  4. data/Rakefile +51 -0
  5. data/bin/theme2render +104 -0
  6. data/bin/uv +162 -0
  7. data/lib/uv.rb +84 -0
  8. data/lib/uv/html_processor.rb +89 -0
  9. data/render/old/txt2tags.render +131 -0
  10. data/render/xhtml/active4d.render +105 -0
  11. data/render/xhtml/all_hallows_eve.render +69 -0
  12. data/render/xhtml/amy.render +144 -0
  13. data/render/xhtml/blackboard.render +84 -0
  14. data/render/xhtml/brilliance_black.render +575 -0
  15. data/render/xhtml/brilliance_dull.render +534 -0
  16. data/render/xhtml/cobalt.render +135 -0
  17. data/render/xhtml/dawn.render +99 -0
  18. data/render/xhtml/eiffel.render +105 -0
  19. data/render/xhtml/espresso_libre.render +96 -0
  20. data/render/xhtml/files/css/active4d.css +114 -0
  21. data/render/xhtml/files/css/all_hallows_eve.css +72 -0
  22. data/render/xhtml/files/css/amy.css +144 -0
  23. data/render/xhtml/files/css/blackboard.css +88 -0
  24. data/render/xhtml/files/css/brilliance_black.css +632 -0
  25. data/render/xhtml/files/css/brilliance_dull.css +579 -0
  26. data/render/xhtml/files/css/cobalt.css +149 -0
  27. data/render/xhtml/files/css/dawn.css +121 -0
  28. data/render/xhtml/files/css/eiffel.css +121 -0
  29. data/render/xhtml/files/css/espresso_libre.css +109 -0
  30. data/render/xhtml/files/css/idle.css +62 -0
  31. data/render/xhtml/files/css/iplastic.css +80 -0
  32. data/render/xhtml/files/css/lazy.css +73 -0
  33. data/render/xhtml/files/css/mac_classic.css +123 -0
  34. data/render/xhtml/files/css/magicwb_amiga.css +101 -0
  35. data/render/xhtml/files/css/pastels_on_dark.css +188 -0
  36. data/render/xhtml/files/css/slush_poppies.css +85 -0
  37. data/render/xhtml/files/css/spacecadet.css +51 -0
  38. data/render/xhtml/files/css/sunburst.css +180 -0
  39. data/render/xhtml/files/css/twilight.css +137 -0
  40. data/render/xhtml/files/css/zenburnesque.css +88 -0
  41. data/render/xhtml/idle.render +66 -0
  42. data/render/xhtml/iplastic.render +72 -0
  43. data/render/xhtml/lazy.render +69 -0
  44. data/render/xhtml/mac_classic.render +108 -0
  45. data/render/xhtml/magicwb_amiga.render +90 -0
  46. data/render/xhtml/pastels_on_dark.render +177 -0
  47. data/render/xhtml/slush_poppies.render +96 -0
  48. data/render/xhtml/spacecadet.render +54 -0
  49. data/render/xhtml/sunburst.render +159 -0
  50. data/render/xhtml/twilight.render +126 -0
  51. data/render/xhtml/zenburnesque.render +99 -0
  52. data/syntax/actionscript.syntax +97 -0
  53. data/syntax/active4d.syntax +276 -0
  54. data/syntax/active4d_html.syntax +311 -0
  55. data/syntax/active4d_ini.syntax +50 -0
  56. data/syntax/active4d_library.syntax +21 -0
  57. data/syntax/ada.syntax +33 -0
  58. data/syntax/antlr.syntax +128 -0
  59. data/syntax/apache.syntax +176 -0
  60. data/syntax/applescript.syntax +384 -0
  61. data/syntax/asp.syntax +70 -0
  62. data/syntax/asp_vb.net.syntax +129 -0
  63. data/syntax/bibtex.syntax +151 -0
  64. data/syntax/blog_html.syntax +41 -0
  65. data/syntax/blog_markdown.syntax +42 -0
  66. data/syntax/blog_text.syntax +27 -0
  67. data/syntax/blog_textile.syntax +27 -0
  68. data/syntax/buggy/nemerle.yaml +74 -0
  69. data/syntax/build.syntax +53 -0
  70. data/syntax/bulletin_board.syntax +287 -0
  71. data/syntax/c++.syntax +109 -0
  72. data/syntax/c.syntax +326 -0
  73. data/syntax/cake.syntax +55 -0
  74. data/syntax/camlp4.syntax +36 -0
  75. data/syntax/coldfusion.syntax +118 -0
  76. data/syntax/context_free.syntax +176 -0
  77. data/syntax/cs.syntax +59 -0
  78. data/syntax/css.syntax +190 -0
  79. data/syntax/css_experimental.syntax +1925 -0
  80. data/syntax/csv.syntax +68 -0
  81. data/syntax/d.syntax +138 -0
  82. data/syntax/diff.syntax +81 -0
  83. data/syntax/dokuwiki.syntax +204 -0
  84. data/syntax/dot.syntax +47 -0
  85. data/syntax/doxygen.syntax +43 -0
  86. data/syntax/dylan.syntax +62 -0
  87. data/syntax/eiffel.syntax +78 -0
  88. data/syntax/erlang.syntax +922 -0
  89. data/syntax/f-script.syntax +80 -0
  90. data/syntax/fortran.syntax +141 -0
  91. data/syntax/fxscript.syntax +142 -0
  92. data/syntax/greasemonkey.syntax +34 -0
  93. data/syntax/gri.syntax +83 -0
  94. data/syntax/groovy.syntax +189 -0
  95. data/syntax/gtd2_text.syntax +31 -0
  96. data/syntax/gtdalt.syntax +143 -0
  97. data/syntax/haml.syntax +88 -0
  98. data/syntax/haskell.syntax +88 -0
  99. data/syntax/html-asp.syntax +27 -0
  100. data/syntax/html.syntax +362 -0
  101. data/syntax/html_django.syntax +36 -0
  102. data/syntax/html_for_asp.net.syntax +424 -0
  103. data/syntax/html_mason.syntax +119 -0
  104. data/syntax/html_rails.syntax +40 -0
  105. data/syntax/html_tcl.syntax +26 -0
  106. data/syntax/icalendar.syntax +32 -0
  107. data/syntax/inform.syntax +48 -0
  108. data/syntax/ini.syntax +54 -0
  109. data/syntax/installer_distribution_script.syntax +77 -0
  110. data/syntax/io.syntax +81 -0
  111. data/syntax/java.syntax +211 -0
  112. data/syntax/javaproperties.syntax +20 -0
  113. data/syntax/javascript.syntax +255 -0
  114. data/syntax/javascript_+_prototype.syntax +72 -0
  115. data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  116. data/syntax/jquery_javascript.syntax +114 -0
  117. data/syntax/json.syntax +136 -0
  118. data/syntax/languagedefinition.syntax +697 -0
  119. data/syntax/latex.syntax +566 -0
  120. data/syntax/latex_beamer.syntax +41 -0
  121. data/syntax/latex_log.syntax +50 -0
  122. data/syntax/latex_memoir.syntax +64 -0
  123. data/syntax/lexflex.syntax +219 -0
  124. data/syntax/lighttpd.syntax +54 -0
  125. data/syntax/lilypond.syntax +492 -0
  126. data/syntax/lisp.syntax +61 -0
  127. data/syntax/literate_haskell.syntax +24 -0
  128. data/syntax/logo.syntax +29 -0
  129. data/syntax/logtalk.syntax +152 -0
  130. data/syntax/lua.syntax +86 -0
  131. data/syntax/m.syntax +142 -0
  132. data/syntax/macports_portfile.syntax +143 -0
  133. data/syntax/mail.syntax +118 -0
  134. data/syntax/makefile.syntax +35 -0
  135. data/syntax/man.syntax +17 -0
  136. data/syntax/markdown.syntax +543 -0
  137. data/syntax/mediawiki.syntax +567 -0
  138. data/syntax/mel.syntax +92 -0
  139. data/syntax/mips.syntax +66 -0
  140. data/syntax/mod_perl.syntax +50 -0
  141. data/syntax/modula-3.syntax +47 -0
  142. data/syntax/moinmoin.syntax +189 -0
  143. data/syntax/mootools.syntax +572 -0
  144. data/syntax/movable_type.syntax +162 -0
  145. data/syntax/multimarkdown.syntax +39 -0
  146. data/syntax/objective-c++.syntax +18 -0
  147. data/syntax/objective-c.syntax +226 -0
  148. data/syntax/ocaml.syntax +764 -0
  149. data/syntax/ocamllex.syntax +167 -0
  150. data/syntax/ocamlyacc.syntax +184 -0
  151. data/syntax/old/YAML.yaml +160 -0
  152. data/syntax/old/txt2tags.yaml +139 -0
  153. data/syntax/opengl.syntax +14 -0
  154. data/syntax/pascal.syntax +77 -0
  155. data/syntax/perl.syntax +1075 -0
  156. data/syntax/php.syntax +678 -0
  157. data/syntax/plain_text.syntax +32 -0
  158. data/syntax/postscript.syntax +114 -0
  159. data/syntax/processing.syntax +106 -0
  160. data/syntax/prolog.syntax +40 -0
  161. data/syntax/property_list.syntax +645 -0
  162. data/syntax/python.syntax +865 -0
  163. data/syntax/python_django.syntax +21 -0
  164. data/syntax/qmake_project.syntax +114 -0
  165. data/syntax/qt_c++.syntax +26 -0
  166. data/syntax/quake3_config.syntax +32 -0
  167. data/syntax/r.syntax +81 -0
  168. data/syntax/r_console.syntax +16 -0
  169. data/syntax/ragel.syntax +201 -0
  170. data/syntax/rd_r_documentation.syntax +91 -0
  171. data/syntax/regexp.syntax +50 -0
  172. data/syntax/regular_expressions_oniguruma.syntax +107 -0
  173. data/syntax/regular_expressions_python.syntax +109 -0
  174. data/syntax/release_notes.syntax +37 -0
  175. data/syntax/remind.syntax +253 -0
  176. data/syntax/restructuredtext.syntax +250 -0
  177. data/syntax/rez.syntax +80 -0
  178. data/syntax/ruby.syntax +1035 -0
  179. data/syntax/ruby_experimental.syntax +145 -0
  180. data/syntax/ruby_on_rails.syntax +88 -0
  181. data/syntax/s5.syntax +69 -0
  182. data/syntax/scheme.syntax +347 -0
  183. data/syntax/scilab.syntax +41 -0
  184. data/syntax/setext.syntax +147 -0
  185. data/syntax/shell-unix-generic.syntax +384 -0
  186. data/syntax/slate.syntax +149 -0
  187. data/syntax/smarty.syntax +63 -0
  188. data/syntax/sql.syntax +237 -0
  189. data/syntax/sql_rails.syntax +18 -0
  190. data/syntax/ssh-config.syntax +33 -0
  191. data/syntax/standard_ml.syntax +45 -0
  192. data/syntax/strings_file.syntax +39 -0
  193. data/syntax/subversion_commit_message.syntax +36 -0
  194. data/syntax/sweave.syntax +84 -0
  195. data/syntax/swig.syntax +57 -0
  196. data/syntax/tcl.syntax +152 -0
  197. data/syntax/template_toolkit.syntax +121 -0
  198. data/syntax/tex.syntax +86 -0
  199. data/syntax/tex_math.syntax +49 -0
  200. data/syntax/textile.syntax +215 -0
  201. data/syntax/tsv.syntax +50 -0
  202. data/syntax/twiki.syntax +241 -0
  203. data/syntax/txt2tags.syntax +79 -0
  204. data/syntax/vectorscript.syntax +57 -0
  205. data/syntax/xhtml_1.0.syntax +4027 -0
  206. data/syntax/xml.syntax +179 -0
  207. data/syntax/xml_strict.syntax +92 -0
  208. data/syntax/xsl.syntax +60 -0
  209. data/syntax/yaml.syntax +160 -0
  210. data/syntax/yui_javascript.syntax +176 -0
  211. data/test/test_uv.rb +0 -0
  212. metadata +270 -0
@@ -0,0 +1,326 @@
1
+ ---
2
+ name: C
3
+ fileTypes:
4
+ - c
5
+ - h
6
+ firstLineMatch: -[*]-( Mode:)? C -[*]-
7
+ scopeName: source.c
8
+ repository:
9
+ pragma-mark:
10
+ name: meta.section
11
+ captures:
12
+ "1":
13
+ name: meta.preprocessor.c
14
+ "2":
15
+ name: keyword.control.import.pragma.c
16
+ "3":
17
+ name: meta.toc-list.pragma-mark.c
18
+ match: ^\s*(#\s*(pragma\s+mark)\s+(.*))
19
+ preprocessor-rule-enabled:
20
+ captures:
21
+ "1":
22
+ name: meta.preprocessor.c
23
+ "2":
24
+ name: keyword.control.import.if.c
25
+ "3":
26
+ name: constant.numeric.preprocessor.c
27
+ begin: ^\s*(#(if)\s+(0*1)\b)
28
+ end: ^\s*(#\s*(endif)\b)
29
+ patterns:
30
+ - captures:
31
+ "1":
32
+ name: meta.preprocessor.c
33
+ "2":
34
+ name: keyword.control.import.else.c
35
+ begin: |
36
+ ^\s*(#\s*(else)\b).*
37
+
38
+ contentName: comment.block.preprocessor.else-branch
39
+ end: (?=^\s*#\s*endif\b.*$)
40
+ patterns:
41
+ - include: "#disabled"
42
+ - include: "#pragma-mark"
43
+ - begin: ""
44
+ end: (?=^\s*#\s*(else|endif)\b.*$)
45
+ patterns:
46
+ - include: $base
47
+ string_escaped_char:
48
+ patterns:
49
+ - name: constant.character.escape.c
50
+ match: \\(\\|[abefnprtv'"?]|[0-3]\d{,2}|[4-7]\d?|x[a-fA-F0-9]{,2})
51
+ - name: invalid.illegal.unknown-escape.c
52
+ match: \\.
53
+ disabled:
54
+ begin: ^\s*#\s*if(n?def)?\b.*$
55
+ end: ^\s*#\s*endif\b.*$
56
+ patterns:
57
+ - include: "#disabled"
58
+ - include: "#pragma-mark"
59
+ comment: eat nested preprocessor if(def)s
60
+ preprocessor-rule-other:
61
+ captures:
62
+ "1":
63
+ name: meta.preprocessor.c
64
+ "2":
65
+ name: keyword.control.import.c
66
+ begin: ^\s*(#\s*(if(n?def)?)\b.*(?:(?=(?://|/\*))|$))
67
+ end: ^\s*(#\s*(endif)\b).*$
68
+ patterns:
69
+ - include: $base
70
+ preprocessor-rule-disabled:
71
+ captures:
72
+ "1":
73
+ name: meta.preprocessor.c
74
+ "2":
75
+ name: keyword.control.import.if.c
76
+ "3":
77
+ name: constant.numeric.preprocessor.c
78
+ begin: |
79
+ ^\s*(#(if)\s+(0)\b).*
80
+
81
+ end: ^\s*(#\s*(endif)\b)
82
+ patterns:
83
+ - captures:
84
+ "1":
85
+ name: meta.preprocessor.c
86
+ "2":
87
+ name: keyword.control.import.else.c
88
+ begin: ^\s*(#\s*(else)\b)
89
+ end: (?=^\s*#\s*endif\b.*$)
90
+ patterns:
91
+ - include: $base
92
+ - name: comment.block.preprocessor.if-branch
93
+ begin: ""
94
+ end: (?=^\s*#\s*(else|endif)\b.*$)
95
+ patterns:
96
+ - include: "#disabled"
97
+ - include: "#pragma-mark"
98
+ string_placeholder:
99
+ patterns:
100
+ - name: constant.other.placeholder.c
101
+ match: "(?x)%\n\
102
+ \t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n\
103
+ \t\t\t\t\t\t[#0\\- +']* # flags\n\
104
+ \t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n\
105
+ \t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n\
106
+ \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n\
107
+ \t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n\
108
+ \t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n\
109
+ \t\t\t\t\t"
110
+ - name: invalid.illegal.placeholder.c
111
+ match: "%"
112
+ uuid: 25066DC2-6B1D-11D9-9D5B-000D93589AF6
113
+ foldingStartMarker: "(?x)\n\
114
+ \t\t /\\*\\*(?!\\*)\n\
115
+ \t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\
116
+ \t"
117
+ patterns:
118
+ - include: "#preprocessor-rule-enabled"
119
+ - include: "#preprocessor-rule-disabled"
120
+ - include: "#preprocessor-rule-other"
121
+ - name: comment.block.c
122
+ captures:
123
+ "0":
124
+ name: punctuation.definition.comment.c
125
+ begin: /\*
126
+ end: \*/
127
+ - name: comment.line.double-slash.c++
128
+ begin: //
129
+ beginCaptures:
130
+ "0":
131
+ name: punctuation.definition.comment.c
132
+ end: $\n?
133
+ patterns:
134
+ - name: punctuation.separator.continuation.c++
135
+ match: (?>\\\s*\n)
136
+ - name: keyword.control.c
137
+ match: \b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\b
138
+ - name: storage.type.c
139
+ match: \b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\b
140
+ - name: storage.modifier.c
141
+ match: \b(const|extern|register|restrict|static|volatile|inline)\b
142
+ - name: constant.other.variable.mac-classic.c
143
+ match: \bk[A-Z]\w*\b
144
+ comment: common C constant naming idiom -- kConstantVariable
145
+ - name: variable.other.readwrite.global.mac-classic.c
146
+ match: \bg[A-Z]\w*\b
147
+ - name: variable.other.readwrite.static.mac-classic.c
148
+ match: \bs[A-Z]\w*\b
149
+ - name: constant.language.c
150
+ match: \b(NULL|true|false|TRUE|FALSE)\b
151
+ - name: keyword.operator.sizeof.c
152
+ match: \b(sizeof)\b
153
+ - name: constant.numeric.c
154
+ 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
155
+ - name: string.quoted.double.c
156
+ endCaptures:
157
+ "0":
158
+ name: punctuation.definition.string.end.c
159
+ begin: "\""
160
+ beginCaptures:
161
+ "0":
162
+ name: punctuation.definition.string.begin.c
163
+ end: "\""
164
+ patterns:
165
+ - include: "#string_escaped_char"
166
+ - include: "#string_placeholder"
167
+ - name: string.quoted.single.c
168
+ endCaptures:
169
+ "0":
170
+ name: punctuation.definition.string.end.c
171
+ begin: "'"
172
+ beginCaptures:
173
+ "0":
174
+ name: punctuation.definition.string.begin.c
175
+ end: "'"
176
+ patterns:
177
+ - include: "#string_escaped_char"
178
+ - name: meta.preprocessor.macro.c
179
+ begin: "(?x)\n\
180
+ \t\t\t\t^\\s*\\#\\s*(define)\\s+ # define\n\
181
+ \t\t\t\t((?<id>[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n\
182
+ \t\t\t\t(?: # and optionally:\n\
183
+ \t\t\t\t (\\() # an open parenthesis\n\
184
+ \t\t\t\t (\n\
185
+ \t\t\t\t \\s* \\g<id> \\s* # first argument\n\
186
+ \t\t\t\t ((,) \\s* \\g<id> \\s*)* # additional arguments\n\
187
+ \t\t\t\t (?:\\.\\.\\.)? # varargs ellipsis?\n\
188
+ \t\t\t\t )\n\
189
+ \t\t\t\t (\\)) # a close parenthesis\n\
190
+ \t\t\t\t)?\n\
191
+ \t\t\t"
192
+ beginCaptures:
193
+ "7":
194
+ name: punctuation.separator.parameters.c
195
+ "8":
196
+ name: punctuation.definition.parameters.c
197
+ "1":
198
+ name: keyword.control.import.define.c
199
+ "2":
200
+ name: entity.name.function.preprocessor.c
201
+ "4":
202
+ name: punctuation.definition.parameters.c
203
+ "5":
204
+ name: variable.parameter.preprocessor.c
205
+ end: (?=(?://|/\*))|$
206
+ patterns:
207
+ - name: punctuation.separator.continuation.c
208
+ match: (?>\\\s*\n)
209
+ - include: $base
210
+ - name: meta.preprocessor.diagnostic.c
211
+ captures:
212
+ "1":
213
+ name: keyword.control.import.error.c
214
+ begin: ^\s*#\s*(error|warning)\b
215
+ end: $
216
+ patterns:
217
+ - name: punctuation.separator.continuation.c
218
+ match: (?>\\\s*\n)
219
+ - name: meta.preprocessor.c.include
220
+ captures:
221
+ "1":
222
+ name: keyword.control.import.include.c
223
+ begin: ^\s*#\s*(include|import)\b\s+
224
+ end: (?=(?://|/\*))|$
225
+ patterns:
226
+ - name: punctuation.separator.continuation.c
227
+ match: (?>\\\s*\n)
228
+ - name: string.quoted.double.include.c
229
+ endCaptures:
230
+ "0":
231
+ name: punctuation.definition.string.end.c
232
+ begin: "\""
233
+ beginCaptures:
234
+ "0":
235
+ name: punctuation.definition.string.begin.c
236
+ end: "\""
237
+ - name: string.quoted.other.lt-gt.include.c
238
+ endCaptures:
239
+ "0":
240
+ name: punctuation.definition.string.end.c
241
+ begin: <
242
+ beginCaptures:
243
+ "0":
244
+ name: punctuation.definition.string.begin.c
245
+ end: ">"
246
+ - include: "#pragma-mark"
247
+ - name: meta.preprocessor.c
248
+ captures:
249
+ "1":
250
+ name: keyword.control.import.c
251
+ begin: ^\s*#\s*(define|defined|elif|else|if|ifdef|ifndef|line|pragma|undef)\b
252
+ end: (?=(?://|/\*))|$
253
+ patterns:
254
+ - name: punctuation.separator.continuation.c
255
+ match: (?>\\\s*\n)
256
+ - name: support.type.sys-types.c
257
+ match: \b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\b
258
+ - name: support.type.pthread.c
259
+ match: \b(pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t)\b
260
+ - name: support.type.stdint.c
261
+ match: \b(int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|intmax_t|uintmax_t|uintmax_t)\b
262
+ - name: support.constant.mac-classic.c
263
+ match: \b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\b
264
+ - name: support.type.mac-classic.c
265
+ match: \b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\b
266
+ - name: support.function.C99.c
267
+ match: \b(hypot(f|l)?|s(scanf|ystem|nprintf|ca(nf|lb(n(f|l)?|ln(f|l)?))|i(n(h(f|l)?|f|l)?|gn(al|bit))|tr(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(jmp|vbuf|locale|buf)|qrt(f|l)?|w(scanf|printf)|rand)|n(e(arbyint(f|l)?|xt(toward(f|l)?|after(f|l)?))|an(f|l)?)|c(s(in(h(f|l)?|f|l)?|qrt(f|l)?)|cos(h(f)?|f|l)?|imag(f|l)?|t(ime|an(h(f|l)?|f|l)?)|o(s(h(f|l)?|f|l)?|nj(f|l)?|pysign(f|l)?)|p(ow(f|l)?|roj(f|l)?)|e(il(f|l)?|xp(f|l)?)|l(o(ck|g(f|l)?)|earerr)|a(sin(h(f|l)?|f|l)?|cos(h(f|l)?|f|l)?|tan(h(f|l)?|f|l)?|lloc|rg(f|l)?|bs(f|l)?)|real(f|l)?|brt(f|l)?)|t(ime|o(upper|lower)|an(h(f|l)?|f|l)?|runc(f|l)?|gamma(f|l)?|mp(nam|file))|i(s(space|n(ormal|an)|cntrl|inf|digit|u(nordered|pper)|p(unct|rint)|finite|w(space|c(ntrl|type)|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit|blank)|l(ower|ess(equal|greater)?)|al(num|pha)|gr(eater(equal)?|aph)|xdigit|blank)|logb(f|l)?|max(div|abs))|di(v|fftime)|_Exit|unget(c|wc)|p(ow(f|l)?|ut(s|c(har)?|wc(har)?)|error|rintf)|e(rf(c(f|l)?|f|l)?|x(it|p(2(f|l)?|f|l|m1(f|l)?)?))|v(s(scanf|nprintf|canf|printf|w(scanf|printf))|printf|f(scanf|printf|w(scanf|printf))|w(scanf|printf)|a_(start|copy|end|arg))|qsort|f(s(canf|e(tpos|ek))|close|tell|open|dim(f|l)?|p(classify|ut(s|c|w(s|c))|rintf)|e(holdexcept|set(e(nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(aiseexcept|ror)|get(e(nv|xceptflag)|round))|flush|w(scanf|ide|printf|rite)|loor(f|l)?|abs(f|l)?|get(s|c|pos|w(s|c))|re(open|e|ad|xp(f|l)?)|m(in(f|l)?|od(f|l)?|a(f|l|x(f|l)?)?))|l(d(iv|exp(f|l)?)|o(ngjmp|cal(time|econv)|g(1(p(f|l)?|0(f|l)?)|2(f|l)?|f|l|b(f|l)?)?)|abs|l(div|abs|r(int(f|l)?|ound(f|l)?))|r(int(f|l)?|ound(f|l)?)|gamma(f|l)?)|w(scanf|c(s(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?|mbs)|pbrk|ftime|len|r(chr|tombs)|xfrm)|to(b|mb)|rtomb)|printf|mem(set|c(hr|py|mp)|move))|a(s(sert|ctime|in(h(f|l)?|f|l)?)|cos(h(f|l)?|f|l)?|t(o(i|f|l(l)?)|exit|an(h(f|l)?|2(f|l)?|f|l)?)|b(s|ort))|g(et(s|c(har)?|env|wc(har)?)|mtime)|r(int(f|l)?|ound(f|l)?|e(name|alloc|wind|m(ove|quo(f|l)?|ainder(f|l)?))|a(nd|ise))|b(search|towc)|m(odf(f|l)?|em(set|c(hr|py|mp)|move)|ktime|alloc|b(s(init|towcs|rtowcs)|towc|len|r(towc|len))))\b
268
+ - name: meta.function.c
269
+ endCaptures:
270
+ "0":
271
+ name: punctuation.definition.parameters.c
272
+ begin: "(?x)\n\
273
+ \t\t\t\t(?: ^ # begin-of-line\n\
274
+ \t\t\t\t | \n\
275
+ \t\t\t\t (?: (?= \\s ) (?<!else|new) (?<=\\w)\\s+ # or word + space before name\n\
276
+ \t\t\t\t | (?= \\s*[A-Za-z_] ) (?<!&&) (?<=[*&>])\\s* # or type modifier before name\n\
277
+ \t\t\t\t )\n\
278
+ \t\t\t\t)\n\
279
+ \t\t\t\t(\n\
280
+ \t\t\t\t\t[A-Za-z_][A-Za-z0-9_:]* # actual name\n\
281
+ \t\t\t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) )? # if it is a C++ operator\n\
282
+ \t\t\t\t)\n\
283
+ \t\t\t\t \\s*(\\() (?= # match \"(\"\n\
284
+ \t\t\t\t (?<fun> [^()]++ | \\( \\g<fun>*+ \\) )*+ # function arguments\n\
285
+ \t\t\t\t \\) \t\t # match \")\"\n\
286
+ \t\t\t\t (\\s+const)?\\s* # optional const modifier\n\
287
+ \t\t\t\t (\\{|\\n|//|/\\*)) # start bracket or end-of-line\n\
288
+ \t\t\t"
289
+ beginCaptures:
290
+ "1":
291
+ name: entity.name.function.c
292
+ "2":
293
+ name: punctuation.definition.parameters.c
294
+ end: \)
295
+ patterns:
296
+ - include: $base
297
+ - name: meta.function.prototype.c
298
+ endCaptures:
299
+ "0":
300
+ name: punctuation.definition.parameters.c
301
+ begin: "(?x)\n\
302
+ \t\t\t\t(?: ^ # begin-of-line\n\
303
+ \t\t\t\t | (?: (?= \\s ) (?<!else|new|return) (?<=\\w)\\s+ # or word + space before name\n\
304
+ \t\t\t\t | (?= \\s*[A-Za-z_] ) (?<!&&) (?<=[*&])\\s* # or type modifier before name\n\
305
+ \t\t\t\t )\n\
306
+ \t\t\t\t)\n\
307
+ \t\t\t\t(\n\
308
+ \t\t\t\t\t[A-Za-z_][A-Za-z0-9_:]* # actual name\n\
309
+ \t\t\t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) )? # if it is a C++ operator\n\
310
+ \t\t\t\t)\n\
311
+ \t\t\t\t \\s+(\\() (?= # match \"(\"\n\
312
+ \t\t\t\t (?<fun> [^()]++ | \\( \\g<fun>*+ \\) )*+ # function arguments\n\
313
+ \t\t\t\t \\) # match \")\"\n\
314
+ \t\t\t\t (\\s+const)?\\s* # optional const modifier\n\
315
+ \t\t\t\t ;) # terminating semi-colon\n\
316
+ \t\t\t"
317
+ beginCaptures:
318
+ "1":
319
+ name: entity.name.function.c
320
+ "2":
321
+ name: punctuation.definition.parameters.c
322
+ end: \)
323
+ patterns:
324
+ - include: $base
325
+ foldingStopMarker: (?<!\*)\*\*/|^\s*\}
326
+ keyEquivalent: ^~C
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: Cake
3
+ fileTypes:
4
+ - thtml
5
+ scopeName: source.php.cake
6
+ uuid: 3DF2FE0B-94CC-4EE2-A50A-BD4823D1B09D
7
+ foldingStartMarker: (/\*|\{|\()
8
+ patterns:
9
+ - name: support.function.model.cake
10
+ match: \b(bindModel|unbindModel|hasField|read|field|save|saveField|remove|del|delete|exists|hasAny|find|findAll|findCount|execute|query|validates|invalidate|invalidFields|isForeignKey|getDisplayField|generateList|getID|getLastInsertID|getInsertID|getNumRows|getAffectedRows|setDatasource|beforeFind|afterFind|beforeSave|afterSave|beforeDelete|afterDelete)\b
11
+ - name: support.function.controller.cake
12
+ match: \b(redirect|set|setAction|validate|validateErrors|render|referer|flash|flashOut|generateFieldNames|postCondtions|cleanUpFields|beforeFilter|beforeRender|afterFilter)\b
13
+ - name: support.constant.core.cake
14
+ match: \b(ACL_CLASSNAME|ACL_FILENAME|APP|APP_DIR|APP_PATH|AUTO_OUTPUT|AUTO_SESSION|CACHE|CACHE_CHECK|CAKE|CAKE_CORE_INCLUDE_PATH|CAKE_SECURITY|CAKE_SESSION_COOKIE|CAKE_SESSION_SAVE|CAKE_SESSION_STRING|CAKE_SESSION_TIMEOUT|COMPONENTS|COMPRESS_CSS|CONFIGS|CONTROLLER_TESTS|CONTROLLERS|CORE_PATH|CSS|DAY|DEBUG|DS|ELEMENTS|HELPER_TESTS|HELPERS|HOUR|INFLECTIONS|JS|LAYOUTS|LIB_TESTS|LIBS|LOG_ERROR|LOGS|MAX_MD5SIZE|MINUTE|MODEL_TESTS|MODELS|MODULES|MONTH|PEAR|ROOT|SCRIPTS|SECOND|TAG_DIV|TAG_FIELDSET|TAG_LABEL|TAG_P_CLASS|TESTS|TMP|VALID_EMAIL|VALID_NOT_EMPTY|VALID_NUMBER|VALID_YEAR|VENDORS|VIEWS|WEBROOT_DIR|WEBSERVICES|WEEK|WWW_ROOT|YEAR)\b
15
+ - name: invalid.deprecated.model.cake
16
+ match: \b(setId|findBySql)\b
17
+ - name: invalid.deprecated.helper.html.cake
18
+ match: \b(areaTag|charsetTag|checkboxTag|contentTag|cssTag|fileTag|formTag|guiListTag|hiddenTag|imageTag|inputTag|javascriptIncludeTag|javascriptTag|linkEmail|linkOut|linkTo|parseHtmlOptions|passwordTag|radioTags|submitTag|tag|urlFor)\b
19
+ - name: invalid.deprecated.helper.ajax.cake
20
+ match: \b(linkToRemote)\b
21
+ - name: support.function.helper.cake
22
+ match: \b(isFieldError|labelTag|divTag|pTag|generate(Input|Checkbox|Area|Select|submit)Div|generate(Date|DateTime|Fields))\b
23
+ - name: support.function.helper.html.cake
24
+ match: \b(addCrumb|charset|url|link|submit|password|textarea|checkbox|css|file|getCrumbs|hidden|image|input|radio|tableHeaders|tableCells|validate|tagIsValid|validateErrors|tagErrorMsg|selectTag|(day|year|month|hour|minute|meridian|date)OptionTag)\b
25
+ - name: support.function.helper.ajax.cake
26
+ match: \b(link|remoteFunction|remoteTimer|form|submit|observe(Field|Form)|autoComplete|drag|drop|dropRemote|slider|editor|sortable)\b
27
+ - name: support.function.file.cake
28
+ match: \b(read|append|write|get(Md5|Size|Ext|Name|Owner|Group|Folder|Chmod|FullPath)|create|exists|delete|writable|executable|readable|last(Access|Change))\b
29
+ - name: support.function.log.cake
30
+ match: \b(write)\b
31
+ - name: support.function.helper.number.cake
32
+ match: \b(precision|toReadableSize|toPercentage)\b
33
+ - name: support.function.component.requestHandler.cake
34
+ match: \b(startup|setAjax|is(Ajax|Xml|Rss|Atom|Post|Get|Delete|Mobile)|getAjaxVersion|setContent|get(Referer|ClientIP)|strip(WhiteSpace|Images|Scripts|All|tags)|accepts|prefers)\b
35
+ - name: support.function.component.session.cake
36
+ match: \b(write|read|del|delete|check|error|setFlash|flash|renew|valid)\b
37
+ - name: support.function.component.security.cake
38
+ match: \b(startup|blackHole|requirePost|requireAuth)\b
39
+ - name: support.function.component.sanitize.cake
40
+ match: \b(paranoid|sql|html|cleanArray|cleanArrayR|cleanValue|formatColumns)\b
41
+ - name: support.function.helper.time.cake
42
+ match: \b(trim|fromString|nice|niceShort|isToday|daysAsSql|dayAsSql|isThisYear|wasYesterday|isTomorrow|toUnix|toAtom|toRSS|timeAgoInWords|relativeTime|wasWithinLast)\b
43
+ - name: support.function.helper.text.cake
44
+ match: \b(highlight|stripLinks|autoLinkUrls|autoLinkEmails|autoLink|truncate|excerpt|flay)\b
45
+ - name: support.function.helper.javascript.cake
46
+ match: \b(codeBlock|link|linkOut|escape(String|Script)|event|(cache|write)Events|includeScript|object)\b
47
+ - name: support.function.neatArray.cake
48
+ match: \b(findIn|cleanup|add|plus|totals|filter|walk|sprintf|extract|unique|makeUnique|joinWith|threaded|multi_search)\b
49
+ - name: support.function.neatString.cake
50
+ match: \b(toArray|toRoman|toCompressed|randomPassword)\b
51
+ - name: support.function.basics.cake
52
+ match: \b(load(Models|PluginModels|View|Model|Controllers|PluginController)|listClasses|config|gendor|debug|aa|ha|a|e|low|up|r|pr|params|am|setUri|env|cache|clearCache|stripslashes_deep|countDim|LogError|fileExistsInPAth|convertSlash)\b
53
+ - include: source.php
54
+ - include: text.html.basic
55
+ foldingStopMarker: (\*/|\}|\))
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: camlp4
3
+ scopeName: source.camlp4.ocaml
4
+ repository:
5
+ camlpppp-streams:
6
+ patterns:
7
+ - name: meta.camlp4-stream.element.ocaml
8
+ endCaptures:
9
+ "1":
10
+ name: punctuation.separator.camlp4.ocaml
11
+ begin: (')
12
+ beginCaptures:
13
+ "1":
14
+ name: punctuation.definition.camlp4.simple-element.ocaml
15
+ end: (;)(?=\s*')|(?=\s*>])
16
+ patterns:
17
+ - include: source.ocaml
18
+ uuid: 37538B6B-CEFA-4DAE-B1E4-1218DB82B37F
19
+ foldingStartMarker: (\bEXTEND\B)
20
+ patterns:
21
+ - name: meta.camlp4-stream.ocaml
22
+ endCaptures:
23
+ "1":
24
+ name: punctuation.definition.camlp4-stream.ocaml
25
+ begin: (\[<)(?=.*?>])
26
+ beginCaptures:
27
+ "1":
28
+ name: punctuation.definition.camlp4-stream.ocaml
29
+ end: (?=>])
30
+ patterns:
31
+ - include: "#camlpppp-streams"
32
+ - name: punctuation.definition.camlp4-stream.ocaml
33
+ match: \[<|>]
34
+ - name: keyword.other.camlp4.ocaml
35
+ match: \bparser\b|<(<|:)|>>|\$(:|\${0,1})
36
+ foldingStopMarker: (\bEND\b)
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: ColdFusion
3
+ fileTypes:
4
+ - cfm
5
+ - cfml
6
+ - cfc
7
+ scopeName: text.html.cfm
8
+ repository:
9
+ tag-stuff:
10
+ patterns:
11
+ - include: "#tag-id-attribute"
12
+ - include: "#tag-generic-attribute"
13
+ - include: "#string-double-quoted"
14
+ - include: "#string-single-quoted"
15
+ - include: "#embedded-code"
16
+ string-double-quoted:
17
+ name: string.quoted.double.cfml
18
+ begin: "\""
19
+ end: "\""
20
+ patterns:
21
+ - include: "#embedded-code"
22
+ - include: "#entities"
23
+ coldfusion-comment:
24
+ name: comment.block.cfml
25
+ begin: <!---
26
+ end: --->
27
+ patterns:
28
+ - include: "#coldfusion-comment"
29
+ entities:
30
+ patterns:
31
+ - name: constant.character.entity.html
32
+ match: "&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);"
33
+ - name: invalid.illegal.bad-ampersand.html
34
+ match: "&"
35
+ string-single-quoted:
36
+ name: string.quoted.single.cfml
37
+ begin: "'"
38
+ end: "'"
39
+ patterns:
40
+ - include: "#embedded-code"
41
+ - include: "#entities"
42
+ tag-id-attribute:
43
+ name: meta.attribute-with-value.id.cfml
44
+ captures:
45
+ "1":
46
+ name: entity.other.attribute-name.id.html
47
+ begin: \b(id)\b\s*=
48
+ end: (?<='|")
49
+ patterns:
50
+ - name: string.quoted.double.cfml
51
+ begin: "\""
52
+ contentName: meta.toc-list.id.cfml
53
+ end: "\""
54
+ patterns:
55
+ - include: "#embedded-code"
56
+ - include: "#entities"
57
+ - name: string.quoted.single.cfml
58
+ begin: "'"
59
+ contentName: meta.toc-list.id.cfml
60
+ end: "'"
61
+ patterns:
62
+ - include: "#embedded-code"
63
+ - include: "#entities"
64
+ tag-generic-attribute:
65
+ name: entity.other.attribute-name.cfml
66
+ match: \b([a-zA-Z\-:]+)
67
+ embedded-code:
68
+ patterns: []
69
+
70
+ uuid: 97CAD6F7-0807-4EB4-876E-DA9E9C1CEC14
71
+ foldingStartMarker: |-
72
+ (?x)
73
+ (<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl|cfloop|cfif|cfswitch|cfcomponent)\b.*?>
74
+ |<!---(?!.*---\s*>)
75
+ )
76
+ patterns:
77
+ - name: meta.tag.cfoutput.cfml
78
+ captures:
79
+ "1":
80
+ name: entity.name.tag.cfoutput.cfml
81
+ begin: (?:^\s+)?<((?i:cfoutput))\b(?![^>]*/>)
82
+ end: </((?i:cfoutput))>(?:\s*\n)?
83
+ patterns:
84
+ - include: "#tag-stuff"
85
+ - begin: ">"
86
+ contentName: meta.scope.output.cfml
87
+ end: (?=</(?i:cfoutput))
88
+ patterns:
89
+ - include: $self
90
+ - name: meta.tag.cfquery.cfml
91
+ captures:
92
+ "1":
93
+ name: entity.name.tag.cfquery.cfml
94
+ begin: (?:^\s+)?<((?i:cfquery))\b(?![^>]*/>)
95
+ end: </((?i:cfquery))>(?:\s*\n)?
96
+ patterns:
97
+ - include: "#tag-stuff"
98
+ - name: source.sql.embedded
99
+ begin: (?<=>)
100
+ end: (?=</(?i:cfquery))
101
+ patterns:
102
+ - include: source.sql
103
+ - name: meta.tag.any.cfml
104
+ begin: </?((?i:cf)([a-zA-Z0-9]+))(?=[^>]*>)
105
+ beginCaptures:
106
+ "1":
107
+ name: entity.name.tag.cfml
108
+ end: ">"
109
+ patterns:
110
+ - include: "#tag-stuff"
111
+ - include: "#coldfusion-comment"
112
+ - include: text.html.basic
113
+ foldingStopMarker: |-
114
+ (?x)
115
+ (</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl|cfloop|cfif|cfswitch|cfcomponent)>
116
+ |^(?!.*?<!---).*?---\s*>
117
+ )
118
+ keyEquivalent: ^~C