textpow1x 0.11.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -2
- data/Gemfile.lock +11 -10
- data/README.rdoc +4 -6
- data/Rakefile +2 -7
- data/lib/textpow.rb +4 -0
- data/lib/textpow/syntax/actionscript.syntax +97 -0
- data/lib/textpow/syntax/active4d.syntax +276 -0
- data/lib/textpow/syntax/active4d_html.syntax +311 -0
- data/lib/textpow/syntax/active4d_ini.syntax +50 -0
- data/lib/textpow/syntax/active4d_library.syntax +21 -0
- data/lib/textpow/syntax/ada.syntax +33 -0
- data/lib/textpow/syntax/antlr.syntax +151 -0
- data/lib/textpow/syntax/apache.syntax +191 -0
- data/lib/textpow/syntax/applescript.syntax +384 -0
- data/lib/textpow/syntax/asp.syntax +70 -0
- data/lib/textpow/syntax/asp_vb.net.syntax +129 -0
- data/lib/textpow/syntax/bibtex.syntax +151 -0
- data/lib/textpow/syntax/blog_html.syntax +41 -0
- data/lib/textpow/syntax/blog_markdown.syntax +42 -0
- data/lib/textpow/syntax/blog_text.syntax +27 -0
- data/lib/textpow/syntax/blog_textile.syntax +27 -0
- data/lib/textpow/syntax/broken/markdown.syntax +543 -0
- data/lib/textpow/syntax/broken/php.syntax +1253 -0
- data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
- data/lib/textpow/syntax/build.syntax +53 -0
- data/lib/textpow/syntax/bulletin_board.syntax +287 -0
- data/lib/textpow/syntax/c++.syntax +186 -0
- data/lib/textpow/syntax/c.syntax +414 -0
- data/lib/textpow/syntax/cake.syntax +55 -0
- data/lib/textpow/syntax/camlp4.syntax +36 -0
- data/lib/textpow/syntax/cm.syntax +32 -0
- data/lib/textpow/syntax/coffeescript.syntax +216 -0
- data/lib/textpow/syntax/coldfusion.syntax +119 -0
- data/lib/textpow/syntax/context_free.syntax +176 -0
- data/lib/textpow/syntax/cs.syntax +59 -0
- data/lib/textpow/syntax/css.syntax +195 -0
- data/lib/textpow/syntax/css_experimental.syntax +1925 -0
- data/lib/textpow/syntax/csv.syntax +68 -0
- data/lib/textpow/syntax/d.syntax +142 -0
- data/lib/textpow/syntax/diff.syntax +81 -0
- data/lib/textpow/syntax/dokuwiki.syntax +204 -0
- data/lib/textpow/syntax/dot.syntax +47 -0
- data/lib/textpow/syntax/doxygen.syntax +43 -0
- data/lib/textpow/syntax/dylan.syntax +62 -0
- data/lib/textpow/syntax/eiffel.syntax +78 -0
- data/lib/textpow/syntax/erlang.syntax +922 -0
- data/lib/textpow/syntax/f-script.syntax +80 -0
- data/lib/textpow/syntax/fortran.syntax +141 -0
- data/lib/textpow/syntax/fxscript.syntax +142 -0
- data/lib/textpow/syntax/greasemonkey.syntax +34 -0
- data/lib/textpow/syntax/gri.syntax +83 -0
- data/lib/textpow/syntax/groovy.syntax +191 -0
- data/lib/textpow/syntax/gtd.syntax +22 -0
- data/lib/textpow/syntax/gtdalt.syntax +143 -0
- data/lib/textpow/syntax/haml.syntax +88 -0
- data/lib/textpow/syntax/haskell.syntax +88 -0
- data/lib/textpow/syntax/html-asp.syntax +27 -0
- data/lib/textpow/syntax/html.syntax +362 -0
- data/lib/textpow/syntax/html_django.syntax +36 -0
- data/lib/textpow/syntax/html_for_asp.net.syntax +424 -0
- data/lib/textpow/syntax/html_mason.syntax +119 -0
- data/lib/textpow/syntax/html_rails.syntax +40 -0
- data/lib/textpow/syntax/html_tcl.syntax +26 -0
- data/lib/textpow/syntax/icalendar.syntax +32 -0
- data/lib/textpow/syntax/inform.syntax +48 -0
- data/lib/textpow/syntax/ini.syntax +55 -0
- data/lib/textpow/syntax/installer_distribution_script.syntax +77 -0
- data/lib/textpow/syntax/io.syntax +81 -0
- data/lib/textpow/syntax/java.syntax +211 -0
- data/lib/textpow/syntax/javaproperties.syntax +20 -0
- data/lib/textpow/syntax/javascript.syntax +256 -0
- data/lib/textpow/syntax/javascript_+_prototype.syntax +72 -0
- data/lib/textpow/syntax/javascript_+_prototype_bracketed.syntax +140 -0
- data/lib/textpow/syntax/jquery_javascript.syntax +114 -0
- data/lib/textpow/syntax/json.syntax +136 -0
- data/lib/textpow/syntax/languagedefinition.syntax +708 -0
- data/lib/textpow/syntax/latex.syntax +566 -0
- data/lib/textpow/syntax/latex_beamer.syntax +41 -0
- data/lib/textpow/syntax/latex_log.syntax +50 -0
- data/lib/textpow/syntax/latex_memoir.syntax +64 -0
- data/lib/textpow/syntax/lexflex.syntax +219 -0
- data/lib/textpow/syntax/lighttpd.syntax +54 -0
- data/lib/textpow/syntax/lilypond.syntax +492 -0
- data/lib/textpow/syntax/lisp.syntax +61 -0
- data/lib/textpow/syntax/literate_haskell.syntax +24 -0
- data/lib/textpow/syntax/logo.syntax +29 -0
- data/lib/textpow/syntax/logtalk.syntax +152 -0
- data/lib/textpow/syntax/lua.syntax +86 -0
- data/lib/textpow/syntax/m.syntax +142 -0
- data/lib/textpow/syntax/macports_portfile.syntax +163 -0
- data/lib/textpow/syntax/mail.syntax +118 -0
- data/lib/textpow/syntax/makefile.syntax +36 -0
- data/lib/textpow/syntax/man.syntax +17 -0
- data/lib/textpow/syntax/mediawiki.syntax +567 -0
- data/lib/textpow/syntax/mel.syntax +92 -0
- data/lib/textpow/syntax/mips.syntax +66 -0
- data/lib/textpow/syntax/mod_perl.syntax +50 -0
- data/lib/textpow/syntax/modula-3.syntax +47 -0
- data/lib/textpow/syntax/moinmoin.syntax +189 -0
- data/lib/textpow/syntax/mootools.syntax +572 -0
- data/lib/textpow/syntax/movable_type.syntax +162 -0
- data/lib/textpow/syntax/multimarkdown.syntax +39 -0
- data/lib/textpow/syntax/objective-c++.syntax +18 -0
- data/lib/textpow/syntax/objective-c.syntax +233 -0
- data/lib/textpow/syntax/ocaml.syntax +764 -0
- data/lib/textpow/syntax/ocamllex.syntax +167 -0
- data/lib/textpow/syntax/ocamlyacc.syntax +184 -0
- data/lib/textpow/syntax/old/YAML.yaml +160 -0
- data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
- data/lib/textpow/syntax/opengl.syntax +14 -0
- data/lib/textpow/syntax/pascal.syntax +77 -0
- data/lib/textpow/syntax/perl.syntax +1113 -0
- data/lib/textpow/syntax/plain_text.syntax +32 -0
- data/lib/textpow/syntax/pmwiki.syntax +113 -0
- data/lib/textpow/syntax/postscript.syntax +114 -0
- data/lib/textpow/syntax/processing.syntax +106 -0
- data/lib/textpow/syntax/prolog.syntax +40 -0
- data/lib/textpow/syntax/property_list.syntax +635 -0
- data/lib/textpow/syntax/python.syntax +868 -0
- data/lib/textpow/syntax/python_django.syntax +21 -0
- data/lib/textpow/syntax/qmake_project.syntax +114 -0
- data/lib/textpow/syntax/qt_c++.syntax +26 -0
- data/lib/textpow/syntax/quake3_config.syntax +32 -0
- data/lib/textpow/syntax/r.syntax +81 -0
- data/lib/textpow/syntax/r_console.syntax +16 -0
- data/lib/textpow/syntax/ragel.syntax +201 -0
- data/lib/textpow/syntax/rd_r_documentation.syntax +91 -0
- data/lib/textpow/syntax/regexp.syntax +50 -0
- data/lib/textpow/syntax/regular_expressions_oniguruma.syntax +107 -0
- data/lib/textpow/syntax/regular_expressions_python.syntax +109 -0
- data/lib/textpow/syntax/release_notes.syntax +46 -0
- data/lib/textpow/syntax/remind.syntax +253 -0
- data/lib/textpow/syntax/restructuredtext.syntax +250 -0
- data/lib/textpow/syntax/rez.syntax +80 -0
- data/lib/textpow/syntax/ruby.syntax +1035 -0
- data/lib/textpow/syntax/ruby_experimental.syntax +145 -0
- data/lib/textpow/syntax/ruby_on_rails.syntax +88 -0
- data/lib/textpow/syntax/s5.syntax +69 -0
- data/lib/textpow/syntax/sass.syntax +45 -0
- data/lib/textpow/syntax/scheme.syntax +347 -0
- data/lib/textpow/syntax/scilab.syntax +41 -0
- data/lib/textpow/syntax/setext.syntax +147 -0
- data/lib/textpow/syntax/shell-unix-generic.syntax +384 -0
- data/lib/textpow/syntax/slate.syntax +149 -0
- data/lib/textpow/syntax/smarty.syntax +63 -0
- data/lib/textpow/syntax/sql.syntax +237 -0
- data/lib/textpow/syntax/sql_rails.syntax +18 -0
- data/lib/textpow/syntax/ssh-config.syntax +33 -0
- data/lib/textpow/syntax/standard_ml.syntax +121 -0
- data/lib/textpow/syntax/strings_file.syntax +39 -0
- data/lib/textpow/syntax/subversion_commit_message.syntax +36 -0
- data/lib/textpow/syntax/sweave.syntax +84 -0
- data/lib/textpow/syntax/swig.syntax +57 -0
- data/lib/textpow/syntax/tcl.syntax +152 -0
- data/lib/textpow/syntax/template_toolkit.syntax +121 -0
- data/lib/textpow/syntax/tex.syntax +86 -0
- data/lib/textpow/syntax/tex_math.syntax +49 -0
- data/lib/textpow/syntax/textile.syntax +215 -0
- data/lib/textpow/syntax/tsv.syntax +50 -0
- data/lib/textpow/syntax/twiki.syntax +241 -0
- data/lib/textpow/syntax/txt2tags.syntax +79 -0
- data/lib/textpow/syntax/vectorscript.syntax +57 -0
- data/lib/textpow/syntax/xhtml_1.0.syntax +4027 -0
- data/lib/textpow/syntax/xml.syntax +180 -0
- data/lib/textpow/syntax/xml_strict.syntax +92 -0
- data/lib/textpow/syntax/xsl.syntax +60 -0
- data/lib/textpow/syntax/yaml.syntax +160 -0
- data/lib/textpow/syntax/yui_javascript.syntax +176 -0
- data/lib/textpow/version.rb +2 -2
- data/spec/spec_helper.rb +2 -0
- data/spec/textpow_spec.rb +34 -0
- metadata +169 -5
- data/test/textpow_test.rb +0 -24
@@ -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
|
@@ -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*\}
|