ultraviolet1x 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +8 -0
  3. data/Gemfile.lock +16 -0
  4. data/History.txt +25 -0
  5. data/README.rdoc +29 -0
  6. data/README.txt +52 -0
  7. data/Rakefile +11 -0
  8. data/bin/theme2latexrender +122 -0
  9. data/bin/theme2xhtmlrender +156 -0
  10. data/bin/uv +140 -0
  11. data/broken_syntax/markdown.syntax +543 -0
  12. data/broken_syntax/php.syntax +1253 -0
  13. data/lib/uv/render_processor.rb +140 -0
  14. data/lib/uv/utility.rb +67 -0
  15. data/lib/uv/version.rb +3 -0
  16. data/lib/uv.rb +95 -0
  17. data/mm/manual.mm +840 -0
  18. data/render/latex/active4d.render +132 -0
  19. data/render/latex/all_hallows_eve.render +96 -0
  20. data/render/latex/amy.render +171 -0
  21. data/render/latex/blackboard.render +111 -0
  22. data/render/latex/brilliance_black.render +552 -0
  23. data/render/latex/brilliance_dull.render +561 -0
  24. data/render/latex/cobalt.render +162 -0
  25. data/render/latex/dawn.render +126 -0
  26. data/render/latex/eiffel.render +132 -0
  27. data/render/latex/espresso_libre.render +123 -0
  28. data/render/latex/idle.render +93 -0
  29. data/render/latex/iplastic.render +99 -0
  30. data/render/latex/lazy.render +96 -0
  31. data/render/latex/mac_classic.render +135 -0
  32. data/render/latex/magicwb_amiga.render +117 -0
  33. data/render/latex/pastels_on_dark.render +204 -0
  34. data/render/latex/slush_poppies.render +123 -0
  35. data/render/latex/spacecadet.render +81 -0
  36. data/render/latex/sunburst.render +186 -0
  37. data/render/latex/twilight.render +153 -0
  38. data/render/latex/zenburnesque.render +126 -0
  39. data/render/old/txt2tags.render +131 -0
  40. data/render/xhtml/active4d.render +140 -0
  41. data/render/xhtml/all_hallows_eve.render +104 -0
  42. data/render/xhtml/amy.render +179 -0
  43. data/render/xhtml/blackboard.render +119 -0
  44. data/render/xhtml/brilliance_black.render +560 -0
  45. data/render/xhtml/brilliance_dull.render +569 -0
  46. data/render/xhtml/cobalt.render +170 -0
  47. data/render/xhtml/dawn.render +134 -0
  48. data/render/xhtml/eiffel.render +140 -0
  49. data/render/xhtml/espresso_libre.render +131 -0
  50. data/render/xhtml/files/css/active4d.css +114 -0
  51. data/render/xhtml/files/css/all_hallows_eve.css +72 -0
  52. data/render/xhtml/files/css/amy.css +147 -0
  53. data/render/xhtml/files/css/blackboard.css +88 -0
  54. data/render/xhtml/files/css/brilliance_black.css +605 -0
  55. data/render/xhtml/files/css/brilliance_dull.css +599 -0
  56. data/render/xhtml/files/css/cobalt.css +149 -0
  57. data/render/xhtml/files/css/dawn.css +121 -0
  58. data/render/xhtml/files/css/eiffel.css +121 -0
  59. data/render/xhtml/files/css/espresso_libre.css +109 -0
  60. data/render/xhtml/files/css/idle.css +62 -0
  61. data/render/xhtml/files/css/iplastic.css +80 -0
  62. data/render/xhtml/files/css/lazy.css +73 -0
  63. data/render/xhtml/files/css/mac_classic.css +123 -0
  64. data/render/xhtml/files/css/magicwb_amiga.css +104 -0
  65. data/render/xhtml/files/css/pastels_on_dark.css +188 -0
  66. data/render/xhtml/files/css/slush_poppies.css +85 -0
  67. data/render/xhtml/files/css/spacecadet.css +51 -0
  68. data/render/xhtml/files/css/sunburst.css +180 -0
  69. data/render/xhtml/files/css/twilight.css +137 -0
  70. data/render/xhtml/files/css/zenburnesque.css +91 -0
  71. data/render/xhtml/idle.render +101 -0
  72. data/render/xhtml/iplastic.render +107 -0
  73. data/render/xhtml/lazy.render +104 -0
  74. data/render/xhtml/mac_classic.render +143 -0
  75. data/render/xhtml/magicwb_amiga.render +125 -0
  76. data/render/xhtml/pastels_on_dark.render +212 -0
  77. data/render/xhtml/slush_poppies.render +131 -0
  78. data/render/xhtml/spacecadet.render +89 -0
  79. data/render/xhtml/sunburst.render +194 -0
  80. data/render/xhtml/twilight.render +161 -0
  81. data/render/xhtml/zenburnesque.render +134 -0
  82. data/syntax/actionscript.syntax +97 -0
  83. data/syntax/active4d.syntax +276 -0
  84. data/syntax/active4d_html.syntax +311 -0
  85. data/syntax/active4d_ini.syntax +50 -0
  86. data/syntax/active4d_library.syntax +21 -0
  87. data/syntax/ada.syntax +33 -0
  88. data/syntax/antlr.syntax +151 -0
  89. data/syntax/apache.syntax +191 -0
  90. data/syntax/applescript.syntax +384 -0
  91. data/syntax/asp.syntax +70 -0
  92. data/syntax/asp_vb.net.syntax +129 -0
  93. data/syntax/bibtex.syntax +151 -0
  94. data/syntax/blog_html.syntax +41 -0
  95. data/syntax/blog_markdown.syntax +42 -0
  96. data/syntax/blog_text.syntax +27 -0
  97. data/syntax/blog_textile.syntax +27 -0
  98. data/syntax/buggy/nemerle.syntax +74 -0
  99. data/syntax/build.syntax +53 -0
  100. data/syntax/bulletin_board.syntax +287 -0
  101. data/syntax/c++.syntax +186 -0
  102. data/syntax/c.syntax +414 -0
  103. data/syntax/cake.syntax +55 -0
  104. data/syntax/camlp4.syntax +36 -0
  105. data/syntax/cm.syntax +32 -0
  106. data/syntax/coffeescript.syntax +216 -0
  107. data/syntax/coldfusion.syntax +119 -0
  108. data/syntax/context_free.syntax +176 -0
  109. data/syntax/cs.syntax +59 -0
  110. data/syntax/css.syntax +195 -0
  111. data/syntax/css_experimental.syntax +1925 -0
  112. data/syntax/csv.syntax +68 -0
  113. data/syntax/d.syntax +142 -0
  114. data/syntax/diff.syntax +81 -0
  115. data/syntax/dokuwiki.syntax +204 -0
  116. data/syntax/dot.syntax +47 -0
  117. data/syntax/doxygen.syntax +43 -0
  118. data/syntax/dylan.syntax +62 -0
  119. data/syntax/eiffel.syntax +78 -0
  120. data/syntax/erlang.syntax +922 -0
  121. data/syntax/f-script.syntax +80 -0
  122. data/syntax/fortran.syntax +141 -0
  123. data/syntax/fxscript.syntax +142 -0
  124. data/syntax/greasemonkey.syntax +34 -0
  125. data/syntax/gri.syntax +83 -0
  126. data/syntax/groovy.syntax +191 -0
  127. data/syntax/gtd.syntax +22 -0
  128. data/syntax/gtdalt.syntax +143 -0
  129. data/syntax/haml.syntax +88 -0
  130. data/syntax/haskell.syntax +88 -0
  131. data/syntax/html-asp.syntax +27 -0
  132. data/syntax/html.syntax +362 -0
  133. data/syntax/html_django.syntax +36 -0
  134. data/syntax/html_for_asp.net.syntax +424 -0
  135. data/syntax/html_mason.syntax +119 -0
  136. data/syntax/html_rails.syntax +40 -0
  137. data/syntax/html_tcl.syntax +26 -0
  138. data/syntax/icalendar.syntax +32 -0
  139. data/syntax/inform.syntax +48 -0
  140. data/syntax/ini.syntax +55 -0
  141. data/syntax/installer_distribution_script.syntax +77 -0
  142. data/syntax/io.syntax +81 -0
  143. data/syntax/java.syntax +211 -0
  144. data/syntax/javaproperties.syntax +20 -0
  145. data/syntax/javascript.syntax +256 -0
  146. data/syntax/javascript_+_prototype.syntax +72 -0
  147. data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  148. data/syntax/jquery_javascript.syntax +114 -0
  149. data/syntax/json.syntax +136 -0
  150. data/syntax/languagedefinition.syntax +708 -0
  151. data/syntax/latex.syntax +566 -0
  152. data/syntax/latex_beamer.syntax +41 -0
  153. data/syntax/latex_log.syntax +50 -0
  154. data/syntax/latex_memoir.syntax +64 -0
  155. data/syntax/lexflex.syntax +219 -0
  156. data/syntax/lighttpd.syntax +54 -0
  157. data/syntax/lilypond.syntax +492 -0
  158. data/syntax/lisp.syntax +61 -0
  159. data/syntax/literate_haskell.syntax +24 -0
  160. data/syntax/logo.syntax +29 -0
  161. data/syntax/logtalk.syntax +152 -0
  162. data/syntax/lua.syntax +86 -0
  163. data/syntax/m.syntax +142 -0
  164. data/syntax/macports_portfile.syntax +163 -0
  165. data/syntax/mail.syntax +118 -0
  166. data/syntax/makefile.syntax +36 -0
  167. data/syntax/man.syntax +17 -0
  168. data/syntax/mediawiki.syntax +567 -0
  169. data/syntax/mel.syntax +92 -0
  170. data/syntax/mips.syntax +66 -0
  171. data/syntax/mod_perl.syntax +50 -0
  172. data/syntax/modula-3.syntax +47 -0
  173. data/syntax/moinmoin.syntax +189 -0
  174. data/syntax/mootools.syntax +572 -0
  175. data/syntax/movable_type.syntax +162 -0
  176. data/syntax/multimarkdown.syntax +39 -0
  177. data/syntax/objective-c++.syntax +18 -0
  178. data/syntax/objective-c.syntax +233 -0
  179. data/syntax/ocaml.syntax +764 -0
  180. data/syntax/ocamllex.syntax +167 -0
  181. data/syntax/ocamlyacc.syntax +184 -0
  182. data/syntax/old/YAML.yaml +160 -0
  183. data/syntax/old/txt2tags.yaml +139 -0
  184. data/syntax/opengl.syntax +14 -0
  185. data/syntax/pascal.syntax +77 -0
  186. data/syntax/perl.syntax +1115 -0
  187. data/syntax/plain_text.syntax +32 -0
  188. data/syntax/pmwiki.syntax +113 -0
  189. data/syntax/postscript.syntax +114 -0
  190. data/syntax/processing.syntax +106 -0
  191. data/syntax/prolog.syntax +40 -0
  192. data/syntax/property_list.syntax +635 -0
  193. data/syntax/python.syntax +868 -0
  194. data/syntax/python_django.syntax +21 -0
  195. data/syntax/qmake_project.syntax +114 -0
  196. data/syntax/qt_c++.syntax +26 -0
  197. data/syntax/quake3_config.syntax +32 -0
  198. data/syntax/r.syntax +81 -0
  199. data/syntax/r_console.syntax +16 -0
  200. data/syntax/ragel.syntax +201 -0
  201. data/syntax/rd_r_documentation.syntax +91 -0
  202. data/syntax/regexp.syntax +50 -0
  203. data/syntax/regular_expressions_oniguruma.syntax +107 -0
  204. data/syntax/regular_expressions_python.syntax +109 -0
  205. data/syntax/release_notes.syntax +46 -0
  206. data/syntax/remind.syntax +253 -0
  207. data/syntax/restructuredtext.syntax +250 -0
  208. data/syntax/rez.syntax +80 -0
  209. data/syntax/ruby.syntax +1035 -0
  210. data/syntax/ruby_experimental.syntax +145 -0
  211. data/syntax/ruby_on_rails.syntax +88 -0
  212. data/syntax/s5.syntax +69 -0
  213. data/syntax/sass.syntax +45 -0
  214. data/syntax/scheme.syntax +347 -0
  215. data/syntax/scilab.syntax +41 -0
  216. data/syntax/setext.syntax +147 -0
  217. data/syntax/shell-unix-generic.syntax +384 -0
  218. data/syntax/slate.syntax +149 -0
  219. data/syntax/smarty.syntax +63 -0
  220. data/syntax/sql.syntax +237 -0
  221. data/syntax/sql_rails.syntax +18 -0
  222. data/syntax/ssh-config.syntax +33 -0
  223. data/syntax/standard_ml.syntax +121 -0
  224. data/syntax/strings_file.syntax +39 -0
  225. data/syntax/subversion_commit_message.syntax +36 -0
  226. data/syntax/sweave.syntax +84 -0
  227. data/syntax/swig.syntax +57 -0
  228. data/syntax/tcl.syntax +152 -0
  229. data/syntax/template_toolkit.syntax +121 -0
  230. data/syntax/tex.syntax +86 -0
  231. data/syntax/tex_math.syntax +49 -0
  232. data/syntax/textile.syntax +215 -0
  233. data/syntax/tsv.syntax +50 -0
  234. data/syntax/twiki.syntax +241 -0
  235. data/syntax/txt2tags.syntax +79 -0
  236. data/syntax/vectorscript.syntax +57 -0
  237. data/syntax/xhtml_1.0.syntax +4027 -0
  238. data/syntax/xml.syntax +180 -0
  239. data/syntax/xml_strict.syntax +92 -0
  240. data/syntax/xsl.syntax +60 -0
  241. data/syntax/yaml.syntax +160 -0
  242. data/syntax/yui_javascript.syntax +176 -0
  243. data/test/ultraviolet_test.rb +17 -0
  244. data/test/uv_test.rb +0 -0
  245. data/ultraviolet1x.gemspec +22 -0
  246. metadata +333 -0
