uv 0.0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.rdoc +79 -0
- data/Rakefile +1 -0
- data/bin/theme2latexrender +122 -0
- data/bin/theme2xhtmlrender +158 -0
- data/bin/uv +140 -0
- data/lib/uv/engine.rb +4 -0
- data/lib/uv/render_processor.rb +140 -0
- data/lib/uv/utility.rb +67 -0
- data/lib/uv/version.rb +3 -0
- data/lib/uv.rb +110 -0
- data/render/latex/active4d.render +132 -0
- data/render/latex/all_hallows_eve.render +96 -0
- data/render/latex/amy.render +171 -0
- data/render/latex/blackboard.render +111 -0
- data/render/latex/brilliance_black.render +552 -0
- data/render/latex/brilliance_dull.render +561 -0
- data/render/latex/cobalt.render +162 -0
- data/render/latex/dawn.render +126 -0
- data/render/latex/eiffel.render +132 -0
- data/render/latex/espresso_libre.render +123 -0
- data/render/latex/idle.render +93 -0
- data/render/latex/iplastic.render +99 -0
- data/render/latex/lazy.render +96 -0
- data/render/latex/mac_classic.render +135 -0
- data/render/latex/magicwb_amiga.render +117 -0
- data/render/latex/pastels_on_dark.render +204 -0
- data/render/latex/slush_poppies.render +123 -0
- data/render/latex/spacecadet.render +81 -0
- data/render/latex/sunburst.render +186 -0
- data/render/latex/twilight.render +153 -0
- data/render/latex/zenburnesque.render +126 -0
- data/render/old/txt2tags.render +131 -0
- data/render/xhtml/active4d.render +140 -0
- data/render/xhtml/all_hallows_eve.render +104 -0
- data/render/xhtml/amy.render +179 -0
- data/render/xhtml/blackboard.render +119 -0
- data/render/xhtml/brilliance_black.render +560 -0
- data/render/xhtml/brilliance_dull.render +569 -0
- data/render/xhtml/cobalt.render +170 -0
- data/render/xhtml/dawn.render +134 -0
- data/render/xhtml/eiffel.render +140 -0
- data/render/xhtml/espresso_libre.render +131 -0
- data/render/xhtml/idle.render +101 -0
- data/render/xhtml/iplastic.render +107 -0
- data/render/xhtml/lazy.render +104 -0
- data/render/xhtml/mac_classic.render +143 -0
- data/render/xhtml/magicwb_amiga.render +125 -0
- data/render/xhtml/pastels_on_dark.render +212 -0
- data/render/xhtml/railscasts.render +93 -0
- data/render/xhtml/slush_poppies.render +131 -0
- data/render/xhtml/spacecadet.render +83 -0
- data/render/xhtml/sunburst.render +194 -0
- data/render/xhtml/twilight.render +161 -0
- data/render/xhtml/zenburnesque.render +134 -0
- data/ruby-uv.gemspec +24 -0
- data/syntax/actionscript.syntax +97 -0
- data/syntax/active4d.syntax +276 -0
- data/syntax/active4d_html.syntax +311 -0
- data/syntax/active4d_ini.syntax +50 -0
- data/syntax/active4d_library.syntax +21 -0
- data/syntax/ada.syntax +33 -0
- data/syntax/antlr.syntax +151 -0
- data/syntax/apache.syntax +191 -0
- data/syntax/applescript.syntax +384 -0
- data/syntax/asp.syntax +70 -0
- data/syntax/asp_vb.net.syntax +129 -0
- data/syntax/bibtex.syntax +151 -0
- data/syntax/blog_html.syntax +41 -0
- data/syntax/blog_markdown.syntax +42 -0
- data/syntax/blog_text.syntax +27 -0
- data/syntax/blog_textile.syntax +27 -0
- data/syntax/build.syntax +53 -0
- data/syntax/bulletin_board.syntax +287 -0
- data/syntax/bundler.syntax +11 -0
- data/syntax/cake.syntax +55 -0
- data/syntax/camlp4.syntax +36 -0
- data/syntax/cm.syntax +32 -0
- data/syntax/coldfusion.syntax +119 -0
- data/syntax/context_free.syntax +176 -0
- data/syntax/cs.syntax +59 -0
- data/syntax/css.syntax +195 -0
- data/syntax/css_experimental.syntax +1925 -0
- data/syntax/css_zen.syntax +197 -0
- data/syntax/csv.syntax +68 -0
- data/syntax/cucumber_plain_text_feature.syntax +140 -0
- data/syntax/cucumber_steps.syntax +154 -0
- data/syntax/d.syntax +142 -0
- data/syntax/diff.syntax +81 -0
- data/syntax/dokuwiki.syntax +204 -0
- data/syntax/dot.syntax +47 -0
- data/syntax/doxygen.syntax +43 -0
- data/syntax/dylan.syntax +62 -0
- data/syntax/eiffel.syntax +78 -0
- data/syntax/erlang.syntax +922 -0
- data/syntax/f-script.syntax +80 -0
- data/syntax/fortran.syntax +141 -0
- data/syntax/fxscript.syntax +142 -0
- data/syntax/greasemonkey.syntax +34 -0
- data/syntax/gri.syntax +83 -0
- data/syntax/groovy.syntax +191 -0
- data/syntax/gtd.syntax +22 -0
- data/syntax/gtdalt.syntax +143 -0
- data/syntax/haml.syntax +153 -0
- data/syntax/haskell.syntax +88 -0
- data/syntax/html-asp.syntax +27 -0
- data/syntax/html.syntax +362 -0
- data/syntax/html_django.syntax +36 -0
- data/syntax/html_for_asp.net.syntax +424 -0
- data/syntax/html_mason.syntax +119 -0
- data/syntax/html_rails.syntax +32 -0
- data/syntax/html_tcl.syntax +26 -0
- data/syntax/icalendar.syntax +32 -0
- data/syntax/inform.syntax +48 -0
- data/syntax/ini.syntax +55 -0
- data/syntax/installer_distribution_script.syntax +77 -0
- data/syntax/io.syntax +81 -0
- data/syntax/java.syntax +211 -0
- data/syntax/javaproperties.syntax +20 -0
- data/syntax/javascript.syntax +256 -0
- data/syntax/javascript_+_prototype.syntax +72 -0
- data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
- data/syntax/javascript_rails.syntax +30 -0
- data/syntax/jquery_javascript.syntax +154 -0
- data/syntax/json.syntax +136 -0
- data/syntax/languagedefinition.syntax +708 -0
- data/syntax/latex.syntax +566 -0
- data/syntax/latex_beamer.syntax +41 -0
- data/syntax/latex_log.syntax +50 -0
- data/syntax/latex_memoir.syntax +64 -0
- data/syntax/lexflex.syntax +219 -0
- data/syntax/lighttpd.syntax +54 -0
- data/syntax/lilypond.syntax +492 -0
- data/syntax/lisp.syntax +61 -0
- data/syntax/literate_haskell.syntax +24 -0
- data/syntax/logo.syntax +29 -0
- data/syntax/logtalk.syntax +152 -0
- data/syntax/lua.syntax +86 -0
- data/syntax/m.syntax +142 -0
- data/syntax/macports_portfile.syntax +163 -0
- data/syntax/makefile.syntax +36 -0
- data/syntax/man.syntax +17 -0
- data/syntax/mediawiki.syntax +567 -0
- data/syntax/mips.syntax +66 -0
- data/syntax/mod_perl.syntax +50 -0
- data/syntax/modula-3.syntax +47 -0
- data/syntax/moinmoin.syntax +189 -0
- data/syntax/mootools.syntax +572 -0
- data/syntax/movable_type.syntax +162 -0
- data/syntax/multimarkdown.syntax +39 -0
- data/syntax/objective-c++.syntax +18 -0
- data/syntax/objective-c.syntax +233 -0
- data/syntax/ocaml.syntax +764 -0
- data/syntax/ocamllex.syntax +167 -0
- data/syntax/ocamlyacc.syntax +184 -0
- data/syntax/opengl.syntax +14 -0
- data/syntax/pascal.syntax +77 -0
- data/syntax/perl.syntax +1115 -0
- data/syntax/plain_text.syntax +32 -0
- data/syntax/postscript.syntax +114 -0
- data/syntax/processing.syntax +106 -0
- data/syntax/prolog.syntax +40 -0
- data/syntax/property_list.syntax +635 -0
- data/syntax/python.syntax +868 -0
- data/syntax/python_django.syntax +21 -0
- data/syntax/qmake_project.syntax +114 -0
- data/syntax/qt_c++.syntax +26 -0
- data/syntax/quake3_config.syntax +32 -0
- data/syntax/r.syntax +81 -0
- data/syntax/r_console.syntax +16 -0
- data/syntax/ragel.syntax +201 -0
- data/syntax/rd_r_documentation.syntax +91 -0
- data/syntax/regexp.syntax +50 -0
- data/syntax/release_notes.syntax +46 -0
- data/syntax/remind.syntax +253 -0
- data/syntax/restructuredtext.syntax +250 -0
- data/syntax/rez.syntax +80 -0
- data/syntax/rspec.syntax +68 -0
- data/syntax/ruby.syntax +1035 -0
- data/syntax/ruby_experimental.syntax +145 -0
- data/syntax/ruby_on_rails.syntax +200 -0
- data/syntax/ruby_sass.syntax +395 -0
- data/syntax/s5.syntax +69 -0
- data/syntax/scheme.syntax +347 -0
- data/syntax/scilab.syntax +41 -0
- data/syntax/scss.syntax +528 -0
- data/syntax/setext.syntax +147 -0
- data/syntax/shell-unix-generic.syntax +384 -0
- data/syntax/shoulda.syntax +160 -0
- data/syntax/slate.syntax +149 -0
- data/syntax/sql.syntax +237 -0
- data/syntax/sql_rails.syntax +19 -0
- data/syntax/ssh-config.syntax +33 -0
- data/syntax/standard_ml.syntax +121 -0
- data/syntax/strings_file.syntax +39 -0
- data/syntax/subversion_commit_message.syntax +36 -0
- data/syntax/sweave.syntax +84 -0
- data/syntax/swig.syntax +57 -0
- data/syntax/tcl.syntax +152 -0
- data/syntax/template_toolkit.syntax +121 -0
- data/syntax/tex.syntax +86 -0
- data/syntax/tex_math.syntax +49 -0
- data/syntax/textile.syntax +215 -0
- data/syntax/tsv.syntax +50 -0
- data/syntax/twiki.syntax +241 -0
- data/syntax/txt2tags.syntax +79 -0
- data/syntax/vectorscript.syntax +57 -0
- data/syntax/xhtml_1.0.syntax +4027 -0
- data/syntax/xml.syntax +180 -0
- data/syntax/xml_strict.syntax +92 -0
- data/syntax/xsl.syntax +60 -0
- data/syntax/yaml.syntax +160 -0
- data/syntax/yui_javascript.syntax +176 -0
- data/test/test_uv.rb +17 -0
- data/vendor/assets/stylesheets/active4d.css +117 -0
- data/vendor/assets/stylesheets/all_hallows_eve.css +75 -0
- data/vendor/assets/stylesheets/all_uv_themes.css.scss +4 -0
- data/vendor/assets/stylesheets/amy.css +150 -0
- data/vendor/assets/stylesheets/blackboard.css +91 -0
- data/vendor/assets/stylesheets/brilliance_black.css +608 -0
- data/vendor/assets/stylesheets/brilliance_dull.css +602 -0
- data/vendor/assets/stylesheets/cobalt.css +152 -0
- data/vendor/assets/stylesheets/dawn.css +124 -0
- data/vendor/assets/stylesheets/eiffel.css +124 -0
- data/vendor/assets/stylesheets/espresso_libre.css +112 -0
- data/vendor/assets/stylesheets/idle.css +65 -0
- data/vendor/assets/stylesheets/iplastic.css +83 -0
- data/vendor/assets/stylesheets/lazy.css +76 -0
- data/vendor/assets/stylesheets/mac_classic.css +126 -0
- data/vendor/assets/stylesheets/magicwb_amiga.css +107 -0
- data/vendor/assets/stylesheets/pastels_on_dark.css +191 -0
- data/vendor/assets/stylesheets/railscasts.css +74 -0
- data/vendor/assets/stylesheets/slush_poppies.css +88 -0
- data/vendor/assets/stylesheets/spacecadet.css +54 -0
- data/vendor/assets/stylesheets/sunburst.css +183 -0
- data/vendor/assets/stylesheets/twilight.css +140 -0
- data/vendor/assets/stylesheets/zenburnesque.css +94 -0
- metadata +311 -0
data/syntax/scss.syntax
ADDED
@@ -0,0 +1,528 @@
|
|
1
|
+
---
|
2
|
+
comment: Complete Rewrite of the SCSS Grammar by Mario "Kuroir" Ricalde (http://kuroir.com)
|
3
|
+
fileTypes:
|
4
|
+
- scss
|
5
|
+
foldingStartMarker: /\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))
|
6
|
+
foldingStopMarker: (?<!\*)\*\*/|^\s*\}
|
7
|
+
keyEquivalent: ^~S
|
8
|
+
name: SCSS
|
9
|
+
patterns:
|
10
|
+
- comment: Variable setting
|
11
|
+
include: ! '#variable_setting'
|
12
|
+
- include: ! '#include'
|
13
|
+
- include: ! '#import'
|
14
|
+
- include: ! '#general'
|
15
|
+
- include: ! '#flow_control'
|
16
|
+
- comment: Yes, we need the rules at root level available for nesting.
|
17
|
+
include: ! '#rules'
|
18
|
+
- comment: Properties
|
19
|
+
include: ! '#property_list'
|
20
|
+
- begin: ^\s*((@)mixin) ([\w-]{1,})\s{0,2}\(
|
21
|
+
captures:
|
22
|
+
'1':
|
23
|
+
name: keyword.control.at-rule.mixin.scss
|
24
|
+
'2':
|
25
|
+
name: punctuation.definition.keyword.scss
|
26
|
+
'3':
|
27
|
+
name: entity.name.function.scss
|
28
|
+
comment: Mixin with Attributes
|
29
|
+
end: \)
|
30
|
+
name: meta.at-rule.mixin.scss
|
31
|
+
patterns:
|
32
|
+
- include: ! '#function_attributes'
|
33
|
+
- captures:
|
34
|
+
'1':
|
35
|
+
name: keyword.control.at-rule.mixin.scss
|
36
|
+
'2':
|
37
|
+
name: punctuation.definition.keyword.css
|
38
|
+
'3':
|
39
|
+
name: entity.name.function.scss
|
40
|
+
comment: Simple Mixin
|
41
|
+
match: ^\s*((@)mixin) ([\w-]{1,})
|
42
|
+
name: meta.at-rule.mixin.scss
|
43
|
+
- begin: ^\s*((@)function) ([\w-]{1,})\s{0,2}\(
|
44
|
+
captures:
|
45
|
+
'1':
|
46
|
+
name: keyword.control.at-rule.function.scss
|
47
|
+
'2':
|
48
|
+
name: punctuation.definition.keyword.css
|
49
|
+
'3':
|
50
|
+
name: entity.name.function.scss
|
51
|
+
comment: Function with Attributes
|
52
|
+
end: \)
|
53
|
+
name: meta.at-rule.function.scss
|
54
|
+
patterns:
|
55
|
+
- include: ! '#function_attributes'
|
56
|
+
- captures:
|
57
|
+
'1':
|
58
|
+
name: keyword.control.at-rule.function.scss
|
59
|
+
'2':
|
60
|
+
name: punctuation.definition.keyword.css
|
61
|
+
'3':
|
62
|
+
name: entity.name.function.scss
|
63
|
+
comment: Simple Function
|
64
|
+
match: ^\s*((@)function) ([\w-]{1,})
|
65
|
+
name: meta.at-rule.function.scss
|
66
|
+
- captures:
|
67
|
+
'1':
|
68
|
+
name: keyword.control.at-rule.charset.scss
|
69
|
+
'2':
|
70
|
+
name: punctuation.definition.keyword.css
|
71
|
+
comment: Charset
|
72
|
+
match: ^\s*((@)charset\b)\s*
|
73
|
+
name: meta.at-rule.charset.scss
|
74
|
+
- captures:
|
75
|
+
'1':
|
76
|
+
name: keyword.control.at-rule.charset.scss
|
77
|
+
'2':
|
78
|
+
name: punctuation.definition.keyword.css
|
79
|
+
comment: Option
|
80
|
+
match: ^\s*((@)option\b)\s*
|
81
|
+
name: meta.at-rule.option.scss
|
82
|
+
repository:
|
83
|
+
comment_block:
|
84
|
+
begin: \s{0,}/\*
|
85
|
+
captures:
|
86
|
+
'0':
|
87
|
+
name: punctuation.whitespace.comment.trailing.scss
|
88
|
+
comment: Revamped Comment block.
|
89
|
+
end: (\*/)\s{0,}
|
90
|
+
name: comment.block.scss
|
91
|
+
comment_line:
|
92
|
+
begin: (\s{0,})//
|
93
|
+
comment: Revamped
|
94
|
+
end: $(\s{0,})
|
95
|
+
name: comment.line.scss
|
96
|
+
constant_color:
|
97
|
+
comment: http://www.w3.org/TR/CSS21/syndata.html#value-def-color
|
98
|
+
match: \b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b
|
99
|
+
name: support.constant.color.w3c-standard-color-name.css
|
100
|
+
constant_depracated_color:
|
101
|
+
comment: ! 'These colours are mostly recognised but will not validate. ref: http://www.w3schools.com/css/css_colornames.asp'
|
102
|
+
match: \b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\b
|
103
|
+
name: invalid.deprecated.color.w3c-non-standard-color-name.css
|
104
|
+
constant_font:
|
105
|
+
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)
|
106
|
+
name: support.constant.font-name.css
|
107
|
+
constant_functions:
|
108
|
+
begin: ([\w-]{1,})\s*(\()
|
109
|
+
beginCaptures:
|
110
|
+
'1':
|
111
|
+
name: support.function.misc.css
|
112
|
+
'2':
|
113
|
+
name: punctuation.section.function.css
|
114
|
+
end: (\))
|
115
|
+
endCaptures:
|
116
|
+
'1':
|
117
|
+
name: punctuation.section.function.css
|
118
|
+
patterns:
|
119
|
+
- include: ! '#parameters'
|
120
|
+
constant_hex:
|
121
|
+
captures:
|
122
|
+
'1':
|
123
|
+
name: punctuation.definition.constant.css
|
124
|
+
match: (#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b
|
125
|
+
name: constant.other.color.rgb-value.css
|
126
|
+
constant_important:
|
127
|
+
match: \!\s*important
|
128
|
+
name: keyword.other.important.css
|
129
|
+
constant_mathematical_symbols:
|
130
|
+
match: (\b(\+|-|\*|/)\b)
|
131
|
+
name: support.constant.mathematical-symbols.css
|
132
|
+
constant_number:
|
133
|
+
match: ! '[+-]?\s*([0-9]+(\.[0-9]+)?|\.[0-9]+)'
|
134
|
+
name: constant.numeric.css
|
135
|
+
constant_property_value:
|
136
|
+
match: \b(absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|block|bold|bolder|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|crosshair|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|left|lighter|line-edge|line-through|line|list-item|loose|lower-alpha|lower-greek|lower-latin|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-latin|upper-roman|uppercase|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|zero|true|false)\b
|
137
|
+
name: support.constant.property-value.css
|
138
|
+
constant_rgb:
|
139
|
+
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)
|
140
|
+
name: constant.other.color.rgb-value.css
|
141
|
+
constant_rgb_percentage:
|
142
|
+
match: \b([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%
|
143
|
+
name: constant.other.color.rgb-percentage.css
|
144
|
+
constant_sass_functions:
|
145
|
+
begin: (headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|-o|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:gradient|svg-gradient)|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi)\s*(\()
|
146
|
+
beginCaptures:
|
147
|
+
'1':
|
148
|
+
name: support.function.misc.css
|
149
|
+
'2':
|
150
|
+
name: punctuation.section.function.css
|
151
|
+
end: (\))
|
152
|
+
endCaptures:
|
153
|
+
'1':
|
154
|
+
name: punctuation.section.function.css
|
155
|
+
patterns:
|
156
|
+
- include: ! '#parameters'
|
157
|
+
constant_unit:
|
158
|
+
match: (?<=[\d])(px|pt|cm|mm|in|em|ex|pc|deg)\b|%
|
159
|
+
name: keyword.other.unit.css
|
160
|
+
each:
|
161
|
+
begin: \s{0,}((@)(each)\b)
|
162
|
+
captures:
|
163
|
+
'1':
|
164
|
+
name: keyword.control.each.scss
|
165
|
+
'2':
|
166
|
+
name: punctuation.definition.keyword.css
|
167
|
+
end: (?={)
|
168
|
+
name: meta.at-rule.each.scss
|
169
|
+
patterns:
|
170
|
+
- match: \b(in|\,)\b
|
171
|
+
name: keyword.control.operator
|
172
|
+
- include: ! '#variable'
|
173
|
+
- include: ! '#property_values'
|
174
|
+
- include: $self
|
175
|
+
else:
|
176
|
+
begin: \s*((@)(else)\b)
|
177
|
+
captures:
|
178
|
+
'1':
|
179
|
+
name: keyword.control.else.scss
|
180
|
+
'2':
|
181
|
+
name: punctuation.definition.keyword.css
|
182
|
+
end: (?={)
|
183
|
+
name: meta.at-rule.else.scss
|
184
|
+
patterns:
|
185
|
+
- include: ! '#logical_operators'
|
186
|
+
- include: ! '#variable'
|
187
|
+
- include: ! '#property_values'
|
188
|
+
extend:
|
189
|
+
begin: \s*((@)(extend)\b)
|
190
|
+
captures:
|
191
|
+
'1':
|
192
|
+
name: keyword.control.at-rule.import.css
|
193
|
+
'2':
|
194
|
+
name: punctuation.definition.keyword.css
|
195
|
+
end: \s*((?=;))
|
196
|
+
name: meta.at-rule.import.css
|
197
|
+
patterns:
|
198
|
+
- include: ! '#variable'
|
199
|
+
- include: ! '#selectors'
|
200
|
+
flow_control:
|
201
|
+
patterns:
|
202
|
+
- include: ! '#if'
|
203
|
+
- include: ! '#else'
|
204
|
+
- include: ! '#warn'
|
205
|
+
- include: ! '#for'
|
206
|
+
- include: ! '#while'
|
207
|
+
- include: ! '#each'
|
208
|
+
- include: ! '#return'
|
209
|
+
for:
|
210
|
+
begin: \s{0,}((@)(for)\b)
|
211
|
+
captures:
|
212
|
+
'1':
|
213
|
+
name: keyword.control.for.scss
|
214
|
+
'2':
|
215
|
+
name: punctuation.definition.keyword.css
|
216
|
+
end: (?={)
|
217
|
+
name: meta.at-rule.for.scss
|
218
|
+
patterns:
|
219
|
+
- match: (\=\=|\!\=|\<\=|\>\=|\<|\>|from|through)
|
220
|
+
name: keyword.control.operator
|
221
|
+
- include: ! '#variable'
|
222
|
+
- include: ! '#property_values'
|
223
|
+
- include: $self
|
224
|
+
function_attributes:
|
225
|
+
patterns:
|
226
|
+
- match: ! ':'
|
227
|
+
name: punctuation.definition
|
228
|
+
- include: ! '#general'
|
229
|
+
- include: ! '#property_values'
|
230
|
+
- comment: We even have error highlighting <3
|
231
|
+
match: ! '[=\{\}\?\;\@]'
|
232
|
+
name: invalid.illegal
|
233
|
+
functions:
|
234
|
+
patterns:
|
235
|
+
- begin: ([\w-]{1,})(\()\s*
|
236
|
+
beginCaptures:
|
237
|
+
'1':
|
238
|
+
name: support.function.misc.css
|
239
|
+
'2':
|
240
|
+
name: punctuation.section.function.css
|
241
|
+
end: (\))
|
242
|
+
endCaptures:
|
243
|
+
'1':
|
244
|
+
name: punctuation.section.function.css
|
245
|
+
patterns:
|
246
|
+
- include: ! '#parameters'
|
247
|
+
- match: ([\w-]{1,})
|
248
|
+
name: support.function.misc.css
|
249
|
+
general:
|
250
|
+
comment: Stuff that should be everywhere
|
251
|
+
patterns:
|
252
|
+
- include: ! '#variable'
|
253
|
+
- include: ! '#comment_block'
|
254
|
+
- include: ! '#comment_line'
|
255
|
+
if:
|
256
|
+
begin: \s{0,}((@)(if)\b)
|
257
|
+
captures:
|
258
|
+
'1':
|
259
|
+
name: keyword.control.if.scss
|
260
|
+
'2':
|
261
|
+
name: punctuation.definition.keyword.css
|
262
|
+
end: (?={)
|
263
|
+
name: meta.at-rule.if.scss
|
264
|
+
patterns:
|
265
|
+
- include: ! '#logical_operators'
|
266
|
+
- include: ! '#variable'
|
267
|
+
- include: ! '#property_values'
|
268
|
+
import:
|
269
|
+
begin: \s*((@)(import)\b)
|
270
|
+
captures:
|
271
|
+
'1':
|
272
|
+
name: keyword.control.at-rule.import.css
|
273
|
+
'2':
|
274
|
+
name: punctuation.definition.keyword.css
|
275
|
+
end: \s*((?=;|\}))
|
276
|
+
name: meta.at-rule.import.css
|
277
|
+
patterns:
|
278
|
+
- include: ! '#variable'
|
279
|
+
- include: ! '#string_single'
|
280
|
+
- include: ! '#string_double'
|
281
|
+
- include: ! '#functions'
|
282
|
+
include:
|
283
|
+
begin: \s*((@)(include)\b)
|
284
|
+
captures:
|
285
|
+
'1':
|
286
|
+
name: keyword.control.at-rule.import.css
|
287
|
+
'2':
|
288
|
+
name: punctuation.definition.keyword.css
|
289
|
+
end: \s*((?=;|\}))
|
290
|
+
name: meta.at-rule.include.css
|
291
|
+
patterns:
|
292
|
+
- include: ! '#functions'
|
293
|
+
interpolation:
|
294
|
+
begin: ! '#\{'
|
295
|
+
end: \}
|
296
|
+
name: variable.interpolation.scss
|
297
|
+
patterns:
|
298
|
+
- include: ! '#property_values'
|
299
|
+
- include: ! '#variable'
|
300
|
+
logical_operators:
|
301
|
+
match: (\=\=|\!\=|\<\=|\>\=|\<|\>|not|or|and)
|
302
|
+
name: keyword.control.operator
|
303
|
+
parameters:
|
304
|
+
patterns:
|
305
|
+
- include: ! '#variable'
|
306
|
+
- include: ! '#property_values'
|
307
|
+
- include: ! '#comment_line'
|
308
|
+
- include: ! '#comment_block'
|
309
|
+
- match: ! '[^''",) \t]+'
|
310
|
+
name: variable.parameter.url.css
|
311
|
+
- match: ! ','
|
312
|
+
name: punctuation.css
|
313
|
+
property_list:
|
314
|
+
begin: \{
|
315
|
+
captures:
|
316
|
+
'0':
|
317
|
+
name: punctuation.section.property-list.css
|
318
|
+
end: \}
|
319
|
+
name: meta.property-list.css
|
320
|
+
patterns:
|
321
|
+
- include: ! '#flow_control'
|
322
|
+
- include: ! '#rules'
|
323
|
+
property_name:
|
324
|
+
comment: Reversal order is important; KEEP IT. Also when adding new properties
|
325
|
+
add them to the error checker below!
|
326
|
+
match: \b(z-index|y|x|wrap|word-wrap|word-spacing|word-break|word|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|variant|user-select|up|unicode-bidi|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-outline|text-justify|text-indent|text-height|text-emphasis|text-decoration|text-align-last|text-align|text|target-position|target-new|target-name|target|table-layout|tab-side|style-type|style-position|style-image|style|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-align|ruby|rows|rotation-point|rotation|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|pack|overhang|overflow-y|overflow-x|overflow-style|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|opacity|offset|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|min-width|min-height|min|max-width|max-height|max|marquee-style|marquee-speed|marquee-play-count|marquee-direction|marquee|marks|mark-before|mark-after|mark|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-height|line|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify|iteration-count|inline-box-align|initial-value|initial-size|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-resolution|image-orientation|image|icon|hyphens|hyphenate-resource|hyphenate-lines|hyphenate-character|hyphenate-before|hyphenate-after|hyphenate|height|header|hanging-punctuation|grid-rows|grid-columns|grid|gap|font-weight|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-group|flex|fit-position|fit|fill|family|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cursor|cue-before|cue-after|cue|crop|counter-reset|counter-increment|counter|count|content|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-profile|color|collapse|clip|clear|character|caption-side|break-inside|break-before|break-after|break|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-length|border-left-width|border-left-style|border-left-color|border-left|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|bookmark-target|bookmark-level|bookmark-label|bookmark|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-break|background-attachment|background|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-duration|animation-direction|animation-delay|animation|alignment-baseline|alignment-adjust|alignment|align-last|align|after|adjust)\b
|
327
|
+
name: support.type.property-name.css
|
328
|
+
property_name_error:
|
329
|
+
match: (?<![a-z-])(?!z-index\b|y\b|x\b|wrap\b|word-wrap\b|word-spacing\b|word-break\b|word\b|width\b|widows\b|white-space-collapse\b|white-space\b|white\b|weight\b|volume\b|voice-volume\b|voice-stress\b|voice-rate\b|voice-pitch-range\b|voice-pitch\b|voice-family\b|voice-duration\b|voice-balance\b|voice\b|visibility\b|vertical-align\b|variant\b|user-select\b|up\b|unicode-bidi\b|unicode\b|trim\b|transition-timing-function\b|transition-property\b|transition-duration\b|transition-delay\b|transition\b|transform\b|top-width\b|top-style\b|top-right-radius\b|top-left-radius\b|top-color\b|top\b|timing-function\b|text-wrap\b|text-transform\b|text-shadow\b|text-replace\b|text-outline\b|text-justify\b|text-indent\b|text-height\b|text-emphasis\b|text-decoration\b|text-align-last\b|text-align\b|text\b|target-position\b|target-new\b|target-name\b|target\b|table-layout\b|tab-side\b|style-type\b|style-position\b|style-image\b|style\b|string-set\b|stretch\b|stress\b|stacking-strategy\b|stacking-shift\b|stacking-ruby\b|stacking\b|speed\b|speech-rate\b|speech\b|speak-punctuation\b|speak-numeral\b|speak-header\b|speak\b|span\b|spacing\b|space-collapse\b|space\b|sizing\b|size-adjust\b|size\b|shadow\b|rule-width\b|rule-style\b|rule-color\b|rule\b|ruby-span\b|ruby-position\b|ruby-overhang\b|ruby-align\b|ruby\b|rows\b|rotation-point\b|rotation\b|role\b|right-width\b|right-style\b|right-color\b|right\b|richness\b|rest-before\b|rest-after\b|rest\b|resource\b|resolution\b|resize\b|reset\b|replace\b|repeat\b|rendering-intent\b|rate\b|radius\b|quotes\b|punctuation-trim\b|punctuation\b|property\b|profile\b|presentation-level\b|presentation\b|position\b|point\b|play-state\b|play-during\b|play-count\b|pitch-range\b|pitch\b|phonemes\b|pause-before\b|pause-after\b|pause\b|page-policy\b|page-break-inside\b|page-break-before\b|page-break-after\b|page\b|padding-top\b|padding-right\b|padding-left\b|padding-bottom\b|padding\b|pack\b|overhang\b|overflow-y\b|overflow-x\b|overflow-style\b|overflow\b|outline-width\b|outline-style\b|outline-offset\b|outline-color\b|outline\b|orphans\b|origin\b|orientation\b|orient\b|ordinal-group\b|opacity\b|offset\b|numeral\b|new\b|nav-up\b|nav-right\b|nav-left\b|nav-index\b|nav-down\b|nav\b|name\b|move-to\b|model\b|min-width\b|min-height\b|min\b|max-width\b|max-height\b|max\b|marquee-style\b|marquee-speed\b|marquee-play-count\b|marquee-direction\b|marquee\b|marks\b|mark-before\b|mark-after\b|mark\b|margin-top\b|margin-right\b|margin-left\b|margin-bottom\b|margin\b|list-style-type\b|list-style-position\b|list-style-image\b|list-style\b|list\b|lines\b|line-stacking-strategy\b|line-stacking-shift\b|line-stacking-ruby\b|line-stacking\b|line-height\b|line\b|level\b|letter-spacing\b|length\b|left-width\b|left-style\b|left-color\b|left\b|label\b|justify\b|iteration-count\b|inline-box-align\b|initial-value\b|initial-size\b|initial-before-align\b|initial-before-adjust\b|initial-after-align\b|initial-after-adjust\b|index\b|indent\b|increment\b|image-resolution\b|image-orientation\b|image\b|icon\b|hyphens\b|hyphenate-resource\b|hyphenate-lines\b|hyphenate-character\b|hyphenate-before\b|hyphenate-after\b|hyphenate\b|height\b|header\b|hanging-punctuation\b|grid-rows\b|grid-columns\b|grid\b|gap\b|font-weight\b|font-variant\b|font-style\b|font-stretch\b|font-size-adjust\b|font-size\b|font-family\b|font\b|float-offset\b|float\b|flex-group\b|flex\b|fit-position\b|fit\b|fill\b|family\b|empty-cells\b|emphasis\b|elevation\b|duration\b|drop-initial-value\b|drop-initial-size\b|drop-initial-before-align\b|drop-initial-before-adjust\b|drop-initial-after-align\b|drop-initial-after-adjust\b|drop\b|down\b|dominant-baseline\b|display-role\b|display-model\b|display\b|direction\b|delay\b|decoration-break\b|decoration\b|cursor\b|cue-before\b|cue-after\b|cue\b|crop\b|counter-reset\b|counter-increment\b|counter\b|count\b|content\b|columns\b|column-width\b|column-span\b|column-rule-width\b|column-rule-style\b|column-rule-color\b|column-rule\b|column-gap\b|column-fill\b|column-count\b|column-break-before\b|column-break-after\b|column\b|color-profile\b|color\b|collapse\b|clip\b|clear\b|character\b|caption-side\b|break-inside\b|break-before\b|break-after\b|break\b|box-sizing\b|box-shadow\b|box-pack\b|box-orient\b|box-ordinal-group\b|box-lines\b|box-flex-group\b|box-flex\b|box-direction\b|box-decoration-break\b|box-align\b|box\b|bottom-width\b|bottom-style\b|bottom-right-radius\b|bottom-left-radius\b|bottom-color\b|bottom\b|border-width\b|border-top-width\b|border-top-style\b|border-top-right-radius\b|border-top-left-radius\b|border-top-color\b|border-top\b|border-style\b|border-spacing\b|border-right-width\b|border-right-style\b|border-right-color\b|border-right\b|border-radius\b|border-length\b|border-left-width\b|border-left-style\b|border-left-color\b|border-left\b|border-image\b|border-color\b|border-collapse\b|border-bottom-width\b|border-bottom-style\b|border-bottom-right-radius\b|border-bottom-left-radius\b|border-bottom-color\b|border-bottom\b|border\b|bookmark-target\b|bookmark-level\b|bookmark-label\b|bookmark\b|binding\b|bidi\b|before\b|baseline-shift\b|baseline\b|balance\b|background-size\b|background-repeat\b|background-position\b|background-origin\b|background-image\b|background-color\b|background-clip\b|background-break\b|background-attachment\b|background\b|azimuth\b|attachment\b|appearance\b|animation-timing-function\b|animation-play-state\b|animation-name\b|animation-iteration-count\b|animation-duration\b|animation-direction\b|animation-delay\b|animation\b|alignment-baseline\b|alignment-adjust\b|alignment\b|align-last\b|align\b|after\b|adjust\b)[a-z\-\_]+
|
330
|
+
name: invalid.illegal
|
331
|
+
property_names:
|
332
|
+
patterns:
|
333
|
+
- include: ! '#property_name'
|
334
|
+
- include: ! '#property_name_error'
|
335
|
+
property_values:
|
336
|
+
comment: Stuff that should only be available on values.
|
337
|
+
patterns:
|
338
|
+
- include: ! '#string_single'
|
339
|
+
- include: ! '#string_double'
|
340
|
+
- include: ! '#constant_functions'
|
341
|
+
- include: ! '#constant_sass_functions'
|
342
|
+
- include: ! '#constant_hex'
|
343
|
+
- include: ! '#constant_rgb'
|
344
|
+
- include: ! '#constant_rgb_percentage'
|
345
|
+
- include: ! '#constant_important'
|
346
|
+
- include: ! '#constant_unit'
|
347
|
+
- include: ! '#constant_property_value'
|
348
|
+
- include: ! '#constant_number'
|
349
|
+
- include: ! '#constant_font'
|
350
|
+
- include: ! '#constant_color'
|
351
|
+
- include: ! '#constant_depracated_color'
|
352
|
+
- include: ! '#constant_mathematical_symbols'
|
353
|
+
return:
|
354
|
+
begin: \s*((@)(return)\b)
|
355
|
+
captures:
|
356
|
+
'1':
|
357
|
+
name: keyword.control.return.scss
|
358
|
+
'2':
|
359
|
+
name: punctuation.definition.keyword.css
|
360
|
+
end: \s*((?=;))
|
361
|
+
name: meta.at-rule.return.scss
|
362
|
+
patterns:
|
363
|
+
- include: ! '#variable'
|
364
|
+
- include: ! '#property_values'
|
365
|
+
rules:
|
366
|
+
patterns:
|
367
|
+
- include: ! '#general'
|
368
|
+
- include: ! '#extend'
|
369
|
+
- include: ! '#include'
|
370
|
+
- include: ! '#selectors'
|
371
|
+
- begin: (?<![-a-z])(?=[-a-z])
|
372
|
+
end: $|(?![-a-z])
|
373
|
+
name: meta.property-name.css
|
374
|
+
patterns:
|
375
|
+
- include: ! '#property_names'
|
376
|
+
- include: ! '#include'
|
377
|
+
- begin: (:)\s{0,}(?!(\s{0,}{))
|
378
|
+
beginCaptures:
|
379
|
+
'1':
|
380
|
+
name: punctuation.separator.key-value.css
|
381
|
+
comment: ! 'Kuroir: fixed nested elements for sass.'
|
382
|
+
end: \s*(;|(?=\}))
|
383
|
+
endCaptures:
|
384
|
+
'1':
|
385
|
+
name: punctuation.terminator.rule.css
|
386
|
+
name: meta.property-value.css
|
387
|
+
patterns:
|
388
|
+
- include: ! '#general'
|
389
|
+
- include: ! '#property_values'
|
390
|
+
selector_attribute:
|
391
|
+
captures:
|
392
|
+
'1':
|
393
|
+
name: punctuation.definition.entity.css
|
394
|
+
'2':
|
395
|
+
name: entity.other.attribute-name.attribute.css
|
396
|
+
'3':
|
397
|
+
name: punctuation.separator.operator.css
|
398
|
+
'4':
|
399
|
+
name: string.unquoted.attribute-value.css
|
400
|
+
'5':
|
401
|
+
name: string.quoted.double.attribute-value.css
|
402
|
+
'6':
|
403
|
+
name: punctuation.definition.string.begin.css
|
404
|
+
'7':
|
405
|
+
name: punctuation.definition.string.end.css
|
406
|
+
match: (?i)(\[)\s*(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)(?:\s*([~|^$*]?=)\s*(?:(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)|((?>(['"])(?:[^\\]|\\.)*?(\6)))))?\s*(\])
|
407
|
+
name: meta.attribute-selector.css
|
408
|
+
selector_class:
|
409
|
+
captures:
|
410
|
+
'1':
|
411
|
+
name: punctuation.definition.entity.css
|
412
|
+
match: (\.)[a-zA-Z0-9_-]+
|
413
|
+
name: entity.other.attribute-name.class.css
|
414
|
+
selector_entities:
|
415
|
+
match: \b(a|abbr|address|area|article|aside|audio|b|base|bdo|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|source|span|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|ul|var|video)\b
|
416
|
+
name: entity.name.tag.css
|
417
|
+
selector_id:
|
418
|
+
captures:
|
419
|
+
'1':
|
420
|
+
name: punctuationctuation.definition.entity.css
|
421
|
+
match: (#)[a-zA-Z][a-zA-Z0-9_-]*
|
422
|
+
name: entity.other.attribute-name.id.css
|
423
|
+
selector_pseudo_class:
|
424
|
+
captures:
|
425
|
+
'1':
|
426
|
+
name: punctuation.definition.entity.css
|
427
|
+
match: (:)\b(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-child()|nth-last-child()|nth-of-type()|nth-last-of-type()|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)\b
|
428
|
+
name: entity.other.attribute-name.pseudo-class.css
|
429
|
+
selector_pseudo_element:
|
430
|
+
captures:
|
431
|
+
'1':
|
432
|
+
name: punctuation.definition.entity.css
|
433
|
+
match: (:+)\b(after|before|first-letter|first-line|selection)\b
|
434
|
+
name: entity.other.attribute-name.pseudo-element.css
|
435
|
+
selectors:
|
436
|
+
comment: Stuff for Selectors.
|
437
|
+
patterns:
|
438
|
+
- include: ! '#selector_entities'
|
439
|
+
- include: ! '#selector_class'
|
440
|
+
- include: ! '#selector_id'
|
441
|
+
- include: ! '#selector_pseudo_class'
|
442
|
+
- include: ! '#tag_wildcard'
|
443
|
+
- include: ! '#tag_parent_reference'
|
444
|
+
- include: ! '#selector_pseudo_element'
|
445
|
+
- include: ! '#selector_attribute'
|
446
|
+
string_double:
|
447
|
+
begin: ! '"'
|
448
|
+
beginCaptures:
|
449
|
+
'0':
|
450
|
+
name: punctuation.definition.string.begin.css
|
451
|
+
end: ! '"'
|
452
|
+
endCaptures:
|
453
|
+
'0':
|
454
|
+
name: punctuation.definition.string.end.css
|
455
|
+
name: string.quoted.double.css
|
456
|
+
patterns:
|
457
|
+
- match: \\.
|
458
|
+
name: constant.character.escape.css
|
459
|
+
string_single:
|
460
|
+
begin: ! ''''
|
461
|
+
beginCaptures:
|
462
|
+
'0':
|
463
|
+
name: punctuation.definition.string.begin.css
|
464
|
+
end: ! ''''
|
465
|
+
endCaptures:
|
466
|
+
'0':
|
467
|
+
name: punctuation.definition.string.end.css
|
468
|
+
name: string.quoted.single.css
|
469
|
+
patterns:
|
470
|
+
- match: \\.
|
471
|
+
name: constant.character.escape.css
|
472
|
+
tag_parent_reference:
|
473
|
+
match: \&
|
474
|
+
name: entity.name.tag.reference.css
|
475
|
+
tag_wildcard:
|
476
|
+
match: \*
|
477
|
+
name: entity.name.tag.wildcard.css
|
478
|
+
variable:
|
479
|
+
patterns:
|
480
|
+
- include: ! '#variables'
|
481
|
+
- include: ! '#interpolation'
|
482
|
+
variable_setting:
|
483
|
+
begin: (\$[\w\-]+)\s{0,}(:)
|
484
|
+
captures:
|
485
|
+
'1':
|
486
|
+
name: variable
|
487
|
+
'2':
|
488
|
+
name: punctuation
|
489
|
+
end: ;
|
490
|
+
name: meta.set.variable
|
491
|
+
patterns:
|
492
|
+
- include: ! '#property_values'
|
493
|
+
- include: ! '#variable'
|
494
|
+
variables:
|
495
|
+
captures:
|
496
|
+
'1':
|
497
|
+
name: variable.scss
|
498
|
+
match: (\s*)(\$[a-zA-Z0-9_-]+)
|
499
|
+
name: variable.scss
|
500
|
+
warn:
|
501
|
+
begin: \s*((@)(warn|debug)\b)
|
502
|
+
captures:
|
503
|
+
'1':
|
504
|
+
name: keyword.control.warn.scss
|
505
|
+
'2':
|
506
|
+
name: punctuation.definition.keyword.css
|
507
|
+
end: (?=\;)
|
508
|
+
name: meta.at-rule.warn.scss
|
509
|
+
patterns:
|
510
|
+
- include: ! '#variable'
|
511
|
+
- include: ! '#string_double'
|
512
|
+
- include: ! '#string_single'
|
513
|
+
while:
|
514
|
+
begin: \s{0,}((@)(while)\b)
|
515
|
+
captures:
|
516
|
+
'1':
|
517
|
+
name: keyword.control.while.scss
|
518
|
+
'2':
|
519
|
+
name: punctuation.definition.keyword.css
|
520
|
+
end: (?={)
|
521
|
+
name: meta.at-rule.while.scss
|
522
|
+
patterns:
|
523
|
+
- include: ! '#logical_operators'
|
524
|
+
- include: ! '#variable'
|
525
|
+
- include: ! '#property_values'
|
526
|
+
- include: $self
|
527
|
+
scopeName: source.scss
|
528
|
+
uuid: 3D9ADE5E-ADC5-460F-97B3-B61EF5A18273
|
@@ -0,0 +1,147 @@
|
|
1
|
+
---
|
2
|
+
name: Setext
|
3
|
+
fileTypes:
|
4
|
+
- etx
|
5
|
+
- etx.txt
|
6
|
+
firstLineMatch: setext
|
7
|
+
scopeName: text.setext
|
8
|
+
repository:
|
9
|
+
underline:
|
10
|
+
name: markup.underline.setext
|
11
|
+
captures:
|
12
|
+
"1":
|
13
|
+
name: punctuation.definition.underline.setext
|
14
|
+
"2":
|
15
|
+
name: punctuation.definition.underline.setext
|
16
|
+
"3":
|
17
|
+
name: punctuation.definition.underline.setext
|
18
|
+
"4":
|
19
|
+
name: punctuation.definition.underline.setext
|
20
|
+
match: \b(_)\w+(?<!_)(_)\b|\b(_).+(?<!_)(_)\b
|
21
|
+
hotword:
|
22
|
+
name: meta.link.reference.setext
|
23
|
+
captures:
|
24
|
+
"0":
|
25
|
+
name: constant.other.reference.link.setext
|
26
|
+
"1":
|
27
|
+
name: punctuation.definition.reference.setext
|
28
|
+
match: \b[-\w.]*\w(?<!_)(_)\b
|
29
|
+
inline:
|
30
|
+
patterns:
|
31
|
+
- include: "#italic"
|
32
|
+
- include: "#bold"
|
33
|
+
- include: "#underline"
|
34
|
+
- include: "#hotword"
|
35
|
+
- include: "#link"
|
36
|
+
- include: "#doc_separator"
|
37
|
+
bold:
|
38
|
+
name: markup.bold.setext
|
39
|
+
captures:
|
40
|
+
"1":
|
41
|
+
name: punctuation.definition.bold.setext
|
42
|
+
"2":
|
43
|
+
name: punctuation.definition.bold.setext
|
44
|
+
match: ([*]{2}).+?([*]{2})
|
45
|
+
link:
|
46
|
+
captures:
|
47
|
+
"1":
|
48
|
+
name: punctuation.definition.link.setext
|
49
|
+
"2":
|
50
|
+
name: markup.underline.link.setext
|
51
|
+
"3":
|
52
|
+
name: punctuation.definition.link.setext
|
53
|
+
match: (<)((?i:mailto|https?|ftp|news)://.*?)(>)
|
54
|
+
comment: Not actually part of setext, added for Tidbits.
|
55
|
+
doc_separator:
|
56
|
+
name: meta.separator.document.setext
|
57
|
+
captures:
|
58
|
+
"1":
|
59
|
+
name: punctuation.definition.separator.setext
|
60
|
+
match: \s*(\$\$)$\n?
|
61
|
+
italic:
|
62
|
+
name: markup.italic.setext
|
63
|
+
captures:
|
64
|
+
"1":
|
65
|
+
name: punctuation.definition.italic.setext
|
66
|
+
"2":
|
67
|
+
name: punctuation.definition.italic.setext
|
68
|
+
match: (~)\w+(~)
|
69
|
+
uuid: FB227CE6-DC4C-4632-BCA3-965AE0D8E419
|
70
|
+
patterns:
|
71
|
+
- include: "#inline"
|
72
|
+
- name: meta.header.setext
|
73
|
+
captures:
|
74
|
+
"1":
|
75
|
+
name: keyword.other.setext
|
76
|
+
"2":
|
77
|
+
name: punctuation.separator.key-value.setext
|
78
|
+
"3":
|
79
|
+
name: string.unquoted.setext
|
80
|
+
match: ^(Subject|Date|From)(:) (.+)
|
81
|
+
- name: markup.heading.1.setext
|
82
|
+
match: ^={3,}\s*$\n?
|
83
|
+
- name: markup.heading.2.setext
|
84
|
+
match: ^-{3,}\s*$\n?
|
85
|
+
- name: markup.quote.setext
|
86
|
+
captures:
|
87
|
+
"1":
|
88
|
+
name: punctuation.definition.quote.setext
|
89
|
+
begin: ^(>)\s
|
90
|
+
end: $
|
91
|
+
patterns:
|
92
|
+
- include: "#inline"
|
93
|
+
- name: markup.other.bullet.setext
|
94
|
+
captures:
|
95
|
+
"1":
|
96
|
+
name: punctuation.definition.bullet.setext
|
97
|
+
begin: ^([*])\s
|
98
|
+
end: $
|
99
|
+
patterns:
|
100
|
+
- include: "#inline"
|
101
|
+
- name: markup.raw.setext
|
102
|
+
endCaptures:
|
103
|
+
"0":
|
104
|
+
name: punctuation.definition.raw.end.setext
|
105
|
+
begin: "`"
|
106
|
+
beginCaptures:
|
107
|
+
"0":
|
108
|
+
name: punctuation.definition.raw.begin.setext
|
109
|
+
end: "`"
|
110
|
+
- name: meta.note.def.setext
|
111
|
+
captures:
|
112
|
+
"7":
|
113
|
+
name: punctuation.definition.string.end.setext
|
114
|
+
"1":
|
115
|
+
name: punctuation.definition.note.setext
|
116
|
+
"2":
|
117
|
+
name: constant.other.reference.note.setext
|
118
|
+
"3":
|
119
|
+
name: punctuation.definition.reference.setext
|
120
|
+
"4":
|
121
|
+
name: string.quoted.other.note.setext
|
122
|
+
"5":
|
123
|
+
name: punctuation.definition.string.begin.setext
|
124
|
+
match: ^(\.{2}) ((_)[-\w.]+) +((\()(.+(\))|.+))$
|
125
|
+
- name: meta.link.reference.def.setext
|
126
|
+
captures:
|
127
|
+
"1":
|
128
|
+
name: punctuation.definition.reference.setext
|
129
|
+
"2":
|
130
|
+
name: constant.other.reference.link.setext
|
131
|
+
"3":
|
132
|
+
name: punctuation.definition.reference.setext
|
133
|
+
"4":
|
134
|
+
name: markup.underline.link.setext
|
135
|
+
match: ^(\.{2}) ((_)[-\w.]+) +(.{2,})$
|
136
|
+
- name: comment.line.double-dot.setext
|
137
|
+
captures:
|
138
|
+
"1":
|
139
|
+
name: punctuation.definition.comment.setext
|
140
|
+
match: ^(\.{2}) (?![.]).+$\n?
|
141
|
+
- name: comment.block.logical_end_of_text.setext
|
142
|
+
captures:
|
143
|
+
"1":
|
144
|
+
name: punctuation.definition.comment.setext
|
145
|
+
begin: ^(\.{2})$
|
146
|
+
end: not(?<=possible)
|
147
|
+
keyEquivalent: ^~S
|