textpow 0.10.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +7 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +30 -0
- data/{History.txt → History.rdoc} +10 -0
- data/{README.txt → MIT-LICENSE.txt} +0 -30
- data/README.rdoc +82 -0
- data/Rakefile +42 -49
- data/bin/plist2syntax +0 -0
- data/bin/plist2yaml +0 -0
- data/examples/benchmark_js.rb +13 -0
- data/examples/jquery.js +9046 -0
- data/lib/textpow.rb +43 -3
- data/lib/textpow/debug_processor.rb +35 -35
- data/lib/textpow/recording_processor.rb +13 -0
- data/lib/textpow/score_manager.rb +60 -60
- data/lib/textpow/syntax.rb +303 -262
- data/lib/textpow/syntax/broken/markdown.syntax +519 -0
- data/lib/textpow/syntax/broken/php.syntax +1253 -0
- data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
- data/lib/textpow/syntax/old/YAML.yaml +160 -0
- data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
- data/lib/textpow/syntax/source.actionscript.syntax +97 -0
- data/lib/textpow/syntax/source.active4d.library.syntax +21 -0
- data/lib/textpow/syntax/source.active4d.syntax +276 -0
- data/lib/textpow/syntax/source.ada.syntax +33 -0
- data/lib/textpow/syntax/source.antlr.syntax +151 -0
- data/lib/textpow/syntax/source.apache-config.mod_perl.syntax +50 -0
- data/lib/textpow/syntax/source.apache-config.syntax +191 -0
- data/lib/textpow/syntax/source.applescript.syntax +384 -0
- data/lib/textpow/syntax/source.asp.syntax +70 -0
- data/lib/textpow/syntax/source.asp.vb.net.syntax +129 -0
- data/lib/textpow/syntax/source.c++.qt.syntax +26 -0
- data/lib/textpow/syntax/source.c++.syntax +186 -0
- data/lib/textpow/syntax/source.c-sharp.syntax +59 -0
- data/lib/textpow/syntax/source.c.ragel.syntax +201 -0
- data/lib/textpow/syntax/source.c.syntax +414 -0
- data/lib/textpow/syntax/source.camlp4.ocaml.syntax +36 -0
- data/lib/textpow/syntax/source.cm.syntax +32 -0
- data/lib/textpow/syntax/source.coffee.syntax +216 -0
- data/lib/textpow/syntax/source.context-free.syntax +176 -0
- data/lib/textpow/syntax/source.css.beta.syntax +1925 -0
- data/lib/textpow/syntax/source.css.syntax +195 -0
- data/lib/textpow/syntax/source.d.syntax +142 -0
- data/lib/textpow/syntax/source.diff.syntax +81 -0
- data/lib/textpow/syntax/source.dot.syntax +47 -0
- data/lib/textpow/syntax/source.dylan.syntax +62 -0
- data/lib/textpow/syntax/source.eiffel.syntax +78 -0
- data/lib/textpow/syntax/source.erlang.syntax +922 -0
- data/lib/textpow/syntax/source.fortran.syntax +141 -0
- data/lib/textpow/syntax/source.fscript.syntax +80 -0
- data/lib/textpow/syntax/source.fxscript.syntax +142 -0
- data/lib/textpow/syntax/source.gri.syntax +83 -0
- data/lib/textpow/syntax/source.groovy.groovy.syntax +191 -0
- data/lib/textpow/syntax/source.haskell.syntax +88 -0
- data/lib/textpow/syntax/source.icalendar.syntax +32 -0
- data/lib/textpow/syntax/source.inform.syntax +48 -0
- data/lib/textpow/syntax/source.ini.syntax +55 -0
- data/lib/textpow/syntax/source.io.syntax +81 -0
- data/lib/textpow/syntax/source.java-props.syntax +20 -0
- data/lib/textpow/syntax/source.java.syntax +211 -0
- data/lib/textpow/syntax/source.js.greasemonkey.syntax +34 -0
- data/lib/textpow/syntax/source.js.jquery.syntax +114 -0
- data/lib/textpow/syntax/source.js.mootools.syntax +572 -0
- data/lib/textpow/syntax/source.js.prototype.bracketed.syntax +140 -0
- data/lib/textpow/syntax/source.js.prototype.syntax +72 -0
- data/lib/textpow/syntax/source.js.syntax +256 -0
- data/lib/textpow/syntax/source.js.yui.syntax +176 -0
- data/lib/textpow/syntax/source.json.syntax +136 -0
- data/lib/textpow/syntax/source.lex.syntax +219 -0
- data/lib/textpow/syntax/source.lighttpd-config.syntax +54 -0
- data/lib/textpow/syntax/source.lilypond.syntax +492 -0
- data/lib/textpow/syntax/source.lisp.syntax +61 -0
- data/lib/textpow/syntax/source.logo.syntax +29 -0
- data/lib/textpow/syntax/source.logtalk.syntax +152 -0
- data/lib/textpow/syntax/source.lua.syntax +86 -0
- data/lib/textpow/syntax/source.makefile.syntax +36 -0
- data/lib/textpow/syntax/source.matlab.syntax +142 -0
- data/lib/textpow/syntax/source.mel.syntax +92 -0
- data/lib/textpow/syntax/source.mips.syntax +66 -0
- data/lib/textpow/syntax/source.ml.syntax +121 -0
- data/lib/textpow/syntax/source.modula-3.syntax +47 -0
- data/lib/textpow/syntax/source.nant-build.syntax +53 -0
- data/lib/textpow/syntax/source.objc++.syntax +18 -0
- data/lib/textpow/syntax/source.objc.syntax +233 -0
- data/lib/textpow/syntax/source.ocaml.syntax +764 -0
- data/lib/textpow/syntax/source.ocamllex.syntax +167 -0
- data/lib/textpow/syntax/source.ocamlyacc.syntax +184 -0
- data/lib/textpow/syntax/source.open-gl.syntax +14 -0
- data/lib/textpow/syntax/source.pascal.syntax +77 -0
- data/lib/textpow/syntax/source.pascal.vectorscript.syntax +57 -0
- data/lib/textpow/syntax/source.perl.syntax +1113 -0
- data/lib/textpow/syntax/source.php.cake.syntax +55 -0
- data/lib/textpow/syntax/source.plist.tm-grammar.syntax +708 -0
- data/lib/textpow/syntax/source.postscript.syntax +114 -0
- data/lib/textpow/syntax/source.processing.syntax +106 -0
- data/lib/textpow/syntax/source.prolog.syntax +40 -0
- data/lib/textpow/syntax/source.python.django.syntax +21 -0
- data/lib/textpow/syntax/source.python.syntax +868 -0
- data/lib/textpow/syntax/source.qmake.syntax +114 -0
- data/lib/textpow/syntax/source.quake-config.syntax +32 -0
- data/lib/textpow/syntax/source.r-console.syntax +16 -0
- data/lib/textpow/syntax/source.r.syntax +81 -0
- data/lib/textpow/syntax/source.regexp.oniguruma.syntax +107 -0
- data/lib/textpow/syntax/source.regexp.python.syntax +109 -0
- data/lib/textpow/syntax/source.regexp.syntax +50 -0
- data/lib/textpow/syntax/source.remind.syntax +253 -0
- data/lib/textpow/syntax/source.rez.syntax +80 -0
- data/lib/textpow/syntax/source.ruby.experimental.syntax +145 -0
- data/lib/textpow/syntax/source.ruby.rails.syntax +88 -0
- data/lib/textpow/syntax/source.ruby.syntax +1035 -0
- data/lib/textpow/syntax/source.s5.syntax +69 -0
- data/lib/textpow/syntax/source.sass.syntax +45 -0
- data/lib/textpow/syntax/source.scheme.syntax +347 -0
- data/lib/textpow/syntax/source.scilab.syntax +41 -0
- data/lib/textpow/syntax/source.scss.syntax +527 -0
- data/lib/textpow/syntax/source.shell.syntax +384 -0
- data/lib/textpow/syntax/source.slate.syntax +149 -0
- data/lib/textpow/syntax/source.smarty.syntax +63 -0
- data/lib/textpow/syntax/source.sql.ruby.syntax +18 -0
- data/lib/textpow/syntax/source.sql.syntax +237 -0
- data/lib/textpow/syntax/source.ssh-config.syntax +33 -0
- data/lib/textpow/syntax/source.strings.syntax +39 -0
- data/lib/textpow/syntax/source.swig.syntax +57 -0
- data/lib/textpow/syntax/source.tcl.macports.syntax +163 -0
- data/lib/textpow/syntax/source.tcl.syntax +152 -0
- data/lib/textpow/syntax/source.yaml.syntax +160 -0
- data/lib/textpow/syntax/text.active4d-ini.syntax +50 -0
- data/lib/textpow/syntax/text.bbcode.syntax +287 -0
- data/lib/textpow/syntax/text.bibtex.syntax +151 -0
- data/lib/textpow/syntax/text.blog.html.syntax +41 -0
- data/lib/textpow/syntax/text.blog.markdown.syntax +42 -0
- data/lib/textpow/syntax/text.blog.syntax +27 -0
- data/lib/textpow/syntax/text.blog.textile.syntax +27 -0
- data/lib/textpow/syntax/text.gtdalt.syntax +143 -0
- data/lib/textpow/syntax/text.haml.syntax +88 -0
- data/lib/textpow/syntax/text.html.asp.net.syntax +424 -0
- data/lib/textpow/syntax/text.html.asp.syntax +27 -0
- data/lib/textpow/syntax/text.html.basic.syntax +362 -0
- data/lib/textpow/syntax/text.html.cfm.syntax +119 -0
- data/lib/textpow/syntax/text.html.django.syntax +36 -0
- data/lib/textpow/syntax/text.html.dokuwiki.syntax +204 -0
- data/lib/textpow/syntax/text.html.doxygen.syntax +43 -0
- data/lib/textpow/syntax/text.html.markdown.multimarkdown.syntax +39 -0
- data/lib/textpow/syntax/text.html.mason.syntax +119 -0
- data/lib/textpow/syntax/text.html.mediawiki.syntax +567 -0
- data/lib/textpow/syntax/text.html.mt.syntax +162 -0
- data/lib/textpow/syntax/text.html.ruby.syntax +40 -0
- data/lib/textpow/syntax/text.html.strict.active4d.syntax +311 -0
- data/lib/textpow/syntax/text.html.tcl.syntax +26 -0
- data/lib/textpow/syntax/text.html.textile.syntax +215 -0
- data/lib/textpow/syntax/text.html.tt.syntax +121 -0
- data/lib/textpow/syntax/text.html.twiki.syntax +241 -0
- data/lib/textpow/syntax/text.html.xhtml.1-strict.syntax +4027 -0
- data/lib/textpow/syntax/text.log.latex.syntax +50 -0
- data/lib/textpow/syntax/text.mail.markdown.syntax +118 -0
- data/lib/textpow/syntax/text.man.syntax +17 -0
- data/lib/textpow/syntax/text.moinmoin.syntax +189 -0
- data/lib/textpow/syntax/text.plain.gtd.syntax +22 -0
- data/lib/textpow/syntax/text.plain.release-notes.syntax +46 -0
- data/lib/textpow/syntax/text.plain.syntax +32 -0
- data/lib/textpow/syntax/text.plist.syntax +635 -0
- data/lib/textpow/syntax/text.pmwiki.syntax +113 -0
- data/lib/textpow/syntax/text.restructuredtext.syntax +250 -0
- data/lib/textpow/syntax/text.setext.syntax +147 -0
- data/lib/textpow/syntax/text.subversion-commit.syntax +36 -0
- data/lib/textpow/syntax/text.tabular.csv.syntax +68 -0
- data/lib/textpow/syntax/text.tabular.tsv.syntax +50 -0
- data/lib/textpow/syntax/text.tex.latex.beamer.syntax +41 -0
- data/lib/textpow/syntax/text.tex.latex.haskell.syntax +24 -0
- data/lib/textpow/syntax/text.tex.latex.memoir.syntax +64 -0
- data/lib/textpow/syntax/text.tex.latex.rd.syntax +91 -0
- data/lib/textpow/syntax/text.tex.latex.sweave.syntax +84 -0
- data/lib/textpow/syntax/text.tex.latex.syntax +566 -0
- data/lib/textpow/syntax/text.tex.math.syntax +49 -0
- data/lib/textpow/syntax/text.tex.syntax +86 -0
- data/lib/textpow/syntax/text.txt2tags.syntax +79 -0
- data/lib/textpow/syntax/text.xml.apple-dist.syntax +77 -0
- data/lib/textpow/syntax/text.xml.strict.syntax +92 -0
- data/lib/textpow/syntax/text.xml.syntax +180 -0
- data/lib/textpow/syntax/text.xml.xsl.syntax +60 -0
- data/lib/textpow/version.rb +3 -0
- data/spec/fixtures/objeck.plist +107 -0
- data/spec/fixtures/utf8.txt +1 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/textpow/score_manager_spec.rb +20 -0
- data/spec/textpow/syntax_files_spec.rb +26 -0
- data/spec/textpow/syntax_spec.rb +225 -0
- data/spec/textpow_spec.rb +57 -0
- data/textpow.gemspec +19 -0
- metadata +246 -68
- data/Manifest.txt +0 -13
- data/mm/manual.mm +0 -266
- data/test/test_textpow.rb +0 -25
@@ -0,0 +1,195 @@
|
|
1
|
+
---
|
2
|
+
name: CSS
|
3
|
+
fileTypes:
|
4
|
+
- css
|
5
|
+
scopeName: source.css
|
6
|
+
repository:
|
7
|
+
string-single:
|
8
|
+
name: string.quoted.single.css
|
9
|
+
endCaptures:
|
10
|
+
"0":
|
11
|
+
name: punctuation.definition.string.end.css
|
12
|
+
begin: "'"
|
13
|
+
beginCaptures:
|
14
|
+
"0":
|
15
|
+
name: punctuation.definition.string.begin.css
|
16
|
+
end: "'"
|
17
|
+
patterns:
|
18
|
+
- name: constant.character.escape.css
|
19
|
+
match: \\.
|
20
|
+
string-double:
|
21
|
+
name: string.quoted.double.css
|
22
|
+
endCaptures:
|
23
|
+
"0":
|
24
|
+
name: punctuation.definition.string.end.css
|
25
|
+
begin: "\""
|
26
|
+
beginCaptures:
|
27
|
+
"0":
|
28
|
+
name: punctuation.definition.string.begin.css
|
29
|
+
end: "\""
|
30
|
+
patterns:
|
31
|
+
- name: constant.character.escape.css
|
32
|
+
match: \\.
|
33
|
+
comment-block:
|
34
|
+
name: comment.block.css
|
35
|
+
captures:
|
36
|
+
"0":
|
37
|
+
name: punctuation.definition.comment.css
|
38
|
+
begin: /\*
|
39
|
+
end: \*/
|
40
|
+
uuid: 69AA0917-B7BB-11D9-A7E2-000D93C8BE28
|
41
|
+
foldingStartMarker: /\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))
|
42
|
+
patterns:
|
43
|
+
- name: meta.selector.css
|
44
|
+
begin: ^(?=\s*[:.*#a-zA-Z])
|
45
|
+
end: (?=\{)
|
46
|
+
patterns:
|
47
|
+
- include: "#comment-block"
|
48
|
+
- name: entity.name.tag.css
|
49
|
+
match: \b(a|abbr|acronym|address|area|b|base|big|blockquote|body|br|button|caption|cite|code|col|colgroup|dd|del|dfn|div|dl|dt|em|fieldset|form|frame|frameset|(h[1-6])|head|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|ul|var)\b
|
50
|
+
- name: entity.other.attribute-name.class.css
|
51
|
+
captures:
|
52
|
+
"1":
|
53
|
+
name: punctuation.definition.entity.css
|
54
|
+
match: (\.)[a-zA-Z0-9_-]+
|
55
|
+
- name: entity.other.attribute-name.id.css
|
56
|
+
captures:
|
57
|
+
"1":
|
58
|
+
name: punctuation.definition.entity.css
|
59
|
+
match: (#)[a-zA-Z][a-zA-Z0-9_-]*
|
60
|
+
- name: entity.name.tag.wildcard.css
|
61
|
+
match: \*
|
62
|
+
- name: entity.other.attribute-name.pseudo-element.css
|
63
|
+
captures:
|
64
|
+
"1":
|
65
|
+
name: punctuation.definition.entity.css
|
66
|
+
match: (:+)\b(after|before|first-child|first-letter|first-line|selection)\b
|
67
|
+
- name: entity.other.attribute-name.pseudo-class.css
|
68
|
+
captures:
|
69
|
+
"1":
|
70
|
+
name: punctuation.definition.entity.css
|
71
|
+
match: (:)\b(active|hover|link|visited|focus)\b
|
72
|
+
- name: meta.attribute-selector.css
|
73
|
+
captures:
|
74
|
+
"6":
|
75
|
+
name: punctuation.definition.string.begin.css
|
76
|
+
"7":
|
77
|
+
name: punctuation.definition.string.end.css
|
78
|
+
"1":
|
79
|
+
name: punctuation.definition.entity.css
|
80
|
+
"2":
|
81
|
+
name: entity.other.attribute-name.attribute.css
|
82
|
+
"3":
|
83
|
+
name: punctuation.separator.operator.css
|
84
|
+
"4":
|
85
|
+
name: string.unquoted.attribute-value.css
|
86
|
+
"5":
|
87
|
+
name: string.quoted.double.attribute-value.css
|
88
|
+
match: (?i)(\[)\s*(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)(?:\s*([~|^$*]?=)\s*(?:(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)|((?>(['"])(?:[^\\]|\\.)*?(\6)))))?\s*(\])
|
89
|
+
- include: "#comment-block"
|
90
|
+
- name: meta.at-rule.import.css
|
91
|
+
captures:
|
92
|
+
"1":
|
93
|
+
name: keyword.control.at-rule.import.css
|
94
|
+
"2":
|
95
|
+
name: punctuation.definition.keyword.css
|
96
|
+
begin: ^\s*((@)import\b)
|
97
|
+
end: \s*((?=;|\}))
|
98
|
+
patterns:
|
99
|
+
- include: "#string-double"
|
100
|
+
- endCaptures:
|
101
|
+
"1":
|
102
|
+
name: punctuation.section.function.css
|
103
|
+
begin: (url)\s*(\()\s*
|
104
|
+
beginCaptures:
|
105
|
+
"1":
|
106
|
+
name: support.function.url.css
|
107
|
+
"2":
|
108
|
+
name: punctuation.section.function.css
|
109
|
+
end: \s*(\))\s*
|
110
|
+
patterns:
|
111
|
+
- name: variable.parameter.url.css
|
112
|
+
match: "[^'\") \\t]+"
|
113
|
+
- include: "#string-single"
|
114
|
+
- include: "#string-double"
|
115
|
+
- name: meta.at-rule.media.css
|
116
|
+
captures:
|
117
|
+
"1":
|
118
|
+
name: keyword.control.at-rule.media.css
|
119
|
+
"2":
|
120
|
+
name: punctuation.definition.keyword.css
|
121
|
+
"3":
|
122
|
+
name: support.constant.media.css
|
123
|
+
begin: ^\s*((@)media)\s+(((all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)\s*,?\s*)+)\s*{
|
124
|
+
end: \s*((?=;|\}))
|
125
|
+
patterns:
|
126
|
+
- include: $self
|
127
|
+
- name: meta.property-list.css
|
128
|
+
captures:
|
129
|
+
"0":
|
130
|
+
name: punctuation.section.property-list.css
|
131
|
+
begin: \{
|
132
|
+
end: \}
|
133
|
+
patterns:
|
134
|
+
- include: "#comment-block"
|
135
|
+
- name: meta.property-name.css
|
136
|
+
begin: (?<![-a-z])(?=[-a-z])
|
137
|
+
end: $|(?![-a-z])
|
138
|
+
patterns:
|
139
|
+
- name: support.type.property-name.css
|
140
|
+
match: \b(azimuth|background-attachment|background-color|background-image|background-position|background-repeat|background|border-bottom-color|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-style|border-left-width|border-left|border-right-color|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-style|border-top-width|border-top|border-width|border|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|-moz-border-radius|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow(-[xy])?|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|position|quotes|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|stress|table-layout|text-align|text-decoration|text-indent|text-shadow|text-transform|top|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-spacing|z-index)\b
|
141
|
+
- name: meta.property-value.css
|
142
|
+
endCaptures:
|
143
|
+
"1":
|
144
|
+
name: punctuation.terminator.rule.css
|
145
|
+
begin: (:)\s*
|
146
|
+
beginCaptures:
|
147
|
+
"1":
|
148
|
+
name: punctuation.separator.key-value.css
|
149
|
+
end: \s*(;|(?=\}))
|
150
|
+
patterns:
|
151
|
+
- name: support.constant.property-value.css
|
152
|
+
match: \b(absolute|all-scroll|always|auto|baseline|below|bidi-override|block|bold|bolder|both|bottom|break-all|break-word|capitalize|center|char|circle|col-resize|collapse|crosshair|dashed|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|groove|hand|help|hidden|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|keep-all|left|lighter|line-edge|line-through|line|list-item|loose|lower-alpha|lower-roman|lowercase|lr-tb|ltr|medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|super|sw-resize|table-footer-group|table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-roman|uppercase|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace)\b
|
153
|
+
- name: support.constant.font-name.css
|
154
|
+
match: (\b(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)\b)
|
155
|
+
- name: support.constant.color.w3c-standard-color-name.css
|
156
|
+
match: \b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|purple|red|silver|teal|white|yellow)\b
|
157
|
+
comment: http://www.w3schools.com/css/css_colors.asp
|
158
|
+
- name: invalid.deprecated.color.w3c-non-standard-color-name.css
|
159
|
+
match: \b(seagreen|hotpink|lawngreen|darkgreen|violet|darkred|crimson|green|sandybrown|navy|magenta|darkslategray|steelblue|silver|darkgrey|mistyrose|gray|aliceblue|blueviolet|lightpink|saddlebrown|chocolate|limegreen|lightslategray|yellowgreen|pink|lightskyblue|indigo|lightblue|floralwhite|navajowhite|mediumvioletred|honeydew|aquamarine|blue|olivedrab|palegreen|slategray|lavenderblush|wheat|moccasin|mediumturquoise|mediumspringgreen|lightcoral|mintcream|tomato|lightgrey|black|darkmagenta|dimgray|darkturquoise|midnightblue|plum|indianred|coral|lightcyan|mediumslateblue|darkcyan|darkslateblue|darkkhaki|ivory|azure|khaki|powderblue|darkgoldenrod|orangered|burlywood|turquoise|royalblue|maroon|cornsilk|antiquewhite|yellow|teal|orange|grey|darkslategrey|slateblue|seashell|darkorchid|snow|lightslategrey|cyan|greenyellow|palevioletred|goldenrod|deepskyblue|lightyellow|lightseagreen|sienna|lemonchiffon|darkviolet|paleturquoise|slategrey|skyblue|purple|mediumpurple|cadetblue|fuchsia|chartreuse|darksalmon|lightgoldenrodyellow|white|springgreen|olive|forestgreen|peachpuff|peru|dimgrey|mediumseagreen|thistle|firebrick|darkgray|mediumaquamarine|darkolivegreen|mediumblue|palegoldenrod|blanchedalmond|ghostwhite|gold|gainsboro|darkseagreen|cornflowerblue|lime|lavender|beige|orchid|mediumorchid|whitesmoke|bisque|lightgray|tan|salmon|rosybrown|red|dodgerblue|brown|aqua|oldlace|deeppink|papayawhip|lightsalmon|lightsteelblue|darkorange|darkblue|linen|lightgreen)\b
|
160
|
+
comment: "These colours are mostly recognised but will not validate. ref: http://www.w3schools.com/css/css_colornames.asp"
|
161
|
+
- name: constant.numeric.css
|
162
|
+
match: (-|\+)?\s*[0-9]+(\.[0-9]+)?
|
163
|
+
- name: keyword.other.unit.css
|
164
|
+
match: (?<=[\d])(px|pt|cm|mm|in|em|ex|pc)\b|%
|
165
|
+
- name: constant.other.color.rgb-value.css
|
166
|
+
captures:
|
167
|
+
"1":
|
168
|
+
name: punctuation.definition.constant.css
|
169
|
+
match: (#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b
|
170
|
+
- include: "#string-double"
|
171
|
+
- include: "#string-single"
|
172
|
+
- endCaptures:
|
173
|
+
"1":
|
174
|
+
name: punctuation.section.function.css
|
175
|
+
begin: (rgb|url|attr|counter|counters)\s*(\()
|
176
|
+
beginCaptures:
|
177
|
+
"1":
|
178
|
+
name: support.function.misc.css
|
179
|
+
"2":
|
180
|
+
name: punctuation.section.function.css
|
181
|
+
end: (\))
|
182
|
+
patterns:
|
183
|
+
- include: "#string-single"
|
184
|
+
- include: "#string-double"
|
185
|
+
- name: constant.other.color.rgb-value.css
|
186
|
+
match: (\b0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\s*,\s*)(0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\s*,\s*)(0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\b)
|
187
|
+
- name: constant.other.color.rgb-percentage.css
|
188
|
+
match: \b([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%
|
189
|
+
- name: variable.parameter.misc.css
|
190
|
+
match: "[^'\") \\t]+"
|
191
|
+
- name: keyword.other.important.css
|
192
|
+
match: \!\s*important
|
193
|
+
foldingStopMarker: (?<!\*)\*\*/|^\s*\}
|
194
|
+
keyEquivalent: ^~C
|
195
|
+
comment: ""
|
@@ -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,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
|