data/syntax/csv.syntax ADDED
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: CSV
3
+ fileTypes:
4
+ - csv
5
+ scopeName: text.tabular.csv
6
+ repository:
7
+ row:
8
+ name: meta.tabular.row.csv
9
+ begin: ^(?!$)
10
+ end: $
11
+ patterns:
12
+ - include: "#field"
13
+ field:
14
+ patterns:
15
+ - endCaptures:
16
+ "1":
17
+ name: punctuation.definition.field.csv
18
+ "3":
19
+ name: punctuation.separator.tabular.field.csv
20
+ begin: (^|(?<=,))(")
21
+ contentName: meta.tabular.field.quoted.csv
22
+ beginCaptures:
23
+ "2":
24
+ name: punctuation.definition.field.csv
25
+ end: (")($|(,))
26
+ patterns:
27
+ - name: constant.character.escape.straight-quote.csv
28
+ match: "\"\""
29
+ comment: "\n\
30
+ \t\t\t\t\t\tthis field uses \"s and is thus able to enclose\n\
31
+ \t\t\t\t\t\tnewlines or commas\n\
32
+ \t\t\t\t\t"
33
+ - endCaptures:
34
+ "1":
35
+ name: punctuation.separator.tabular.field.csv
36
+ begin: (:^|(?<=,))(?!$|,)
37
+ contentName: meta.tabular.field.csv
38
+ end: $|(,)
39
+ - name: punctuation.separator.tabular.field.csv
40
+ match: ","
41
+ header:
42
+ name: meta.tabular.row.header.csv
43
+ begin: ^(?!$)
44
+ end: $
45
+ patterns:
46
+ - include: "#field"
47
+ table:
48
+ name: meta.tabular.table.csv
49
+ begin: ^
50
+ end: ^$not possible$^
51
+ patterns:
52
+ - include: "#header"
53
+ - begin: (\n)
54
+ beginCaptures:
55
+ "1":
56
+ name: punctuation.separator.table.row.csv
57
+ end: ^$not possible$^
58
+ patterns:
59
+ - include: "#row"
60
+ - name: punctuation.separator.table.row.csv
61
+ match: \n
62
+ comment: "\n\
63
+ \t\t\t\t\t\teverything after the first row is not a header\n\
64
+ \t\t\t\t\t"
65
+ uuid: B0691F9F-D279-48CB-8959-2C9426579002
66
+ patterns:
67
+ - include: "#table"
68
+ keyEquivalent: ^~C
data/syntax/d.syntax ADDED
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: D
3
+ fileTypes:
4
+ - d
5
+ firstLineMatch: ^#!.*\bdmd\b.
6
+ scopeName: source.d
7
+ repository:
8
+ string_escaped_char:
9
+ patterns:
10
+ - name: constant.character.escape.c
11
+ match: \\(\\|[abefnprtv'"?]|[0-3]\d{,2}|[4-7]\d?|x[a-zA-Z0-9]+)
12
+ - name: invalid.illegal.unknown-escape.c
13
+ match: \\.
14
+ string_placeholder:
15
+ patterns:
16
+ - name: constant.other.placeholder.c
17
+ match: "(?x)%\n\
18
+ \t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n\
19
+ \t\t\t\t\t\t[#0\\- +']* # flags\n\
20
+ \t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n\
21
+ \t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n\
22
+ \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n\
23
+ \t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n\
24
+ \t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n\
25
+ \t\t\t\t\t"
26
+ - name: invalid.illegal.placeholder.c
27
+ match: "%"
28
+ comment_nested_block_content:
29
+ captures:
30
+ "0":
31
+ name: punctuation.definition.comment.d
32
+ begin: /\+
33
+ end: \+/
34
+ patterns:
35
+ - include: "#comment_nested_block_content"
36
+ uuid: F02BBA11-F58F-4E85-8698-FC74E339D6C3
37
+ foldingStartMarker: (?x)/\*\*(?!\*)|^(?![^{]*?//|[^{]*?/\*(?!.*?\*/.*?\{)).*?\{\s*($|//|/\*(?!.*?\*/.*\S))
38
+ patterns:
39
+ - name: keyword.other.external.d
40
+ match: \b(import|package|module|extern)\b
41
+ - name: keyword.control.conditional.d
42
+ match: \b(if|else|switch|iftype)\b
43
+ - name: keyword.control.branch.d
44
+ match: \b(goto|break|continue)\b
45
+ - name: keyword.control.repeat.d
46
+ match: \b(while|for|do|foreach)\b
47
+ - name: keyword.control.repeat.d
48
+ match: \b(while|for|do|foreach)\b
49
+ - name: constant.language.boolean.d
50
+ match: \b(true|false)\b
51
+ - name: constant.language.d
52
+ match: \b(__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|null)\b
53
+ - name: storage.type.typedef.d
54
+ match: \b(alias|typedef)\b
55
+ - name: storage.type.structure.d
56
+ match: \b(template|interface|class|enum|struct|union)\b
57
+ - name: keyword.operator.d
58
+ match: \b(new|delete|typeof|typeid|cast|align|is|this|super)\b
59
+ - name: keyword.operator.overload.d
60
+ match: \b(opNeg|opCom|opPostInc|opPostDec|opCast|opAdd|opSub|opSub_r|opMul|opDiv|opDiv_r|opMod|opMod_r|opAnd|opOr|opXor|opShl|opShl_r|opShr|opShr_r|opUShr|opUShr_r|opCat|opCat_r|opEquals|opEquals|opCmp|opCmp|opCmp|opCmp|opAddAssign|opSubAssign|opMulAssign|opDivAssign|opModAssign|opAndAssign|opOrAssign|opXorAssign|opShlAssign|opShrAssign|opUShrAssign|opCatAssign|opIndex|opIndexAssign|opCall|opSlice|opSliceAssign|opPos|opAdd_r|opMul_r|opAnd_r|opOr_r|opXor_r)\b
61
+ - name: storage.type.d
62
+ match: \b(ushort|int|uint|long|ulong|float|void|byte|ubyte|double|bit|char|wchar|ucent|cent|short|bool|dchar|real|ireal|ifloat|idouble|creal|cfloat|cdouble)\b
63
+ - name: keyword.other.debug.d
64
+ match: \b(deprecated|unittest)\b
65
+ - name: keyword.control.exception.d
66
+ match: \b(throw|try|catch|finally)\b
67
+ - name: storage.modifier.d
68
+ match: \b(public|protected|private|export)\b
69
+ - name: keyword.control.statement.d
70
+ match: \b(version|debug|return|with|invariant|body|scope|in|out|inout|asm|mixin|function|delegate)\b
71
+ - name: storage.modifier.d
72
+ match: \b(auto|static|override|final|const|abstract|volatile|synchronized)\b
73
+ - name: keyword.control.pragma.d
74
+ match: \b(pragma)\b
75
+ - captures:
76
+ "1":
77
+ name: punctuation.section.embedded.mips
78
+ begin: asm[\n]*\s*({)
79
+ end: (})
80
+ patterns:
81
+ - include: source.mips
82
+ comment: |-
83
+ This rule is broken and never gets called anyhow since asm
84
+ is matched above this. If fixed the scopes here should be
85
+ redone as well. -msheets
86
+ - name: comment.block.nested.d
87
+ captures:
88
+ "0":
89
+ name: punctuation.definition.comment.d
90
+ begin: /\+
91
+ end: \+/
92
+ patterns:
93
+ - include: "#comment_nested_block_content"
94
+ - name: comment.block.d
95
+ captures:
96
+ "0":
97
+ name: punctuation.definition.comment.d
98
+ begin: /\*
99
+ end: \*/
100
+ - name: comment.line.double-slash.d
101
+ begin: (//)
102
+ beginCaptures:
103
+ "1":
104
+ name: punctuation.definition.comment.d
105
+ end: $\n?
106
+ patterns:
107
+ - name: punctuation.separator.continuation.d
108
+ match: (?>\\\s*\n)
109
+ - name: constant.numeric.c
110
+ 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
111
+ - name: string.quoted.double.c
112
+ endCaptures:
113
+ "0":
114
+ name: punctuation.definition.string.end.d
115
+ begin: "\""
116
+ beginCaptures:
117
+ "0":
118
+ name: punctuation.definition.string.begin.d
119
+ end: "\""
120
+ patterns:
121
+ - include: "#string_escaped_char"
122
+ - include: "#string_placeholder"
123
+ - name: string.quoted.single.c
124
+ endCaptures:
125
+ "0":
126
+ name: punctuation.definition.string.end.d
127
+ begin: "'"
128
+ beginCaptures:
129
+ "0":
130
+ name: punctuation.definition.string.begin.d
131
+ end: "'"
132
+ patterns:
133
+ - include: "#string_escaped_char"
134
+ - name: support.type.sys-types.c
135
+ 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
136
+ - name: support.type.pthread.c
137
+ 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
138
+ - name: support.type.stdint.c
139
+ 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
140
+ foldingStopMarker: (?<!\*)\*\*/|^\s*\}
141
+ keyEquivalent: ^~D
142
+ comment: D language
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: Diff
3
+ fileTypes:
4
+ - diff
5
+ - patch
6
+ firstLineMatch: "^(=== modified file|====\\s*//.+\\s-\\s.+\\s+====|Index: |--- [^%]|\\*\\*\\* |\\d+(,\\d+)*(a|d|c)\\d+(,\\d+)*$)"
7
+ scopeName: source.diff
8
+ uuid: 7E848FF4-708E-11D9-97B4-0011242E4184
9
+ patterns:
10
+ - name: meta.separator.diff
11
+ captures:
12
+ "1":
13
+ name: punctuation.definition.separator.diff
14
+ match: ^((\*{15})|(={67})|(-{3}))$\n?
15
+ - name: meta.diff.range.normal
16
+ match: ^\d+(,\d+)*(a|d|c)\d+(,\d+)*$\n?
17
+ - name: meta.diff.range.unified
18
+ captures:
19
+ "1":
20
+ name: punctuation.definition.range.diff
21
+ "2":
22
+ name: meta.toc-list.line-number.diff
23
+ "3":
24
+ name: punctuation.definition.range.diff
25
+ match: ^(@@)\s*(.+?)\s*(@@)$\n?
26
+ - name: meta.diff.range.context
27
+ captures:
28
+ "6":
29
+ name: punctuation.definition.range.diff
30
+ "7":
31
+ name: punctuation.definition.range.diff
32
+ "3":
33
+ name: punctuation.definition.range.diff
34
+ "4":
35
+ name: punctuation.definition.range.diff
36
+ match: ^(((\-{3}) .+ (\-{4}))|((\*{3}) .+ (\*{4})))$\n?
37
+ - name: meta.diff.header.from-file
38
+ captures:
39
+ "6":
40
+ name: punctuation.definition.from-file.diff
41
+ "7":
42
+ name: punctuation.definition.from-file.diff
43
+ "4":
44
+ name: punctuation.definition.from-file.diff
45
+ match: (^(((-{3}) .+)|((\*{3}) .+))$\n?|^(={4}) .+(?= - ))
46
+ - name: meta.diff.header.to-file
47
+ captures:
48
+ "2":
49
+ name: punctuation.definition.to-file.diff
50
+ "3":
51
+ name: punctuation.definition.to-file.diff
52
+ "4":
53
+ name: punctuation.definition.to-file.diff
54
+ match: (^(\+{3}) .+$\n?| (-) .* (={4})$\n?)
55
+ - name: markup.inserted.diff
56
+ captures:
57
+ "6":
58
+ name: punctuation.definition.inserted.diff
59
+ "3":
60
+ name: punctuation.definition.inserted.diff
61
+ match: ^(((>)( .*)?)|((\+).*))$\n?
62
+ - name: markup.changed.diff
63
+ captures:
64
+ "1":
65
+ name: punctuation.definition.inserted.diff
66
+ match: ^(!).*$\n?
67
+ - name: markup.deleted.diff
68
+ captures:
69
+ "6":
70
+ name: punctuation.definition.inserted.diff
71
+ "3":
72
+ name: punctuation.definition.inserted.diff
73
+ match: ^(((<)( .*)?)|((-).*))$\n?
74
+ - name: meta.diff.index
75
+ captures:
76
+ "1":
77
+ name: punctuation.separator.key-value.diff
78
+ "2":
79
+ name: meta.toc-list.file-name.diff
80
+ match: ^Index(:) (.+)$\n?
81
+ keyEquivalent: ^~D
@@ -0,0 +1,204 @@
1
+ ---
2
+ name: DokuWiki
3
+ fileTypes: []
4
+
5
+ firstLineMatch: ^\s*={2,}(.*)={2,}\s*$
6
+ scopeName: text.html.dokuwiki
7
+ repository:
8
+ php:
9
+ patterns:
10
+ - name: source.php.embedded.dokuwiki
11
+ begin: (?:^\s*)(?=<\?(?i:php|=)?(?!.*\?>))
12
+ applyEndPatternLast: 1
13
+ end: (?<=\?>)(?:\s*$\n)?
14
+ patterns:
15
+ - include: source.php
16
+ comment: match only multi-line PHP with leading whitespace
17
+ - name: source.php.embedded.dokuwiki
18
+ begin: (?=<\?(?i:php|=)?)
19
+ applyEndPatternLast: 1
20
+ end: (?<=\?>)
21
+ patterns:
22
+ - include: source.php
23
+ - name: source.php.embedded.dokuwiki
24
+ captures:
25
+ "1":
26
+ name: punctuation.definition.tag.dokuwiki
27
+ "2":
28
+ name: punctuation.definition.tag.dokuwiki
29
+ begin: (<)php(>)
30
+ applyEndPatternLast: 1
31
+ end: (</)php(>)
32
+ patterns:
33
+ - include: source.php
34
+ inline:
35
+ patterns:
36
+ - name: markup.bold.dokuwiki
37
+ captures:
38
+ "0":
39
+ name: punctuation.definition.bold.dokuwiki
40
+ begin: \*\*
41
+ end: \*\*
42
+ patterns:
43
+ - include: "#inline"
44
+ - name: markup.italic.dokuwiki
45
+ captures:
46
+ "0":
47
+ name: punctuation.definition.italic.dokuwiki
48
+ begin: //
49
+ end: //
50
+ patterns:
51
+ - include: "#inline"
52
+ - name: markup.underline.dokuwiki
53
+ captures:
54
+ "0":
55
+ name: punctuation.definition.underline.dokuwiki
56
+ begin: __
57
+ end: __
58
+ patterns:
59
+ - include: "#inline"
60
+ - name: meta.image.inline.dokuwiki
61
+ captures:
62
+ "1":
63
+ name: punctuation.definition.image.dokuwiki
64
+ "2":
65
+ name: markup.underline.link.dokuwiki
66
+ "3":
67
+ name: punctuation.definition.image.dokuwiki
68
+ match: (\{\{)(.+?)(\}\})
69
+ - name: meta.link.dokuwiki
70
+ captures:
71
+ "1":
72
+ name: punctuation.definition.link.dokuwiki
73
+ "2":
74
+ name: markup.underline.link.dokuwiki
75
+ "3":
76
+ name: punctuation.definition.link.dokuwiki
77
+ match: (\[\[)(.*?)(\]\])
78
+ - captures:
79
+ "1":
80
+ name: punctuation.definition.link.dokuwiki
81
+ "2":
82
+ name: markup.underline.link.interwiki.dokuwiki
83
+ "3":
84
+ name: punctuation.definition.link.dokuwiki
85
+ match: (\[\[)([^\[\]]+\>[^|\]]+)(\]\])
86
+ - captures:
87
+ "1":
88
+ name: markup.underline.link.dokuwiki
89
+ match: ((https?|telnet|gopher|wais|ftp|ed2k|irc)://[\w/\#~:.?+=&%@!\-;,]+?(?=[.:?\-;,]*[^\w/\#~:.?+=&%@!\-;,]))
90
+ - name: meta.link.email.dokuwiki
91
+ captures:
92
+ "1":
93
+ name: punctuation.definition.link.dokuwiki
94
+ "2":
95
+ name: markup.underline.link.dokuwiki
96
+ "3":
97
+ name: punctuation.definition.link.dokuwiki
98
+ match: (<)([\w0-9\-_.]+?@[\w\-]+\.[\w\-\.]+\.*[\w]+)(\>)
99
+ uuid: 862D8B02-501E-4205-9DA4-FB7CDA7AE3DA
100
+ foldingStartMarker: (<(php|html|file|nowiki)>|<code(\s*.*)?>)|/\*\*|\{\s*$
101
+ patterns:
102
+ - include: "#php"
103
+ - include: "#inline"
104
+ - name: string.quoted.double.dokuwiki
105
+ endCaptures:
106
+ "0":
107
+ name: punctuation.definition.string.end.dokuwiki
108
+ begin: "\""
109
+ beginCaptures:
110
+ "0":
111
+ name: punctuation.definition.string.begin.dokuwiki
112
+ end: "\""
113
+ patterns:
114
+ - name: constant.character.escape.dokuwiki
115
+ match: \\.
116
+ - name: comment.block.documentation.dokuwiki
117
+ captures:
118
+ "0":
119
+ name: punctuation.definition.comment.dokuwiki
120
+ begin: \(\(
121
+ end: \)\)
122
+ - name: markup.heading.dokuwiki
123
+ captures:
124
+ "1":
125
+ name: punctuation.definition.heading.dokuwiki
126
+ "3":
127
+ name: punctuation.definition.heading.dokuwiki
128
+ match: ^\s*(={2,})(.*)(={2,})\s*$\n?
129
+ - name: keyword.other.notoc.dokuwiki
130
+ match: ~~NOTOC~~
131
+ - name: keyword.other.nocache.dokuwiki
132
+ match: ~~NOCACHE~~
133
+ - name: meta.separator.dokuwiki
134
+ match: ^\s*-{4,}\s*$
135
+ - name: markup.other.paragraph.dokuwiki
136
+ match: \\\\\s
137
+ - name: markup.list.unnumbered.dokuwiki
138
+ captures:
139
+ "4":
140
+ name: punctuation.definition.list_item.dokuwiki
141
+ begin: ^((\t+)|( {2,}))(\*)
142
+ end: $\n?
143
+ patterns:
144
+ - include: "#inline"
145
+ - name: markup.list.numbered.dokuwiki
146
+ captures:
147
+ "4":
148
+ name: punctuation.definition.list_item.dokuwiki
149
+ begin: ^((\t+)|( {2,}))(-)
150
+ end: $\n?
151
+ patterns:
152
+ - include: "#inline"
153
+ - name: markup.other.table.dokuwiki
154
+ begin: ^[|^]
155
+ beginCaptures:
156
+ "0":
157
+ name: punctuation.definition.table.dokuwiki
158
+ end: $
159
+ patterns:
160
+ - include: "#inline"
161
+ - name: markup.raw.dokuwiki
162
+ captures:
163
+ "1":
164
+ name: punctuation.definition.tag.dokuwiki
165
+ "3":
166
+ name: punctuation.definition.tag.dokuwiki
167
+ begin: (\<)(file|nowiki)(\>)
168
+ end: (<\/)(\2)(\>)
169
+ - name: markup.raw.dokuwiki
170
+ captures:
171
+ "0":
172
+ name: punctuation.definition.raw.dokuwiki
173
+ begin: (%%|\'\')
174
+ end: \1
175
+ - captures:
176
+ "1":
177
+ name: punctuation.definition.tag.dokuwiki
178
+ "2":
179
+ name: punctuation.definition.tag.dokuwiki
180
+ begin: (<)html(>)
181
+ end: (</)html(>)
182
+ patterns:
183
+ - include: text.html.basic
184
+ - name: markup.raw.dokuwiki
185
+ match: ^((\s\s)|(\t))[^\*\-].*$
186
+ - name: markup.other.dokuwiki
187
+ captures:
188
+ "1":
189
+ name: punctuation.definition.tag.dokuwiki
190
+ "3":
191
+ name: punctuation.definition.tag.dokuwiki
192
+ begin: (\<)(sub|sup|del)(\>)
193
+ end: (\</)(\2)(\>)
194
+ patterns:
195
+ - include: "#inline"
196
+ - name: markup.raw.dokuwiki
197
+ captures:
198
+ "1":
199
+ name: punctuation.definition.tag.dokuwiki
200
+ "2":
201
+ name: punctuation.definition.tag.dokuwiki
202
+ begin: (<)code(?:\s+[^>]*)?(>)
203
+ end: (</)code(>)
204
+ foldingStopMarker: (</(code|php|html|file|nowiki)>)|\*\*/|^\s*\}
data/syntax/dot.syntax ADDED
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: Graphviz (DOT)
3
+ fileTypes:
4
+ - dot
5
+ - DOT
6
+ scopeName: source.dot
7
+ uuid: 1A53D54E-6B1D-11D9-A006-000D93589AF6
8
+ foldingStartMarker: \{
9
+ patterns:
10
+ - name: storage.type.dot
11
+ match: \b(node|edge|graph|digraph|subgraph|strict)\b
12
+ - name: support.constant.attribute.node.dot
13
+ match: \b(bottomlabel|color|comment|distortion|fillcolor|fixedsize|fontcolor|fontname|fontsize|group|height|label|layer|orientation|peripheries|regular|shape|shapefile|sides|skew|style|toplabel|URL|width|z)\b
14
+ - name: support.constant.attribute.edge.dot
15
+ match: \b(arrowhead|arrowsize|arrowtail|color|comment|constraint|decorate|dir|fontcolor|fontname|fontsize|headlabel|headport|headURL|label|labelangle|labeldistance|labelfloat|labelcolor|labelfontname|labelfontsize|layer|lhead|ltail|minlen|samehead|sametail|style|taillabel|tailport|tailURL|weight)\b
16
+ - name: support.constant.attribute.graph.dot
17
+ match: \b(bgcolor|center|clusterrank|color|comment|compound|concentrate|fillcolor|fontname|fontpath|fontsize|label|labeljust|labelloc|layers|margin|mclimit|nodesep|nslimit|nslimit1|ordering|orientation|page|pagedir|quantum|rank|rankdir|ranksep|ratio|remincross|rotate|samplepoints|searchsize|size|style|URL)\b
18
+ - name: string.quoted.double.dot
19
+ endCaptures:
20
+ "0":
21
+ name: punctuation.definition.string.end.dot
22
+ begin: "\""
23
+ beginCaptures:
24
+ "0":
25
+ name: punctuation.definition.string.begin.dot
26
+ end: "\""
27
+ patterns:
28
+ - name: constant.character.escape.dot
29
+ match: \\.
30
+ - name: comment.line.double-slash.dot
31
+ captures:
32
+ "1":
33
+ name: punctuation.definition.comment.dot
34
+ match: (//).*$\n?
35
+ - name: comment.line.number-sign.dot
36
+ captures:
37
+ "1":
38
+ name: punctuation.definition.comment.dot
39
+ match: (#).*$\n?
40
+ - name: comment.block.dot
41
+ captures:
42
+ "0":
43
+ name: punctuation.definition.comment.dot
44
+ begin: /\*
45
+ end: \*/
46
+ foldingStopMarker: \}
47
+ keyEquivalent: ^~G
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: Doxygen
3
+ fileTypes:
4
+ - doxygen
5
+ scopeName: text.html.doxygen
6
+ repository:
7
+ source_doxygen:
8
+ patterns:
9
+ - include: "#keywords"
10
+ - include: text.html.basic
11
+ keywords:
12
+ patterns:
13
+ - name: keyword.control.doxygen
14
+ captures:
15
+ "1":
16
+ name: punctuation.definition.keyword.doxygen
17
+ match: ([\\@])((a|addindex|addtogroup|anchor|arg|attention|author|b|brief|bug|c|callgraph|callergraph|category|class|code|cond|copydoc|date|def|defgroup|deprecated|dir|dontinclude|dot|dotfile|e|else|elseif|em|endcode|endcond|enddot|endhtmlonly|endif|endlatexonly|endlink|endmanonly|endverbatim|endxmlonly|enum|example|exception|file|fn|hideinitializer|htmlinclude|htmlonly|if|ifnot|image|include|includelineno|ingroup|internal|invariant|interface|latexonly|li|line|link|mainpage|manonly|n|name|namespace|nosubgrouping|note|overload|p|package|page|par|paragraph|param|post|pre|private|privatesection|property|protected|protectedsection|protocol|public|publicsection|ref|relates|relatesalso|remarks|return|retval|sa|section|see|showinitializer|since|skip|skipline|struct|subpage|subsection|subsubsection|test|throw|todo|typedef|union|until|var|verbatim|verbinclude|version|warning|weakgroup|xmlonly|xrefitem)\b|(\$|\@|\\|\&|\~|\<|\>|\#|\%|f\$|f\[|f\]))
18
+ uuid: 9725E602-6D7C-4E98-911A-C66802142451
19
+ patterns:
20
+ - name: comment.block.doxygen
21
+ captures:
22
+ "0":
23
+ name: punctuation.definition.comment.doxygen
24
+ begin: \/\*\*\<?
25
+ end: \*\/
26
+ patterns:
27
+ - include: "#source_doxygen"
28
+ - name: comment.block.doxygen
29
+ captures:
30
+ "0":
31
+ name: punctuation.definition.comment.doxygen
32
+ begin: \/\*!\<?
33
+ end: \*\/
34
+ patterns:
35
+ - include: "#source_doxygen"
36
+ - name: comment.line.doxygen
37
+ begin: \/\/[\/!]\<?
38
+ beginCaptures:
39
+ "0":
40
+ name: punctuation.definition.comment.doxygen
41
+ end: $\n?
42
+ patterns:
43
+ - include: "#source_doxygen"
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: Dylan
3
+ fileTypes:
4
+ - dylan
5
+ scopeName: source.dylan
6
+ uuid: 475B8369-3520-4B4C-BBA1-1D1229C6F397
7
+ foldingStartMarker: \b(define|begin|block)\b
8
+ patterns:
9
+ - name: comment.block.dylan
10
+ captures:
11
+ "0":
12
+ name: punctuation.definition.comment.dylan
13
+ begin: /\*
14
+ end: \*/
15
+ comment: TODO -- Dylan allows nested comments.
16
+ - name: comment.line.double-slash.dylan
17
+ begin: //
18
+ beginCaptures:
19
+ "0":
20
+ name: punctuation.definition.comment.dylan
21
+ end: $\n?
22
+ patterns:
23
+ - name: punctuation.separator.continuation.dylan
24
+ match: (?>\\\s*\n)
25
+ - name: meta.function.dylan
26
+ captures:
27
+ "1":
28
+ name: keyword.control.def.dylan
29
+ "2":
30
+ name: storage.modifier.dylan
31
+ "3":
32
+ name: storage.type.function.dylan
33
+ "4":
34
+ name: entity.name.function.dylan
35
+ begin: \b(define\s+)((?:sealed|inline)\s)?(method|function)\s+([A-Za-z0-9\\-]*[!?]?)\s
36
+ end: \)
37
+ - name: keyword.control.dylan
38
+ match: \b(?<!-)(begin|block|case|class|constant|define|domain|else|end|for|function|handler|if|inline|let|library|local|macro|method|module|otherwise|select|unless|until|variable|when|while)(?![:-])\b
39
+ - name: support.constant.language.dylan
40
+ match: (#t|#f|#next|#rest|#key|#all-keys|#include)
41
+ - name: keyword.control.sealing-directives.dylan
42
+ match: \b(sealed|open|abstract|concrete|primary|free)\b
43
+ - name: constant.numeric.dylan
44
+ match: \b((#x[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b
45
+ - name: string.quoted.double.dylan
46
+ endCaptures:
47
+ "0":
48
+ name: punctuation.definition.string.end.dylan
49
+ begin: "\""
50
+ beginCaptures:
51
+ "0":
52
+ name: punctuation.definition.string.begin.dylan
53
+ end: "\""
54
+ patterns:
55
+ - name: constant.character.escape.dylan
56
+ match: \\.
57
+ - name: support.class.dylan
58
+ match: <(abort|array|boolean|byte-string|character|class|collection|complex|condition|deque|double-float|empty-list|error|explicit-key-collection|extended-float|float|function|generic-function|integer|list|method|mutable-collection|mutable-explicit-key-collection|mutable-sequence|number|object-table|object|pair|range|rational|real|restart|sealed-object-error|sequence|serious-condition|simple-error|simple-object-vector|simple-restart|simple-vector|simple-warning|single-float|singleton|stretchy-collection|stretchy-vector|string|symbol|table|type-error|type|unicode-string|vector|warning)>
59
+ - name: support.function.dylan
60
+ match: \b(?<!-)(abort|abs|add|add!|add-method|add-new|add-new!|all-superclasses|always|any?|applicable-method?|apply|aref|aref-setter|as|as-lowercase|as-lowercase!|as-uppercase|as-uppercase!|ash|backward-iteration-protocol|break|ceiling|ceiling/|cerror|check-type|choose|choose-by|complement|compose|concatenate|concatenate-as|condition-format-arguments|condition-format-string|conjoin|copy-sequence|curry|default-handler|dimension|dimensions|direct-subclasses|direct-superclasses|disjoin|do|do-handlers|element|element-setter|empty?|error|even?|every?|fill!|find-key|find-method|first|first-setter|floor|floor/|forward-iteration-protocol|function-arguments|function-return-values|function-specializers|gcd|generic-function-mandatory-|keywords|generic-function-methods|head|head-setter|identity|initialize|instance?|integral?|intersection|key-sequence|key-test|last|last-setter|lcm|limited|list|logand|logbit?|logior|lognot|logxor|make|map|map-as|map-into|max|member?|merge-hash-codes|min|modulo|negative|negative?|object-class|object-hash|odd?|pair|pop|pop-last|positive?|push|push-last|range|rank|rcurry|reduce|reduce1|remainder|remove|remove!|remove-duplicates|remove-duplicates!|remove-key!|remove-method|replace-elements!|replace-subsequence!|restart-query|return-allowed?|return-description|return-query|reverse|reverse!|round|round/|row-major-index|second|second-setter|shallow-copy|signal|singleton|size|size-setter|slot-initialized?|sort|sort!|sorted-applicable-methods|subsequence-position|subtype?|table-protocol|tail|tail-setter|third|third-setter|truncate|truncate/|type-error-expected-type|type-error-value|type-for-copy|type-union|union|values|vector|zero?)(?![:-])\b
61
+ foldingStopMarker: \bend\b
62
+ keyEquivalent: ^~D