code_rippa 0.0.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +36 -0
- data/LICENSE +2 -2
- data/README.md +18 -1
- data/bin/code_rippa +15 -16
- data/code_rippa.gemspec +12 -10
- data/lib/code_rippa.rb +69 -51
- data/lib/code_rippa/syntax/actionscript.syntax +52 -52
- data/lib/code_rippa/syntax/active4d.syntax +226 -180
- data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
- data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
- data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
- data/lib/code_rippa/syntax/ada.syntax +19 -18
- data/lib/code_rippa/syntax/antlr.syntax +85 -85
- data/lib/code_rippa/syntax/apache.syntax +103 -109
- data/lib/code_rippa/syntax/applescript.syntax +244 -229
- data/lib/code_rippa/syntax/asp.syntax +41 -36
- data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
- data/lib/code_rippa/syntax/bibtex.syntax +88 -90
- data/lib/code_rippa/syntax/blog_html.syntax +17 -29
- data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
- data/lib/code_rippa/syntax/blog_text.syntax +15 -15
- data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
- data/lib/code_rippa/syntax/build.syntax +27 -27
- data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
- data/lib/code_rippa/syntax/c.syntax +31 -34
- data/lib/code_rippa/syntax/cake.syntax +27 -27
- data/lib/code_rippa/syntax/camlp4.syntax +23 -23
- data/lib/code_rippa/syntax/cm.syntax +19 -18
- data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
- data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
- data/lib/code_rippa/syntax/context_free.syntax +106 -106
- data/lib/code_rippa/syntax/cs.syntax +31 -34
- data/lib/code_rippa/syntax/css.syntax +112 -112
- data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
- data/lib/code_rippa/syntax/csv.syntax +40 -44
- data/lib/code_rippa/syntax/d.syntax +80 -84
- data/lib/code_rippa/syntax/diff.syntax +46 -45
- data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
- data/lib/code_rippa/syntax/dot.syntax +26 -26
- data/lib/code_rippa/syntax/doxygen.syntax +26 -26
- data/lib/code_rippa/syntax/dylan.syntax +35 -35
- data/lib/code_rippa/syntax/eiffel.syntax +39 -42
- data/lib/code_rippa/syntax/erlang.syntax +514 -511
- data/lib/code_rippa/syntax/f-script.syntax +44 -44
- data/lib/code_rippa/syntax/fortran.syntax +80 -76
- data/lib/code_rippa/syntax/fxscript.syntax +78 -77
- data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
- data/lib/code_rippa/syntax/gri.syntax +47 -47
- data/lib/code_rippa/syntax/groovy.syntax +105 -114
- data/lib/code_rippa/syntax/gtd.syntax +10 -10
- data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
- data/lib/code_rippa/syntax/haml.syntax +50 -50
- data/lib/code_rippa/syntax/haskell.syntax +47 -47
- data/lib/code_rippa/syntax/html-asp.syntax +15 -15
- data/lib/code_rippa/syntax/html_django.syntax +15 -14
- data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
- data/lib/code_rippa/syntax/html_mason.syntax +75 -74
- data/lib/code_rippa/syntax/html_rails.syntax +17 -27
- data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
- data/lib/code_rippa/syntax/icalendar.syntax +15 -15
- data/lib/code_rippa/syntax/inform.syntax +26 -26
- data/lib/code_rippa/syntax/ini.syntax +30 -30
- data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
- data/lib/code_rippa/syntax/io.syntax +49 -46
- data/lib/code_rippa/syntax/java.syntax +117 -126
- data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
- data/lib/code_rippa/syntax/javascript.syntax +141 -141
- data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
- data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
- data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
- data/lib/code_rippa/syntax/json.syntax +39 -39
- data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
- data/lib/code_rippa/syntax/lexflex.syntax +136 -136
- data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
- data/lib/code_rippa/syntax/lilypond.syntax +246 -337
- data/lib/code_rippa/syntax/lisp.syntax +32 -32
- data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
- data/lib/code_rippa/syntax/logo.syntax +13 -14
- data/lib/code_rippa/syntax/logtalk.syntax +81 -81
- data/lib/code_rippa/syntax/lua.syntax +50 -48
- data/lib/code_rippa/syntax/m.syntax +78 -78
- data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
- data/lib/code_rippa/syntax/makefile.syntax +19 -19
- data/lib/code_rippa/syntax/man.syntax +9 -9
- data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
- data/lib/code_rippa/syntax/mips.syntax +34 -34
- data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
- data/lib/code_rippa/syntax/modula-3.syntax +24 -24
- data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
- data/lib/code_rippa/syntax/mootools.syntax +283 -300
- data/lib/code_rippa/syntax/movable_type.syntax +91 -90
- data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
- data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
- data/lib/code_rippa/syntax/objective-c.syntax +134 -138
- data/lib/code_rippa/syntax/ocaml.syntax +455 -453
- data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
- data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
- data/lib/code_rippa/syntax/opengl.syntax +6 -6
- data/lib/code_rippa/syntax/pascal.syntax +43 -42
- data/lib/code_rippa/syntax/perl.syntax +612 -615
- data/lib/code_rippa/syntax/plain_text.syntax +17 -20
- data/lib/code_rippa/syntax/postscript.syntax +71 -69
- data/lib/code_rippa/syntax/processing.syntax +60 -60
- data/lib/code_rippa/syntax/prolog.syntax +17 -20
- data/lib/code_rippa/syntax/property_list.syntax +338 -359
- data/lib/code_rippa/syntax/python.syntax +487 -509
- data/lib/code_rippa/syntax/python_django.syntax +9 -10
- data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
- data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
- data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
- data/lib/code_rippa/syntax/r.syntax +42 -42
- data/lib/code_rippa/syntax/r_console.syntax +7 -8
- data/lib/code_rippa/syntax/ragel.syntax +109 -115
- data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
- data/lib/code_rippa/syntax/regexp.syntax +26 -26
- data/lib/code_rippa/syntax/release_notes.syntax +46 -26
- data/lib/code_rippa/syntax/remind.syntax +146 -146
- data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
- data/lib/code_rippa/syntax/rez.syntax +46 -45
- data/lib/code_rippa/syntax/ruby.syntax +533 -601
- data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
- data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
- data/lib/code_rippa/syntax/s5.syntax +35 -51
- data/lib/code_rippa/syntax/scheme.syntax +162 -260
- data/lib/code_rippa/syntax/scilab.syntax +18 -18
- data/lib/code_rippa/syntax/setext.syntax +82 -82
- data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
- data/lib/code_rippa/syntax/slate.syntax +91 -91
- data/lib/code_rippa/syntax/sql.syntax +137 -139
- data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
- data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
- data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
- data/lib/code_rippa/syntax/strings_file.syntax +20 -23
- data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
- data/lib/code_rippa/syntax/sweave.syntax +45 -45
- data/lib/code_rippa/syntax/swig.syntax +34 -33
- data/lib/code_rippa/syntax/tcl.syntax +87 -86
- data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
- data/lib/code_rippa/syntax/textile.syntax +111 -145
- data/lib/code_rippa/syntax/tsv.syntax +31 -33
- data/lib/code_rippa/syntax/twiki.syntax +141 -141
- data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
- data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
- data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
- data/lib/code_rippa/syntax/xml.syntax +95 -95
- data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
- data/lib/code_rippa/syntax/xsl.syntax +31 -31
- data/lib/code_rippa/syntax/yaml.syntax +86 -86
- data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
- data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
- data/lib/code_rippa/version.rb +2 -2
- data/test/fixtures/hello.rb +5 -3
- data/test/test_private_methods.rb +40 -40
- data/test/test_public_methods.rb +9 -18
- metadata +61 -63
@@ -1,68 +1,64 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: CSV
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- csv
|
5
5
|
scopeName: text.tabular.csv
|
6
|
-
repository:
|
7
|
-
row:
|
6
|
+
repository:
|
7
|
+
row:
|
8
8
|
name: meta.tabular.row.csv
|
9
|
-
begin: ^(?!$)
|
10
|
-
end: $
|
11
|
-
patterns:
|
9
|
+
begin: "^(?!$)"
|
10
|
+
end: "$"
|
11
|
+
patterns:
|
12
12
|
- include: "#field"
|
13
|
-
field:
|
14
|
-
patterns:
|
15
|
-
- endCaptures:
|
16
|
-
|
13
|
+
field:
|
14
|
+
patterns:
|
15
|
+
- endCaptures:
|
16
|
+
'1':
|
17
17
|
name: punctuation.definition.field.csv
|
18
|
-
|
18
|
+
'3':
|
19
19
|
name: punctuation.separator.tabular.field.csv
|
20
|
-
begin: (^|(?<=,))(")
|
20
|
+
begin: "(^|(?<=,))(\")"
|
21
21
|
contentName: meta.tabular.field.quoted.csv
|
22
|
-
beginCaptures:
|
23
|
-
|
22
|
+
beginCaptures:
|
23
|
+
'2':
|
24
24
|
name: punctuation.definition.field.csv
|
25
|
-
end: (")($|(,))
|
26
|
-
patterns:
|
25
|
+
end: "(\")($|(,))"
|
26
|
+
patterns:
|
27
27
|
- name: constant.character.escape.straight-quote.csv
|
28
28
|
match: "\"\""
|
29
|
-
comment: "\n\
|
30
|
-
\t\t\t\t\t
|
31
|
-
|
32
|
-
|
33
|
-
- endCaptures:
|
34
|
-
"1":
|
29
|
+
comment: "\n\t\t\t\t\t\tthis field uses \"s and is thus able to enclose\n\t\t\t\t\t\tnewlines
|
30
|
+
or commas\n\t\t\t\t\t"
|
31
|
+
- endCaptures:
|
32
|
+
'1':
|
35
33
|
name: punctuation.separator.tabular.field.csv
|
36
|
-
begin: (:^|(?<=,))(?!$|,)
|
34
|
+
begin: "(:^|(?<=,))(?!$|,)"
|
37
35
|
contentName: meta.tabular.field.csv
|
38
|
-
end: $|(,)
|
36
|
+
end: "$|(,)"
|
39
37
|
- name: punctuation.separator.tabular.field.csv
|
40
38
|
match: ","
|
41
|
-
header:
|
39
|
+
header:
|
42
40
|
name: meta.tabular.row.header.csv
|
43
|
-
begin: ^(?!$)
|
44
|
-
end: $
|
45
|
-
patterns:
|
41
|
+
begin: "^(?!$)"
|
42
|
+
end: "$"
|
43
|
+
patterns:
|
46
44
|
- include: "#field"
|
47
|
-
table:
|
45
|
+
table:
|
48
46
|
name: meta.tabular.table.csv
|
49
|
-
begin: ^
|
50
|
-
end: ^$not possible$^
|
51
|
-
patterns:
|
47
|
+
begin: "^"
|
48
|
+
end: "^$not possible$^"
|
49
|
+
patterns:
|
52
50
|
- include: "#header"
|
53
|
-
- begin: (
|
54
|
-
beginCaptures:
|
55
|
-
|
51
|
+
- begin: "(\\n)"
|
52
|
+
beginCaptures:
|
53
|
+
'1':
|
56
54
|
name: punctuation.separator.table.row.csv
|
57
|
-
end: ^$not possible$^
|
58
|
-
patterns:
|
55
|
+
end: "^$not possible$^"
|
56
|
+
patterns:
|
59
57
|
- include: "#row"
|
60
58
|
- name: punctuation.separator.table.row.csv
|
61
|
-
match:
|
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"
|
59
|
+
match: "\\n"
|
60
|
+
comment: "\n\t\t\t\t\t\teverything after the first row is not a header\n\t\t\t\t\t"
|
65
61
|
uuid: B0691F9F-D279-48CB-8959-2C9426579002
|
66
|
-
patterns:
|
62
|
+
patterns:
|
67
63
|
- include: "#table"
|
68
|
-
keyEquivalent: ^~C
|
64
|
+
keyEquivalent: "^~C"
|
@@ -1,142 +1,138 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: D
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- d
|
5
|
-
firstLineMatch:
|
5
|
+
firstLineMatch: "^#!.*\\bdmd\\b."
|
6
6
|
scopeName: source.d
|
7
|
-
repository:
|
8
|
-
string_escaped_char:
|
9
|
-
patterns:
|
7
|
+
repository:
|
8
|
+
string_escaped_char:
|
9
|
+
patterns:
|
10
10
|
- name: constant.character.escape.c
|
11
|
-
match:
|
11
|
+
match: "\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{,2}|[4-7]\\d?|x[a-zA-Z0-9]+)"
|
12
12
|
- name: invalid.illegal.unknown-escape.c
|
13
|
-
match:
|
14
|
-
string_placeholder:
|
15
|
-
patterns:
|
13
|
+
match: "\\\\."
|
14
|
+
string_placeholder:
|
15
|
+
patterns:
|
16
16
|
- name: constant.other.placeholder.c
|
17
|
-
match: "(?x)%\n\
|
18
|
-
\t\t\t\t\t\t
|
19
|
-
\t\t\t\t\t\t
|
20
|
-
\t\t\t\t\t\t
|
21
|
-
\t\t\t\t\t\t(
|
22
|
-
\t\t\t\t\t\t
|
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"
|
17
|
+
match: "(?x)%\n\t\t\t\t\t\t(\\d+\\$)? # field (argument
|
18
|
+
#)\n\t\t\t\t\t\t[#0\\- +']* # flags\n\t\t\t\t\t\t[,;:_]?
|
19
|
+
\ # separator character (AltiVec)\n\t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)?
|
20
|
+
\ # minimum field width\n\t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)?
|
21
|
+
\ # precision\n\t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length
|
22
|
+
modifier\n\t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n\t\t\t\t\t"
|
26
23
|
- name: invalid.illegal.placeholder.c
|
27
24
|
match: "%"
|
28
|
-
comment_nested_block_content:
|
29
|
-
captures:
|
30
|
-
|
25
|
+
comment_nested_block_content:
|
26
|
+
captures:
|
27
|
+
'0':
|
31
28
|
name: punctuation.definition.comment.d
|
32
|
-
begin:
|
33
|
-
end:
|
34
|
-
patterns:
|
29
|
+
begin: "/\\+"
|
30
|
+
end: "\\+/"
|
31
|
+
patterns:
|
35
32
|
- include: "#comment_nested_block_content"
|
36
33
|
uuid: F02BBA11-F58F-4E85-8698-FC74E339D6C3
|
37
|
-
foldingStartMarker: (?x)
|
38
|
-
patterns:
|
34
|
+
foldingStartMarker: "(?x)/\\*\\*(?!\\*)|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))"
|
35
|
+
patterns:
|
39
36
|
- name: keyword.other.external.d
|
40
|
-
match:
|
37
|
+
match: "\\b(import|package|module|extern)\\b"
|
41
38
|
- name: keyword.control.conditional.d
|
42
|
-
match:
|
39
|
+
match: "\\b(if|else|switch|iftype)\\b"
|
43
40
|
- name: keyword.control.branch.d
|
44
|
-
match:
|
41
|
+
match: "\\b(goto|break|continue)\\b"
|
45
42
|
- name: keyword.control.repeat.d
|
46
|
-
match:
|
43
|
+
match: "\\b(while|for|do|foreach)\\b"
|
47
44
|
- name: keyword.control.repeat.d
|
48
|
-
match:
|
45
|
+
match: "\\b(while|for|do|foreach)\\b"
|
49
46
|
- name: constant.language.boolean.d
|
50
|
-
match:
|
47
|
+
match: "\\b(true|false)\\b"
|
51
48
|
- name: constant.language.d
|
52
|
-
match:
|
49
|
+
match: "\\b(__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|null)\\b"
|
53
50
|
- name: storage.type.typedef.d
|
54
|
-
match:
|
51
|
+
match: "\\b(alias|typedef)\\b"
|
55
52
|
- name: storage.type.structure.d
|
56
|
-
match:
|
53
|
+
match: "\\b(template|interface|class|enum|struct|union)\\b"
|
57
54
|
- name: keyword.operator.d
|
58
|
-
match:
|
55
|
+
match: "\\b(new|delete|typeof|typeid|cast|align|is|this|super)\\b"
|
59
56
|
- name: keyword.operator.overload.d
|
60
|
-
match:
|
57
|
+
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
58
|
- name: storage.type.d
|
62
|
-
match:
|
59
|
+
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
60
|
- name: keyword.other.debug.d
|
64
|
-
match:
|
61
|
+
match: "\\b(deprecated|unittest)\\b"
|
65
62
|
- name: keyword.control.exception.d
|
66
|
-
match:
|
63
|
+
match: "\\b(throw|try|catch|finally)\\b"
|
67
64
|
- name: storage.modifier.d
|
68
|
-
match:
|
65
|
+
match: "\\b(public|protected|private|export)\\b"
|
69
66
|
- name: keyword.control.statement.d
|
70
|
-
match:
|
67
|
+
match: "\\b(version|debug|return|with|invariant|body|scope|in|out|inout|asm|mixin|function|delegate)\\b"
|
71
68
|
- name: storage.modifier.d
|
72
|
-
match:
|
69
|
+
match: "\\b(auto|static|override|final|const|abstract|volatile|synchronized)\\b"
|
73
70
|
- name: keyword.control.pragma.d
|
74
|
-
match:
|
75
|
-
- captures:
|
76
|
-
|
71
|
+
match: "\\b(pragma)\\b"
|
72
|
+
- captures:
|
73
|
+
'1':
|
77
74
|
name: punctuation.section.embedded.mips
|
78
75
|
begin: asm[\n]*\s*({)
|
79
|
-
end: (})
|
80
|
-
patterns:
|
76
|
+
end: "(})"
|
77
|
+
patterns:
|
81
78
|
- include: source.mips
|
82
|
-
comment:
|
83
|
-
|
84
|
-
|
85
|
-
redone as well. -msheets
|
79
|
+
comment: "This rule is broken and never gets called anyhow since asm\n\t\t\t\t\t
|
80
|
+
\ is matched above this. If fixed the scopes here should be\n\t\t\t\t\t redone
|
81
|
+
as well. -msheets"
|
86
82
|
- name: comment.block.nested.d
|
87
|
-
captures:
|
88
|
-
|
83
|
+
captures:
|
84
|
+
'0':
|
89
85
|
name: punctuation.definition.comment.d
|
90
|
-
begin:
|
91
|
-
end:
|
92
|
-
patterns:
|
86
|
+
begin: "/\\+"
|
87
|
+
end: "\\+/"
|
88
|
+
patterns:
|
93
89
|
- include: "#comment_nested_block_content"
|
94
90
|
- name: comment.block.d
|
95
|
-
captures:
|
96
|
-
|
91
|
+
captures:
|
92
|
+
'0':
|
97
93
|
name: punctuation.definition.comment.d
|
98
|
-
begin:
|
99
|
-
end:
|
94
|
+
begin: "/\\*"
|
95
|
+
end: "\\*/"
|
100
96
|
- name: comment.line.double-slash.d
|
101
|
-
begin: (//)
|
102
|
-
beginCaptures:
|
103
|
-
|
97
|
+
begin: "(//)"
|
98
|
+
beginCaptures:
|
99
|
+
'1':
|
104
100
|
name: punctuation.definition.comment.d
|
105
|
-
end:
|
106
|
-
patterns:
|
101
|
+
end: "$\\n?"
|
102
|
+
patterns:
|
107
103
|
- name: punctuation.separator.continuation.d
|
108
|
-
match: (
|
104
|
+
match: "(?>\\\\\\s*\\n)"
|
109
105
|
- name: constant.numeric.c
|
110
|
-
match:
|
106
|
+
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
107
|
- name: string.quoted.double.c
|
112
|
-
endCaptures:
|
113
|
-
|
108
|
+
endCaptures:
|
109
|
+
'0':
|
114
110
|
name: punctuation.definition.string.end.d
|
115
111
|
begin: "\""
|
116
|
-
beginCaptures:
|
117
|
-
|
112
|
+
beginCaptures:
|
113
|
+
'0':
|
118
114
|
name: punctuation.definition.string.begin.d
|
119
115
|
end: "\""
|
120
|
-
patterns:
|
116
|
+
patterns:
|
121
117
|
- include: "#string_escaped_char"
|
122
118
|
- include: "#string_placeholder"
|
123
119
|
- name: string.quoted.single.c
|
124
|
-
endCaptures:
|
125
|
-
|
120
|
+
endCaptures:
|
121
|
+
'0':
|
126
122
|
name: punctuation.definition.string.end.d
|
127
123
|
begin: "'"
|
128
|
-
beginCaptures:
|
129
|
-
|
124
|
+
beginCaptures:
|
125
|
+
'0':
|
130
126
|
name: punctuation.definition.string.begin.d
|
131
127
|
end: "'"
|
132
|
-
patterns:
|
128
|
+
patterns:
|
133
129
|
- include: "#string_escaped_char"
|
134
130
|
- name: support.type.sys-types.c
|
135
|
-
match:
|
131
|
+
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
132
|
- name: support.type.pthread.c
|
137
|
-
match:
|
133
|
+
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
134
|
- name: support.type.stdint.c
|
139
|
-
match:
|
140
|
-
foldingStopMarker: (
|
141
|
-
keyEquivalent: ^~D
|
135
|
+
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"
|
136
|
+
foldingStopMarker: "(?<!\\*)\\*\\*/|^\\s*\\}"
|
137
|
+
keyEquivalent: "^~D"
|
142
138
|
comment: D language
|
@@ -1,81 +1,82 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Diff
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- diff
|
5
5
|
- patch
|
6
|
-
firstLineMatch: "^(=== modified file|====\\s*//.+\\s-\\s.+\\s+====|Index: |--- [^%]|\\*\\*\\*
|
6
|
+
firstLineMatch: "^(=== modified file|====\\s*//.+\\s-\\s.+\\s+====|Index: |--- [^%]|\\*\\*\\*
|
7
|
+
|\\d+(,\\d+)*(a|d|c)\\d+(,\\d+)*$)"
|
7
8
|
scopeName: source.diff
|
8
9
|
uuid: 7E848FF4-708E-11D9-97B4-0011242E4184
|
9
|
-
patterns:
|
10
|
+
patterns:
|
10
11
|
- name: meta.separator.diff
|
11
|
-
captures:
|
12
|
-
|
12
|
+
captures:
|
13
|
+
'1':
|
13
14
|
name: punctuation.definition.separator.diff
|
14
|
-
match: ^((
|
15
|
+
match: "^((\\*{15})|(={67})|(-{3}))$\\n?"
|
15
16
|
- name: meta.diff.range.normal
|
16
|
-
match:
|
17
|
+
match: "^\\d+(,\\d+)*(a|d|c)\\d+(,\\d+)*$\\n?"
|
17
18
|
- name: meta.diff.range.unified
|
18
|
-
captures:
|
19
|
-
|
19
|
+
captures:
|
20
|
+
'1':
|
20
21
|
name: punctuation.definition.range.diff
|
21
|
-
|
22
|
+
'2':
|
22
23
|
name: meta.toc-list.line-number.diff
|
23
|
-
|
24
|
+
'3':
|
24
25
|
name: punctuation.definition.range.diff
|
25
|
-
match: ^(@@)
|
26
|
+
match: "^(@@)\\s*(.+?)\\s*(@@)$\\n?"
|
26
27
|
- name: meta.diff.range.context
|
27
|
-
captures:
|
28
|
-
|
28
|
+
captures:
|
29
|
+
'6':
|
29
30
|
name: punctuation.definition.range.diff
|
30
|
-
|
31
|
+
'7':
|
31
32
|
name: punctuation.definition.range.diff
|
32
|
-
|
33
|
+
'3':
|
33
34
|
name: punctuation.definition.range.diff
|
34
|
-
|
35
|
+
'4':
|
35
36
|
name: punctuation.definition.range.diff
|
36
|
-
match: ^(((
|
37
|
+
match: "^(((\\-{3}) .+ (\\-{4}))|((\\*{3}) .+ (\\*{4})))$\\n?"
|
37
38
|
- name: meta.diff.header.from-file
|
38
|
-
captures:
|
39
|
-
|
39
|
+
captures:
|
40
|
+
'6':
|
40
41
|
name: punctuation.definition.from-file.diff
|
41
|
-
|
42
|
+
'7':
|
42
43
|
name: punctuation.definition.from-file.diff
|
43
|
-
|
44
|
+
'4':
|
44
45
|
name: punctuation.definition.from-file.diff
|
45
|
-
match: (^(((-{3}) .+)|((
|
46
|
+
match: "(^(((-{3}) .+)|((\\*{3}) .+))$\\n?|^(={4}) .+(?= - ))"
|
46
47
|
- name: meta.diff.header.to-file
|
47
|
-
captures:
|
48
|
-
|
48
|
+
captures:
|
49
|
+
'2':
|
49
50
|
name: punctuation.definition.to-file.diff
|
50
|
-
|
51
|
+
'3':
|
51
52
|
name: punctuation.definition.to-file.diff
|
52
|
-
|
53
|
+
'4':
|
53
54
|
name: punctuation.definition.to-file.diff
|
54
|
-
match: (^(
|
55
|
+
match: "(^(\\+{3}) .+$\\n?| (-) .* (={4})$\\n?)"
|
55
56
|
- name: markup.inserted.diff
|
56
|
-
captures:
|
57
|
-
|
57
|
+
captures:
|
58
|
+
'6':
|
58
59
|
name: punctuation.definition.inserted.diff
|
59
|
-
|
60
|
+
'3':
|
60
61
|
name: punctuation.definition.inserted.diff
|
61
|
-
match: ^(((>)( .*)?)|((
|
62
|
+
match: "^(((>)( .*)?)|((\\+).*))$\\n?"
|
62
63
|
- name: markup.changed.diff
|
63
|
-
captures:
|
64
|
-
|
64
|
+
captures:
|
65
|
+
'1':
|
65
66
|
name: punctuation.definition.inserted.diff
|
66
|
-
match: ^(!)
|
67
|
+
match: "^(!).*$\\n?"
|
67
68
|
- name: markup.deleted.diff
|
68
|
-
captures:
|
69
|
-
|
69
|
+
captures:
|
70
|
+
'6':
|
70
71
|
name: punctuation.definition.inserted.diff
|
71
|
-
|
72
|
+
'3':
|
72
73
|
name: punctuation.definition.inserted.diff
|
73
|
-
match: ^(((<)( .*)?)|((-).*))
|
74
|
+
match: "^(((<)( .*)?)|((-).*))$\\n?"
|
74
75
|
- name: meta.diff.index
|
75
|
-
captures:
|
76
|
-
|
76
|
+
captures:
|
77
|
+
'1':
|
77
78
|
name: punctuation.separator.key-value.diff
|
78
|
-
|
79
|
+
'2':
|
79
80
|
name: meta.toc-list.file-name.diff
|
80
|
-
match: ^Index(:) (.+)
|
81
|
-
keyEquivalent: ^~D
|
81
|
+
match: "^Index(:) (.+)$\\n?"
|
82
|
+
keyEquivalent: "^~D"
|