ultraviolet 0.10.2 → 1.0.0

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