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,231 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"ps",
|
4
|
+
"eps"
|
5
|
+
],
|
6
|
+
"firstLineMatch": "^%!PS",
|
7
|
+
"keyEquivalent": "^~P",
|
8
|
+
"name": "Postscript",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"begin": "\\(",
|
12
|
+
"beginCaptures": {
|
13
|
+
"0": {
|
14
|
+
"name": "punctuation.definition.string.begin.postscript"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"end": "\\)",
|
18
|
+
"endCaptures": {
|
19
|
+
"0": {
|
20
|
+
"name": "punctuation.definition.string.end.postscript"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"name": "string.other.postscript",
|
24
|
+
"patterns": [
|
25
|
+
{
|
26
|
+
"include": "#string_content"
|
27
|
+
}
|
28
|
+
]
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"captures": {
|
32
|
+
"1": {
|
33
|
+
"name": "keyword.other.DSC.postscript"
|
34
|
+
},
|
35
|
+
"3": {
|
36
|
+
"name": "string.unquoted.DSC.postscript"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"match": "^(%%(BeginBinary:|BeginCustomColor:|BeginData:|BeginDefaults|BeginDocument:|BeginEmulation:|BeginExitServer:|BeginFeature:|BeginFile:|BeginFont:|BeginObject:|BeginPageSetup:|BeginPaperSize:|BeginPreview:|BeginProcSet|BeginProcessColor:|BeginProlog|BeginResource:|BeginSetup|BoundingBox:|CMYKCustomColor:|ChangeFont:|Copyright:|CreationDate:|Creator:|DocumentCustomColors:|DocumentData:|DocumentFonts:|DocumentMedia:|DocumentNeededFiles:|DocumentNeededFonts:|DocumentNeededProcSets:|DocumentNeededResources:|DocumentPaperColors:|DocumentPaperForms:|DocumentPaperSizes:|DocumentPaperWeights:|DocumentPrinterRequired:|DocumentProcSets:|DocumentProcessColors:|DocumentSuppliedFiles:|DocumentSuppliedFonts:|DocumentSuppliedProcSets:|DocumentSuppliedResources:|EOF|Emulation:|EndBinary:|EndComments|EndCustomColor:|EndData:|EndDefaults|EndDocument:|EndEmulation:|EndExitServer:|EndFeature:|EndFile:|EndFont:|EndObject:|EndPageSetup:|EndPaperSize:|EndPreview:|EndProcSet|EndProcessColor:|EndProlog|EndResource:|EndSetup|ExecuteFile:|Extensions:|Feature:|For:|IncludeDocument:|IncludeFeature:|IncludeFile:|IncludeFont:|IncludeProcSet:|IncludeResource:|LanguageLevel:|OperatorIntervention:|OperatorMessage:|Orientation:|Page:|PageBoundingBox:|PageCustomColors|PageCustomColors:|PageFiles:|PageFonts:|PageMedia:|PageOrder:|PageOrientation:|PageProcessColors|PageProcessColors:|PageRequirements:|PageResources:|PageTrailer|Pages:|PaperColor:|PaperForm:|PaperSize:|PaperWeight:|ProofMode:|RGBCustomColor:|Requirements:|Routing:|Title:|Trailer|VMlocation:|VMusage:|Version|Version:|\\+|\\?BeginFeatureQuery:|\\?BeginFileQuery:|\\?BeginFontListQuery:|\\?BeginFontQuery:|\\?BeginPrinterQuery:|\\?BeginProcSetQuery:|\\?BeginQuery:|\\?BeginResourceListQuery:|\\?BeginResourceQuery:|\\?BeginVMStatus:|\\?EndFeatureQuery:|\\?EndFileQuery:|\\?EndFontListQuery:|\\?EndFontQuery:|\\?EndPrinterQuery:|\\?EndProcSetQuery:|\\?EndQuery:|\\?EndResourceListQuery:|\\?EndResourceQuery:|\\?EndVMStatus:))\\s*(.*)$\\n?",
|
40
|
+
"name": "meta.Document-Structuring-Comment.postscript"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"begin": "(^[ \\t]+)?(?=%)",
|
44
|
+
"beginCaptures": {
|
45
|
+
"1": {
|
46
|
+
"name": "punctuation.whitespace.comment.leading.postscript"
|
47
|
+
}
|
48
|
+
},
|
49
|
+
"end": "(?!\\G)",
|
50
|
+
"patterns": [
|
51
|
+
{
|
52
|
+
"begin": "%",
|
53
|
+
"beginCaptures": {
|
54
|
+
"0": {
|
55
|
+
"name": "punctuation.definition.comment.postscript"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"end": "\\n",
|
59
|
+
"name": "comment.line.percentage.postscript"
|
60
|
+
}
|
61
|
+
]
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"begin": "\\<\\<",
|
65
|
+
"beginCaptures": {
|
66
|
+
"0": {
|
67
|
+
"name": "punctuation.definition.dictionary.begin.postscript"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"end": "\\>\\>",
|
71
|
+
"endCaptures": {
|
72
|
+
"0": {
|
73
|
+
"name": "punctuation.definition.dictionary.end.postscript"
|
74
|
+
}
|
75
|
+
},
|
76
|
+
"name": "meta.dictionary.postscript",
|
77
|
+
"patterns": [
|
78
|
+
{
|
79
|
+
"include": "$self"
|
80
|
+
}
|
81
|
+
]
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"begin": "\\[",
|
85
|
+
"beginCaptures": {
|
86
|
+
"0": {
|
87
|
+
"name": "punctuation.definition.array.begin.postscript"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"end": "\\]",
|
91
|
+
"endCaptures": {
|
92
|
+
"0": {
|
93
|
+
"name": "punctuation.definition.array.end.postscript"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"name": "meta.array.postscript",
|
97
|
+
"patterns": [
|
98
|
+
{
|
99
|
+
"include": "$self"
|
100
|
+
}
|
101
|
+
]
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"begin": "{",
|
105
|
+
"beginCaptures": {
|
106
|
+
"0": {
|
107
|
+
"name": "punctuation.definition.procedure.begin.postscript"
|
108
|
+
}
|
109
|
+
},
|
110
|
+
"end": "}",
|
111
|
+
"endCaptures": {
|
112
|
+
"0": {
|
113
|
+
"name": "punctuation.definition.procedure.end.postscript"
|
114
|
+
}
|
115
|
+
},
|
116
|
+
"name": "meta.procedure.postscript",
|
117
|
+
"patterns": [
|
118
|
+
{
|
119
|
+
"include": "$self"
|
120
|
+
}
|
121
|
+
]
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"begin": "\\<\\~",
|
125
|
+
"beginCaptures": {
|
126
|
+
"0": {
|
127
|
+
"name": "punctuation.definition.string.begin.postscript"
|
128
|
+
}
|
129
|
+
},
|
130
|
+
"end": "\\~\\>",
|
131
|
+
"endCaptures": {
|
132
|
+
"0": {
|
133
|
+
"name": "punctuation.definition.string.end.postscript"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"name": "string.other.base85.postscript",
|
137
|
+
"patterns": [
|
138
|
+
{
|
139
|
+
"match": "[!-z\\s]+"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"match": ".",
|
143
|
+
"name": "invalid.illegal.base85.char.postscript"
|
144
|
+
}
|
145
|
+
]
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"begin": "\\<",
|
149
|
+
"beginCaptures": {
|
150
|
+
"0": {
|
151
|
+
"name": "punctuation.definition.string.begin.postscript"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
"end": "\\>",
|
155
|
+
"endCaptures": {
|
156
|
+
"0": {
|
157
|
+
"name": "punctuation.definition.string.end.postscript"
|
158
|
+
}
|
159
|
+
},
|
160
|
+
"name": "string.other.hexadecimal.postscript",
|
161
|
+
"patterns": [
|
162
|
+
{
|
163
|
+
"match": "[0-9A-Fa-f\\s]+"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"match": ".",
|
167
|
+
"name": "invalid.illegal.hexadecimal.char.postscript"
|
168
|
+
}
|
169
|
+
]
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"comment": "well, not really, but short of listing rules for all bases from 2-36 best we can do",
|
173
|
+
"match": "[0-3]?[0-9]#[0-9a-zA-Z]+",
|
174
|
+
"name": "constant.numeric.radix.postscript"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"match": "(\\-|\\+)?\\d+(\\.\\d*)?([eE](\\-|\\+)?\\d+)?",
|
178
|
+
"name": "constant.numeric.postscript"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"match": "(\\-|\\+)?\\.\\d+([eE](\\-|\\+)?\\d+)?",
|
182
|
+
"name": "constant.numeric.postscript"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"match": "\\b(abs|add|aload|anchorsearch|and|arc|arcn|arct|arcto|array|ashow|astore|atan|awidthshow|begin|bind|bitshift|bytesavailable|cachestatus|ceiling|charpath|clear|cleartomark|cleardictstack|clip|clippath|closefile|closepath|colorimage|concat|concatmatrix|condition|configurationerror|copy|copypage|cos|count|countdictstack|countexecstack|counttomark|cshow|currentblackgeneration|currentcacheparams|currentcmykcolor|currentcolor|currentcolorrendering|currentcolorscreen|currentcolorspace|currentcolortransfer|currentcontext|currentdash|currentdevparams|currentdict|currentfile|currentflat|currentfont|currentglobal|currentgray|currentgstate|currenthalftone|currenthalftonephase|currenthsbcolor|currentlinecap|currentlinejoin|currentlinewidth|currentmatrix|currentmiterlimit|currentobjectformat|currentpacking|currentpagedevice|currentpoint|currentrgbcolor|currentscreen|currentshared|currentstrokeadjust|currentsystemparams|currenttransfer|currentundercolorremoval|currentuserparams|curveto|cvi|cvlit|cvn|cvr|cvrs|cvs|cvx|def|defaultmatrix|definefont|defineresource|defineusername|defineuserobject|deletefile|detach|deviceinfo|dict|dictfull|dictstack|dictstackoverflow|dictstackunderflow|div|dtransform|dup|echo|eexec|end|eoclip|eofill|eoviewclip|eq|erasepage|errordict|exch|exec|execform|execstack|execstackoverflow|execuserobject|executeonly|executive|exit|exp|false|file|filenameforall|fileposition|fill|filter|findencoding|findfont|findresource|flattenpath|floor|flush|flushfile|FontDirectory|for|forall|fork|ge|get|getinterval|globaldict|GlobalFontDirectory|glyphshow|grestore|grestoreall|gsave|gstate|gt|handleerror|identmatrix|idiv|idtransform|if|ifelse|image|imagemask|index|ineofill|infill|initclip|initgraphics|initmatrix|initviewclip|instroke|internaldict|interrupt|inueofill|inufill|inustroke|invalidaccess|invalidcontext|invalidexit|invalidfileaccess|invalidfont|invalidid|invalidrestore|invertmatrix|ioerror|ISOLatin1Encoding|itransform|join|kshow|known|languagelevel|le|length|limitcheck|lineto|ln|load|lock|log|loop|lt|makefont|makepattern|mark|matrix|maxlength|mod|monitor|moveto|mul|ne|neg|newpath|noaccess|nocurrentpoint|not|notify|null|nulldevice|or|packedarray|pathbbox|pathforall|pop|print|printobject|product|prompt|pstack|put|putinterval|quit|rand|rangecheck|rcurveto|read|readhexstring|readline|readonly|readstring|realtime|rectclip|rectfill|rectstroke|rectviewclip|renamefile|repeat|resetfile|resourceforall|resourcestatus|restore|reversepath|revision|rlineto|rmoveto|roll|rootfont|rotate|round|rrand|run|save|scale|scalefont|scheck|search|selectfont|serialnumber|setbbox|setblackgeneration|setcachedevice|setcachedevice2|setcachelimit|setcacheparams|setcharwidth|setcmykcolor|setcolor|setcolorrendering|setcolorscreen|setcolorspace|setcolortransfer|setdash|setdevparams|setfileposition|setflat|setfont|setglobal|setgray|setgstate|sethalftone|sethalftonephase|sethsbcolor|setlinecap|setlinejoin|setlinewidth|setmatrix|setmiterlimit|setobjectformat|setoverprint|setpacking|setpagedevice|setpattern|setrgbcolor|setscreen|setshared|setstrokeadjust|setsystemparams|settransfer|setucacheparams|setundercolorremoval|setuserparams|setvmthreshold|shareddict|show|showpage|sin|sqrt|srand|stack|stackoverflow|stackunderflow|StandardEncoding|start|startjob|status|statusdict|stop|stopped|store|string|stringwidth|stroke|strokepath|sub|syntaxerror|systemdict|timeout|transform|translate|true|truncate|type|typecheck|token|uappend|ucache|ucachestatus|ueofill|ufill|undef|undefined|undefinedfilename|undefineresource|undefinedresult|undefinefont|undefineresource|undefinedresource|undefineuserobject|unmatchedmark|unregistered|upath|userdict|UserObjects|usertime|ustroke|ustrokepath|version|viewclip|viewclippath|VMerror|vmreclaim|vmstatus|wait|wcheck|where|widthshow|write|writehexstring|writeobject|writestring|wtranslation|xcheck|xor|xshow|xyshow|yield|yshow)\\b",
|
186
|
+
"name": "keyword.operator.postscript"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"match": "//[^\\(\\)\\<\\>\\[\\]\\{\\}\\/\\%\\s]+",
|
190
|
+
"name": "variable.other.immediately-evaluated.postscript"
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"match": "/[^\\(\\)\\<\\>\\[\\]\\{\\}\\/\\%\\s]+",
|
194
|
+
"name": "variable.other.literal.postscript"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"comment": "stuff like 22@ff will show as number 22 followed by name @ff, but should be name 22@ff!",
|
198
|
+
"match": "[^\\(\\)\\<\\>\\[\\]\\{\\}\\/\\%\\s]+",
|
199
|
+
"name": "variable.other.name.postscript"
|
200
|
+
}
|
201
|
+
],
|
202
|
+
"repository": {
|
203
|
+
"string_content": {
|
204
|
+
"patterns": [
|
205
|
+
{
|
206
|
+
"match": "\\\\[0-7]{1,3}",
|
207
|
+
"name": "constant.numeric.octal.postscript"
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"match": "\\\\(\\\\|[nrtbf\\(\\)]|[0-7]{1,3}|\\r?\\n)",
|
211
|
+
"name": "constant.character.escape.postscript"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"match": "\\\\",
|
215
|
+
"name": "invalid.illegal.unknown-escape.postscript.ignored"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"begin": "\\(",
|
219
|
+
"end": "\\)",
|
220
|
+
"patterns": [
|
221
|
+
{
|
222
|
+
"include": "#string_content"
|
223
|
+
}
|
224
|
+
]
|
225
|
+
}
|
226
|
+
]
|
227
|
+
}
|
228
|
+
},
|
229
|
+
"scopeName": "source.postscript",
|
230
|
+
"uuid": "B89483CD-6AE0-4517-BE2C-82F8083B7359"
|
231
|
+
}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"pov",
|
4
|
+
"inc"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "\\s*\\{\\s*$",
|
7
|
+
"foldingStopMarker": "^\\s*\\}",
|
8
|
+
"name": "POV-Ray SDL",
|
9
|
+
"scopeName": "source.pov-ray sdl",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"begin": "\"",
|
13
|
+
"end": "\"",
|
14
|
+
"name": "string.quoted.double.povray",
|
15
|
+
"patterns": [
|
16
|
+
{
|
17
|
+
"match": "\\\\.",
|
18
|
+
"name": "constant.character.escape.povray"
|
19
|
+
}
|
20
|
+
]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"begin": "\\/\\*",
|
24
|
+
"end": "\\*\\/",
|
25
|
+
"name": "comment.block.povray"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"match": "\\/\\/.*",
|
29
|
+
"name": "comment.line.povray"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"match": "\\b([0-9]+(\\.[0-9]*)?|\\.[0-9]+)([eE][+-]?[0-9]+)?\\b",
|
33
|
+
"name": "constant.numeric.povray"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"match": "[\\+\\-\\*\\/\\<\\=\\>\\{\\}\\(\\)\\[\\]\\.\\,\\;\\:\\?\\!]",
|
37
|
+
"name": "keyword.operator.povray"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"match": "\\b(on|off|yes|no|true|false|pi)\\b",
|
41
|
+
"name": "constant.language.povray"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"match": "\\b(box|cone|cylinder|difference|height_field|intersection|isosurface|julia_fractal|merge|mesh2?|object|plane|sphere|superellipsoid|text|torus|union)\\b",
|
45
|
+
"name": "keyword.shape.povray"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"match": "\\b(camera|clipped_by|colou?r_map|contained_by|default|density|face_indices|finish|fog|global_settings|interior|light_source|material|media|normal(_vectors)?|pigment(_map)?|photons|radiosity|reflection|scattering|texture|uv_vectors|vertex_vectors|warp)\\b",
|
49
|
+
"name": "keyword.block.povray"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"match": "\\b(adaptive|adc_bailout|agate|ambient|angle|area_light|array|assumed_gamma|blue|bozo|brightness|bumps|checker|circular|collect|colou?r|conserve_energy|count|crackle|cylindrical|diffuse|direction|distance|dist_exp|error_bound|exponent|extinction|fade_color|fade_distance|fade_power|falloff|filter|fog_alt|fog_offset|fog_type|function|fresnel|gradient|granite|gr[ae]y_threshold|gr[ae]y|green|hollow|intervals|inverse|ior|jitter|lambda|location|look_at|low_error_factor|marble|max_gradient|max_iteration|max_trace_level|media_attenuation|media_interaction|metallic|method|minimum_reuse|nearest_count|noise_generator|no_shadow|octaves|omega|orient(ation)?|pass_through|planar|point_at|poly_wave|precision|pretrace_end|pretrace_start|quaternion|radius|ramp_wave|recursion_limit|repeat|rgbf?t?|red|refraction|right|roughness|samples|shadowless|sky|spacing|specular|spherical|spotlight|srgbf?t?|target|transmit|turbulence|uv_mapping|up|water_level|wrinkles|x|y|z)\\b",
|
53
|
+
"name": "keyword.parameter.povray"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"match": "\\b(abs|concat|dimension_size|internal|max|min|mod|pow|rand|seed|sin|sqrt|vcross|vlength|vrotate|vnormalize)\\b",
|
57
|
+
"name": "keyword.function.povray"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"match": "\\b(rotate|scale|translate)\\b",
|
61
|
+
"name": "keyword.modifier.povray"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"match": "\\#(declare|debug|else(if)?|end|for|if(n?def)?|include|local|macro|version|while)\\b",
|
65
|
+
"name": "keyword.control.povray"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"match": "\\#(default)\\b",
|
69
|
+
"name": "invalid.deprecated.keyword.control.povray"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"match": "\\#[_a-zA-Z0-9]*\\b",
|
73
|
+
"name": "invalid.illegal.povray"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"match": "\\b(image_height|image_width)\\b",
|
77
|
+
"name": "variable.language.povray"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"match": "\\b([_a-z][_a-z0-9]*)\\b",
|
81
|
+
"name": "invalid.deprecated.future-keyword.povray"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"match": "\\b[_a-zA-Z][_a-zA-Z0-9]*\\b",
|
85
|
+
"name": "variable.parameter.povray"
|
86
|
+
}
|
87
|
+
]
|
88
|
+
}
|
@@ -0,0 +1,755 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"ps1",
|
4
|
+
"psm1",
|
5
|
+
"psd1"
|
6
|
+
],
|
7
|
+
"name": "PowerShell",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"begin": "<#",
|
11
|
+
"beginCaptures": {
|
12
|
+
"0": {
|
13
|
+
"name": "punctuation.start.definition.comment.block.powershell"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"end": "#>",
|
17
|
+
"endCaptures": {
|
18
|
+
"0": {
|
19
|
+
"name": "punctuation.end.definition.comment.block.powershell"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"name": "comment.block.powershell",
|
23
|
+
"patterns": [
|
24
|
+
{
|
25
|
+
"include": "#commentEmbeddedDocs"
|
26
|
+
}
|
27
|
+
]
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"begin": "(?<![\\\\-])#",
|
31
|
+
"end": "$",
|
32
|
+
"name": "comment.line.number-sign.powershell",
|
33
|
+
"patterns": [
|
34
|
+
{
|
35
|
+
"include": "#commentEmbeddedDocs"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"match": "[2-6]>&1|>>|>|<<|<|>|>\\||[1-6]>|[1-6]>>",
|
41
|
+
"name": "keyword.operator.redirection.powershell"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"include": "#commands"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"include": "#variable"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"include": "#interpolatedStringContent"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"include": "#function"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"include": "#attribute"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"include": "#type"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"begin": "(?<!(?<!`)\")\"",
|
63
|
+
"end": "\"(?!\")",
|
64
|
+
"name": "string.quoted.double.powershell",
|
65
|
+
"patterns": [
|
66
|
+
{
|
67
|
+
"include": "#variableNoProperty"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"include": "#doubleQuotedStringEscapes"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"include": "#interpolation"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"match": "`\\s*$",
|
77
|
+
"name": "keyword.other.powershell"
|
78
|
+
}
|
79
|
+
]
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"comment": "Needed to parse stuff correctly in 'argument mode'. (See about_parsing.)",
|
83
|
+
"include": "#doubleQuotedStringEscapes"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"begin": "(?<!')'",
|
87
|
+
"end": "'(?!')",
|
88
|
+
"name": "string.quoted.single.powershell",
|
89
|
+
"patterns": [
|
90
|
+
{
|
91
|
+
"match": "''",
|
92
|
+
"name": "constant.character.escape.powershell"
|
93
|
+
}
|
94
|
+
]
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"begin": "\\@\"(?=$)",
|
98
|
+
"end": "^\"@",
|
99
|
+
"name": "string.quoted.double.heredoc.powershell",
|
100
|
+
"patterns": [
|
101
|
+
{
|
102
|
+
"include": "#variableNoProperty"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"include": "#doubleQuotedStringEscapes"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"include": "#interpolation"
|
109
|
+
}
|
110
|
+
]
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"begin": "\\@'(?=$)",
|
114
|
+
"end": "^'@",
|
115
|
+
"name": "string.quoted.single.heredoc.powershell",
|
116
|
+
"patterns": [
|
117
|
+
{
|
118
|
+
"match": "''",
|
119
|
+
"name": "constant.character.escape.powershell"
|
120
|
+
}
|
121
|
+
]
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"include": "#numericConstant"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"begin": "@\\(",
|
128
|
+
"captures": {
|
129
|
+
"0": {
|
130
|
+
"name": "keyword.other.powershell"
|
131
|
+
}
|
132
|
+
},
|
133
|
+
"end": "\\)",
|
134
|
+
"name": "meta.group.array-expression.powershell",
|
135
|
+
"patterns": [
|
136
|
+
{
|
137
|
+
"include": "$self"
|
138
|
+
}
|
139
|
+
]
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"begin": "\\$\\(",
|
143
|
+
"captures": {
|
144
|
+
"0": {
|
145
|
+
"name": "keyword.other.powershell"
|
146
|
+
}
|
147
|
+
},
|
148
|
+
"comment": "TODO: move to repo; make recursive.",
|
149
|
+
"end": "\\)",
|
150
|
+
"name": "meta.group.complex.subexpression.powershell",
|
151
|
+
"patterns": [
|
152
|
+
{
|
153
|
+
"include": "$self"
|
154
|
+
}
|
155
|
+
]
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"match": "(?<!\\w)-([ci]?[lg][te]|eq|ne)",
|
159
|
+
"name": "keyword.operator.logical.powershell"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"match": "(?i:[a-z][a-z0-9]+-?[a-z][a-z0-9]+)(?i:\\.(?i:exe|cmd|bat|ps1))",
|
163
|
+
"name": "support.function.powershell"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"match": "(?<!\\w)((?i:begin|break|catch|continue|data|define|do|dynamicparam|else|elseif|end|exit|finally|for|foreach(?!-object)|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|using|var|where(?!=-object)|while)|%|\\?)(?!\\w)",
|
167
|
+
"name": "keyword.control.powershell"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"captures": {
|
171
|
+
"1": {
|
172
|
+
"name": "storage.type.powershell"
|
173
|
+
},
|
174
|
+
"2": {
|
175
|
+
"name": "entity.name.function"
|
176
|
+
}
|
177
|
+
},
|
178
|
+
"comment": "capture should be entity.name.type, but it doesn't provide a good color in the default schema.",
|
179
|
+
"match": "(?<!\\w)((?i:class)|%|\\?)(?:\\s)+((?:\\p{L}|\\d|_|-|)+)\\b"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"match": "(?<!\\w)-(?i:is(?:not)?|as)\\b",
|
183
|
+
"name": "keyword.operator.comparison.powershell"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"match": "(?<!\\w)-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|replace))(?!\\p{L})",
|
187
|
+
"name": "keyword.operator.comparison.powershell"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"match": "(?<!\\w)-(?i:join|split)(?!\\p{L})|!",
|
191
|
+
"name": "keyword.operator.unary.powershell"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"match": "(?<!\\w)-(?i:and|or|not|xor)(?!\\p{L})|!",
|
195
|
+
"name": "keyword.operator.logical.powershell"
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"match": "(?<!\\w)-(?i:band|bor|bnot|bxor)(?!\\p{L})",
|
199
|
+
"name": "keyword.operator.bitwise.powershell"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"match": "(?<!\\w)-(?i:f)(?!\\p{L})",
|
203
|
+
"name": "keyword.operator.string-format.powershell"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"match": "[+%*/-]?=|[+/*%-]",
|
207
|
+
"name": "keyword.operator.assignment.powershell"
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"match": "\\|{2}|&{2}|;",
|
211
|
+
"name": "keyword.other.statement-separator.powershell"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"match": "&|(?<!\\w)\\.(?= )|`|,|\\|",
|
215
|
+
"name": "keyword.operator.other.powershell"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"comment": "This is very imprecise, is there a syntax for 'must come after...' ",
|
219
|
+
"match": "(?<!\\s|^)\\.\\.(?=\\d|\\(|\\$)",
|
220
|
+
"name": "keyword.operator.range.powershell"
|
221
|
+
}
|
222
|
+
],
|
223
|
+
"repository": {
|
224
|
+
"attribute": {
|
225
|
+
"begin": "\\[(\\p{L}|\\.|``\\d+)+(?=\\()",
|
226
|
+
"beginCaptures": {
|
227
|
+
"0": {
|
228
|
+
"name": "entity.name.tag"
|
229
|
+
},
|
230
|
+
"1": {
|
231
|
+
"name": "entity.name.tag"
|
232
|
+
}
|
233
|
+
},
|
234
|
+
"end": "\\]",
|
235
|
+
"endCaptures": {
|
236
|
+
"0": {
|
237
|
+
"name": "entity.name.tag"
|
238
|
+
}
|
239
|
+
},
|
240
|
+
"patterns": [
|
241
|
+
{
|
242
|
+
"begin": "\\(",
|
243
|
+
"end": "\\)",
|
244
|
+
"name": "entity.other.attribute-name",
|
245
|
+
"patterns": [
|
246
|
+
{
|
247
|
+
"captures": {
|
248
|
+
"0": {
|
249
|
+
"name": "entity.other.attribute.parameter.powershell"
|
250
|
+
},
|
251
|
+
"1": {
|
252
|
+
"name": "constant.language.powershell"
|
253
|
+
},
|
254
|
+
"2": {
|
255
|
+
"name": "variable.other.powershell"
|
256
|
+
}
|
257
|
+
},
|
258
|
+
"comment": "really we should match the known attributes first",
|
259
|
+
"match": "(\\w+)\\s*=?([^\"']*?|'[^']*?'|\"[^\"]*?\")?(?=,|\\))",
|
260
|
+
"name": "entity.other.attribute-name.powershell"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"include": "#variable"
|
264
|
+
}
|
265
|
+
]
|
266
|
+
}
|
267
|
+
]
|
268
|
+
},
|
269
|
+
"commands": {
|
270
|
+
"patterns": [
|
271
|
+
{
|
272
|
+
"comment": "Verb-Noun pattern:",
|
273
|
+
"match": "(?:(\\p{L}|\\d|_|-|\\\\|\\:)*\\\\)?\\b(?i:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Mount|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Write)\\-.+?(?:\\.(?i:exe|cmd|bat|ps1))?\\b",
|
274
|
+
"name": "support.function.powershell"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"comment": "Builtin cmdlets with reserved verbs",
|
278
|
+
"match": "(?<!\\w)(?i:foreach-object)(?!\\w)",
|
279
|
+
"name": "support.function.powershell"
|
280
|
+
}
|
281
|
+
]
|
282
|
+
},
|
283
|
+
"commentEmbeddedDocs": {
|
284
|
+
"patterns": [
|
285
|
+
{
|
286
|
+
"captures": {
|
287
|
+
"1": {
|
288
|
+
"name": "constant.string.documentation.powershell"
|
289
|
+
},
|
290
|
+
"2": {
|
291
|
+
"name": "keyword.operator.documentation.powershell"
|
292
|
+
}
|
293
|
+
},
|
294
|
+
"match": "(?i:\\s*(\\.)(SYNOPSIS|DESCRIPTION|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|FUNCTIONALITY))",
|
295
|
+
"name": "comment.documentation.embedded.powershell"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"captures": {
|
299
|
+
"1": {
|
300
|
+
"name": "constant.string.documentation.powershell"
|
301
|
+
},
|
302
|
+
"2": {
|
303
|
+
"name": "keyword.operator.documentation.powershell"
|
304
|
+
},
|
305
|
+
"3": {
|
306
|
+
"name": "keyword.operator.documentation.powershell"
|
307
|
+
}
|
308
|
+
},
|
309
|
+
"match": "(?i:\\s*(\\.)(PARAMETER|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP)\\s+([a-z0-9-_]+))",
|
310
|
+
"name": "comment.documentation.embedded.powershell"
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"captures": {
|
314
|
+
"1": {
|
315
|
+
"name": "constant.string.documentation.powershell"
|
316
|
+
},
|
317
|
+
"2": {
|
318
|
+
"name": "keyword.operator.documentation.powershell"
|
319
|
+
},
|
320
|
+
"3": {
|
321
|
+
"name": "string.quoted.double.heredoc.powershell"
|
322
|
+
}
|
323
|
+
},
|
324
|
+
"match": "(?i:requires\\s+-(Version\\s+\\d(.\\d+)?|Assembly\\s+(.*)|Module\\s+(.*)|PsSnapIn\\s+(.*)|ShellId\\s+(.*)))",
|
325
|
+
"name": "comment.documentation.embedded.powershell"
|
326
|
+
}
|
327
|
+
]
|
328
|
+
},
|
329
|
+
"doubleQuotedStringEscapes": {
|
330
|
+
"patterns": [
|
331
|
+
{
|
332
|
+
"match": "`[0abnfrvt\"'$`]",
|
333
|
+
"name": "constant.character.escape.powershell"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"match": "\"\"",
|
337
|
+
"name": "constant.character.escape.powershell"
|
338
|
+
}
|
339
|
+
]
|
340
|
+
},
|
341
|
+
"function": {
|
342
|
+
"begin": "((?i:function|filter|configuration|workflow))\\s+((?:\\p{L}|\\d|_|-|\\.)+)",
|
343
|
+
"beginCaptures": {
|
344
|
+
"0": {
|
345
|
+
"name": "meta.function"
|
346
|
+
},
|
347
|
+
"1": {
|
348
|
+
"name": "storage.type"
|
349
|
+
},
|
350
|
+
"2": {
|
351
|
+
"name": "entity.name.function"
|
352
|
+
}
|
353
|
+
},
|
354
|
+
"end": "\\{|\\("
|
355
|
+
},
|
356
|
+
"interpolatedStringContent": {
|
357
|
+
"begin": "\\(",
|
358
|
+
"beginCaptures": {
|
359
|
+
"0": {
|
360
|
+
"name": "keyword.other.powershell"
|
361
|
+
}
|
362
|
+
},
|
363
|
+
"contentName": "interpolated.simple.source.powershell",
|
364
|
+
"end": "\\)",
|
365
|
+
"endCaptures": {
|
366
|
+
"0": {
|
367
|
+
"name": "keyword.other.powershell"
|
368
|
+
}
|
369
|
+
},
|
370
|
+
"patterns": [
|
371
|
+
{
|
372
|
+
"include": "$self"
|
373
|
+
},
|
374
|
+
{
|
375
|
+
"include": "#interpolation"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"include": "#interpolatedStringContent"
|
379
|
+
}
|
380
|
+
]
|
381
|
+
},
|
382
|
+
"interpolation": {
|
383
|
+
"begin": "(\\$)\\(",
|
384
|
+
"beginCaptures": {
|
385
|
+
"0": {
|
386
|
+
"name": "keyword.other.powershell"
|
387
|
+
}
|
388
|
+
},
|
389
|
+
"contentName": "interpolated.complex.source.powershell",
|
390
|
+
"end": "\\)",
|
391
|
+
"endCaptures": {
|
392
|
+
"0": {
|
393
|
+
"name": "keyword.other.powershell"
|
394
|
+
}
|
395
|
+
},
|
396
|
+
"patterns": [
|
397
|
+
{
|
398
|
+
"include": "$self"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"include": "#interpolation"
|
402
|
+
},
|
403
|
+
{
|
404
|
+
"include": "#interpolatedStringContent"
|
405
|
+
}
|
406
|
+
]
|
407
|
+
},
|
408
|
+
"numericConstant": {
|
409
|
+
"patterns": [
|
410
|
+
{
|
411
|
+
"captures": {
|
412
|
+
"1": {
|
413
|
+
"name": "keyword.operator.math.powershell"
|
414
|
+
},
|
415
|
+
"2": {
|
416
|
+
"name": "support.constant.powershell"
|
417
|
+
},
|
418
|
+
"3": {
|
419
|
+
"name": "keyword.other.powershell"
|
420
|
+
}
|
421
|
+
},
|
422
|
+
"match": "(?<!\\w)(?i:(0x)([a-f0-9]+)((?i:L)?(?i:[kmgtp]b)?))(?!\\w)",
|
423
|
+
"name": "constant.numeric.hexadecimal.powershell"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"captures": {
|
427
|
+
"1": {
|
428
|
+
"name": "support.constant.powershell"
|
429
|
+
},
|
430
|
+
"2": {
|
431
|
+
"name": "keyword.operator.math.powershell"
|
432
|
+
},
|
433
|
+
"3": {
|
434
|
+
"name": "support.constant.powershell"
|
435
|
+
},
|
436
|
+
"4": {
|
437
|
+
"name": "keyword.other.powershell"
|
438
|
+
},
|
439
|
+
"5": {
|
440
|
+
"name": "keyword.other.powershell"
|
441
|
+
}
|
442
|
+
},
|
443
|
+
"match": "(?<!\\w)(?i:(\\d*\\.?\\d+)(?:((?i:E)[+-]?)(\\d+))?((?i:[DL])?)((?i:[kmgtp]b)?))(?!\\w)",
|
444
|
+
"name": "constant.numeric.scientific.powershell"
|
445
|
+
}
|
446
|
+
]
|
447
|
+
},
|
448
|
+
"scriptblock": {
|
449
|
+
"begin": "\\{",
|
450
|
+
"end": "\\}",
|
451
|
+
"name": "meta.scriptblock.powershell",
|
452
|
+
"patterns": [
|
453
|
+
{
|
454
|
+
"include": "$self"
|
455
|
+
}
|
456
|
+
]
|
457
|
+
},
|
458
|
+
"type": {
|
459
|
+
"begin": "\\[",
|
460
|
+
"beginCaptures": {
|
461
|
+
"0": {
|
462
|
+
"name": "entity.other.attribute-name"
|
463
|
+
}
|
464
|
+
},
|
465
|
+
"comment": "name should be entity.name.type but default schema doesn't have a good color for it",
|
466
|
+
"end": "\\]",
|
467
|
+
"endCaptures": {
|
468
|
+
"0": {
|
469
|
+
"name": "entity.other.attribute-name"
|
470
|
+
}
|
471
|
+
},
|
472
|
+
"patterns": [
|
473
|
+
{
|
474
|
+
"match": "(\\p{L}|\\.|``\\d+)+?",
|
475
|
+
"name": "entity.other.attribute-name"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"include": "$self"
|
479
|
+
}
|
480
|
+
]
|
481
|
+
},
|
482
|
+
"variable": {
|
483
|
+
"patterns": [
|
484
|
+
{
|
485
|
+
"captures": {
|
486
|
+
"1": {
|
487
|
+
"name": "keyword.other.powershell"
|
488
|
+
},
|
489
|
+
"2": {
|
490
|
+
"name": "constant.language.powershell"
|
491
|
+
}
|
492
|
+
},
|
493
|
+
"comment": "These are special constants.",
|
494
|
+
"match": "(\\$)(?i:(False|Null|True))\\b"
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"captures": {
|
498
|
+
"1": {
|
499
|
+
"name": "keyword.other.powershell"
|
500
|
+
},
|
501
|
+
"2": {
|
502
|
+
"name": "support.constant.variable.powershell"
|
503
|
+
},
|
504
|
+
"3": {
|
505
|
+
"name": "entity.name.function.invocation.powershell"
|
506
|
+
}
|
507
|
+
},
|
508
|
+
"comment": "These are the other built-in constants.",
|
509
|
+
"match": "(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b"
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"captures": {
|
513
|
+
"1": {
|
514
|
+
"name": "keyword.other.powershell"
|
515
|
+
},
|
516
|
+
"2": {
|
517
|
+
"name": "support.constant.automatic.powershell"
|
518
|
+
},
|
519
|
+
"3": {
|
520
|
+
"name": "entity.name.function.invocation.powershell"
|
521
|
+
}
|
522
|
+
},
|
523
|
+
"comment": "Automatic variables are not constants, but they are read-only. In monokai (default) color schema support.variable doesn't have color, so we use constant.",
|
524
|
+
"match": "(\\$)(?i:(\\$|\\^|\\?|_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b"
|
525
|
+
},
|
526
|
+
{
|
527
|
+
"captures": {
|
528
|
+
"1": {
|
529
|
+
"name": "keyword.other.powershell"
|
530
|
+
},
|
531
|
+
"2": {
|
532
|
+
"name": "variable.language.powershell"
|
533
|
+
},
|
534
|
+
"3": {
|
535
|
+
"name": "entity.name.function.invocation.powershell"
|
536
|
+
}
|
537
|
+
},
|
538
|
+
"comment": "Style preference variables as language variables so that they stand out.",
|
539
|
+
"match": "(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|ProgressPreference|PsCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|VerbosePreference|WarningPreference|WhatIfPreference))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b"
|
540
|
+
},
|
541
|
+
{
|
542
|
+
"captures": {
|
543
|
+
"1": {
|
544
|
+
"name": "keyword.other.powershell"
|
545
|
+
},
|
546
|
+
"2": {
|
547
|
+
"name": "storage.modifier.scope.powershell"
|
548
|
+
},
|
549
|
+
"3": {
|
550
|
+
"name": "variable.other.normal.powershell"
|
551
|
+
},
|
552
|
+
"4": {
|
553
|
+
"name": "entity.name.function.invocation.powershell"
|
554
|
+
}
|
555
|
+
},
|
556
|
+
"match": "(?i:(\\$)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
|
557
|
+
},
|
558
|
+
{
|
559
|
+
"captures": {
|
560
|
+
"1": {
|
561
|
+
"name": "keyword.other.powershell"
|
562
|
+
},
|
563
|
+
"2": {
|
564
|
+
"name": "storage.modifier.scope.powershell"
|
565
|
+
},
|
566
|
+
"3": {
|
567
|
+
"name": "variable.other.readwrite.powershell"
|
568
|
+
},
|
569
|
+
"4": {
|
570
|
+
"name": "keyword.other.powershell"
|
571
|
+
},
|
572
|
+
"5": {
|
573
|
+
"name": "entity.name.function.invocation.powershell"
|
574
|
+
}
|
575
|
+
},
|
576
|
+
"match": "(?i:(\\$\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"captures": {
|
580
|
+
"1": {
|
581
|
+
"name": "keyword.other.powershell"
|
582
|
+
},
|
583
|
+
"2": {
|
584
|
+
"name": "support.variable.drive.powershell"
|
585
|
+
},
|
586
|
+
"3": {
|
587
|
+
"name": "variable.other.readwrite.powershell"
|
588
|
+
},
|
589
|
+
"4": {
|
590
|
+
"name": "entity.name.function.invocation.powershell"
|
591
|
+
}
|
592
|
+
},
|
593
|
+
"match": "(?i:(\\$)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"captures": {
|
597
|
+
"1": {
|
598
|
+
"name": "keyword.other.powershell"
|
599
|
+
},
|
600
|
+
"2": {
|
601
|
+
"name": "support.variable.drive.powershell"
|
602
|
+
},
|
603
|
+
"3": {
|
604
|
+
"name": "variable.other.readwrite.powershell"
|
605
|
+
},
|
606
|
+
"4": {
|
607
|
+
"name": "keyword.other.powershell"
|
608
|
+
},
|
609
|
+
"5": {
|
610
|
+
"name": "entity.name.function.invocation.powershell"
|
611
|
+
}
|
612
|
+
},
|
613
|
+
"match": "(?i:(\\$\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?"
|
614
|
+
}
|
615
|
+
]
|
616
|
+
},
|
617
|
+
"variableNoProperty": {
|
618
|
+
"patterns": [
|
619
|
+
{
|
620
|
+
"captures": {
|
621
|
+
"1": {
|
622
|
+
"name": "keyword.other.powershell"
|
623
|
+
},
|
624
|
+
"2": {
|
625
|
+
"name": "constant.language.powershell"
|
626
|
+
}
|
627
|
+
},
|
628
|
+
"comment": "These are special constants.",
|
629
|
+
"match": "(\\$)(?i:(False|Null|True))\\b"
|
630
|
+
},
|
631
|
+
{
|
632
|
+
"captures": {
|
633
|
+
"1": {
|
634
|
+
"name": "keyword.other.powershell"
|
635
|
+
},
|
636
|
+
"2": {
|
637
|
+
"name": "support.constant.variable.powershell"
|
638
|
+
},
|
639
|
+
"3": {
|
640
|
+
"name": "entity.name.function.invocation.powershell"
|
641
|
+
}
|
642
|
+
},
|
643
|
+
"comment": "These are the other built-in constants.",
|
644
|
+
"match": "(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))\\b"
|
645
|
+
},
|
646
|
+
{
|
647
|
+
"captures": {
|
648
|
+
"1": {
|
649
|
+
"name": "keyword.other.powershell"
|
650
|
+
},
|
651
|
+
"2": {
|
652
|
+
"name": "support.variable.automatic.powershell"
|
653
|
+
},
|
654
|
+
"3": {
|
655
|
+
"name": "entity.name.function.invocation.powershell"
|
656
|
+
}
|
657
|
+
},
|
658
|
+
"comment": "Automatic variables are not constants, but they are read-only...",
|
659
|
+
"match": "(\\$)(?i:(\\$|\\^|\\?|_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This))\\b"
|
660
|
+
},
|
661
|
+
{
|
662
|
+
"captures": {
|
663
|
+
"1": {
|
664
|
+
"name": "keyword.other.powershell"
|
665
|
+
},
|
666
|
+
"2": {
|
667
|
+
"name": "variable.language.powershell"
|
668
|
+
},
|
669
|
+
"3": {
|
670
|
+
"name": "entity.name.function.invocation.powershell"
|
671
|
+
}
|
672
|
+
},
|
673
|
+
"comment": "Style preference variables as language variables so that they stand out.",
|
674
|
+
"match": "(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|ProgressPreference|PsCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|VerbosePreference|WarningPreference|WhatIfPreference))\\b"
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"captures": {
|
678
|
+
"1": {
|
679
|
+
"name": "keyword.other.powershell"
|
680
|
+
},
|
681
|
+
"2": {
|
682
|
+
"name": "storage.modifier.scope.powershell"
|
683
|
+
},
|
684
|
+
"3": {
|
685
|
+
"name": "variable.other.normal.powershell"
|
686
|
+
},
|
687
|
+
"4": {
|
688
|
+
"name": "entity.name.function.invocation.powershell"
|
689
|
+
}
|
690
|
+
},
|
691
|
+
"match": "(?i:(\\$)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))"
|
692
|
+
},
|
693
|
+
{
|
694
|
+
"captures": {
|
695
|
+
"1": {
|
696
|
+
"name": "keyword.other.powershell"
|
697
|
+
},
|
698
|
+
"2": {
|
699
|
+
"name": "storage.modifier.scope.powershell"
|
700
|
+
},
|
701
|
+
"3": {
|
702
|
+
"name": "variable.other.readwrite.powershell"
|
703
|
+
},
|
704
|
+
"4": {
|
705
|
+
"name": "keyword.other.powershell"
|
706
|
+
},
|
707
|
+
"5": {
|
708
|
+
"name": "entity.name.function.invocation.powershell"
|
709
|
+
}
|
710
|
+
},
|
711
|
+
"match": "(?i:(\\$\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))"
|
712
|
+
},
|
713
|
+
{
|
714
|
+
"captures": {
|
715
|
+
"1": {
|
716
|
+
"name": "keyword.other.powershell"
|
717
|
+
},
|
718
|
+
"2": {
|
719
|
+
"name": "support.variable.drive.powershell"
|
720
|
+
},
|
721
|
+
"3": {
|
722
|
+
"name": "variable.other.readwrite.powershell"
|
723
|
+
},
|
724
|
+
"4": {
|
725
|
+
"name": "entity.name.function.invocation.powershell"
|
726
|
+
}
|
727
|
+
},
|
728
|
+
"match": "(?i:(\\$)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))"
|
729
|
+
},
|
730
|
+
{
|
731
|
+
"captures": {
|
732
|
+
"1": {
|
733
|
+
"name": "keyword.other.powershell"
|
734
|
+
},
|
735
|
+
"2": {
|
736
|
+
"name": "support.variable.drive.powershell"
|
737
|
+
},
|
738
|
+
"3": {
|
739
|
+
"name": "variable.other.readwrite.powershell"
|
740
|
+
},
|
741
|
+
"4": {
|
742
|
+
"name": "keyword.other.powershell"
|
743
|
+
},
|
744
|
+
"5": {
|
745
|
+
"name": "entity.name.function.invocation.powershell"
|
746
|
+
}
|
747
|
+
},
|
748
|
+
"match": "(?i:(\\$\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))"
|
749
|
+
}
|
750
|
+
]
|
751
|
+
}
|
752
|
+
},
|
753
|
+
"scopeName": "source.powershell",
|
754
|
+
"uuid": "f8f5ffb0-503e-11df-9879-0800200c9a66"
|
755
|
+
}
|