github-linguist-grammars 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/grammars/file.lasso.json +713 -0
- data/grammars/module.ceylon.json +54 -0
- data/grammars/objdump.x86asm.json +73 -0
- data/grammars/source.Inform7.json +45 -0
- data/grammars/source.Kotlin.json +774 -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 +963 -0
- data/grammars/source.ats.json +170 -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.clips.json +80 -0
- data/grammars/source.clojure.json +397 -0
- data/grammars/source.cm.json +54 -0
- data/grammars/source.cmake.json +181 -0
- data/grammars/source.cobol.json +528 -0
- data/grammars/source.coffee.json +678 -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 +556 -0
- data/grammars/source.css.json +630 -0
- data/grammars/source.css.less.json +276 -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 +722 -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 +737 -0
- data/grammars/source.elm.json +355 -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 +260 -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.json +403 -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 +1270 -0
- data/grammars/source.glsl.json +71 -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 +1243 -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.ini.json +113 -0
- data/grammars/source.inno.json +65 -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.jade.json +1009 -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 +948 -0
- data/grammars/source.js.jsx.json +2937 -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 +669 -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 +701 -0
- data/grammars/source.mata.json +133 -0
- data/grammars/source.mathematica.json +429 -0
- data/grammars/source.matlab.json +776 -0
- data/grammars/source.mercury.json +251 -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 +797 -0
- data/grammars/source.nim.json +1150 -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 +150 -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 +310 -0
- data/grammars/source.perl.json +2413 -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.postscript.json +231 -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 +818 -0
- data/grammars/source.pyjade.json +1010 -0
- data/grammars/source.python.django.json +34 -0
- data/grammars/source.python.json +1960 -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.python.json +187 -0
- data/grammars/source.regexp.spin.json +188 -0
- data/grammars/source.ruby.json +1956 -0
- data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
- data/grammars/source.rust.json +269 -0
- data/grammars/source.sas.json +322 -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 +1212 -0
- data/grammars/source.smali.json +1668 -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.stata.json +208 -0
- data/grammars/source.strings.json +53 -0
- data/grammars/source.stylus.json +1021 -0
- data/grammars/source.swift.json +965 -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 +1094 -0
- data/grammars/source.tsx.json +1324 -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.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 +334 -0
- data/grammars/source.yaml.salt.json +348 -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 +24 -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 +27 -0
- data/grammars/text.html.handlebars.json +783 -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 +2607 -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.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 +48 -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 +99 -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/grammars.rb +13 -0
- metadata +389 -0
@@ -0,0 +1,208 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"do",
|
4
|
+
"ado",
|
5
|
+
"mata"
|
6
|
+
],
|
7
|
+
"foldingStartMarker": "\\{\\s*$",
|
8
|
+
"foldingStopMarker": "^\\s*\\}",
|
9
|
+
"keyEquivalent": "^~S",
|
10
|
+
"name": "Stata",
|
11
|
+
"patterns": [
|
12
|
+
{
|
13
|
+
"begin": "\"",
|
14
|
+
"beginCaptures": {
|
15
|
+
"0": {
|
16
|
+
"name": "punctuation.definition.string.begin.stata"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"end": "\"",
|
20
|
+
"endCaptures": {
|
21
|
+
"0": {
|
22
|
+
"name": "punctuation.definition.string.end.stata"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"name": "string.quoted.double.stata"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"begin": "`\"",
|
29
|
+
"beginCaptures": {
|
30
|
+
"0": {
|
31
|
+
"name": "punctuation.definition.string.begin.stata"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"end": "\"'",
|
35
|
+
"endCaptures": {
|
36
|
+
"0": {
|
37
|
+
"name": "punctuation.definition.string.end.stata"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"name": "string.quoted.double.compound.stata",
|
41
|
+
"patterns": [
|
42
|
+
{
|
43
|
+
"include": "#cdq_string_content"
|
44
|
+
}
|
45
|
+
]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"begin": "/\\*",
|
49
|
+
"beginCaptures": {
|
50
|
+
"0": {
|
51
|
+
"name": "punctuation.definition.comment.begin.stata"
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"end": "\\*/",
|
55
|
+
"endCaptures": {
|
56
|
+
"0": {
|
57
|
+
"name": "punctuation.definition.comment.end.stata"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"name": "comment.block.stata",
|
61
|
+
"patterns": [
|
62
|
+
{
|
63
|
+
"include": "#cb_content"
|
64
|
+
}
|
65
|
+
]
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"captures": {
|
69
|
+
"0": {
|
70
|
+
"name": "punctuation.definition.comment.stata"
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"match": "^\\s*(\\*).*$\\n?",
|
74
|
+
"name": "comment.line.star.stata"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"captures": {
|
78
|
+
"0": {
|
79
|
+
"name": "punctuation.definition.comment.stata"
|
80
|
+
}
|
81
|
+
},
|
82
|
+
"match": "(///).*$\\n?",
|
83
|
+
"name": "comment.line.triple-slash.stata"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"captures": {
|
87
|
+
"0": {
|
88
|
+
"name": "punctuation.definition.comment.stata"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"match": "(//).*$\\n?",
|
92
|
+
"name": "comment.line.double-slash.stata"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"match": "\\+|\\-|\\*|\\^",
|
96
|
+
"name": "keyword.operator.arithmetic.stata"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"comment": "match division operator but not path separator",
|
100
|
+
"match": "(?<![a-zA-Z.])/(?![a-zA-Z.]|$)",
|
101
|
+
"name": "keyword.operator.arithmetic.stata"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"match": "\\&|\\||!|~",
|
105
|
+
"name": "keyword.operator.logical.stata"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"match": "<|>|<\\=|>\\=|\\=\\=|!\\=|~\\=",
|
109
|
+
"name": "keyword.operator.comparison.stata"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"match": "\\=",
|
113
|
+
"name": "keyword.operator.assignment.stata"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"match": "\\b(while|forv(a|al|alu|alue|alues)?|continue)\\b",
|
117
|
+
"name": "keyword.control.flow.stata"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"captures": {
|
121
|
+
"1": {
|
122
|
+
"name": "keyword.control.flow.stata"
|
123
|
+
},
|
124
|
+
"2": {
|
125
|
+
"name": "keyword.control.flow.stata"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"match": "\\b(foreach)\\s+[a-zA-Z0-9_]+\\s+(in|of loc(a|al)?|of glo(b|ba|bal)?|of var(l|li|lis|list)?|of new(l|li|lis|list)?|of num(l|li|lis|list)?)\\b"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"captures": {
|
132
|
+
"1": {
|
133
|
+
"name": "keyword.control.flow.stata"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"match": "^\\s*(if|else if|else)\\b"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"captures": {
|
140
|
+
"1": {
|
141
|
+
"name": "storage.type.macro.stata"
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"match": "^\\s*(gl(o|ob|oba|obal)?|loc(a|al)?|tempvar|tempname|tempfile)\\b"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"captures": {
|
148
|
+
"1": {
|
149
|
+
"name": "storage.type.scalar.stata"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"match": "^\\s*(sca(l|la|lar)?(\\s+de(f|fi|fin|fine)?)?)\\s+(?!(drop|dir?|l(i|is|ist)?)\\s+)"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"captures": {
|
156
|
+
"4": {
|
157
|
+
"name": "keyword.control.flow.stata"
|
158
|
+
},
|
159
|
+
"5": {
|
160
|
+
"name": "keyword.control.flow.stata"
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"match": "(^|:|{|qui(e|et|etl|etly)?\\s+|n(o|oi|ois|oisi|oisil|oisily)?\\s+)\\s*(by(s|so|sor|sort)?)((\\s|,)[^:]*)?(?=:)"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"captures": {
|
167
|
+
"4": {
|
168
|
+
"name": "storage.type.variable.stata"
|
169
|
+
}
|
170
|
+
},
|
171
|
+
"match": "(^|:|{|qui(e|et|etl|etly)?\\s+|n(o|oi|ois|oisi|oisil|oisily)?\\s+)\\s*((g(e|en|ene|ener|enera|enerat|enerate)?)|replace|egen)\\b"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"begin": "^\\s*mata:?\\s*$",
|
175
|
+
"comment": "won't match single-line Mata statements",
|
176
|
+
"contentName": "source.mata",
|
177
|
+
"end": "^\\s*end\\s*$\\n?",
|
178
|
+
"name": "meta.embedded.block.mata",
|
179
|
+
"patterns": [
|
180
|
+
{
|
181
|
+
"include": "source.mata"
|
182
|
+
}
|
183
|
+
]
|
184
|
+
}
|
185
|
+
],
|
186
|
+
"repository": {
|
187
|
+
"cb_content": {
|
188
|
+
"begin": "/\\*",
|
189
|
+
"end": "\\*/",
|
190
|
+
"patterns": [
|
191
|
+
{
|
192
|
+
"include": "#cb_content"
|
193
|
+
}
|
194
|
+
]
|
195
|
+
},
|
196
|
+
"cdq_string_content": {
|
197
|
+
"begin": "`\"",
|
198
|
+
"end": "\"'",
|
199
|
+
"patterns": [
|
200
|
+
{
|
201
|
+
"include": "#cdq_string_content"
|
202
|
+
}
|
203
|
+
]
|
204
|
+
}
|
205
|
+
},
|
206
|
+
"scopeName": "source.stata",
|
207
|
+
"uuid": "4011DD24-A5DD-4723-AE6B-65042218AB1F"
|
208
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"strings"
|
4
|
+
],
|
5
|
+
"name": "Strings File",
|
6
|
+
"patterns": [
|
7
|
+
{
|
8
|
+
"begin": "/\\*",
|
9
|
+
"captures": {
|
10
|
+
"0": {
|
11
|
+
"name": "punctuation.definition.comment.strings"
|
12
|
+
}
|
13
|
+
},
|
14
|
+
"end": "\\*/",
|
15
|
+
"name": "comment.block.strings"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"begin": "\"",
|
19
|
+
"beginCaptures": {
|
20
|
+
"0": {
|
21
|
+
"name": "punctuation.definition.string.begin.strings"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"end": "\"",
|
25
|
+
"endCaptures": {
|
26
|
+
"0": {
|
27
|
+
"name": "punctuation.definition.string.end.strings"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"name": "string.quoted.double.strings",
|
31
|
+
"patterns": [
|
32
|
+
{
|
33
|
+
"match": "\\\\(\\\\|[abefnrtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-zA-Z0-9]+)",
|
34
|
+
"name": "constant.character.escape.strings"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"match": "\\\\.",
|
38
|
+
"name": "invalid.illegal.unknown-escape.strings"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"match": "(?x)%\n\t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n\t\t\t\t\t\t[#0\\- +']* # flags\n\t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n\t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n\t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n\t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n\t\t\t\t\t\t[@diouxXDOUeEfFgGaACcSspn%] # conversion type\n\t\t\t\t\t",
|
42
|
+
"name": "constant.other.placeholder.strings"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"match": "%",
|
46
|
+
"name": "invalid.illegal.placeholder.c"
|
47
|
+
}
|
48
|
+
]
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"scopeName": "source.strings",
|
52
|
+
"uuid": "429E2DB7-EB4F-4B34-A4DF-DBFD3336C581"
|
53
|
+
}
|
@@ -0,0 +1,1021 @@
|
|
1
|
+
{
|
2
|
+
"name": "Stylus",
|
3
|
+
"scopeName": "source.stylus",
|
4
|
+
"fileTypes": [
|
5
|
+
"styl",
|
6
|
+
"stylus"
|
7
|
+
],
|
8
|
+
"foldingStartMarker": "\\{\\s*$",
|
9
|
+
"foldingStopMarker": "^\\s*\\}",
|
10
|
+
"uuid": "5739E0FB-A2C0-4CB4-AB89-AFFFFD1F3FA1",
|
11
|
+
"repository": {
|
12
|
+
"string-quoted": {
|
13
|
+
"patterns": [
|
14
|
+
{
|
15
|
+
"match": "'[^']*'",
|
16
|
+
"name": "string.quoted.single.stylus"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"match": "\"[^\"]*\"",
|
20
|
+
"name": "string.quoted.double.stylus"
|
21
|
+
}
|
22
|
+
]
|
23
|
+
},
|
24
|
+
"variable": {
|
25
|
+
"match": "([\\w$-]+\\b)",
|
26
|
+
"name": "variable.other.stylus"
|
27
|
+
},
|
28
|
+
"hash-definition": {
|
29
|
+
"begin": "\\{",
|
30
|
+
"beginCaptures": {
|
31
|
+
"0": {
|
32
|
+
"name": "punctuation.section.embedded.start.stylus"
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"end": "\\}",
|
36
|
+
"endCaptures": {
|
37
|
+
"0": {
|
38
|
+
"name": "punctuation.section.embedded.end.stylus"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"patterns": [
|
42
|
+
{
|
43
|
+
"include": "#single-line-comment"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"begin": "(?x)\n(?:\n ([\\w$-]+)\n |\n ('[^']*')\n |\n (\"[^\"]*\")\n)\n\\s*\n(:)\n\\s*\n",
|
47
|
+
"beginCaptures": {
|
48
|
+
"1": {
|
49
|
+
"name": "support.type.property-name.stylus"
|
50
|
+
},
|
51
|
+
"2": {
|
52
|
+
"name": "string.quoted.single.stylus"
|
53
|
+
},
|
54
|
+
"3": {
|
55
|
+
"name": "string.quoted.double.stylus"
|
56
|
+
},
|
57
|
+
"4": {
|
58
|
+
"name": "punctuation.separator.key-value.stylus"
|
59
|
+
}
|
60
|
+
},
|
61
|
+
"patterns": [
|
62
|
+
{
|
63
|
+
"include": "#expression"
|
64
|
+
}
|
65
|
+
],
|
66
|
+
"end": "(;)|(?=\\}|$)",
|
67
|
+
"endCaptures": {
|
68
|
+
"1": {
|
69
|
+
"name": "punctuation.terminator.statement.stylus"
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"name": "meta.hash.stylus"
|
75
|
+
},
|
76
|
+
"hash-access": {
|
77
|
+
"begin": "(?=[\\w$-]+(?:\\.|\\[[^\\]=]*\\]))",
|
78
|
+
"end": "(?=[^''\"\"\\[\\]\\w.$-]|\\s|$)",
|
79
|
+
"patterns": [
|
80
|
+
{
|
81
|
+
"match": "\\.",
|
82
|
+
"name": "punctuation.delimiter.hash.stylus"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"match": "\\[",
|
86
|
+
"name": "punctuation.definition.entity.start.stylus"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"match": "\\]",
|
90
|
+
"name": "punctuation.definition.entity.end.stylus"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"include": "#string-quoted"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"include": "#variable"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"name": "meta.hash-access.stylus"
|
100
|
+
},
|
101
|
+
"escape": {
|
102
|
+
"match": "\\\\.",
|
103
|
+
"name": "constant.character.escape.stylus"
|
104
|
+
},
|
105
|
+
"interpolation": {
|
106
|
+
"begin": "\\{",
|
107
|
+
"end": "\\}",
|
108
|
+
"beginCaptures": {
|
109
|
+
"0": {
|
110
|
+
"name": "punctuation.section.embedded.start.stylus"
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"endCaptures": {
|
114
|
+
"0": {
|
115
|
+
"name": "punctuation.section.embedded.end.stylus"
|
116
|
+
}
|
117
|
+
},
|
118
|
+
"patterns": [
|
119
|
+
{
|
120
|
+
"include": "#expression"
|
121
|
+
}
|
122
|
+
],
|
123
|
+
"name": "stylus.embedded.source"
|
124
|
+
},
|
125
|
+
"language-constants": {
|
126
|
+
"match": "\\b(true|false|null)\\b",
|
127
|
+
"name": "constant.language.stylus"
|
128
|
+
},
|
129
|
+
"language-operators": {
|
130
|
+
"match": "((?:\\?|:|!|~|\\+|-|(?:\\*)?\\*|\\/|%|(\\.)?\\.\\.|<|>|(?:=|:|\\?|\\+|-|\\*|\\/|%|<|>)?=|!=)|\\b(?:in|is(?:nt)?|(?<!:)not)\\b)",
|
131
|
+
"name": "keyword.operator.stylus"
|
132
|
+
},
|
133
|
+
"language-keywords": {
|
134
|
+
"patterns": [
|
135
|
+
{
|
136
|
+
"match": "(\\b|\\s)(return|else)\\b",
|
137
|
+
"name": "keyword.control.stylus"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"match": "(\\b|\\s)(!important|in|is defined|is a)\\b",
|
141
|
+
"name": "keyword.other.stylus"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"match": "\\barguments\\b",
|
145
|
+
"name": "variable.language.stylus"
|
146
|
+
}
|
147
|
+
]
|
148
|
+
},
|
149
|
+
"language-property-value-constants": {
|
150
|
+
"match": "\\b(absolute|all(-scroll)?|always|armenian|auto|avoid|baseline|below|bidi-override|block|bold(er)?|(border|content|padding)-box|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|crosshair|cursive|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fantasy|fixed|geometricPrecision|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|monospace|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|optimize(Legibility|Quality|Speed)|outset|outside|overline|pointer|pre(-(wrap|line))?|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|(sans-)?serif|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|sub|super|sw-resize|table(-(row|cell|footer-group|header-group))?|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|vertical(-(ideographic|text))?|visible(Painted|Fill|Stroke)?|w-resize|wait|whitespace|zero|smaller|larger|((xx?-)?(small(er)?|large(r)?))|painted|fill|stroke)\\b",
|
151
|
+
"name": "constant.property-value.stylus"
|
152
|
+
},
|
153
|
+
"numeric-values": {
|
154
|
+
"patterns": [
|
155
|
+
{
|
156
|
+
"captures": {
|
157
|
+
"1": {
|
158
|
+
"name": "punctuation.definition.constant.stylus"
|
159
|
+
},
|
160
|
+
"2": {
|
161
|
+
"name": "constant.other.color.rgb-value.red.stylus"
|
162
|
+
},
|
163
|
+
"3": {
|
164
|
+
"name": "constant.other.color.rgb-value.green.stylus"
|
165
|
+
},
|
166
|
+
"4": {
|
167
|
+
"name": "constant.other.color.rgb-value.blue.stylus"
|
168
|
+
},
|
169
|
+
"5": {
|
170
|
+
"name": "constant.other.color.rgb-value.alpha.stylus"
|
171
|
+
},
|
172
|
+
"6": {
|
173
|
+
"name": "constant.other.color.rgb-value.red.stylus"
|
174
|
+
},
|
175
|
+
"7": {
|
176
|
+
"name": "constant.other.color.rgb-value.green.stylus"
|
177
|
+
},
|
178
|
+
"8": {
|
179
|
+
"name": "constant.other.color.rgb-value.blue.stylus"
|
180
|
+
},
|
181
|
+
"9": {
|
182
|
+
"name": "constant.other.color.rgb-value.alpha.stylus"
|
183
|
+
}
|
184
|
+
},
|
185
|
+
"match": "(?x) # multi-line regex definition mode\n(\\#)(?:\n ([0-9a-fA-F])\n ([0-9a-fA-F])\n ([0-9a-fA-F])\n ([0-9a-fA-F])?\n| ([0-9a-fA-F]{2})\n ([0-9a-fA-F]{2})\n ([0-9a-fA-F]{2})\n ([0-9a-fA-F]{2})?\n)\\b\n",
|
186
|
+
"name": "constant.other.color.rgb-value.stylus"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"captures": {
|
190
|
+
"1": {
|
191
|
+
"name": "keyword.other.unit.stylus"
|
192
|
+
}
|
193
|
+
},
|
194
|
+
"match": "(?x) # multi-line regex definition mode\n(?:-|\\+)? # negative / positive\n(?:\n (?:\n [0-9]+ # integer part\n (?:\\.[0-9]+)? # fraction\n ) |\n (?:\\.[0-9]+) # fraction without leading zero\n)\n((?: # units\n px|pt|ch|cm|mm|in|\n r?em|ex|pc|vw|vh|vmin|vmax|deg|\n g?rad|turn|dpi|dpcm|dppx|m?s|k?Hz\n)\\b|%)?\n",
|
195
|
+
"name": "constant.numeric.stylus"
|
196
|
+
}
|
197
|
+
]
|
198
|
+
},
|
199
|
+
"color-values": {
|
200
|
+
"patterns": [
|
201
|
+
{
|
202
|
+
"match": "\\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\\b",
|
203
|
+
"name": "constant.color.w3c-standard-color-name.stylus"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"begin": "(hsla?|rgba?)\\s*(\\()",
|
207
|
+
"beginCaptures": {
|
208
|
+
"1": {
|
209
|
+
"name": "keyword.language.function.misc.stylus"
|
210
|
+
},
|
211
|
+
"2": {
|
212
|
+
"name": "punctuation.definition.parameters.start.stylus"
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"end": "\\)",
|
216
|
+
"endCaptures": {
|
217
|
+
"0": {
|
218
|
+
"name": "punctuation.definition.parameters.end.stylus"
|
219
|
+
}
|
220
|
+
},
|
221
|
+
"patterns": [
|
222
|
+
{
|
223
|
+
"match": "(?x) # multi-line regex definition mode\n\\b\n(?:0*((?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\\s*(,)\\s*)\n(?:0*((?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\\s*(,)\\s*)\n(?:0*((?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\\b)\n(?:\\s*(,)\\s*((0?\\.[0-9]+)|[0-1]))?\n",
|
224
|
+
"captures": {
|
225
|
+
"1": {
|
226
|
+
"name": "constant.other.color.rgb-value.stylus constant.other.color.rgb-value.red.stylus"
|
227
|
+
},
|
228
|
+
"2": {
|
229
|
+
"name": "punctuation.delimiter.comma.stylus"
|
230
|
+
},
|
231
|
+
"3": {
|
232
|
+
"name": "constant.other.color.rgb-value.stylus constant.other.color.rgb-value.green.stylus"
|
233
|
+
},
|
234
|
+
"4": {
|
235
|
+
"name": "punctuation.delimiter.comma.stylus"
|
236
|
+
},
|
237
|
+
"5": {
|
238
|
+
"name": "constant.other.color.rgb-value.stylus constant.other.color.rgb-value.blue.stylus"
|
239
|
+
},
|
240
|
+
"6": {
|
241
|
+
"name": "punctuation.delimiter.comma.stylus"
|
242
|
+
},
|
243
|
+
"7": {
|
244
|
+
"name": "constant.other.color.rgb-value.stylus constant.other.color.rgb-value.alpha.stylus"
|
245
|
+
}
|
246
|
+
}
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"match": "(?x) # multi-line regex definition mode\n\\b\n((?:[0-9]{1,2}|100)%)(,) # red\n\\s*\n((?:[0-9]{1,2}|100)%)(,) # green\n\\s*\n((?:[0-9]{1,2}|100)%) # blue\n",
|
250
|
+
"captures": {
|
251
|
+
"1": {
|
252
|
+
"name": "constant.other.color.rgb-value.stylus constant.other.color.rgb-value.red.stylus"
|
253
|
+
},
|
254
|
+
"2": {
|
255
|
+
"name": "punctuation.delimiter.comma.stylus"
|
256
|
+
},
|
257
|
+
"3": {
|
258
|
+
"name": "constant.other.color.rgb-value.stylus constant.other.color.rgb-value.green.stylus"
|
259
|
+
},
|
260
|
+
"4": {
|
261
|
+
"name": "punctuation.delimiter.comma.stylus"
|
262
|
+
},
|
263
|
+
"5": {
|
264
|
+
"name": "constant.other.color.rgb-value.stylus constant.other.color.rgb-value.blue.stylus"
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
]
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"include": "#numeric-values"
|
272
|
+
}
|
273
|
+
]
|
274
|
+
},
|
275
|
+
"comma": {
|
276
|
+
"match": "\\s*,\\s*",
|
277
|
+
"name": "punctuation.delimiter.comma.stylus"
|
278
|
+
},
|
279
|
+
"expression": {
|
280
|
+
"patterns": [
|
281
|
+
{
|
282
|
+
"include": "#single-line-comment"
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"include": "#comma"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"include": "#iteration"
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"include": "#conditionals"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"include": "#language-operators"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"include": "#language-keywords"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"include": "#hash-definition"
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"include": "#color-values"
|
304
|
+
},
|
305
|
+
{
|
306
|
+
"include": "#url"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"include": "#function-call"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"include": "#string-quoted"
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"include": "#escape"
|
316
|
+
},
|
317
|
+
{
|
318
|
+
"include": "#hash-access"
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"include": "#language-constants"
|
322
|
+
},
|
323
|
+
{
|
324
|
+
"include": "#language-property-value-constants"
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"include": "#property-reference"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"include": "#variable"
|
331
|
+
}
|
332
|
+
]
|
333
|
+
},
|
334
|
+
"property-reference": {
|
335
|
+
"match": "@[a-z-]+",
|
336
|
+
"name": "variable.other.property.stylus"
|
337
|
+
},
|
338
|
+
"url": {
|
339
|
+
"begin": "(url)\\s*(\\()",
|
340
|
+
"beginCaptures": {
|
341
|
+
"1": {
|
342
|
+
"name": "entity.function-name.stylus"
|
343
|
+
},
|
344
|
+
"2": {
|
345
|
+
"name": "punctuation.definition.parameters.start.stylus"
|
346
|
+
}
|
347
|
+
},
|
348
|
+
"end": "(\\))",
|
349
|
+
"endCaptures": {
|
350
|
+
"1": {
|
351
|
+
"name": "punctuation.definition.parameters.end.stylus"
|
352
|
+
}
|
353
|
+
},
|
354
|
+
"patterns": [
|
355
|
+
{
|
356
|
+
"include": "#string-quoted"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"include": "#language-constants"
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"include": "#language-property-value-constants"
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"include": "#property-reference"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"include": "#variable"
|
369
|
+
}
|
370
|
+
],
|
371
|
+
"name": "meta.function-call.stylus"
|
372
|
+
},
|
373
|
+
"function-call": {
|
374
|
+
"begin": "([\\w$-]+)(\\()",
|
375
|
+
"beginCaptures": {
|
376
|
+
"1": {
|
377
|
+
"name": "entity.function-name.stylus"
|
378
|
+
},
|
379
|
+
"2": {
|
380
|
+
"name": "punctuation.definition.parameters.start.stylus"
|
381
|
+
}
|
382
|
+
},
|
383
|
+
"end": "(\\))",
|
384
|
+
"endCaptures": {
|
385
|
+
"1": {
|
386
|
+
"name": "punctuation.definition.parameters.end.stylus"
|
387
|
+
}
|
388
|
+
},
|
389
|
+
"patterns": [
|
390
|
+
{
|
391
|
+
"include": "#expression"
|
392
|
+
}
|
393
|
+
],
|
394
|
+
"name": "meta.function-call.stylus"
|
395
|
+
},
|
396
|
+
"iteration": {
|
397
|
+
"begin": "(^\\s*|\\s+)(for)\\s+(?=.*?\\s+in\\s+)",
|
398
|
+
"beginCaptures": {
|
399
|
+
"2": {
|
400
|
+
"name": "keyword.control.stylus"
|
401
|
+
}
|
402
|
+
},
|
403
|
+
"end": "$|\\{",
|
404
|
+
"patterns": [
|
405
|
+
{
|
406
|
+
"include": "#expression"
|
407
|
+
}
|
408
|
+
]
|
409
|
+
},
|
410
|
+
"conditionals": {
|
411
|
+
"begin": "(^\\s*|\\s+)(if|unless|else)(?=[\\s({]|$)\\s*",
|
412
|
+
"beginCaptures": {
|
413
|
+
"2": {
|
414
|
+
"name": "keyword.control.stylus"
|
415
|
+
}
|
416
|
+
},
|
417
|
+
"end": "(?=$|\\{)",
|
418
|
+
"patterns": [
|
419
|
+
{
|
420
|
+
"include": "#expression"
|
421
|
+
}
|
422
|
+
]
|
423
|
+
},
|
424
|
+
"return": {
|
425
|
+
"begin": "^\\s*(return)",
|
426
|
+
"beginCaptures": {
|
427
|
+
"1": {
|
428
|
+
"name": "keyword.control.stylus"
|
429
|
+
}
|
430
|
+
},
|
431
|
+
"end": "(;)|(?=$)",
|
432
|
+
"endCaptures": {
|
433
|
+
"1": {
|
434
|
+
"name": "punctuation.terminator.statement.stylus"
|
435
|
+
}
|
436
|
+
},
|
437
|
+
"patterns": [
|
438
|
+
{
|
439
|
+
"include": "#expression"
|
440
|
+
}
|
441
|
+
]
|
442
|
+
},
|
443
|
+
"media-query-properties": {
|
444
|
+
"patterns": [
|
445
|
+
{
|
446
|
+
"match": "\\s*:\\s*",
|
447
|
+
"captures": {
|
448
|
+
"0": {
|
449
|
+
"name": "punctuation.separator.key-value.stylus"
|
450
|
+
}
|
451
|
+
}
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"match": "(?x)\n(\n ((min|max)-)?\n (\n ((device-)?(height|width|aspect-ratio))|\n (color(-index)?)|monochrome|resolution\n )\n)|grid|scan|orientation\n",
|
455
|
+
"captures": {
|
456
|
+
"0": {
|
457
|
+
"name": "support.type.property-name.media.stylus"
|
458
|
+
}
|
459
|
+
}
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"match": "\\b(portrait|landscape|progressive|interlace)\\b",
|
463
|
+
"captures": {
|
464
|
+
"1": {
|
465
|
+
"name": "support.constant.property-value.stylus"
|
466
|
+
}
|
467
|
+
}
|
468
|
+
}
|
469
|
+
]
|
470
|
+
},
|
471
|
+
"media-query-list": {
|
472
|
+
"begin": "\\s*(and)?\\s*(\\()\\s*",
|
473
|
+
"beginCaptures": {
|
474
|
+
"1": {
|
475
|
+
"name": "keyword.operator.logic.media.stylus"
|
476
|
+
},
|
477
|
+
"2": {
|
478
|
+
"name": "punctuation.definition.parameters.start.stylus"
|
479
|
+
}
|
480
|
+
},
|
481
|
+
"end": "\\)",
|
482
|
+
"endCaptures": {
|
483
|
+
"0": {
|
484
|
+
"name": "punctuation.definition.parameters.end.stylus"
|
485
|
+
}
|
486
|
+
},
|
487
|
+
"patterns": [
|
488
|
+
{
|
489
|
+
"include": "#media-query-properties"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"include": "#numeric-values"
|
493
|
+
}
|
494
|
+
]
|
495
|
+
},
|
496
|
+
"media-query": {
|
497
|
+
"patterns": [
|
498
|
+
{
|
499
|
+
"begin": "\\s*(?![{;]|$)",
|
500
|
+
"end": "\\s*(?=[{;]|$)",
|
501
|
+
"patterns": [
|
502
|
+
{
|
503
|
+
"begin": "(?i)\\s*(only|not)?\\s*(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)?(?![\\w\\d$-]+)",
|
504
|
+
"beginCaptures": {
|
505
|
+
"1": {
|
506
|
+
"name": "keyword.operator.logic.media.stylus"
|
507
|
+
},
|
508
|
+
"2": {
|
509
|
+
"name": "support.constant.media.stylus"
|
510
|
+
}
|
511
|
+
},
|
512
|
+
"end": "\\s*(?:(,)|(?=[{;]|$))",
|
513
|
+
"patterns": [
|
514
|
+
{
|
515
|
+
"include": "#media-query-list"
|
516
|
+
}
|
517
|
+
]
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"include": "#variable"
|
521
|
+
}
|
522
|
+
],
|
523
|
+
"name": "meta.at-rule.media.stylus"
|
524
|
+
}
|
525
|
+
]
|
526
|
+
},
|
527
|
+
"pseudo-nth": {
|
528
|
+
"begin": "((:)(?:nth-child|nth-last-child|nth-of-type|nth-last-of-type|nth-match|nth-last-match|nth-column|nth-last-column))\\s*(\\()",
|
529
|
+
"beginCaptures": {
|
530
|
+
"1": {
|
531
|
+
"name": "entity.other.attribute-name.pseudo-class.stylus"
|
532
|
+
},
|
533
|
+
"2": {
|
534
|
+
"name": "puncutation.definition.entity.stylus"
|
535
|
+
},
|
536
|
+
"3": {
|
537
|
+
"name": "puncutation.definition.parameters.start.stylus"
|
538
|
+
}
|
539
|
+
},
|
540
|
+
"end": "\\)",
|
541
|
+
"endCaptures": {
|
542
|
+
"0": {
|
543
|
+
"name": "puncutation.definition.parameters.end.stylus"
|
544
|
+
}
|
545
|
+
},
|
546
|
+
"patterns": [
|
547
|
+
{
|
548
|
+
"include": "#language-operators"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"include": "#interpolation"
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"match": "\\b(odd|even)\\b",
|
555
|
+
"name": "constant.language.stylus"
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"match": "\\b(\\d+)?n\\b",
|
559
|
+
"captures": {
|
560
|
+
"1": {
|
561
|
+
"name": "constant.numeric.stylus"
|
562
|
+
}
|
563
|
+
},
|
564
|
+
"name": "variable.language.stylus"
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"match": "\\d+",
|
568
|
+
"name": "constant.numeric.stylus"
|
569
|
+
}
|
570
|
+
]
|
571
|
+
},
|
572
|
+
"pseudo-not": {
|
573
|
+
"begin": "((:)not)\\s*(\\()",
|
574
|
+
"beginCaptures": {
|
575
|
+
"1": {
|
576
|
+
"name": "entity.other.attribute-name.pseudo-element.stylus"
|
577
|
+
},
|
578
|
+
"2": {
|
579
|
+
"name": "puncutation.definition.entity.stylus"
|
580
|
+
},
|
581
|
+
"3": {
|
582
|
+
"name": "puncutation.definition.parameters.start.stylus"
|
583
|
+
}
|
584
|
+
},
|
585
|
+
"end": "\\)",
|
586
|
+
"endCaptures": {
|
587
|
+
"0": {
|
588
|
+
"name": "puncutation.definition.parameters.end.stylus"
|
589
|
+
}
|
590
|
+
},
|
591
|
+
"patterns": [
|
592
|
+
{
|
593
|
+
"include": "#selector-components"
|
594
|
+
}
|
595
|
+
]
|
596
|
+
},
|
597
|
+
"pseudo": {
|
598
|
+
"patterns": [
|
599
|
+
{
|
600
|
+
"match": "(:)(active|checked|default|disabled|empty|enabled|first-child|first-of-type|first|fullscreen|focus|hover|indeterminate|in-range|invalid|last-child|last-of-type|left|link|only-child|only-of-type|optional|out-of-range|read-only|read-write|required|right|root|scope|target|valid|visited)\\b",
|
601
|
+
"captures": {
|
602
|
+
"1": {
|
603
|
+
"name": "puncutation.definition.entity.stylus"
|
604
|
+
}
|
605
|
+
},
|
606
|
+
"name": "entity.other.attribute-name.pseudo-class.stylus"
|
607
|
+
},
|
608
|
+
{
|
609
|
+
"match": "(:?:)(before|after)\\b",
|
610
|
+
"captures": {
|
611
|
+
"1": {
|
612
|
+
"name": "puncutation.definition.entity.stylus"
|
613
|
+
}
|
614
|
+
},
|
615
|
+
"name": "entity.other.attribute-name.pseudo-element.stylus"
|
616
|
+
},
|
617
|
+
{
|
618
|
+
"match": "(::)(first-letter|first-number|selection)\\b",
|
619
|
+
"captures": {
|
620
|
+
"1": {
|
621
|
+
"name": "puncutation.definition.entity.stylus"
|
622
|
+
}
|
623
|
+
},
|
624
|
+
"name": "entity.other.attribute-name.pseudo-element.stylus"
|
625
|
+
},
|
626
|
+
{
|
627
|
+
"match": "((:)dir)\\s*(?:(\\()(ltr|rtl)?(\\)))?",
|
628
|
+
"captures": {
|
629
|
+
"1": {
|
630
|
+
"name": "entity.other.attribute-name.pseudo-element.stylus"
|
631
|
+
},
|
632
|
+
"2": {
|
633
|
+
"name": "puncutation.definition.entity.stylus"
|
634
|
+
},
|
635
|
+
"3": {
|
636
|
+
"name": "puncutation.definition.parameters.start.stylus"
|
637
|
+
},
|
638
|
+
"4": {
|
639
|
+
"name": "constant.language.stylus"
|
640
|
+
},
|
641
|
+
"5": {
|
642
|
+
"name": "puncutation.definition.parameters.end.stylus"
|
643
|
+
}
|
644
|
+
}
|
645
|
+
},
|
646
|
+
{
|
647
|
+
"match": "((:)lang)\\s*(?:(\\()(\\w+(-\\w+)?)?(\\)))?",
|
648
|
+
"captures": {
|
649
|
+
"1": {
|
650
|
+
"name": "entity.other.attribute-name.pseudo-element.stylus"
|
651
|
+
},
|
652
|
+
"2": {
|
653
|
+
"name": "puncutation.definition.entity.stylus"
|
654
|
+
},
|
655
|
+
"3": {
|
656
|
+
"name": "puncutation.definition.parameters.start.stylus"
|
657
|
+
},
|
658
|
+
"4": {
|
659
|
+
"name": "constant.language.stylus"
|
660
|
+
},
|
661
|
+
"5": {
|
662
|
+
"name": "puncutation.definition.parameters.end.stylus"
|
663
|
+
}
|
664
|
+
}
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"include": "#pseudo-nth"
|
668
|
+
},
|
669
|
+
{
|
670
|
+
"include": "#pseudo-not"
|
671
|
+
}
|
672
|
+
]
|
673
|
+
},
|
674
|
+
"attribute-selector": {
|
675
|
+
"begin": "\\[(?=[^\\]]*\\])",
|
676
|
+
"beginCaptures": {
|
677
|
+
"0": {
|
678
|
+
"name": "punctuation.definition.entity.start.stylus"
|
679
|
+
}
|
680
|
+
},
|
681
|
+
"end": "\\]",
|
682
|
+
"endCaptures": {
|
683
|
+
"0": {
|
684
|
+
"name": "punctuation.definition.entity.end.stylus"
|
685
|
+
}
|
686
|
+
},
|
687
|
+
"patterns": [
|
688
|
+
{
|
689
|
+
"begin": "(?<=\\[)|(?<=\\{)",
|
690
|
+
"end": "(?=[|~=\\]\\s])",
|
691
|
+
"patterns": [
|
692
|
+
{
|
693
|
+
"include": "#interpolation"
|
694
|
+
},
|
695
|
+
{
|
696
|
+
"match": ".",
|
697
|
+
"captures": {
|
698
|
+
"0": {
|
699
|
+
"name": "entity.other.attribute-name.stylus"
|
700
|
+
}
|
701
|
+
}
|
702
|
+
}
|
703
|
+
]
|
704
|
+
},
|
705
|
+
{
|
706
|
+
"include": "#interpolation"
|
707
|
+
},
|
708
|
+
{
|
709
|
+
"match": "([|~]?=)",
|
710
|
+
"captures": {
|
711
|
+
"1": {
|
712
|
+
"name": "keyword.operator.stylus"
|
713
|
+
}
|
714
|
+
}
|
715
|
+
},
|
716
|
+
{
|
717
|
+
"include": "#string-quoted"
|
718
|
+
},
|
719
|
+
{
|
720
|
+
"match": ".",
|
721
|
+
"captures": {
|
722
|
+
"0": {
|
723
|
+
"name": "string.unquoted.stylus"
|
724
|
+
}
|
725
|
+
}
|
726
|
+
}
|
727
|
+
],
|
728
|
+
"name": "meta.attribute-selector.stylus"
|
729
|
+
},
|
730
|
+
"selector-components": {
|
731
|
+
"patterns": [
|
732
|
+
{
|
733
|
+
"include": "#comments"
|
734
|
+
},
|
735
|
+
{
|
736
|
+
"include": "#interpolation"
|
737
|
+
},
|
738
|
+
{
|
739
|
+
"include": "#attribute-selector"
|
740
|
+
},
|
741
|
+
{
|
742
|
+
"include": "#pseudo"
|
743
|
+
},
|
744
|
+
{
|
745
|
+
"match": "\\$[\\w$-]+\\b",
|
746
|
+
"name": "entity.other.placeholder.stylus"
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"match": "[:~>]",
|
750
|
+
"name": "keyword.operator.selector.stylus"
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"match": "(?x) # multi-line regex definition mode\n\\b(\n altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|\n animateMotion|animateTransform|circle|clipPath|color-profile|\n defs|desc|ellipse|feBlend|feColorMatrix|\n feComponentTransfer|feComposite|feConvolveMatrix|\n feDiffuseLighting|feDisplacementMap|feDistantLight|feFlood|\n feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feImage|feMerge|\n feMergeNode|feMorphology|feOffset|fePointLight|\n feSpecularLighting|feSpotLight|feTile|feTurbulence|filter|\n font-face|font-face-format|font-face-name|font-face-src|\n font-face-uri|foreignObject|g|glyph|glyphRef|hkern|image|line|\n linearGradient|marker|mask|metadata|missing-glyph|mpath|path|\n pattern|polygon|polyline|radialGradient|rect|set|stop|svg|\n switch|symbol|text|textPath|tref|tspan|use|view|vkern|\n a|abbr|acronym|address|applet|area|article|aside|audio|b|base|\n basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|\n canvas|caption|center|cite|code|col|colgroup|content|data|\n datalist|dd|decorator|del|details|dfn|dir|div|dl|dt|element|\n em|embed|fieldset|figcaption|figure|font|footer|form|frame|\n frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|\n img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|\n main|map|mark|marquee|menu|menuitem|meta|meter|nav|nobr|\n noframes|noscript|object|ol|optgroup|option|output|p|param|\n plaintext|pre|progress|q|rp|rt|ruby|s|samp|script|section|\n select|shadow|small|source|spacer|span|strike|strong|style|\n sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|\n thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp\n)\\b\n",
|
754
|
+
"name": "entity.name.tag.stylus"
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"match": "\\.[a-zA-Z0-9_-]+",
|
758
|
+
"name": "entity.other.attribute-name.class.stylus"
|
759
|
+
},
|
760
|
+
{
|
761
|
+
"match": "\\.[a-zA-Z0-9_-]+",
|
762
|
+
"name": "entity.other.attribute-name.class.stylus"
|
763
|
+
},
|
764
|
+
{
|
765
|
+
"match": "#[a-zA-Z0-9_-]+",
|
766
|
+
"name": "entity.other.attribute-name.class.stylus"
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"match": "(?x) # multi-line regex definition mode\n([\\w\\d_-]+)? # matching any word right before &\n(&) # & itself, escaped because of plist\n([\\w\\d_-]+)? # matching any word right after &\n",
|
770
|
+
"captures": {
|
771
|
+
"1": {
|
772
|
+
"name": "entity.other.attribute-name.stylus"
|
773
|
+
},
|
774
|
+
"2": {
|
775
|
+
"name": "variable.language.stylus"
|
776
|
+
},
|
777
|
+
"3": {
|
778
|
+
"name": "entity.other.attribute-name.stylus"
|
779
|
+
}
|
780
|
+
}
|
781
|
+
}
|
782
|
+
]
|
783
|
+
},
|
784
|
+
"single-line-comment": {
|
785
|
+
"patterns": [
|
786
|
+
{
|
787
|
+
"captures": {
|
788
|
+
"1": {
|
789
|
+
"name": "punctuation.definition.comment.stylus"
|
790
|
+
}
|
791
|
+
},
|
792
|
+
"match": "(\\/\\/).*$",
|
793
|
+
"name": "comment.line.stylus"
|
794
|
+
}
|
795
|
+
]
|
796
|
+
},
|
797
|
+
"comments": {
|
798
|
+
"patterns": [
|
799
|
+
{
|
800
|
+
"include": "#single-line-comment"
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"begin": "\\/\\*",
|
804
|
+
"captures": {
|
805
|
+
"0": {
|
806
|
+
"name": "punctuation.definition.comment.stylus"
|
807
|
+
}
|
808
|
+
},
|
809
|
+
"end": "\\*\\/",
|
810
|
+
"name": "comment.block.stylus"
|
811
|
+
}
|
812
|
+
]
|
813
|
+
}
|
814
|
+
},
|
815
|
+
"patterns": [
|
816
|
+
{
|
817
|
+
"include": "#comments"
|
818
|
+
},
|
819
|
+
{
|
820
|
+
"begin": "^\\s*(@(?:import|charset|css|font-face|(?:-webkit-)?keyframes)(?:\\s+([\\w-]+))?)\\b",
|
821
|
+
"beginCaptures": {
|
822
|
+
"1": {
|
823
|
+
"name": "keyword.control.at-rule.other.stylus"
|
824
|
+
},
|
825
|
+
"2": {
|
826
|
+
"name": "variable.other.animation-name.stylus"
|
827
|
+
}
|
828
|
+
},
|
829
|
+
"patterns": [
|
830
|
+
{
|
831
|
+
"include": "#string-quoted"
|
832
|
+
}
|
833
|
+
],
|
834
|
+
"end": "$|;|(?=\\{)"
|
835
|
+
},
|
836
|
+
{
|
837
|
+
"begin": "^\\s*(@media)\\s*",
|
838
|
+
"beginCaptures": {
|
839
|
+
"1": {
|
840
|
+
"name": "keyword.control.at-rule.media.stylus"
|
841
|
+
}
|
842
|
+
},
|
843
|
+
"patterns": [
|
844
|
+
{
|
845
|
+
"include": "#media-query"
|
846
|
+
}
|
847
|
+
],
|
848
|
+
"end": "$|(?=\\{)"
|
849
|
+
},
|
850
|
+
{
|
851
|
+
"begin": "(?x)\n(?<=^|;|})\n\\s*\n(?=\n [\\[\\]'\".\\w$-]+\n \\s*\n ([?:]?=)\n (?![^\\[]*\\])\n)\n",
|
852
|
+
"patterns": [
|
853
|
+
{
|
854
|
+
"include": "#expression"
|
855
|
+
}
|
856
|
+
],
|
857
|
+
"end": "$|;"
|
858
|
+
},
|
859
|
+
{
|
860
|
+
"include": "#iteration"
|
861
|
+
},
|
862
|
+
{
|
863
|
+
"include": "#conditionals"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"include": "#return"
|
867
|
+
},
|
868
|
+
{
|
869
|
+
"begin": "(?x) # multi-line regex definition mode\n\n^(\\s*) # starts at the beginning of line\n([\\w$-]+) # identifier (name)\n(\\() # start of argument list\n(?=\n .*?\n \\)\\s*\\{ # we see a curly brace afterwards\n) # which means this is a function definition\n",
|
870
|
+
"beginCaptures": {
|
871
|
+
"2": {
|
872
|
+
"name": "entity.name.function.stylus"
|
873
|
+
},
|
874
|
+
"3": {
|
875
|
+
"name": "punctuation.definition.parameters.start.stylus"
|
876
|
+
}
|
877
|
+
},
|
878
|
+
"end": "(\\))",
|
879
|
+
"endCaptures": {
|
880
|
+
"1": {
|
881
|
+
"name": "punctuation.definition.parameters.end.stylus"
|
882
|
+
}
|
883
|
+
},
|
884
|
+
"patterns": [
|
885
|
+
{
|
886
|
+
"include": "#expression"
|
887
|
+
}
|
888
|
+
],
|
889
|
+
"name": "meta.function-call.stylus"
|
890
|
+
},
|
891
|
+
{
|
892
|
+
"begin": "(?x) # multi-line regex definition mode\n(\n\n (^|;) # starts at the beginning of line or at a ;\n \\s*\n (\\+?\\s* # for block mixins\n [\\w$-]+) # identifier (name)\n (\\() # start of argument list\n (?=\n .*?\n \\)\\s*;?\\s* # if there are only spaces and semicolons\n $|; # then this a \n )\n)\n",
|
893
|
+
"beginCaptures": {
|
894
|
+
"3": {
|
895
|
+
"name": "entity.other.attribute-name.mixin.stylus"
|
896
|
+
},
|
897
|
+
"4": {
|
898
|
+
"name": "punctuation.definition.parameters.start.stylus"
|
899
|
+
}
|
900
|
+
},
|
901
|
+
"end": "(\\))",
|
902
|
+
"endCaptures": {
|
903
|
+
"1": {
|
904
|
+
"name": "punctuation.definition.parameters.end.stylus"
|
905
|
+
}
|
906
|
+
},
|
907
|
+
"patterns": [
|
908
|
+
{
|
909
|
+
"include": "#expression"
|
910
|
+
}
|
911
|
+
],
|
912
|
+
"name": "meta.function-call.stylus"
|
913
|
+
},
|
914
|
+
{
|
915
|
+
"begin": "(?x) # multi-line regex definition mode\n(^|(?<=\\*/|\\}))\\s*\n(?=\n font(?!\n \\s*:\\s\n |\n -\n |\n .*?\n (?:\n \\/|normal|bold|light(er?)|serif|sans|monospace|\n \\b\\d+(?:\\b|px|r?em|%)|\n ['\"][^\\]]*$\n )\n ) | # we need to distinguish between tag and property `cursor`\n cursor(?!\n \\s*[:;]\\s\n |\n -\n |\n .*?\n (?:\n (?:url\\s*\\()|\n (?:-moz-|-webkit-|-ms-)?\n (?:auto|default|none|context-menu|help|pointer|progress|\n wait|cell|crosshair|text|vertical-text|alias|copy|\n move|no-drop|not-allowed|e-resize|n-resize|ne-resize|\n nw-resize|s-resize|se-resize|sw-resize|w-resize|\n ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|\n row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing\n normal|bold|light(er?)|serif|sans|monospace)\n )\n ) | (\n (\n altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|\n animateMotion|animateTransform|circle|clipPath|color-profile|\n defs|desc|ellipse|feBlend|feColorMatrix|\n feComponentTransfer|feComposite|feConvolveMatrix|\n feDiffuseLighting|feDisplacementMap|feDistantLight|feFlood|\n feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feImage|feMerge|\n feMergeNode|feMorphology|feOffset|fePointLight|\n feSpecularLighting|feSpotLight|feTile|feTurbulence|filter|\n font-face|font-face-format|font-face-name|font-face-src|\n font-face-uri|foreignObject|g|glyph|glyphRef|hkern|image|line|\n linearGradient|marker|mask|metadata|missing-glyph|mpath|path|\n pattern|polygon|polyline|radialGradient|rect|set|stop|svg|\n switch|symbol|text|textPath|tref|tspan|use|view|vkern|\n a|abbr|acronym|address|applet|area|article|aside|audio|b|base|\n basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|\n canvas|caption|center|cite|code|col|colgroup|data|\n datalist|dd|decorator|del|details|dfn|dir|div|dl|dt|element|\n em|embed|fieldset|figcaption|figure|footer|form|frame|\n frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|\n img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|\n main|map|mark|marquee|menu|menuitem|meta|meter|nav|nobr|\n noframes|noscript|object|ol|optgroup|option|output|p|param|\n plaintext|pre|progress|q|rp|rt|ruby|s|samp|script|section|\n select|shadow|small|source|spacer|span|strike|strong|style|\n sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|\n thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp)\n\n \\s*([\\s,.#\\[]|:[^\\s]|(?=\\{|$))\n\n ) | (\n [:~>\\[*\\/] # symbols but they are valid for selector\n\n ) | (\n\n \\+\\s*[\\w$-]+\\b\\s* # are an identifier starting with $\n (?!\\() # and they can't have anything besides\n\n ) | ( # for animtions\n\n \\d+(\\.\\d+)?%|(from|to)\\b\n\n ) | ( # Placeholder selectors\n\n \\$[\\w$-]+\\b\\s* # are an identifier starting with $\n (?=$|\\{) # and they can't have anything besides\n\n ) | ( # CSS class\n\n \\.[a-zA-Z0-9_-]+\n\n ) | ( # CSS id\n\n \\#[a-zA-Z0-9_-]+\n\n ) | ( # Reference to parent\n\n ([\\w\\d_-]+)? # matching any word right before &\n (&) # & itself, escaped because of plist\n ([\\w\\d_-]+)? # matching any word right after &\n )\n)\n",
|
916
|
+
"patterns": [
|
917
|
+
{
|
918
|
+
"include": "#comma"
|
919
|
+
},
|
920
|
+
{
|
921
|
+
"match": "\\d+(\\.\\d+)?%|from|to",
|
922
|
+
"name": "entity.other.animation-keyframe.stylus"
|
923
|
+
},
|
924
|
+
{
|
925
|
+
"include": "#selector-components"
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"match": ".",
|
929
|
+
"name": "entity.other.attribute-name.stylus"
|
930
|
+
}
|
931
|
+
],
|
932
|
+
"end": "\n|$|(?=\\{\\s*\\}.*$)|(?=\\{.*?[:;])|(?=\\{)(?!.+\\}.*$)",
|
933
|
+
"name": "meta.selector.stylus"
|
934
|
+
},
|
935
|
+
{
|
936
|
+
"begin": "(?x) # multi-line regex definition mode\n(?<=^|;|{)\\s* # starts after begining of line, '{' or ';''\n(?= # lookahead for\n (\n [a-zA-Z0-9_-] # then a letter\n | # or\n (\\{(.*?)\\}) # interpolation\n | # or\n (/\\*.*?\\*/) # comment\n )+\n\n \\s*[:\\s]\\s* # value is separted by colon or space\n\n (?!(\\s*\\{)) # if there are only spaces afterwards\n\n (?!\n [^}]*? # checking for an unclosed curly braces on this\n \\{ # line because if one exists it means that\n [^}]* # this is a selector and not a property\n ($|\\})\n )\n)\n",
|
937
|
+
"end": "(?=\\}|;)|(?<!,)\\s*\\n",
|
938
|
+
"patterns": [
|
939
|
+
{
|
940
|
+
"include": "#comments"
|
941
|
+
},
|
942
|
+
{
|
943
|
+
"include": "#interpolation"
|
944
|
+
},
|
945
|
+
{
|
946
|
+
"begin": "(?<!^|;|{)\\s*(?:(:)|\\s)",
|
947
|
+
"beginCaptures": {
|
948
|
+
"1": {
|
949
|
+
"name": "punctuation.separator.key-value.stylus"
|
950
|
+
}
|
951
|
+
},
|
952
|
+
"end": "(;)|(?=\\})|(?=(?<!\\,)\\s*\\n)",
|
953
|
+
"endCaptures": {
|
954
|
+
"1": {
|
955
|
+
"name": "punctuation.terminator.rule.stylus"
|
956
|
+
}
|
957
|
+
},
|
958
|
+
"patterns": [
|
959
|
+
{
|
960
|
+
"include": "#comments"
|
961
|
+
},
|
962
|
+
{
|
963
|
+
"include": "#expression"
|
964
|
+
}
|
965
|
+
]
|
966
|
+
},
|
967
|
+
{
|
968
|
+
"match": "-(moz|o|ms|webkit|khtml)-",
|
969
|
+
"name": "support.type.vendor-prefix.stylus"
|
970
|
+
},
|
971
|
+
{
|
972
|
+
"match": ".",
|
973
|
+
"name": "meta.property-name.stylus support.type.property-name.stylus"
|
974
|
+
}
|
975
|
+
]
|
976
|
+
},
|
977
|
+
{
|
978
|
+
"begin": "@extends?\\s",
|
979
|
+
"beginCaptures": {
|
980
|
+
"0": {
|
981
|
+
"name": "keyword.language.stylus"
|
982
|
+
}
|
983
|
+
},
|
984
|
+
"patterns": [
|
985
|
+
{
|
986
|
+
"include": "#selector-components"
|
987
|
+
}
|
988
|
+
],
|
989
|
+
"end": "(?=$|;)"
|
990
|
+
},
|
991
|
+
{
|
992
|
+
"include": "#string-quoted"
|
993
|
+
},
|
994
|
+
{
|
995
|
+
"include": "#escape"
|
996
|
+
},
|
997
|
+
{
|
998
|
+
"include": "#language-constants"
|
999
|
+
},
|
1000
|
+
{
|
1001
|
+
"include": "#language-operators"
|
1002
|
+
},
|
1003
|
+
{
|
1004
|
+
"include": "#language-keywords"
|
1005
|
+
},
|
1006
|
+
{
|
1007
|
+
"include": "#property-reference"
|
1008
|
+
},
|
1009
|
+
{
|
1010
|
+
"include": "#function-call"
|
1011
|
+
},
|
1012
|
+
{
|
1013
|
+
"match": "\\{",
|
1014
|
+
"name": "punctuation.section.start.stylus"
|
1015
|
+
},
|
1016
|
+
{
|
1017
|
+
"match": "\\}",
|
1018
|
+
"name": "punctuation.section.end.stylus"
|
1019
|
+
}
|
1020
|
+
]
|
1021
|
+
}
|