textpow 0.10.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. data/.travis.yml +7 -0
  2. data/Gemfile +10 -0
  3. data/Gemfile.lock +30 -0
  4. data/{History.txt → History.rdoc} +10 -0
  5. data/{README.txt → MIT-LICENSE.txt} +0 -30
  6. data/README.rdoc +82 -0
  7. data/Rakefile +42 -49
  8. data/bin/plist2syntax +0 -0
  9. data/bin/plist2yaml +0 -0
  10. data/examples/benchmark_js.rb +13 -0
  11. data/examples/jquery.js +9046 -0
  12. data/lib/textpow.rb +43 -3
  13. data/lib/textpow/debug_processor.rb +35 -35
  14. data/lib/textpow/recording_processor.rb +13 -0
  15. data/lib/textpow/score_manager.rb +60 -60
  16. data/lib/textpow/syntax.rb +303 -262
  17. data/lib/textpow/syntax/broken/markdown.syntax +519 -0
  18. data/lib/textpow/syntax/broken/php.syntax +1253 -0
  19. data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
  20. data/lib/textpow/syntax/old/YAML.yaml +160 -0
  21. data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
  22. data/lib/textpow/syntax/source.actionscript.syntax +97 -0
  23. data/lib/textpow/syntax/source.active4d.library.syntax +21 -0
  24. data/lib/textpow/syntax/source.active4d.syntax +276 -0
  25. data/lib/textpow/syntax/source.ada.syntax +33 -0
  26. data/lib/textpow/syntax/source.antlr.syntax +151 -0
  27. data/lib/textpow/syntax/source.apache-config.mod_perl.syntax +50 -0
  28. data/lib/textpow/syntax/source.apache-config.syntax +191 -0
  29. data/lib/textpow/syntax/source.applescript.syntax +384 -0
  30. data/lib/textpow/syntax/source.asp.syntax +70 -0
  31. data/lib/textpow/syntax/source.asp.vb.net.syntax +129 -0
  32. data/lib/textpow/syntax/source.c++.qt.syntax +26 -0
  33. data/lib/textpow/syntax/source.c++.syntax +186 -0
  34. data/lib/textpow/syntax/source.c-sharp.syntax +59 -0
  35. data/lib/textpow/syntax/source.c.ragel.syntax +201 -0
  36. data/lib/textpow/syntax/source.c.syntax +414 -0
  37. data/lib/textpow/syntax/source.camlp4.ocaml.syntax +36 -0
  38. data/lib/textpow/syntax/source.cm.syntax +32 -0
  39. data/lib/textpow/syntax/source.coffee.syntax +216 -0
  40. data/lib/textpow/syntax/source.context-free.syntax +176 -0
  41. data/lib/textpow/syntax/source.css.beta.syntax +1925 -0
  42. data/lib/textpow/syntax/source.css.syntax +195 -0
  43. data/lib/textpow/syntax/source.d.syntax +142 -0
  44. data/lib/textpow/syntax/source.diff.syntax +81 -0
  45. data/lib/textpow/syntax/source.dot.syntax +47 -0
  46. data/lib/textpow/syntax/source.dylan.syntax +62 -0
  47. data/lib/textpow/syntax/source.eiffel.syntax +78 -0
  48. data/lib/textpow/syntax/source.erlang.syntax +922 -0
  49. data/lib/textpow/syntax/source.fortran.syntax +141 -0
  50. data/lib/textpow/syntax/source.fscript.syntax +80 -0
  51. data/lib/textpow/syntax/source.fxscript.syntax +142 -0
  52. data/lib/textpow/syntax/source.gri.syntax +83 -0
  53. data/lib/textpow/syntax/source.groovy.groovy.syntax +191 -0
  54. data/lib/textpow/syntax/source.haskell.syntax +88 -0
  55. data/lib/textpow/syntax/source.icalendar.syntax +32 -0
  56. data/lib/textpow/syntax/source.inform.syntax +48 -0
  57. data/lib/textpow/syntax/source.ini.syntax +55 -0
  58. data/lib/textpow/syntax/source.io.syntax +81 -0
  59. data/lib/textpow/syntax/source.java-props.syntax +20 -0
  60. data/lib/textpow/syntax/source.java.syntax +211 -0
  61. data/lib/textpow/syntax/source.js.greasemonkey.syntax +34 -0
  62. data/lib/textpow/syntax/source.js.jquery.syntax +114 -0
  63. data/lib/textpow/syntax/source.js.mootools.syntax +572 -0
  64. data/lib/textpow/syntax/source.js.prototype.bracketed.syntax +140 -0
  65. data/lib/textpow/syntax/source.js.prototype.syntax +72 -0
  66. data/lib/textpow/syntax/source.js.syntax +256 -0
  67. data/lib/textpow/syntax/source.js.yui.syntax +176 -0
  68. data/lib/textpow/syntax/source.json.syntax +136 -0
  69. data/lib/textpow/syntax/source.lex.syntax +219 -0
  70. data/lib/textpow/syntax/source.lighttpd-config.syntax +54 -0
  71. data/lib/textpow/syntax/source.lilypond.syntax +492 -0
  72. data/lib/textpow/syntax/source.lisp.syntax +61 -0
  73. data/lib/textpow/syntax/source.logo.syntax +29 -0
  74. data/lib/textpow/syntax/source.logtalk.syntax +152 -0
  75. data/lib/textpow/syntax/source.lua.syntax +86 -0
  76. data/lib/textpow/syntax/source.makefile.syntax +36 -0
  77. data/lib/textpow/syntax/source.matlab.syntax +142 -0
  78. data/lib/textpow/syntax/source.mel.syntax +92 -0
  79. data/lib/textpow/syntax/source.mips.syntax +66 -0
  80. data/lib/textpow/syntax/source.ml.syntax +121 -0
  81. data/lib/textpow/syntax/source.modula-3.syntax +47 -0
  82. data/lib/textpow/syntax/source.nant-build.syntax +53 -0
  83. data/lib/textpow/syntax/source.objc++.syntax +18 -0
  84. data/lib/textpow/syntax/source.objc.syntax +233 -0
  85. data/lib/textpow/syntax/source.ocaml.syntax +764 -0
  86. data/lib/textpow/syntax/source.ocamllex.syntax +167 -0
  87. data/lib/textpow/syntax/source.ocamlyacc.syntax +184 -0
  88. data/lib/textpow/syntax/source.open-gl.syntax +14 -0
  89. data/lib/textpow/syntax/source.pascal.syntax +77 -0
  90. data/lib/textpow/syntax/source.pascal.vectorscript.syntax +57 -0
  91. data/lib/textpow/syntax/source.perl.syntax +1113 -0
  92. data/lib/textpow/syntax/source.php.cake.syntax +55 -0
  93. data/lib/textpow/syntax/source.plist.tm-grammar.syntax +708 -0
  94. data/lib/textpow/syntax/source.postscript.syntax +114 -0
  95. data/lib/textpow/syntax/source.processing.syntax +106 -0
  96. data/lib/textpow/syntax/source.prolog.syntax +40 -0
  97. data/lib/textpow/syntax/source.python.django.syntax +21 -0
  98. data/lib/textpow/syntax/source.python.syntax +868 -0
  99. data/lib/textpow/syntax/source.qmake.syntax +114 -0
  100. data/lib/textpow/syntax/source.quake-config.syntax +32 -0
  101. data/lib/textpow/syntax/source.r-console.syntax +16 -0
  102. data/lib/textpow/syntax/source.r.syntax +81 -0
  103. data/lib/textpow/syntax/source.regexp.oniguruma.syntax +107 -0
  104. data/lib/textpow/syntax/source.regexp.python.syntax +109 -0
  105. data/lib/textpow/syntax/source.regexp.syntax +50 -0
  106. data/lib/textpow/syntax/source.remind.syntax +253 -0
  107. data/lib/textpow/syntax/source.rez.syntax +80 -0
  108. data/lib/textpow/syntax/source.ruby.experimental.syntax +145 -0
  109. data/lib/textpow/syntax/source.ruby.rails.syntax +88 -0
  110. data/lib/textpow/syntax/source.ruby.syntax +1035 -0
  111. data/lib/textpow/syntax/source.s5.syntax +69 -0
  112. data/lib/textpow/syntax/source.sass.syntax +45 -0
  113. data/lib/textpow/syntax/source.scheme.syntax +347 -0
  114. data/lib/textpow/syntax/source.scilab.syntax +41 -0
  115. data/lib/textpow/syntax/source.scss.syntax +527 -0
  116. data/lib/textpow/syntax/source.shell.syntax +384 -0
  117. data/lib/textpow/syntax/source.slate.syntax +149 -0
  118. data/lib/textpow/syntax/source.smarty.syntax +63 -0
  119. data/lib/textpow/syntax/source.sql.ruby.syntax +18 -0
  120. data/lib/textpow/syntax/source.sql.syntax +237 -0
  121. data/lib/textpow/syntax/source.ssh-config.syntax +33 -0
  122. data/lib/textpow/syntax/source.strings.syntax +39 -0
  123. data/lib/textpow/syntax/source.swig.syntax +57 -0
  124. data/lib/textpow/syntax/source.tcl.macports.syntax +163 -0
  125. data/lib/textpow/syntax/source.tcl.syntax +152 -0
  126. data/lib/textpow/syntax/source.yaml.syntax +160 -0
  127. data/lib/textpow/syntax/text.active4d-ini.syntax +50 -0
  128. data/lib/textpow/syntax/text.bbcode.syntax +287 -0
  129. data/lib/textpow/syntax/text.bibtex.syntax +151 -0
  130. data/lib/textpow/syntax/text.blog.html.syntax +41 -0
  131. data/lib/textpow/syntax/text.blog.markdown.syntax +42 -0
  132. data/lib/textpow/syntax/text.blog.syntax +27 -0
  133. data/lib/textpow/syntax/text.blog.textile.syntax +27 -0
  134. data/lib/textpow/syntax/text.gtdalt.syntax +143 -0
  135. data/lib/textpow/syntax/text.haml.syntax +88 -0
  136. data/lib/textpow/syntax/text.html.asp.net.syntax +424 -0
  137. data/lib/textpow/syntax/text.html.asp.syntax +27 -0
  138. data/lib/textpow/syntax/text.html.basic.syntax +362 -0
  139. data/lib/textpow/syntax/text.html.cfm.syntax +119 -0
  140. data/lib/textpow/syntax/text.html.django.syntax +36 -0
  141. data/lib/textpow/syntax/text.html.dokuwiki.syntax +204 -0
  142. data/lib/textpow/syntax/text.html.doxygen.syntax +43 -0
  143. data/lib/textpow/syntax/text.html.markdown.multimarkdown.syntax +39 -0
  144. data/lib/textpow/syntax/text.html.mason.syntax +119 -0
  145. data/lib/textpow/syntax/text.html.mediawiki.syntax +567 -0
  146. data/lib/textpow/syntax/text.html.mt.syntax +162 -0
  147. data/lib/textpow/syntax/text.html.ruby.syntax +40 -0
  148. data/lib/textpow/syntax/text.html.strict.active4d.syntax +311 -0
  149. data/lib/textpow/syntax/text.html.tcl.syntax +26 -0
  150. data/lib/textpow/syntax/text.html.textile.syntax +215 -0
  151. data/lib/textpow/syntax/text.html.tt.syntax +121 -0
  152. data/lib/textpow/syntax/text.html.twiki.syntax +241 -0
  153. data/lib/textpow/syntax/text.html.xhtml.1-strict.syntax +4027 -0
  154. data/lib/textpow/syntax/text.log.latex.syntax +50 -0
  155. data/lib/textpow/syntax/text.mail.markdown.syntax +118 -0
  156. data/lib/textpow/syntax/text.man.syntax +17 -0
  157. data/lib/textpow/syntax/text.moinmoin.syntax +189 -0
  158. data/lib/textpow/syntax/text.plain.gtd.syntax +22 -0
  159. data/lib/textpow/syntax/text.plain.release-notes.syntax +46 -0
  160. data/lib/textpow/syntax/text.plain.syntax +32 -0
  161. data/lib/textpow/syntax/text.plist.syntax +635 -0
  162. data/lib/textpow/syntax/text.pmwiki.syntax +113 -0
  163. data/lib/textpow/syntax/text.restructuredtext.syntax +250 -0
  164. data/lib/textpow/syntax/text.setext.syntax +147 -0
  165. data/lib/textpow/syntax/text.subversion-commit.syntax +36 -0
  166. data/lib/textpow/syntax/text.tabular.csv.syntax +68 -0
  167. data/lib/textpow/syntax/text.tabular.tsv.syntax +50 -0
  168. data/lib/textpow/syntax/text.tex.latex.beamer.syntax +41 -0
  169. data/lib/textpow/syntax/text.tex.latex.haskell.syntax +24 -0
  170. data/lib/textpow/syntax/text.tex.latex.memoir.syntax +64 -0
  171. data/lib/textpow/syntax/text.tex.latex.rd.syntax +91 -0
  172. data/lib/textpow/syntax/text.tex.latex.sweave.syntax +84 -0
  173. data/lib/textpow/syntax/text.tex.latex.syntax +566 -0
  174. data/lib/textpow/syntax/text.tex.math.syntax +49 -0
  175. data/lib/textpow/syntax/text.tex.syntax +86 -0
  176. data/lib/textpow/syntax/text.txt2tags.syntax +79 -0
  177. data/lib/textpow/syntax/text.xml.apple-dist.syntax +77 -0
  178. data/lib/textpow/syntax/text.xml.strict.syntax +92 -0
  179. data/lib/textpow/syntax/text.xml.syntax +180 -0
  180. data/lib/textpow/syntax/text.xml.xsl.syntax +60 -0
  181. data/lib/textpow/version.rb +3 -0
  182. data/spec/fixtures/objeck.plist +107 -0
  183. data/spec/fixtures/utf8.txt +1 -0
  184. data/spec/spec_helper.rb +2 -0
  185. data/spec/textpow/score_manager_spec.rb +20 -0
  186. data/spec/textpow/syntax_files_spec.rb +26 -0
  187. data/spec/textpow/syntax_spec.rb +225 -0
  188. data/spec/textpow_spec.rb +57 -0
  189. data/textpow.gemspec +19 -0
  190. metadata +246 -68
  191. data/Manifest.txt +0 -13
  192. data/mm/manual.mm +0 -266
  193. data/test/test_textpow.rb +0 -25
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: Scilab
3
+ fileTypes:
4
+ - sce
5
+ - sci
6
+ - tst
7
+ - dem
8
+ scopeName: source.scilab
9
+ uuid: 14374AA3-A329-4623-8DFA-1ACC2CE222B9
10
+ foldingStartMarker: ^(?!.*//.*).*\b(if|while|for|function|select)\b
11
+ patterns:
12
+ - name: comment.line.double-slash.scilab
13
+ begin: //
14
+ end: $\n?
15
+ - name: constant.numeric.scilab
16
+ match: \b(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?\b
17
+ - name: support.constant.scilab
18
+ match: (%inf|%i|%pi|%eps|%e|%nan|%s|%t|%f)\b
19
+ - name: string.quoted.double.scilab
20
+ begin: "\""
21
+ end: "\"(?!\")"
22
+ patterns:
23
+ - name: constant.character.escape.scilab
24
+ match: "''|\"\""
25
+ - name: string.quoted.single.scilab
26
+ begin: (?<![\w\]\)])'
27
+ end: "'(?!')"
28
+ patterns:
29
+ - name: constant.character.escape.scilab
30
+ match: "''|\"\""
31
+ - captures:
32
+ "1":
33
+ name: keyword.control.scilab
34
+ "2":
35
+ name: entity.name.function.scilab
36
+ match: \b(function)\s+(?:[^=]+=\s*)?(\w+)(?:\s*\(.*\))?
37
+ - name: keyword.control.scilab
38
+ match: \b(if|then|else|elseif|while|for|function|end|endfunction|return|select|case|break|global)\b
39
+ - name: punctuation.separator.continuation.scilab
40
+ match: \.\.\.\s*$
41
+ foldingStopMarker: \b(endfunction|end)\b
@@ -0,0 +1,527 @@
1
+ ---
2
+ scopeName: source.scss
3
+ name: SCSS
4
+ keyEquivalent: ^~S
5
+ comment: Complete Rewrite of the SCSS Grammar by Mario "Kuroir" Ricalde (http://kuroir.com)
6
+ repository:
7
+ string_single:
8
+ name: string.quoted.single.css
9
+ begin: "'"
10
+ endCaptures:
11
+ "0":
12
+ name: punctuation.definition.string.end.css
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
+ begin: "\""
23
+ endCaptures:
24
+ "0":
25
+ name: punctuation.definition.string.end.css
26
+ beginCaptures:
27
+ "0":
28
+ name: punctuation.definition.string.begin.css
29
+ end: "\""
30
+ patterns:
31
+ - name: constant.character.escape.css
32
+ match: \\.
33
+ constant_unit:
34
+ name: keyword.other.unit.css
35
+ match: (?<=[\d])(px|pt|cm|mm|in|em|ex|pc|deg)\b|%
36
+ constant_mathematical_symbols:
37
+ name: support.constant.mathematical-symbols.css
38
+ match: (\b(\+|-|\*|/)\b)
39
+ constant_functions:
40
+ begin: ([\w-]{1,})\s*(\()
41
+ endCaptures:
42
+ "1":
43
+ name: punctuation.section.function.css
44
+ beginCaptures:
45
+ "1":
46
+ name: support.function.misc.css
47
+ "2":
48
+ name: punctuation.section.function.css
49
+ end: (\))
50
+ patterns:
51
+ - include: "#parameters"
52
+ comment_line:
53
+ name: comment.line.scss
54
+ comment: Revamped
55
+ begin: (\s{0,})//
56
+ end: $(\s{0,})
57
+ selector_entities:
58
+ name: entity.name.tag.css
59
+ 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
60
+ property_values:
61
+ comment: Stuff that should only be available on values.
62
+ patterns:
63
+ - include: "#string_single"
64
+ - include: "#string_double"
65
+ - include: "#constant_functions"
66
+ - include: "#constant_sass_functions"
67
+ - include: "#constant_hex"
68
+ - include: "#constant_rgb"
69
+ - include: "#constant_rgb_percentage"
70
+ - include: "#constant_important"
71
+ - include: "#constant_unit"
72
+ - include: "#constant_property_value"
73
+ - include: "#constant_number"
74
+ - include: "#constant_font"
75
+ - include: "#constant_color"
76
+ - include: "#constant_depracated_color"
77
+ - include: "#constant_mathematical_symbols"
78
+ property_list:
79
+ name: meta.property-list.css
80
+ begin: \{
81
+ captures:
82
+ "0":
83
+ name: punctuation.section.property-list.css
84
+ end: \}
85
+ patterns:
86
+ - include: "#flow_control"
87
+ - include: "#rules"
88
+ selectors:
89
+ comment: Stuff for Selectors.
90
+ patterns:
91
+ - include: "#selector_entities"
92
+ - include: "#selector_class"
93
+ - include: "#selector_id"
94
+ - include: "#selector_pseudo_class"
95
+ - include: "#tag_wildcard"
96
+ - include: "#tag_parent_reference"
97
+ - include: "#selector_pseudo_element"
98
+ - include: "#selector_attribute"
99
+ constant_hex:
100
+ name: constant.other.color.rgb-value.css
101
+ captures:
102
+ "1":
103
+ name: punctuation.definition.constant.css
104
+ match: (#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b
105
+ constant_depracated_color:
106
+ name: invalid.deprecated.color.w3c-non-standard-color-name.css
107
+ comment: "These colours are mostly recognised but will not validate. ref: http://www.w3schools.com/css/css_colornames.asp"
108
+ 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
109
+ variables:
110
+ name: variable.scss
111
+ captures:
112
+ "1":
113
+ name: variable.scss
114
+ match: (\s*)(\$[a-zA-Z0-9_-]+)
115
+ rules:
116
+ patterns:
117
+ - include: "#general"
118
+ - include: "#extend"
119
+ - include: "#include"
120
+ - include: "#selectors"
121
+ - name: meta.property-name.css
122
+ begin: (?<![-a-z])(?=[-a-z])
123
+ end: $|(?![-a-z])
124
+ patterns:
125
+ - include: "#property_names"
126
+ - include: "#include"
127
+ - name: meta.property-value.css
128
+ comment: "Kuroir: fixed nested elements for sass."
129
+ begin: (:)\s{0,}(?!(\s{0,}{))
130
+ endCaptures:
131
+ "1":
132
+ name: punctuation.terminator.rule.css
133
+ beginCaptures:
134
+ "1":
135
+ name: punctuation.separator.key-value.css
136
+ end: \s*(;|(?=\}))
137
+ patterns:
138
+ - include: "#general"
139
+ - include: "#property_values"
140
+ parameters:
141
+ patterns:
142
+ - include: "#variable"
143
+ - include: "#property_values"
144
+ - include: "#comment_line"
145
+ - include: "#comment_block"
146
+ - name: variable.parameter.url.css
147
+ match: "[^'\",) \\t]+"
148
+ - name: punctuation.css
149
+ match: ","
150
+ each:
151
+ name: meta.at-rule.each.scss
152
+ begin: \s{0,}((@)(each)\b)
153
+ captures:
154
+ "1":
155
+ name: keyword.control.each.scss
156
+ "2":
157
+ name: punctuation.definition.keyword.css
158
+ end: (?={)
159
+ patterns:
160
+ - name: keyword.control.operator
161
+ match: \b(in|\,)\b
162
+ - include: "#variable"
163
+ - include: "#property_values"
164
+ - include: $self
165
+ variable_setting:
166
+ name: meta.set.variable
167
+ begin: (\$[\w\-]+)\s{0,}(:)
168
+ captures:
169
+ "1":
170
+ name: variable
171
+ "2":
172
+ name: punctuation
173
+ end: ;
174
+ patterns:
175
+ - include: "#property_values"
176
+ - include: "#variable"
177
+ comment_block:
178
+ name: comment.block.scss
179
+ comment: Revamped Comment block.
180
+ begin: \s{0,}/\*
181
+ captures:
182
+ "0":
183
+ name: punctuation.whitespace.comment.trailing.scss
184
+ end: (\*/)\s{0,}
185
+ selector_pseudo_class:
186
+ name: entity.other.attribute-name.pseudo-class.css
187
+ captures:
188
+ "1":
189
+ name: punctuation.definition.entity.css
190
+ 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
191
+ logical_operators:
192
+ name: keyword.control.operator
193
+ match: (\=\=|\!\=|\<\=|\>\=|\<|\>|not|or|and)
194
+ flow_control:
195
+ patterns:
196
+ - include: "#if"
197
+ - include: "#else"
198
+ - include: "#warn"
199
+ - include: "#for"
200
+ - include: "#while"
201
+ - include: "#each"
202
+ - include: "#return"
203
+ else:
204
+ name: meta.at-rule.else.scss
205
+ begin: \s*((@)(else)\b)
206
+ captures:
207
+ "1":
208
+ name: keyword.control.else.scss
209
+ "2":
210
+ name: punctuation.definition.keyword.css
211
+ end: (?={)
212
+ patterns:
213
+ - include: "#logical_operators"
214
+ - include: "#variable"
215
+ - include: "#property_values"
216
+ selector_class:
217
+ name: entity.other.attribute-name.class.css
218
+ captures:
219
+ "1":
220
+ name: punctuation.definition.entity.css
221
+ match: (\.)[a-zA-Z0-9_-]+
222
+ interpolation:
223
+ name: variable.interpolation.scss
224
+ begin: "#\\{"
225
+ end: \}
226
+ patterns:
227
+ - include: "#property_values"
228
+ - include: "#variable"
229
+ include:
230
+ name: meta.at-rule.include.css
231
+ begin: \s*((@)(include)\b)
232
+ captures:
233
+ "1":
234
+ name: keyword.control.at-rule.import.css
235
+ "2":
236
+ name: punctuation.definition.keyword.css
237
+ end: \s*((?=;|\}))
238
+ patterns:
239
+ - include: "#functions"
240
+ constant_property_value:
241
+ name: support.constant.property-value.css
242
+ 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
243
+ selector_id:
244
+ name: entity.other.attribute-name.id.css
245
+ captures:
246
+ "1":
247
+ name: punctuationctuation.definition.entity.css
248
+ match: (#)[a-zA-Z][a-zA-Z0-9_-]*
249
+ import:
250
+ name: meta.at-rule.import.css
251
+ begin: \s*((@)(import)\b)
252
+ captures:
253
+ "1":
254
+ name: keyword.control.at-rule.import.css
255
+ "2":
256
+ name: punctuation.definition.keyword.css
257
+ end: \s*((?=;|\}))
258
+ patterns:
259
+ - include: "#variable"
260
+ - include: "#string_single"
261
+ - include: "#string_double"
262
+ - include: "#functions"
263
+ if:
264
+ name: meta.at-rule.if.scss
265
+ begin: \s{0,}((@)(if)\b)
266
+ captures:
267
+ "1":
268
+ name: keyword.control.if.scss
269
+ "2":
270
+ name: punctuation.definition.keyword.css
271
+ end: (?={)
272
+ patterns:
273
+ - include: "#logical_operators"
274
+ - include: "#variable"
275
+ - include: "#property_values"
276
+ functions:
277
+ patterns:
278
+ - begin: ([\w-]{1,})(\()\s*
279
+ endCaptures:
280
+ "1":
281
+ name: punctuation.section.function.css
282
+ beginCaptures:
283
+ "1":
284
+ name: support.function.misc.css
285
+ "2":
286
+ name: punctuation.section.function.css
287
+ end: (\))
288
+ patterns:
289
+ - include: "#parameters"
290
+ - name: support.function.misc.css
291
+ match: ([\w-]{1,})
292
+ constant_sass_functions:
293
+ 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*(\()
294
+ endCaptures:
295
+ "1":
296
+ name: punctuation.section.function.css
297
+ beginCaptures:
298
+ "1":
299
+ name: support.function.misc.css
300
+ "2":
301
+ name: punctuation.section.function.css
302
+ end: (\))
303
+ patterns:
304
+ - include: "#parameters"
305
+ while:
306
+ name: meta.at-rule.while.scss
307
+ begin: \s{0,}((@)(while)\b)
308
+ captures:
309
+ "1":
310
+ name: keyword.control.while.scss
311
+ "2":
312
+ name: punctuation.definition.keyword.css
313
+ end: (?={)
314
+ patterns:
315
+ - include: "#logical_operators"
316
+ - include: "#variable"
317
+ - include: "#property_values"
318
+ - include: $self
319
+ selector_attribute:
320
+ name: meta.attribute-selector.css
321
+ captures:
322
+ "6":
323
+ name: punctuation.definition.string.begin.css
324
+ "7":
325
+ name: punctuation.definition.string.end.css
326
+ "1":
327
+ name: punctuation.definition.entity.css
328
+ "2":
329
+ name: entity.other.attribute-name.attribute.css
330
+ "3":
331
+ name: punctuation.separator.operator.css
332
+ "4":
333
+ name: string.unquoted.attribute-value.css
334
+ "5":
335
+ name: string.quoted.double.attribute-value.css
336
+ match: (?i)(\[)\s*(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)(?:\s*([~|^$*]?=)\s*(?:(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)|((?>(['"])(?:[^\\]|\\.)*?(\6)))))?\s*(\])
337
+ property_names:
338
+ patterns:
339
+ - include: "#property_name"
340
+ - include: "#property_name_error"
341
+ extend:
342
+ name: meta.at-rule.import.css
343
+ begin: \s*((@)(extend)\b)
344
+ captures:
345
+ "1":
346
+ name: keyword.control.at-rule.import.css
347
+ "2":
348
+ name: punctuation.definition.keyword.css
349
+ end: \s*((?=;))
350
+ patterns:
351
+ - include: "#variable"
352
+ - include: "#selectors"
353
+ constant_number:
354
+ name: constant.numeric.css
355
+ match: "[+-]?\\s*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)"
356
+ constant_color:
357
+ name: support.constant.color.w3c-standard-color-name.css
358
+ comment: http://www.w3.org/TR/CSS21/syndata.html#value-def-color
359
+ match: \b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b
360
+ tag_wildcard:
361
+ name: entity.name.tag.wildcard.css
362
+ match: \*
363
+ tag_parent_reference:
364
+ name: entity.name.tag.reference.css
365
+ match: \&
366
+ selector_pseudo_element:
367
+ name: entity.other.attribute-name.pseudo-element.css
368
+ captures:
369
+ "1":
370
+ name: punctuation.definition.entity.css
371
+ match: (:+)\b(after|before|first-letter|first-line|selection)\b
372
+ return:
373
+ name: meta.at-rule.return.scss
374
+ begin: \s*((@)(return)\b)
375
+ captures:
376
+ "1":
377
+ name: keyword.control.return.scss
378
+ "2":
379
+ name: punctuation.definition.keyword.css
380
+ end: \s*((?=;))
381
+ patterns:
382
+ - include: "#variable"
383
+ - include: "#property_values"
384
+ for:
385
+ name: meta.at-rule.for.scss
386
+ begin: \s{0,}((@)(for)\b)
387
+ captures:
388
+ "1":
389
+ name: keyword.control.for.scss
390
+ "2":
391
+ name: punctuation.definition.keyword.css
392
+ end: (?={)
393
+ patterns:
394
+ - name: keyword.control.operator
395
+ match: (\=\=|\!\=|\<\=|\>\=|\<|\>|from|through)
396
+ - include: "#variable"
397
+ - include: "#property_values"
398
+ - include: $self
399
+ constant_rgb_percentage:
400
+ name: constant.other.color.rgb-percentage.css
401
+ match: \b([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%
402
+ constant_rgb:
403
+ name: constant.other.color.rgb-value.css
404
+ 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)
405
+ constant_important:
406
+ name: keyword.other.important.css
407
+ match: \!\s*important
408
+ warn:
409
+ name: meta.at-rule.warn.scss
410
+ begin: \s*((@)(warn|debug)\b)
411
+ captures:
412
+ "1":
413
+ name: keyword.control.warn.scss
414
+ "2":
415
+ name: punctuation.definition.keyword.css
416
+ end: (?=\;)
417
+ patterns:
418
+ - include: "#variable"
419
+ - include: "#string_double"
420
+ - include: "#string_single"
421
+ variable:
422
+ patterns:
423
+ - include: "#variables"
424
+ - include: "#interpolation"
425
+ property_name_error:
426
+ name: invalid.illegal
427
+ 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\-\_]+
428
+ property_name:
429
+ name: support.type.property-name.css
430
+ comment: Reversal order is important; KEEP IT. Also when adding new properties add them to the error checker below!
431
+ 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
432
+ general:
433
+ comment: Stuff that should be everywhere
434
+ patterns:
435
+ - include: "#variable"
436
+ - include: "#comment_block"
437
+ - include: "#comment_line"
438
+ function_attributes:
439
+ patterns:
440
+ - name: punctuation.definition
441
+ match: ":"
442
+ - include: "#general"
443
+ - include: "#property_values"
444
+ - name: invalid.illegal
445
+ comment: We even have error highlighting <3
446
+ match: "[=\\{\\}\\?\\;\\@]"
447
+ constant_font:
448
+ name: support.constant.font-name.css
449
+ 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)
450
+ uuid: 3D9ADE5E-ADC5-460F-97B3-B61EF5A18273
451
+ patterns:
452
+ - comment: Variable setting
453
+ include: "#variable_setting"
454
+ - include: "#include"
455
+ - include: "#import"
456
+ - include: "#general"
457
+ - include: "#flow_control"
458
+ - comment: Yes, we need the rules at root level available for nesting.
459
+ include: "#rules"
460
+ - comment: Properties
461
+ include: "#property_list"
462
+ - name: meta.at-rule.mixin.scss
463
+ comment: Mixin with Attributes
464
+ begin: ^\s*((@)mixin) ([\w-]{1,})\s{0,2}\(
465
+ captures:
466
+ "1":
467
+ name: keyword.control.at-rule.mixin.scss
468
+ "2":
469
+ name: punctuation.definition.keyword.scss
470
+ "3":
471
+ name: entity.name.function.scss
472
+ end: \)
473
+ patterns:
474
+ - include: "#function_attributes"
475
+ - name: meta.at-rule.mixin.scss
476
+ comment: Simple Mixin
477
+ captures:
478
+ "1":
479
+ name: keyword.control.at-rule.mixin.scss
480
+ "2":
481
+ name: punctuation.definition.keyword.css
482
+ "3":
483
+ name: entity.name.function.scss
484
+ match: ^\s*((@)mixin) ([\w-]{1,})
485
+ - name: meta.at-rule.function.scss
486
+ comment: Function with Attributes
487
+ begin: ^\s*((@)function) ([\w-]{1,})\s{0,2}\(
488
+ captures:
489
+ "1":
490
+ name: keyword.control.at-rule.function.scss
491
+ "2":
492
+ name: punctuation.definition.keyword.css
493
+ "3":
494
+ name: entity.name.function.scss
495
+ end: \)
496
+ patterns:
497
+ - include: "#function_attributes"
498
+ - name: meta.at-rule.function.scss
499
+ comment: Simple Function
500
+ captures:
501
+ "1":
502
+ name: keyword.control.at-rule.function.scss
503
+ "2":
504
+ name: punctuation.definition.keyword.css
505
+ "3":
506
+ name: entity.name.function.scss
507
+ match: ^\s*((@)function) ([\w-]{1,})
508
+ - name: meta.at-rule.charset.scss
509
+ comment: Charset
510
+ captures:
511
+ "1":
512
+ name: keyword.control.at-rule.charset.scss
513
+ "2":
514
+ name: punctuation.definition.keyword.css
515
+ match: ^\s*((@)charset\b)\s*
516
+ - name: meta.at-rule.option.scss
517
+ comment: Option
518
+ captures:
519
+ "1":
520
+ name: keyword.control.at-rule.charset.scss
521
+ "2":
522
+ name: punctuation.definition.keyword.css
523
+ match: ^\s*((@)option\b)\s*
524
+ foldingStartMarker: /\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))
525
+ foldingStopMarker: (?<!\*)\*\*/|^\s*\}
526
+ fileTypes:
527
+ - scss