| 1 |
{ |
| 2 |
"patterns": [ |
| 3 |
{ |
| 4 |
"patterns": [ |
| 5 |
{ |
| 6 |
"include": "#comment-tag" |
| 7 |
} |
| 8 |
], |
| 9 |
"begin": "/\\*", |
| 10 |
"name": "comment.block.postcss", |
| 11 |
"end": "\\*/" |
| 12 |
}, |
| 13 |
{ |
| 14 |
"include": "#double-slash" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"include": "#double-quoted" |
| 18 |
}, |
| 19 |
{ |
| 20 |
"include": "#single-quoted" |
| 21 |
}, |
| 22 |
{ |
| 23 |
"include": "#interpolation" |
| 24 |
}, |
| 25 |
{ |
| 26 |
"include": "#placeholder-selector" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"include": "#variable" |
| 30 |
}, |
| 31 |
{ |
| 32 |
"include": "#variable-root-css" |
| 33 |
}, |
| 34 |
{ |
| 35 |
"include": "#numeric" |
| 36 |
}, |
| 37 |
{ |
| 38 |
"include": "#unit" |
| 39 |
}, |
| 40 |
{ |
| 41 |
"include": "#flag" |
| 42 |
}, |
| 43 |
{ |
| 44 |
"include": "#dotdotdot" |
| 45 |
}, |
| 46 |
{ |
| 47 |
"captures": { |
| 48 |
"0": { |
| 49 |
"name": "keyword.control.at-rule.css.postcss" |
| 50 |
} |
| 51 |
}, |
| 52 |
"begin": "@include", |
| 53 |
"name": "support.function.name.postcss.library", |
| 54 |
"end": "(?=\\n|\\(|{|;)" |
| 55 |
}, |
| 56 |
{ |
| 57 |
"captures": { |
| 58 |
"0": { |
| 59 |
"name": "keyword.control.at-rule.css.postcss" |
| 60 |
} |
| 61 |
}, |
| 62 |
"patterns": [ |
| 63 |
{ |
| 64 |
"name": "entity.name.function", |
| 65 |
"match": "[\\w-]+" |
| 66 |
} |
| 67 |
], |
| 68 |
"begin": "@mixin|@function", |
| 69 |
"name": "support.function.name.postcss.no-completions", |
| 70 |
"end": "$\\n?|(?=\\(|{)" |
| 71 |
}, |
| 72 |
{ |
| 73 |
"name": "string.quoted.double.css.postcss", |
| 74 |
"match": "(?<=@import)\\s[\\w/.*-]+" |
| 75 |
}, |
| 76 |
{ |
| 77 |
"begin": "@", |
| 78 |
"name": "keyword.control.at-rule.css.postcss", |
| 79 |
"end": "$\\n?|\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)(\\s|,))|(?=;)" |
| 80 |
}, |
| 81 |
{ |
| 82 |
"patterns": [ |
| 83 |
{ |
| 84 |
"include": "#interpolation" |
| 85 |
}, |
| 86 |
{ |
| 87 |
"include": "#pseudo-class" |
| 88 |
} |
| 89 |
], |
| 90 |
"begin": "#", |
| 91 |
"name": "entity.other.attribute-name.id.css.postcss", |
| 92 |
"end": "$\\n?|(?=\\s|,|;|\\(|\\)|\\.|\\[|{|>)" |
| 93 |
}, |
| 94 |
{ |
| 95 |
"patterns": [ |
| 96 |
{ |
| 97 |
"include": "#interpolation" |
| 98 |
}, |
| 99 |
{ |
| 100 |
"include": "#pseudo-class" |
| 101 |
} |
| 102 |
], |
| 103 |
"begin": "\\.|(?<=&)(-|_)", |
| 104 |
"name": "entity.other.attribute-name.class.css.postcss", |
| 105 |
"end": "$\\n?|(?=\\s|,|;|\\(|\\)|\\[|{|>)" |
| 106 |
}, |
| 107 |
{ |
| 108 |
"patterns": [ |
| 109 |
{ |
| 110 |
"include": "#double-quoted" |
| 111 |
}, |
| 112 |
{ |
| 113 |
"include": "#single-quoted" |
| 114 |
}, |
| 115 |
{ |
| 116 |
"name": "keyword.other.regex.postcss", |
| 117 |
"match": "\\^|\\$|\\*|~" |
| 118 |
} |
| 119 |
], |
| 120 |
"begin": "\\[", |
| 121 |
"name": "entity.other.attribute-selector.postcss", |
| 122 |
"end": "\\]" |
| 123 |
}, |
| 124 |
{ |
| 125 |
"name": "entity.other.attribute-name.pseudo-class.css.postcss", |
| 126 |
"match": "(?<=\\]|\\)|not\\(|\\*|>|>\\s):[a-z:-]+|(::|:-)[a-z:-]+" |
| 127 |
}, |
| 128 |
{ |
| 129 |
"patterns": [ |
| 130 |
{ |
| 131 |
"include": "#double-slash" |
| 132 |
}, |
| 133 |
{ |
| 134 |
"include": "#double-quoted" |
| 135 |
}, |
| 136 |
{ |
| 137 |
"include": "#single-quoted" |
| 138 |
}, |
| 139 |
{ |
| 140 |
"include": "#interpolation" |
| 141 |
}, |
| 142 |
{ |
| 143 |
"include": "#variable" |
| 144 |
}, |
| 145 |
{ |
| 146 |
"include": "#rgb-value" |
| 147 |
}, |
| 148 |
{ |
| 149 |
"include": "#numeric" |
| 150 |
}, |
| 151 |
{ |
| 152 |
"include": "#unit" |
| 153 |
}, |
| 154 |
{ |
| 155 |
"include": "#flag" |
| 156 |
}, |
| 157 |
{ |
| 158 |
"include": "#function" |
| 159 |
}, |
| 160 |
{ |
| 161 |
"include": "#function-content" |
| 162 |
}, |
| 163 |
{ |
| 164 |
"include": "#function-content-var" |
| 165 |
}, |
| 166 |
{ |
| 167 |
"include": "#operator" |
| 168 |
}, |
| 169 |
{ |
| 170 |
"include": "#parent-selector" |
| 171 |
}, |
| 172 |
{ |
| 173 |
"include": "#property-value" |
| 174 |
} |
| 175 |
], |
| 176 |
"begin": ":", |
| 177 |
"name": "meta.property-list.css.postcss", |
| 178 |
"end": "$\\n?|(?=;|\\s\\(|and\\(|{|}|\\),)" |
| 179 |
}, |
| 180 |
{ |
| 181 |
"include": "#rgb-value" |
| 182 |
}, |
| 183 |
{ |
| 184 |
"include": "#function" |
| 185 |
}, |
| 186 |
{ |
| 187 |
"include": "#function-content" |
| 188 |
}, |
| 189 |
{ |
| 190 |
"patterns": [ |
| 191 |
{ |
| 192 |
"include": "#interpolation" |
| 193 |
}, |
| 194 |
{ |
| 195 |
"include": "#pseudo-class" |
| 196 |
} |
| 197 |
], |
| 198 |
"begin": "(?<!\\-|\\()\\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|u|x)\\b(?!-|\\)|:\\s)|&", |
| 199 |
"name": "entity.name.tag.css.postcss.symbol", |
| 200 |
"end": "(?=\\s|,|;|\\(|\\)|\\.|\\[|{|>|-|_)" |
| 201 |
}, |
| 202 |
{ |
| 203 |
"include": "#operator" |
| 204 |
}, |
| 205 |
{ |
| 206 |
"name": "support.type.property-name.css.postcss", |
| 207 |
"match": "[a-z-]+((?=:|#{))" |
| 208 |
}, |
| 209 |
{ |
| 210 |
"include": "#reserved-words" |
| 211 |
}, |
| 212 |
{ |
| 213 |
"include": "#property-value" |
| 214 |
} |
| 215 |
], |
| 216 |
"name": "postcss", |
| 217 |
"repository": { |
| 218 |
"reserved-words": { |
| 219 |
"name": "support.type.property-name.css.postcss", |
| 220 |
"match": "\\b(false|from|in|not|null|through|to|true)\\b" |
| 221 |
}, |
| 222 |
"double-quoted": { |
| 223 |
"patterns": [ |
| 224 |
{ |
| 225 |
"include": "#quoted-interpolation" |
| 226 |
} |
| 227 |
], |
| 228 |
"begin": "\"", |
| 229 |
"name": "string.quoted.double.css.postcss", |
| 230 |
"end": "\"" |
| 231 |
}, |
| 232 |
"operator": { |
| 233 |
"name": "keyword.operator.postcss", |
| 234 |
"match": "\\+|\\s-\\s|\\s-(?=\\$)|(?<=\\()-(?=\\$)|\\s-(?=\\()|\\*|/|%|=|!|<|>|~" |
| 235 |
}, |
| 236 |
"function-content": { |
| 237 |
"name": "string.quoted.double.css.postcss", |
| 238 |
"match": "(?<=url\\(|format\\(|attr\\().+?(?=\\))" |
| 239 |
}, |
| 240 |
"double-slash": { |
| 241 |
"patterns": [ |
| 242 |
{ |
| 243 |
"include": "#comment-tag" |
| 244 |
} |
| 245 |
], |
| 246 |
"begin": "//", |
| 247 |
"name": "comment.line.postcss", |
| 248 |
"end": "$" |
| 249 |
}, |
| 250 |
"numeric": { |
| 251 |
"name": "constant.numeric.css.postcss", |
| 252 |
"match": "(-|\\.)?[0-9]+(\\.[0-9]+)?" |
| 253 |
}, |
| 254 |
"variable-root-css": { |
| 255 |
"name": "variable.parameter.postcss", |
| 256 |
"match": "(?<!&)--[\\w-]+" |
| 257 |
}, |
| 258 |
"function": { |
| 259 |
"name": "support.function.name.postcss", |
| 260 |
"match": "(?<=[\\s|\\(|,|:])(?!url|format|attr)[\\w-][\\w-]*(?=\\()" |
| 261 |
}, |
| 262 |
"rgb-value": { |
| 263 |
"name": "constant.other.color.rgb-value.css.postcss", |
| 264 |
"match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b" |
| 265 |
}, |
| 266 |
"comment-tag": { |
| 267 |
"patterns": [ |
| 268 |
{ |
| 269 |
"name": "comment.tag.postcss", |
| 270 |
"match": "[\\w-]+" |
| 271 |
} |
| 272 |
], |
| 273 |
"begin": "{{", |
| 274 |
"name": "comment.tags.postcss", |
| 275 |
"end": "}}" |
| 276 |
}, |
| 277 |
"interpolation": { |
| 278 |
"patterns": [ |
| 279 |
{ |
| 280 |
"include": "#variable" |
| 281 |
}, |
| 282 |
{ |
| 283 |
"include": "#numeric" |
| 284 |
}, |
| 285 |
{ |
| 286 |
"include": "#operator" |
| 287 |
}, |
| 288 |
{ |
| 289 |
"include": "#unit" |
| 290 |
}, |
| 291 |
{ |
| 292 |
"include": "#double-quoted" |
| 293 |
}, |
| 294 |
{ |
| 295 |
"include": "#single-quoted" |
| 296 |
} |
| 297 |
], |
| 298 |
"begin": "#{", |
| 299 |
"name": "support.function.interpolation.postcss", |
| 300 |
"end": "}" |
| 301 |
}, |
| 302 |
"unit": { |
| 303 |
"name": "keyword.other.unit.css.postcss", |
| 304 |
"match": "(?<=[\\d]|})(ch|cm|deg|dpcm|dpi|dppx|em|ex|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vw|%)" |
| 305 |
}, |
| 306 |
"function-content-var": { |
| 307 |
"name": "variable.parameter.postcss", |
| 308 |
"match": "(?<=var\\()[\\w-]+(?=\\))" |
| 309 |
}, |
| 310 |
"dotdotdot": { |
| 311 |
"name": "variable.other", |
| 312 |
"match": "\\.{3}" |
| 313 |
}, |
| 314 |
"variable": { |
| 315 |
"name": "variable.parameter.postcss", |
| 316 |
"match": "\\$[\\w-]+" |
| 317 |
}, |
| 318 |
"single-quoted": { |
| 319 |
"patterns": [ |
| 320 |
{ |
| 321 |
"include": "#quoted-interpolation" |
| 322 |
} |
| 323 |
], |
| 324 |
"begin": "'", |
| 325 |
"name": "string.quoted.single.css.postcss", |
| 326 |
"end": "'" |
| 327 |
}, |
| 328 |
"quoted-interpolation": { |
| 329 |
"patterns": [ |
| 330 |
{ |
| 331 |
"include": "#variable" |
| 332 |
}, |
| 333 |
{ |
| 334 |
"include": "#numeric" |
| 335 |
}, |
| 336 |
{ |
| 337 |
"include": "#operator" |
| 338 |
}, |
| 339 |
{ |
| 340 |
"include": "#unit" |
| 341 |
} |
| 342 |
], |
| 343 |
"begin": "#{", |
| 344 |
"name": "support.function.interpolation.postcss", |
| 345 |
"end": "}" |
| 346 |
}, |
| 347 |
"pseudo-class": { |
| 348 |
"name": "entity.other.attribute-name.pseudo-class.css.postcss", |
| 349 |
"match": ":[a-z:-]+" |
| 350 |
}, |
| 351 |
"property-value": { |
| 352 |
"name": "meta.property-value.css.postcss, support.constant.property-value.css.postcss", |
| 353 |
"match": "[\\w-]+" |
| 354 |
}, |
| 355 |
"placeholder-selector": { |
| 356 |
"begin": "(?<!\\d)%(?!\\d)", |
| 357 |
"name": "entity.other.attribute-name.placeholder-selector.postcss", |
| 358 |
"end": "$\\n?|\\s|(?=;|{)" |
| 359 |
}, |
| 360 |
"flag": { |
| 361 |
"name": "keyword.other.important.css.postcss", |
| 362 |
"match": "!(important|default|optional|global)" |
| 363 |
}, |
| 364 |
"parent-selector": { |
| 365 |
"name": "entity.name.tag.css.postcss", |
| 366 |
"match": "&" |
| 367 |
} |
| 368 |
}, |
| 369 |
"foldingStartMarker": "/\\*|^#|^\\*|^\\b|^\\.", |
| 370 |
"foldingStopMarker": "\\*/|^\\s*$", |
| 371 |
"fileTypes": ["pcss", "postcss"], |
| 372 |
"uuid": "90DAEA60-88AA-11E2-9E96-0800200C9A66", |
| 373 |
"scopeName": "source.css.postcss" |
| 374 |
} |
| 375 |
|