github-linguist 4.7.6 → 4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +1 -1
- data/grammars/file.lasso.json +713 -0
- data/grammars/module.ceylon.json +54 -0
- data/grammars/objdump.x86asm.json +73 -0
- data/grammars/source.Kotlin.json +777 -0
- data/grammars/source.LS.json +104 -0
- data/grammars/source.MCPOST.json +68 -0
- data/grammars/source.MOD.json +70 -0
- data/grammars/source.abap.json +176 -0
- data/grammars/source.abl.json +138 -0
- data/grammars/source.actionscript.3.json +1571 -0
- data/grammars/source.acucobol.json +16 -0
- data/grammars/source.ada.json +140 -0
- data/grammars/source.agda.json +254 -0
- data/grammars/source.ahk.json +171 -0
- data/grammars/source.alloy.json +44 -0
- data/grammars/source.ampl.json +157 -0
- data/grammars/source.antlr.json +300 -0
- data/grammars/source.apache-config.json +352 -0
- data/grammars/source.apache-config.mod_perl.json +70 -0
- data/grammars/source.apl.json +442 -0
- data/grammars/source.applescript.json +1385 -0
- data/grammars/source.apt.json +25 -0
- data/grammars/source.asm.x86.json +182 -0
- data/grammars/source.asp.json +157 -0
- data/grammars/source.aspectj.json +966 -0
- data/grammars/source.ats.json +240 -0
- data/grammars/source.autoit.3.json +132 -0
- data/grammars/source.awk.json +388 -0
- data/grammars/source.befunge.json +38 -0
- data/grammars/source.bf.json +36 -0
- data/grammars/source.bison.json +59 -0
- data/grammars/source.blitzmax.json +912 -0
- data/grammars/source.boo.json +452 -0
- data/grammars/source.brightauthorproject.json +29 -0
- data/grammars/source.brightscript.json +158 -0
- data/grammars/source.bro.json +409 -0
- data/grammars/source.bsv.json +283 -0
- data/grammars/source.c++.json +364 -0
- data/grammars/source.c++.qt.json +37 -0
- data/grammars/source.c.ec.json +39 -0
- data/grammars/source.c.json +727 -0
- data/grammars/source.c.platform.json +154 -0
- data/grammars/source.cache.cmake.json +75 -0
- data/grammars/source.cake.json +16 -0
- data/grammars/source.camlp4.ocaml.json +63 -0
- data/grammars/source.capnp.json +93 -0
- data/grammars/source.ceylon.json +77 -0
- data/grammars/source.cfscript.cfc.json +170 -0
- data/grammars/source.cfscript.json +744 -0
- data/grammars/source.chapel.json +240 -0
- data/grammars/source.cirru.json +66 -0
- data/grammars/source.clarion.json +159 -0
- data/grammars/source.click.json +99 -0
- data/grammars/source.clips.json +80 -0
- data/grammars/source.clojure.json +414 -0
- data/grammars/source.cm.json +54 -0
- data/grammars/source.cmake.json +181 -0
- data/grammars/source.cobol.json +498 -0
- data/grammars/source.coffee.json +682 -0
- data/grammars/source.compiled-papyrus.json +11 -0
- data/grammars/source.cool.json +103 -0
- data/grammars/source.coq.json +62 -0
- data/grammars/source.crystal.json +2760 -0
- data/grammars/source.cs.json +566 -0
- data/grammars/source.css.json +630 -0
- data/grammars/source.css.less.json +614 -0
- data/grammars/source.css.mss.json +256 -0
- data/grammars/source.csx.json +16 -0
- data/grammars/source.cuda-c++.json +137 -0
- data/grammars/source.cython.json +2108 -0
- data/grammars/source.d.json +726 -0
- data/grammars/source.dart.json +763 -0
- data/grammars/source.desktop.json +90 -0
- data/grammars/source.diff.json +162 -0
- data/grammars/source.dockerfile.json +89 -0
- data/grammars/source.dosbatch.json +70 -0
- data/grammars/source.dot.json +126 -0
- data/grammars/source.dylan.json +217 -0
- data/grammars/source.eiffel.json +138 -0
- data/grammars/source.elixir.json +971 -0
- data/grammars/source.elm.json +356 -0
- data/grammars/source.erazor.json +126 -0
- data/grammars/source.erlang.json +1674 -0
- data/grammars/source.essl.json +50 -0
- data/grammars/source.factor.json +258 -0
- data/grammars/source.fan.json +188 -0
- data/grammars/source.fancy.json +270 -0
- data/grammars/source.fish.json +214 -0
- data/grammars/source.forth.json +101 -0
- data/grammars/source.fortran.json +499 -0
- data/grammars/source.fortran.modern.json +226 -0
- data/grammars/source.fsharp.fsi.json +14 -0
- data/grammars/source.fsharp.fsl.json +14 -0
- data/grammars/source.fsharp.fsx.json +18 -0
- data/grammars/source.fsharp.json +527 -0
- data/grammars/source.gap.json +167 -0
- data/grammars/source.gcode.json +25 -0
- data/grammars/source.gdscript.json +154 -0
- data/grammars/source.gfm.json +1392 -0
- data/grammars/source.glsl.json +74 -0
- data/grammars/source.gnuplot.json +276 -0
- data/grammars/source.go.json +552 -0
- data/grammars/source.golo.json +182 -0
- data/grammars/source.gosu.2.json +163 -0
- data/grammars/source.grace.json +679 -0
- data/grammars/source.groovy.gradle.json +73 -0
- data/grammars/source.groovy.json +1385 -0
- data/grammars/source.harbour.json +450 -0
- data/grammars/source.haskell.json +449 -0
- data/grammars/source.haxe.2.json +1278 -0
- data/grammars/source.hss.1.json +464 -0
- data/grammars/source.httpspec.json +287 -0
- data/grammars/source.hxml.json +26 -0
- data/grammars/source.hy.json +270 -0
- data/grammars/source.idl-dlm.json +112 -0
- data/grammars/source.idl.json +267 -0
- data/grammars/source.idris.json +537 -0
- data/grammars/source.inform7.json +187 -0
- data/grammars/source.ini.json +113 -0
- data/grammars/source.inno.json +69 -0
- data/grammars/source.io.json +164 -0
- data/grammars/source.ioke.json +272 -0
- data/grammars/source.isabelle.root.json +68 -0
- data/grammars/source.isabelle.theory.json +106 -0
- data/grammars/source.j.json +49 -0
- data/grammars/source.jasmin.json +299 -0
- data/grammars/source.java-properties.json +97 -0
- data/grammars/source.java.json +1026 -0
- data/grammars/source.jcl.json +49 -0
- data/grammars/source.jflex.json +490 -0
- data/grammars/source.jq.json +218 -0
- data/grammars/source.js.json +1646 -0
- data/grammars/source.js.jsx.json +3185 -0
- data/grammars/source.js.objj.json +424 -0
- data/grammars/source.js.regexp.json +150 -0
- data/grammars/source.js.regexp.replacement.json +30 -0
- data/grammars/source.json.json +149 -0
- data/grammars/source.julia.json +407 -0
- data/grammars/source.lean.json +145 -0
- data/grammars/source.lid.json +23 -0
- data/grammars/source.lilypond.json +623 -0
- data/grammars/source.lisp.json +111 -0
- data/grammars/source.litcoffee.json +667 -0
- data/grammars/source.livescript.json +616 -0
- data/grammars/source.llvm.json +71 -0
- data/grammars/source.logos.json +31 -0
- data/grammars/source.logtalk.json +315 -0
- data/grammars/source.loomscript.json +214 -0
- data/grammars/source.lsl.json +216 -0
- data/grammars/source.lua.json +191 -0
- data/grammars/source.makefile.json +474 -0
- data/grammars/source.makegen.json +13 -0
- data/grammars/source.man.json +53 -0
- data/grammars/source.mask.json +795 -0
- data/grammars/source.mata.json +133 -0
- data/grammars/source.mathematica.json +429 -0
- data/grammars/source.matlab.json +1109 -0
- data/grammars/source.maxscript.json +453 -0
- data/grammars/source.mercury.json +251 -0
- data/grammars/source.meta-info.json +156 -0
- data/grammars/source.ml.json +291 -0
- data/grammars/source.modelica.json +142 -0
- data/grammars/source.modula2.json +103 -0
- data/grammars/source.monkey.json +701 -0
- data/grammars/source.moonscript.json +149 -0
- data/grammars/source.mupad.json +149 -0
- data/grammars/source.nant-build.json +86 -0
- data/grammars/source.ncl.json +66 -0
- data/grammars/source.nemerle.json +137 -0
- data/grammars/source.nesc.json +27 -0
- data/grammars/source.netlinx.erb.json +47 -0
- data/grammars/source.netlinx.json +768 -0
- data/grammars/source.nginx.json +824 -0
- data/grammars/source.nim.json +1169 -0
- data/grammars/source.nim_filter.json +133 -0
- data/grammars/source.nimcfg.json +116 -0
- data/grammars/source.ninja.json +66 -0
- data/grammars/source.nit.json +238 -0
- data/grammars/source.nix.json +1200 -0
- data/grammars/source.nmml.json +87 -0
- data/grammars/source.nsis.json +158 -0
- data/grammars/source.objc++.json +19 -0
- data/grammars/source.objc.json +918 -0
- data/grammars/source.objc.platform.json +277 -0
- data/grammars/source.ocaml.json +1426 -0
- data/grammars/source.ocamllex.json +305 -0
- data/grammars/source.ocamlyacc.json +346 -0
- data/grammars/source.octave.json +451 -0
- data/grammars/source.ooc.json +692 -0
- data/grammars/source.opa.json +206 -0
- data/grammars/source.opal.json +415 -0
- data/grammars/source.opalsysdefs.json +70 -0
- data/grammars/source.opencobol.json +65 -0
- data/grammars/source.ox.json +97 -0
- data/grammars/source.oz.json +84 -0
- data/grammars/source.papyrus-assembly.json +266 -0
- data/grammars/source.papyrus.json +231 -0
- data/grammars/source.parrot.pir.json +117 -0
- data/grammars/source.pascal.json +150 -0
- data/grammars/source.perl.6.json +318 -0
- data/grammars/source.perl.json +2424 -0
- data/grammars/source.perl6fe.json +1755 -0
- data/grammars/source.php.zephir.json +362 -0
- data/grammars/source.pig_latin.json +172 -0
- data/grammars/source.pike.json +62 -0
- data/grammars/source.plsql.oracle.json +642 -0
- data/grammars/source.po.json +232 -0
- data/grammars/source.pogoscript.json +85 -0
- data/grammars/source.pony.json +255 -0
- data/grammars/source.postscript.json +231 -0
- data/grammars/source.pov-ray sdl.json +88 -0
- data/grammars/source.powershell.json +755 -0
- data/grammars/source.processing.json +885 -0
- data/grammars/source.prolog.eclipse.json +206 -0
- data/grammars/source.prolog.json +292 -0
- data/grammars/source.protobuf.json +395 -0
- data/grammars/source.pubspec.json +13 -0
- data/grammars/source.puppet.json +494 -0
- data/grammars/source.purescript.json +833 -0
- data/grammars/source.pyjade.json +1010 -0
- data/grammars/source.python.django.json +34 -0
- data/grammars/source.python.json +3435 -0
- data/grammars/source.python.salt.json +13 -0
- data/grammars/source.qmake.json +217 -0
- data/grammars/source.qml.json +195 -0
- data/grammars/source.r.json +203 -0
- data/grammars/source.racket.json +119 -0
- data/grammars/source.rebol.json +647 -0
- data/grammars/source.red.json +652 -0
- data/grammars/source.regexp.babel.json +190 -0
- data/grammars/source.regexp.perl6fe.json +220 -0
- data/grammars/source.regexp.python.json +434 -0
- data/grammars/source.regexp.spin.json +188 -0
- data/grammars/source.renpy.json +2181 -0
- data/grammars/source.ruby.json +1956 -0
- data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
- data/grammars/source.rust.json +212 -0
- data/grammars/source.sas.json +370 -0
- data/grammars/source.sas_log.json +26 -0
- data/grammars/source.sass.json +248 -0
- data/grammars/source.sbt.json +36 -0
- data/grammars/source.scad.json +152 -0
- data/grammars/source.scala.json +739 -0
- data/grammars/source.scaml.json +466 -0
- data/grammars/source.scheme.json +370 -0
- data/grammars/source.scilab.json +103 -0
- data/grammars/source.scss.json +1321 -0
- data/grammars/source.shell.json +1308 -0
- data/grammars/source.smali.json +1671 -0
- data/grammars/source.smalltalk.json +135 -0
- data/grammars/source.smt.json +173 -0
- data/grammars/source.sp.json +118 -0
- data/grammars/source.sparql.json +23 -0
- data/grammars/source.spin.json +936 -0
- data/grammars/source.sqf.json +112 -0
- data/grammars/source.sql.json +473 -0
- data/grammars/source.stan.json +312 -0
- data/grammars/source.stata.json +208 -0
- data/grammars/source.strings.json +53 -0
- data/grammars/source.stylus.json +1017 -0
- data/grammars/source.supercollider.json +100 -0
- data/grammars/source.swift.json +983 -0
- data/grammars/source.systemverilog.json +1050 -0
- data/grammars/source.tcl.json +277 -0
- data/grammars/source.tea.json +180 -0
- data/grammars/source.thrift.json +704 -0
- data/grammars/source.toml.json +327 -0
- data/grammars/source.ts.json +1188 -0
- data/grammars/source.tsx.json +1421 -0
- data/grammars/source.turtle.json +505 -0
- data/grammars/source.txl.json +62 -0
- data/grammars/source.ucfconstraints.json +72 -0
- data/grammars/source.ur.json +43 -0
- data/grammars/source.vala.json +814 -0
- data/grammars/source.varnish.vcl.json +343 -0
- data/grammars/source.vbnet.json +338 -0
- data/grammars/source.verilog.json +302 -0
- data/grammars/source.vhdl.json +1349 -0
- data/grammars/source.viml.json +224 -0
- data/grammars/source.webidl.json +814 -0
- data/grammars/source.x10.json +68 -0
- data/grammars/source.x86asm.json +47 -0
- data/grammars/source.xc.json +379 -0
- data/grammars/source.xq.json +241 -0
- data/grammars/source.xquery.json +193 -0
- data/grammars/source.xtend.json +733 -0
- data/grammars/source.yaml.json +341 -0
- data/grammars/source.yaml.salt.json +348 -0
- data/grammars/source.yang.json +81 -0
- data/grammars/text.bibtex.json +251 -0
- data/grammars/text.cfml.basic.json +736 -0
- data/grammars/text.dart-analysis-output.json +162 -0
- data/grammars/text.dart-doccomments.json +19 -0
- data/grammars/text.elixir.json +45 -0
- data/grammars/text.gherkin.feature.json +135 -0
- data/grammars/text.groff.json +113 -0
- data/grammars/text.haml.json +299 -0
- data/grammars/text.html.abl.json +75 -0
- data/grammars/text.html.asciidoc.json +492 -0
- data/grammars/text.html.asdoc.json +541 -0
- data/grammars/text.html.asp.json +58 -0
- data/grammars/text.html.basic.json +552 -0
- data/grammars/text.html.cfm.json +811 -0
- data/grammars/text.html.creole.json +329 -0
- data/grammars/text.html.django.json +69 -0
- data/grammars/text.html.elixir.json +18 -0
- data/grammars/text.html.erb.json +157 -0
- data/grammars/text.html.erlang.yaws.json +72 -0
- data/grammars/text.html.factor.json +25 -0
- data/grammars/text.html.ftl.json +85 -0
- data/grammars/text.html.handlebars.json +838 -0
- data/grammars/text.html.jsp.json +1203 -0
- data/grammars/text.html.liquid.json +35 -0
- data/grammars/text.html.mako.json +729 -0
- data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
- data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
- data/grammars/text.html.mediawiki.json +972 -0
- data/grammars/text.html.php.json +2615 -0
- data/grammars/text.html.slash.json +313 -0
- data/grammars/text.html.smarty.json +216 -0
- data/grammars/text.html.ssp.json +49 -0
- data/grammars/text.html.tcl.json +44 -0
- data/grammars/text.html.twig.json +1353 -0
- data/grammars/text.html.vue.json +642 -0
- data/grammars/text.idl-idldoc.json +14 -0
- data/grammars/text.jade.json +1024 -0
- data/grammars/text.junit-test-report.json +92 -0
- data/grammars/text.log.latex.json +86 -0
- data/grammars/text.python.console.json +25 -0
- data/grammars/text.python.traceback.json +46 -0
- data/grammars/text.rdoc.json +48 -0
- data/grammars/text.restructuredtext.json +561 -0
- data/grammars/text.robot.json +73 -0
- data/grammars/text.shell-session.json +32 -0
- data/grammars/text.slim.json +527 -0
- data/grammars/text.tex.json +271 -0
- data/grammars/text.tex.latex.beamer.json +63 -0
- data/grammars/text.tex.latex.haskell.json +56 -0
- data/grammars/text.tex.latex.json +1013 -0
- data/grammars/text.tex.latex.memoir.json +136 -0
- data/grammars/text.tex.latex.rd.json +117 -0
- data/grammars/text.xml.ant.json +202 -0
- data/grammars/text.xml.flex-config.json +2634 -0
- data/grammars/text.xml.genshi.json +34 -0
- data/grammars/text.xml.json +364 -0
- data/grammars/text.xml.pom.json +774 -0
- data/grammars/text.xml.xsl.json +94 -0
- data/grammars/text.zone_file.json +72 -0
- data/lib/linguist.rb +79 -0
- data/lib/linguist/blob_helper.rb +2 -2
- data/lib/linguist/grammars.rb +10 -0
- data/lib/linguist/heuristics.rb +17 -1
- data/lib/linguist/language.rb +2 -36
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +50 -2
- data/lib/linguist/samples.json +2580 -116
- data/lib/linguist/vendor.yml +11 -1
- data/lib/linguist/version.rb +1 -1
- metadata +365 -2
@@ -0,0 +1,614 @@
|
|
1
|
+
{
|
2
|
+
"name": "Less",
|
3
|
+
"scopeName": "source.css.less",
|
4
|
+
"fileTypes": [
|
5
|
+
"less",
|
6
|
+
"less.erb"
|
7
|
+
],
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"include": "#strings"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"captures": {
|
14
|
+
"1": {
|
15
|
+
"name": "entity.other.attribute-name.class.mixin.css"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"match": "(\\.[_a-zA-Z][a-zA-Z0-9_-]*(?=\\())"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"captures": {
|
22
|
+
"1": {
|
23
|
+
"name": "entity.other.attribute-name.class.css"
|
24
|
+
},
|
25
|
+
"2": {
|
26
|
+
"name": "punctuation.definition.entity.css"
|
27
|
+
},
|
28
|
+
"4": {
|
29
|
+
"name": "variable.other.interpolation.less"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"match": "((\\.)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"captures": {
|
36
|
+
"0": {
|
37
|
+
"name": "entity.other.attribute-name.parent-selector.css"
|
38
|
+
},
|
39
|
+
"1": {
|
40
|
+
"name": "punctuation.definition.entity.css"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"match": "(&)[a-zA-Z0-9_-]*"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"begin": "(format|local|url|attr|counter|counters)\\s*(\\()",
|
47
|
+
"beginCaptures": {
|
48
|
+
"1": {
|
49
|
+
"name": "support.function.misc.css"
|
50
|
+
},
|
51
|
+
"2": {
|
52
|
+
"name": "punctuation.section.function.css"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"end": "\\)",
|
56
|
+
"endCaptures": {
|
57
|
+
"0": {
|
58
|
+
"name": "punctuation.section.function.css"
|
59
|
+
}
|
60
|
+
},
|
61
|
+
"patterns": [
|
62
|
+
{
|
63
|
+
"begin": "'",
|
64
|
+
"beginCaptures": {
|
65
|
+
"0": {
|
66
|
+
"name": "punctuation.definition.string.begin.css"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"end": "'",
|
70
|
+
"endCaptures": {
|
71
|
+
"0": {
|
72
|
+
"name": "punctuation.definition.string.end.css"
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"name": "string.quoted.single.css",
|
76
|
+
"patterns": [
|
77
|
+
{
|
78
|
+
"match": "\\\\.",
|
79
|
+
"name": "constant.character.escape.css"
|
80
|
+
}
|
81
|
+
]
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"begin": "\"",
|
85
|
+
"beginCaptures": {
|
86
|
+
"0": {
|
87
|
+
"name": "punctuation.definition.string.begin.css"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"end": "\"",
|
91
|
+
"endCaptures": {
|
92
|
+
"0": {
|
93
|
+
"name": "punctuation.definition.string.end.css"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"name": "string.quoted.double.css",
|
97
|
+
"patterns": [
|
98
|
+
{
|
99
|
+
"match": "\\\\(\\d{1,6}|.)",
|
100
|
+
"name": "constant.character.escape.css"
|
101
|
+
}
|
102
|
+
]
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"match": "[^'\") \\t]+",
|
106
|
+
"name": "variable.parameter.misc.css"
|
107
|
+
}
|
108
|
+
]
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b(?!.*?(?<!@){)",
|
112
|
+
"name": "constant.other.rgb-value.css"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"captures": {
|
116
|
+
"1": {
|
117
|
+
"name": "entity.other.attribute-name.id"
|
118
|
+
},
|
119
|
+
"2": {
|
120
|
+
"name": "punctuation.definition.entity.css"
|
121
|
+
},
|
122
|
+
"4": {
|
123
|
+
"name": "variable.other.interpolation.less"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"match": "((#)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)",
|
127
|
+
"name": "meta.selector.css"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"begin": "/\\*",
|
131
|
+
"beginCaptures": {
|
132
|
+
"0": {
|
133
|
+
"name": "punctuation.definition.comment.begin.css"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"end": "\\*/",
|
137
|
+
"endCaptures": {
|
138
|
+
"0": {
|
139
|
+
"name": "punctuation.definition.comment.end.css"
|
140
|
+
}
|
141
|
+
},
|
142
|
+
"name": "comment.block.css"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"match": "[+-]?\\d*\\.?\\d+",
|
146
|
+
"name": "constant.numeric.css"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"match": "(?<=[\\d])(ch|cm|deg|dpi|dpcm|dppx|em|ex|grad|in|mm|ms|pc|pt|px|rad|rem|turn|s|vh|vmin|vw)\\b|%",
|
150
|
+
"name": "keyword.other.unit.css"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"captures": {
|
154
|
+
"1": {
|
155
|
+
"name": "punctuation.definition.begin.entity.css"
|
156
|
+
},
|
157
|
+
"2": {
|
158
|
+
"name": "entity.other.attribute-name.attribute.css"
|
159
|
+
},
|
160
|
+
"3": {
|
161
|
+
"name": "punctuation.separator.operator.css"
|
162
|
+
},
|
163
|
+
"4": {
|
164
|
+
"name": "string.unquoted.attribute-value.css"
|
165
|
+
},
|
166
|
+
"5": {
|
167
|
+
"name": "string.quoted.double.attribute-value.css"
|
168
|
+
},
|
169
|
+
"6": {
|
170
|
+
"name": "punctuation.definition.string.begin.css"
|
171
|
+
},
|
172
|
+
"7": {
|
173
|
+
"name": "punctuation.definition.string.end.css"
|
174
|
+
},
|
175
|
+
"8": {
|
176
|
+
"name": "punctuation.definition.end.entity.css"
|
177
|
+
}
|
178
|
+
},
|
179
|
+
"match": "(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(\\])",
|
180
|
+
"name": "meta.attribute-selector.css"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"begin": "((@)import\\b)",
|
184
|
+
"beginCaptures": {
|
185
|
+
"1": {
|
186
|
+
"name": "keyword.control.at-rule.import.less"
|
187
|
+
},
|
188
|
+
"2": {
|
189
|
+
"name": "punctuation.definition.keyword.less"
|
190
|
+
}
|
191
|
+
},
|
192
|
+
"end": ";",
|
193
|
+
"endCaptures": {
|
194
|
+
"0": {
|
195
|
+
"name": "punctuation.terminator.rule.css"
|
196
|
+
}
|
197
|
+
},
|
198
|
+
"name": "meta.at-rule.import.css",
|
199
|
+
"patterns": [
|
200
|
+
{
|
201
|
+
"match": "(?<=\\(|,|\\s)\\b(reference|optional|once|multiple|less|inline)\\b(?=\\)|,)",
|
202
|
+
"name": "keyword.control.import.option.less"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"include": "#brace_round"
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"include": "#commas"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"include": "#strings"
|
212
|
+
}
|
213
|
+
]
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"captures": {
|
217
|
+
"1": {
|
218
|
+
"name": "keyword.control.at-rule.fontface.css"
|
219
|
+
},
|
220
|
+
"2": {
|
221
|
+
"name": "punctuation.definition.keyword.css"
|
222
|
+
}
|
223
|
+
},
|
224
|
+
"match": "^\\s*((@)font-face\\b)",
|
225
|
+
"name": "meta.at-rule.fontface.css"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"captures": {
|
229
|
+
"1": {
|
230
|
+
"name": "keyword.control.at-rule.media.css"
|
231
|
+
},
|
232
|
+
"2": {
|
233
|
+
"name": "punctuation.definition.keyword.css"
|
234
|
+
}
|
235
|
+
},
|
236
|
+
"match": "^\\s*((@)media\\b)",
|
237
|
+
"name": "meta.at-rule.media.css"
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"match": "\\b(width|scan|resolution|orientation|monochrome|min-width|min-resolution|min-monochrome|min-height|min-device-width|min-device-height|min-device-aspect-ratio|min-color-index|min-color|min-aspect-ratio|max-width|max-resolution|max-monochrome|max-height|max-device-width|max-device-height|max-device-aspect-ratio|max-color-index|max-color|max-aspect-ratio|height|grid|device-width|device-height|device-aspect-ratio|color-index|color|aspect-ratio)\\b",
|
241
|
+
"name": "support.type.property-name.media-feature.media.css"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"match": "\\b(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)\\b",
|
245
|
+
"name": "support.constant.media-type.media.css"
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"match": "\\b(portrait|landscape)\\b",
|
249
|
+
"name": "support.constant.property-value.media-property.media.css"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"captures": {
|
253
|
+
"1": {
|
254
|
+
"name": "support.function.less"
|
255
|
+
}
|
256
|
+
},
|
257
|
+
"match": "(\\.[a-zA-Z0-9_-]+)\\s*(;|\\()"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"begin": "(^[ \\t]+)?(?=//)",
|
261
|
+
"beginCaptures": {
|
262
|
+
"1": {
|
263
|
+
"name": "punctuation.whitespace.comment.leading.less"
|
264
|
+
}
|
265
|
+
},
|
266
|
+
"end": "(?!\\G)",
|
267
|
+
"patterns": [
|
268
|
+
{
|
269
|
+
"begin": "//",
|
270
|
+
"beginCaptures": {
|
271
|
+
"0": {
|
272
|
+
"name": "punctuation.definition.comment.less"
|
273
|
+
}
|
274
|
+
},
|
275
|
+
"end": "\\n",
|
276
|
+
"name": "comment.line.double-slash.less"
|
277
|
+
}
|
278
|
+
]
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"captures": {
|
282
|
+
"1": {
|
283
|
+
"name": "punctuation.definition.variable.less"
|
284
|
+
}
|
285
|
+
},
|
286
|
+
"match": "@[a-zA-Z0-9_-][\\w-]*(?=\\s*)",
|
287
|
+
"name": "variable.other.less"
|
288
|
+
},
|
289
|
+
{
|
290
|
+
"include": "#variable_interpolation"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"begin": "{",
|
294
|
+
"beginCaptures": {
|
295
|
+
"0": {
|
296
|
+
"name": "punctuation.section.property-list.begin.css"
|
297
|
+
}
|
298
|
+
},
|
299
|
+
"end": "}",
|
300
|
+
"endCaptures": {
|
301
|
+
"0": {
|
302
|
+
"name": "punctuation.section.property-list.end.css"
|
303
|
+
}
|
304
|
+
},
|
305
|
+
"name": "meta.property-list.css",
|
306
|
+
"patterns": [
|
307
|
+
{
|
308
|
+
"include": "#pseudo_elements"
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"include": "#pseudo_classes"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"include": "#variable_interpolation"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"include": "#property_names"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"include": "#property_names_svg"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"include": "#property_values"
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"include": "$self"
|
327
|
+
}
|
328
|
+
]
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"match": "\\!\\s*important",
|
332
|
+
"name": "keyword.other.important.css"
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"match": "\\$|%|&|\\*|\\/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|(?<!\\()/=|%=|\\+=|\\-=|&=|\\^=|\\/\\b",
|
336
|
+
"name": "keyword.operator.less"
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"match": "\\s(\\=\\=|\\!\\=|\\<\\=|\\>\\=|\\<|\\>|not|or|and|when)\\s",
|
340
|
+
"name": "keyword.control.logical.operator"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"match": "\\b(a|abbr|acronym|address|applet|article|area|audio|video|b|base|big|blockquote|body|br|button|caption|canvas|center|cite|code|col|colgroup|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figure|figcaption|form|frame|frameset|(h[1-6])|head|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|main|map|mark|meta|menu|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|q|ruby|s|samp|script|select|small|span|strike|strong|style|sub|sup|summary|svg|table(?!-)|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var|header|section|footer|aside|hgroup|time)\\b",
|
344
|
+
"name": "keyword.control.html.elements"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"match": "\\b(vkern|view|use|tspan|tref|title|textPath|text|symbol|switch|svg|style|stop|set|script|rect|radialGradient|polyline|polygon|pattern|path|mpath|missing-glyph|metadata|mask|marker|linearGradient|line|image|hkern|glyphRef|glyph|g|foreignObject|font-face-uri|font-face-src|font-face-name|font-face-format|font-face|font|filter|feTurbulence|feTile|feSpotLight|feSpecularLighting|fePointLight|feOffset|feMorphology|feMergeNode|feMerge|feImage|feGaussianBlur|feFuncR|feFuncG|feFuncB|feFuncA|feFlood|feDistantLight|feDisplacementMap|feDiffuseLighting|feConvolveMatrix|feComposite|feComponentTransfer|feColorMatrix|feBlend|ellipse|desc|defs|cursor|color-profile|clipPath|circle|animateTransform|animateMotion|animateColor|animate|altGlyphItem|altGlyphDef|altGlyph|a)\\b",
|
348
|
+
"name": "keyword.control.html.svg.elements"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"match": "(?<!:)\\b([a-zA-Z0-9]+(-[a-zA-Z0-9]+)+)(?=\\.|\\s++[^:]|\\s*[,{]|:+(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|shadow)(\\([0-9A-Za-z]*\\))?)",
|
352
|
+
"name": "keyword.control.html.custom.elements"
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"include": "#pseudo_elements"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"include": "#pseudo_classes"
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"captures": {
|
362
|
+
"1": {
|
363
|
+
"name": "punctuation.section.property-list.begin.css"
|
364
|
+
},
|
365
|
+
"2": {
|
366
|
+
"name": "punctuation.section.property-list.end.css"
|
367
|
+
}
|
368
|
+
},
|
369
|
+
"comment": "Match empty braces to give proper ↩ action",
|
370
|
+
"match": "(\\{)(\\})",
|
371
|
+
"name": "meta.brace.curly.css"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"match": "\\{|\\}",
|
375
|
+
"name": "meta.brace.curly.css"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"include": "#brace_round"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"match": "\\[|\\]",
|
382
|
+
"name": "meta.brace.square.less"
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"match": ";",
|
386
|
+
"name": "punctuation.terminator.rule.css"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"match": ":",
|
390
|
+
"name": "punctuation.separator.key-value.css"
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"match": "\\btrue\\b",
|
394
|
+
"name": "constant.language.boolean.less"
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"match": "\\bdefault\\b",
|
398
|
+
"name": "support.function.default.less"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"match": "\\b(isurl|isstring|isnumber|iskeyword|iscolor)\\b",
|
402
|
+
"name": "support.function.type-checking.less"
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"match": "\\b(isunit|ispixel|ispercentage|isem)\\b",
|
406
|
+
"name": "support.function.unit-checking.less"
|
407
|
+
},
|
408
|
+
{
|
409
|
+
"include": "#font_names"
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"include": "#commas"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"include": "#color_names"
|
416
|
+
},
|
417
|
+
{
|
418
|
+
"include": "#less_builtin_functions"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"include": "#css_builtin_functions"
|
422
|
+
},
|
423
|
+
{
|
424
|
+
"include": "#gradient_builtin_functions"
|
425
|
+
}
|
426
|
+
],
|
427
|
+
"repository": {
|
428
|
+
"variable_interpolation": {
|
429
|
+
"match": "@{[a-zA-Z0-9_-]+}",
|
430
|
+
"name": "variable.other.interpolation.less"
|
431
|
+
},
|
432
|
+
"strings": {
|
433
|
+
"patterns": [
|
434
|
+
{
|
435
|
+
"begin": "\"",
|
436
|
+
"beginCaptures": {
|
437
|
+
"0": {
|
438
|
+
"name": "punctuation.definition.string.begin.css"
|
439
|
+
}
|
440
|
+
},
|
441
|
+
"end": "\"",
|
442
|
+
"endCaptures": {
|
443
|
+
"0": {
|
444
|
+
"name": "punctuation.definition.string.end.css"
|
445
|
+
}
|
446
|
+
},
|
447
|
+
"name": "string.quoted.double.css",
|
448
|
+
"patterns": [
|
449
|
+
{
|
450
|
+
"match": "\\\\(\\d{1,6}|.)",
|
451
|
+
"name": "constant.character.escaped.css"
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"include": "#variable_interpolation"
|
455
|
+
}
|
456
|
+
]
|
457
|
+
},
|
458
|
+
{
|
459
|
+
"begin": "'",
|
460
|
+
"beginCaptures": {
|
461
|
+
"0": {
|
462
|
+
"name": "punctuation.definition.string.begin.css"
|
463
|
+
}
|
464
|
+
},
|
465
|
+
"end": "'",
|
466
|
+
"endCaptures": {
|
467
|
+
"0": {
|
468
|
+
"name": "punctuation.definition.string.end.css"
|
469
|
+
}
|
470
|
+
},
|
471
|
+
"name": "string.quoted.single.css",
|
472
|
+
"patterns": [
|
473
|
+
{
|
474
|
+
"match": "\\\\.",
|
475
|
+
"name": "constant.character.escaped.css"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"include": "#variable_interpolation"
|
479
|
+
}
|
480
|
+
]
|
481
|
+
}
|
482
|
+
]
|
483
|
+
},
|
484
|
+
"commas": {
|
485
|
+
"match": ",",
|
486
|
+
"name": "punctuation.separator.list.css"
|
487
|
+
},
|
488
|
+
"brace_round": {
|
489
|
+
"match": "\\(|\\)",
|
490
|
+
"name": "meta.brace.round.css"
|
491
|
+
},
|
492
|
+
"property_names": {
|
493
|
+
"captures": {
|
494
|
+
"1": {
|
495
|
+
"name": "support.type.property-name.css"
|
496
|
+
}
|
497
|
+
},
|
498
|
+
"match": "(?<![-a-z])(-webkit-[-A-Za-z]+|-moz-[-A-Za-z]+|-o-[-A-Za-z]+|-ms-[-A-Za-z]+|-khtml-[-A-Za-z]+|zoom|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-range|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-rendering|text-overflow|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-size|style-type|style-position|style-image|style|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|respond-to|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|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|pointer-events|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|order|opacity|offset|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|mix-blend-mode|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|mask-image|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-break|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify-content|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-kerning|font-language-override|font-weight|font-variant-caps|font-variant|font-style|font-synthesis|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|fill|filter|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-blend-mode|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-fill-mode|animation|alignment-baseline|alignment-adjust|alignment|align-self|align-last|align-items|align-content|align|after|adjust|will-change)(?=\\s*:?(.*\\()|(?!.*(?<!@){))\\b"
|
499
|
+
},
|
500
|
+
"property_names_svg": {
|
501
|
+
"captures": {
|
502
|
+
"1": {
|
503
|
+
"name": "support.type.property-name.svg.css"
|
504
|
+
}
|
505
|
+
},
|
506
|
+
"match": "(?<![-a-z])(writing-mode|text-anchor|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|stop-opacity|stop-color|shape-rendering|marker-start|marker-mid|marker-end|lighting-color|kerning|image-rendering|glyph-orientation-vertical|glyph-orientation-horizontal|flood-opacity|flood-color|fill-rule|fill-opacity|fill|enable-background|color-rendering|color-interpolation-filters|color-interpolation|clip-rule|clip-path)(?=\\s*:)"
|
507
|
+
},
|
508
|
+
"property_values": {
|
509
|
+
"begin": "(?<!&)(:)\\s*(?!(\\s*{))(?!.*(?<!@){)",
|
510
|
+
"beginCaptures": {
|
511
|
+
"1": {
|
512
|
+
"name": "punctuation.separator.key-value.css"
|
513
|
+
}
|
514
|
+
},
|
515
|
+
"end": "\\s*(;)|(?=})",
|
516
|
+
"endCaptures": {
|
517
|
+
"1": {
|
518
|
+
"name": "punctuation.terminator.rule.css"
|
519
|
+
}
|
520
|
+
},
|
521
|
+
"name": "meta.property-value.css",
|
522
|
+
"patterns": [
|
523
|
+
{
|
524
|
+
"match": "\\b(wrap-reverse|wrap|whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|unicase|underline|ultra-expanded|ultra-condensed|transparent|transform|top|titling-caps|thin|thick|text-top|text-bottom|text|tb-rl|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table|sw-resize|super|strict|stretch|step-start|step-end|static|square|space-between|space-around|space|solid|soft-light|small-caps|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|saturation|s-resize|running|rtl|row-reverse|row-resize|row|round|right|ridge|reverse|repeat-y|repeat-x|repeat|relative|progressive|progress|pre-wrap|pre-line|pre|pointer|petite-caps|paused|pan-x|pan-left|pan-right|pan-y|pan-up|pan-down|padding-box|overline|overlay|outside|outset|optimizeSpeed|optimizeLegibility|opacity|oblique|nw-resize|nowrap|not-allowed|normal|none|no-repeat|no-drop|newspaper|ne-resize|n-resize|multiply|move|middle|medium|max-height|manipulation|main-size|luminosity|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|local|list-item|linear(?!-)|line-through|line-edge|line|lighter|lighten|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline-block|inline|inherit|infinite|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|hue|horizontal|hidden|help|hard-light|hand|groove|geometricPrecision|forwards|flex-start|flex-end|flex|fixed|extra-expanded|extra-condensed|expanded|exclusion|ellipsis|ease-out|ease-in-out|ease-in|ease|e-resize|double|dotted|distribute-space|distribute-letter|distribute-all-lines|distribute|disc|disabled|difference|default|decimal|dashed|darken|currentColor|crosshair|cover|content-box|contain|condensed|column-reverse|column|color-dodge|color-burn|color|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|border-box|bolder|bold|block|bidi-override|below|baseline|balance|backwards|auto|antialiased|always|alternate-reverse|alternate|all-small-caps|all-scroll|all-petite-caps|all|absolute)\\b",
|
525
|
+
"name": "support.constant.property-value.css"
|
526
|
+
},
|
527
|
+
{
|
528
|
+
"match": "\\b(start|sRGB|square|round|optimizeSpeed|optimizeQuality|nonzero|miter|middle|linearRGB|geometricPrecision |evenodd |end |crispEdges|butt|bevel)\\b",
|
529
|
+
"name": "support.constant.property-value.svg.css"
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"begin": "url(\\()",
|
533
|
+
"beginCaptures": {
|
534
|
+
"1": {
|
535
|
+
"name": "meta.brace.round.css"
|
536
|
+
}
|
537
|
+
},
|
538
|
+
"end": "\\)",
|
539
|
+
"endCaptures": {
|
540
|
+
"0": {
|
541
|
+
"name": "meta.brace.round.css"
|
542
|
+
}
|
543
|
+
},
|
544
|
+
"name": "support.function.any-method.builtin.url.css",
|
545
|
+
"patterns": [
|
546
|
+
{
|
547
|
+
"include": "#strings"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"match": "(\\b|/).*\\b",
|
551
|
+
"name": "string.url.css"
|
552
|
+
}
|
553
|
+
]
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"include": "#font_names"
|
557
|
+
},
|
558
|
+
{
|
559
|
+
"include": "#color_names"
|
560
|
+
},
|
561
|
+
{
|
562
|
+
"include": "#less_builtin_functions"
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"include": "#css_builtin_functions"
|
566
|
+
},
|
567
|
+
{
|
568
|
+
"include": "#gradient_builtin_functions"
|
569
|
+
},
|
570
|
+
{
|
571
|
+
"include": "$self"
|
572
|
+
}
|
573
|
+
]
|
574
|
+
},
|
575
|
+
"pseudo_elements": {
|
576
|
+
"captures": {
|
577
|
+
"1": {
|
578
|
+
"name": "punctuation.definition.entity.css"
|
579
|
+
}
|
580
|
+
},
|
581
|
+
"match": "(:|::)(after|before|first-letter|first-line|selection)",
|
582
|
+
"name": "entity.other.attribute-name.pseudo-element.css"
|
583
|
+
},
|
584
|
+
"pseudo_classes": {
|
585
|
+
"captures": {
|
586
|
+
"1": {
|
587
|
+
"name": "punctuation.definition.entity.css"
|
588
|
+
}
|
589
|
+
},
|
590
|
+
"match": "(:)(active|checked|default|dir|disabled|empty|enabled|extend|first-child|first-of-type|first|fullscreen|focus|hover|indeterminate|in-range|invalid|lang|last-child|last-of-type|left|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|optional|out-of-range|read-only|read-write|required|right|root|scope|shadow|target|valid|visited)(?!\\s*;)",
|
591
|
+
"name": "entity.other.attribute-name.pseudo-class.css"
|
592
|
+
},
|
593
|
+
"font_names": {
|
594
|
+
"match": "(\\b(?i:arial|century|comic|courier|cursive|fantasy|futura|garamond|georgia|helvetica|impact|lucida|monospace|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif)\\b)",
|
595
|
+
"name": "support.constant.font-name.css"
|
596
|
+
},
|
597
|
+
"color_names": {
|
598
|
+
"match": "\\b(yellowgreen|yellow|whitesmoke|white|wheat|violet|turquoise|tomato|thistle|teal|tan|steelblue|springgreen|snow|slategrey|slategray|slateblue|skyblue|silver|sienna|seashell|seagreen|sandybrown|salmon|saddlebrown|royalblue|rosybrown|red|rebeccapurple|purple|powderblue|plum|pink|peru|peachpuff|papayawhip|palevioletred|paleturquoise|palegreen|palegoldenrod|orchid|orangered|orange|olivedrab|olive|oldlace|navy|navajowhite|moccasin|mistyrose|mintcream|midnightblue|mediumvioletred|mediumturquoise|mediumspringgreen|mediumslateblue|mediumseagreen|mediumpurple|mediumorchid|mediumblue|mediumaquamarine|maroon|linen|limegreen|lime|lightyellow|lightsteelblue|lightslategrey|lightslategray|lightskyblue|lightseagreen|lightsalmon|lightpink|lightgrey|lightgreen|lightgray|lightgoldenrodyellow|lightcyan|lightcoral|lightblue|lemonchiffon|lawngreen|lavenderblush|lavender|khaki|ivory|indigo|indianred|hotpink|honeydew|grey|greenyellow|green|gray|goldenrod|gold|ghostwhite|gainsboro|fuchsia|forestgreen|floralwhite|firebrick|dodgerblue|dimgrey|dimgray|deepskyblue|deeppink|darkviolet|darkturquoise|darkslategrey|darkslategray|darkslateblue|darkseagreen|darksalmon|darkred|darkorchid|darkorange|darkolivegreen|darkmagenta|darkkhaki|darkgrey|darkgreen|darkgray|darkgoldenrod|darkcyan|darkblue|crimson|cornsilk|cornflowerblue|coral|chocolate|chartreuse|cadetblue|burlywood|brown|blueviolet|blue|blanchedalmond|black|bisque|beige|azure|aquamarine|aqua|antiquewhite|aliceblue)\\b",
|
599
|
+
"name": "support.constant.color.w3c-standard-color-name.css"
|
600
|
+
},
|
601
|
+
"less_builtin_functions": {
|
602
|
+
"match": "\\b(abs|acos|alpha|argb|asin|atan|average|blue|calc|ceil|color|contrast|convert|convert|cos|darken|data-uri|desaturate|difference|e|escape|exclusion|extract|fade|fadein|fadeout|floor|format|green|greyscale|hardlight|hsl|hsla|hsv|hsva|hsvhue|hsvsaturation|hsvvalue|hue|length|lighten|lightness|luma|max|min|mix|mod|multiply|negation|overlay|percentage|pi|pow|red|replace|round|saturate|saturation|screen|sin|softlight|spin|sqrt|tan|unit)\\b",
|
603
|
+
"name": "support.function.any-method.builtin.less"
|
604
|
+
},
|
605
|
+
"css_builtin_functions": {
|
606
|
+
"match": "\\b(url|translate3d|translate[XYZ]|translate|skew[XY]|skew|scale[XYZ]|scale|rotate3d|rotate[XYZ]|rotate|rgba|rgb|repeating-radial-gradient|repeating-linear-gradient|rect|radial-gradient|matrix3d|matrix|linear-gradient|hsla|hsl|drop-shadow|cubic-bezier|blur)\\b",
|
607
|
+
"name": "support.function.any-method.builtin.css"
|
608
|
+
},
|
609
|
+
"gradient_builtin_functions": {
|
610
|
+
"match": "\\b(color-stop|from|to)\\b",
|
611
|
+
"name": "support.function.any-method.gradient.css"
|
612
|
+
}
|
613
|
+
}
|
614
|
+
}
|