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,395 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"proto"
|
4
|
+
],
|
5
|
+
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
6
|
+
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
|
7
|
+
"name": "Protocol Buffer",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"captures": {
|
11
|
+
"1": {
|
12
|
+
"name": "keyword.other.import.protobuf"
|
13
|
+
},
|
14
|
+
"2": {
|
15
|
+
"name": "string.quoted.double.import.protobuf"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"match": "(import) (\".*\")",
|
19
|
+
"name": "meta.import.declaration.protobuf"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"begin": "\\b(message)\\s+([A-Za-z0-9_]+)\\s*\\{",
|
23
|
+
"captures": {
|
24
|
+
"1": {
|
25
|
+
"name": "storage.type.message.protobuf"
|
26
|
+
},
|
27
|
+
"2": {
|
28
|
+
"name": "entity.name.type.message.protobuf"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"end": "}",
|
32
|
+
"name": "meta.message-declaration.protobuf",
|
33
|
+
"patterns": [
|
34
|
+
{
|
35
|
+
"include": "$self"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"include": "#any_field"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"include": "#comments"
|
42
|
+
}
|
43
|
+
]
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"begin": "\\b(enum)\\s+([A-Za-z0-9_]+)\\s*\\{",
|
47
|
+
"beginCaptures": {
|
48
|
+
"1": {
|
49
|
+
"name": "storage.type.enum.protobuf"
|
50
|
+
},
|
51
|
+
"2": {
|
52
|
+
"name": "entity.name.type.enum.protobuf"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"end": "}",
|
56
|
+
"name": "meta.enum-declaration.protobuf",
|
57
|
+
"patterns": [
|
58
|
+
{
|
59
|
+
"captures": {
|
60
|
+
"1": {
|
61
|
+
"name": "constant.other.user-defined.protobuf"
|
62
|
+
},
|
63
|
+
"2": {
|
64
|
+
"name": "constant.numeric.protobuf"
|
65
|
+
}
|
66
|
+
},
|
67
|
+
"match": "\\b([A-Za-z0-9_]+)\\s*=\\s*(\\d+)\\b",
|
68
|
+
"name": "meta.individual-enum-definition.protobuf"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"include": "#anywhere_option"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"include": "#bracketed_option"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"include": "#comments"
|
78
|
+
}
|
79
|
+
]
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"begin": "\\b(service)\\s+([A-Za-z0-9_]+)\\s*\\{",
|
83
|
+
"beginCaptures": {
|
84
|
+
"1": {
|
85
|
+
"name": "storage.type.enum.protobuf"
|
86
|
+
},
|
87
|
+
"2": {
|
88
|
+
"name": "entity.name.type.enum.protobuf"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"end": "}",
|
92
|
+
"name": "meta.service-declaration.protobuf",
|
93
|
+
"patterns": [
|
94
|
+
{
|
95
|
+
"captures": {
|
96
|
+
"1": {
|
97
|
+
"name": "keyword.other.rpc-definition.protobuf"
|
98
|
+
},
|
99
|
+
"2": {
|
100
|
+
"name": "entity.name.function.service-rpc.protobuf"
|
101
|
+
},
|
102
|
+
"3": {
|
103
|
+
"name": "variable.parameter.request-type.protobuf"
|
104
|
+
},
|
105
|
+
"4": {
|
106
|
+
"name": "keyword.operator.returns.protobuf"
|
107
|
+
},
|
108
|
+
"5": {
|
109
|
+
"name": "variable.parameter.response-type.protobuf"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"match": "\\b(rpc)\\s+([A-Za-z0-9_]+)\\s+\\(([A-Za-z0-9_]+)\\)\\s*(returns)\\s*\\(([A-Za-z0-9_]+)\\)\\s*;",
|
113
|
+
"name": "meta.individual-rpc-call.protobuf"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"begin": "\\b(method)\\s+([A-Za-z0-9_]+)\\s*\\(\\s*\\)\\s*{",
|
117
|
+
"captures": {
|
118
|
+
"1": {
|
119
|
+
"name": "keyword.other.method-modification.protobuf"
|
120
|
+
},
|
121
|
+
"2": {
|
122
|
+
"name": "entity.name.function.protobuf"
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"end": "}",
|
126
|
+
"name": "meta.method-mofification.protobuf",
|
127
|
+
"patterns": [
|
128
|
+
{
|
129
|
+
"include": "#comments"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"include": "#rpc_string_attribute"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"include": "#rpc_primitive_attribute"
|
136
|
+
}
|
137
|
+
]
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"include": "#anywhere_option"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"include": "#comments"
|
144
|
+
}
|
145
|
+
]
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"captures": {
|
149
|
+
"1": {
|
150
|
+
"name": "keyword.other.package-definition.protobuf"
|
151
|
+
},
|
152
|
+
"2": {
|
153
|
+
"name": "entity.name.section.protobuf"
|
154
|
+
}
|
155
|
+
},
|
156
|
+
"match": "\\b(package)\\s+([A-Za-z0-9.]+)\\s*;",
|
157
|
+
"name": "meta.package.protobuf"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"captures": {
|
161
|
+
"1": {
|
162
|
+
"name": "storage.modifier.extensions.protobuf"
|
163
|
+
},
|
164
|
+
"2": {
|
165
|
+
"name": "constant.numeric.protobufs"
|
166
|
+
},
|
167
|
+
"3": {
|
168
|
+
"name": "keyword.operator.to.protobufs"
|
169
|
+
},
|
170
|
+
"4": {
|
171
|
+
"name": "constant.numeric.protobufs"
|
172
|
+
}
|
173
|
+
},
|
174
|
+
"match": "(extensions)\\s+(\\d+)\\s+(to)\\s+(max|\\d+);",
|
175
|
+
"name": "meta.extension-specification.protobuf"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"include": "#anywhere_option"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"include": "#bracketed_option"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"include": "#extend_block"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"include": "#comments"
|
188
|
+
}
|
189
|
+
],
|
190
|
+
"repository": {
|
191
|
+
"any_field": {
|
192
|
+
"patterns": [
|
193
|
+
{
|
194
|
+
"include": "#primitive_field"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"include": "#group_field"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"include": "#user_defined_message_field"
|
201
|
+
}
|
202
|
+
]
|
203
|
+
},
|
204
|
+
"anywhere_option": {
|
205
|
+
"begin": "(option)\\s+",
|
206
|
+
"beginCaptures": {
|
207
|
+
"1": {
|
208
|
+
"name": "keyword.other.option.protobuf"
|
209
|
+
}
|
210
|
+
},
|
211
|
+
"end": ";",
|
212
|
+
"patterns": [
|
213
|
+
{
|
214
|
+
"include": "#attribute"
|
215
|
+
}
|
216
|
+
]
|
217
|
+
},
|
218
|
+
"attribute": {
|
219
|
+
"patterns": [
|
220
|
+
{
|
221
|
+
"include": "#indiv_attribute"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"include": "#string_attribute"
|
225
|
+
}
|
226
|
+
]
|
227
|
+
},
|
228
|
+
"bracketed_option": {
|
229
|
+
"begin": "\\[",
|
230
|
+
"end": ";",
|
231
|
+
"patterns": [
|
232
|
+
{
|
233
|
+
"include": "#attribute"
|
234
|
+
}
|
235
|
+
]
|
236
|
+
},
|
237
|
+
"comments": {
|
238
|
+
"begin": "//",
|
239
|
+
"end": "\\n",
|
240
|
+
"name": "comment.line.double-slash.protobuf"
|
241
|
+
},
|
242
|
+
"extend_block": {
|
243
|
+
"begin": "\\b(extend)\\s+([A-Za-z0-9_]+)\\s*\\{",
|
244
|
+
"captures": {
|
245
|
+
"1": {
|
246
|
+
"name": "storage.type.extend.protobuf"
|
247
|
+
},
|
248
|
+
"2": {
|
249
|
+
"name": "entity.name.type.message.protobuf"
|
250
|
+
}
|
251
|
+
},
|
252
|
+
"end": "}",
|
253
|
+
"patterns": [
|
254
|
+
{
|
255
|
+
"include": "#any_field"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"include": "#comments"
|
259
|
+
}
|
260
|
+
]
|
261
|
+
},
|
262
|
+
"group_field": {
|
263
|
+
"begin": "(required|optional|repeated)\\s+(group)\\s+([A-Za-z0-9_]+)\\s*=\\s*(\\d+)\\s*{",
|
264
|
+
"captures": {
|
265
|
+
"1": {
|
266
|
+
"name": "keyword.control.occurrences.protobuf"
|
267
|
+
},
|
268
|
+
"2": {
|
269
|
+
"name": "invalid.deprecated.groups.protobuf"
|
270
|
+
},
|
271
|
+
"3": {
|
272
|
+
"name": "variable.other.primitive-field.protobuf"
|
273
|
+
},
|
274
|
+
"4": {
|
275
|
+
"name": "constant.numeric.field-tag.protobuf"
|
276
|
+
}
|
277
|
+
},
|
278
|
+
"end": "}",
|
279
|
+
"patterns": [
|
280
|
+
{
|
281
|
+
"include": "#any_field"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"include": "#comments"
|
285
|
+
}
|
286
|
+
]
|
287
|
+
},
|
288
|
+
"indiv_attribute": {
|
289
|
+
"captures": {
|
290
|
+
"1": {
|
291
|
+
"name": "entity.other.attribute-name.protobuf"
|
292
|
+
},
|
293
|
+
"2": {
|
294
|
+
"name": "constant.language.field-option-values.protobuf"
|
295
|
+
}
|
296
|
+
},
|
297
|
+
"match": "\\(?([A-Za-z0-9_.]+)\\)?\\s*=\\s*(true|false|\\d+|([A-Z_]+))\\b"
|
298
|
+
},
|
299
|
+
"primitive_field": {
|
300
|
+
"captures": {
|
301
|
+
"1": {
|
302
|
+
"name": "keyword.control.occurrences.protobuf"
|
303
|
+
},
|
304
|
+
"2": {
|
305
|
+
"name": "storage.type.built-in.protobuf"
|
306
|
+
},
|
307
|
+
"6": {
|
308
|
+
"name": "variable.other.primitive-field.protobuf"
|
309
|
+
},
|
310
|
+
"7": {
|
311
|
+
"name": "constant.numeric.field-tag.protobuf"
|
312
|
+
}
|
313
|
+
},
|
314
|
+
"match": "(required|optional|repeated)\\s+(((s|u)?int|s?fixed)(32|64)|string|bytes|bool)\\s+(\\S+)\\s*=\\s*(\\d+)"
|
315
|
+
},
|
316
|
+
"rpc_primitive_attribute": {
|
317
|
+
"beginCaptures": {
|
318
|
+
"1": {
|
319
|
+
"name": "keyword.other.option.protobuf"
|
320
|
+
},
|
321
|
+
"2": {
|
322
|
+
"name": "entity.other.attribute-name.protobuf"
|
323
|
+
},
|
324
|
+
"3": {
|
325
|
+
"name": "entity.other.attribute-name.protobuf"
|
326
|
+
},
|
327
|
+
"4": {
|
328
|
+
"name": "constant.numeric.protobuf"
|
329
|
+
}
|
330
|
+
},
|
331
|
+
"match": "(option)\\s+\\(?([A-Za-z0-9_.]+)\\)?\\.([A-Za-z0-9.]+)\\s*=\\s*(true|false|\\d+|([A-Z_]+))\\b"
|
332
|
+
},
|
333
|
+
"rpc_string_attribute": {
|
334
|
+
"begin": "(option)\\s+\\(?([A-Za-z0-9_.]+)\\)?\\.([A-Za-z0-9.]+)\\s*=\\s*(\")",
|
335
|
+
"beginCaptures": {
|
336
|
+
"1": {
|
337
|
+
"name": "keyword.other.option.protobuf"
|
338
|
+
},
|
339
|
+
"2": {
|
340
|
+
"name": "entity.other.attribute-name.protobuf"
|
341
|
+
},
|
342
|
+
"3": {
|
343
|
+
"name": "entity.other.attribute-name.protobuf"
|
344
|
+
},
|
345
|
+
"4": {
|
346
|
+
"name": "string.quoted.double.protobuf"
|
347
|
+
}
|
348
|
+
},
|
349
|
+
"contentName": "string.quoted.double.protobuf",
|
350
|
+
"end": "(\")",
|
351
|
+
"endCaptures": {
|
352
|
+
"1": {
|
353
|
+
"name": "string.quoted.double.protobuf"
|
354
|
+
}
|
355
|
+
}
|
356
|
+
},
|
357
|
+
"string_attribute": {
|
358
|
+
"begin": "\\(?([A-Za-z0-9_.]+)\\)?\\s*=\\s*(\")",
|
359
|
+
"beginCaptures": {
|
360
|
+
"1": {
|
361
|
+
"name": "entity.other.attribute-name.protobuf"
|
362
|
+
},
|
363
|
+
"2": {
|
364
|
+
"name": "string.quoted.double.protobuf"
|
365
|
+
}
|
366
|
+
},
|
367
|
+
"contentName": "string.quoted.double.protobuf",
|
368
|
+
"end": "(\")",
|
369
|
+
"endCaptures": {
|
370
|
+
"1": {
|
371
|
+
"name": "string.quoted.double.protobuf"
|
372
|
+
}
|
373
|
+
}
|
374
|
+
},
|
375
|
+
"user_defined_message_field": {
|
376
|
+
"captures": {
|
377
|
+
"1": {
|
378
|
+
"name": "keyword.control.occurrences.protobuf"
|
379
|
+
},
|
380
|
+
"2": {
|
381
|
+
"name": "support.class.user-defined-type.protobuf"
|
382
|
+
},
|
383
|
+
"3": {
|
384
|
+
"name": "variable.other.primitive-field.protobuf"
|
385
|
+
},
|
386
|
+
"4": {
|
387
|
+
"name": "constant.numeric.field-tag.protobuf"
|
388
|
+
}
|
389
|
+
},
|
390
|
+
"match": "(required|optional|repeated)\\s+([A-Za-z.]*)\\s+(\\S+)\\s*=\\s*(\\d+)"
|
391
|
+
}
|
392
|
+
},
|
393
|
+
"scopeName": "source.protobuf",
|
394
|
+
"uuid": "D1D0E31F-1807-408E-A184-00F4D0A2619F"
|
395
|
+
}
|
@@ -0,0 +1,494 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"pp"
|
4
|
+
],
|
5
|
+
"foldingStartMarker": "(^\\s*/\\*|(\\{|\\[|\\()\\s*$)",
|
6
|
+
"foldingStopMarker": "(\\*/|^\\s*(\\}|\\]|\\)))",
|
7
|
+
"keyEquivalent": "^~P",
|
8
|
+
"name": "Puppet",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"include": "#line_comment"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"begin": "^\\s*(/\\*)",
|
15
|
+
"beginCaptures": {
|
16
|
+
"1": {
|
17
|
+
"name": "punctuation.definition.comment.begin.roole"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"end": "\\*/",
|
21
|
+
"endCaptures": {
|
22
|
+
"0": {
|
23
|
+
"name": "punctuation.definition.comment.end.roole"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"name": "comment.block.puppet"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"begin": "(?x)^\\s*\n\t\t\t\t\t(node|class)\\s+\n\t\t\t\t\t((?:[-_A-Za-z0-9\".]+::)*[-_A-Za-z0-9\".]+)\\s* # identifier",
|
30
|
+
"captures": {
|
31
|
+
"1": {
|
32
|
+
"name": "storage.type.puppet"
|
33
|
+
},
|
34
|
+
"2": {
|
35
|
+
"name": "entity.name.type.class.puppet"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"end": "(?={)",
|
39
|
+
"name": "meta.definition.class.puppet",
|
40
|
+
"patterns": [
|
41
|
+
{
|
42
|
+
"begin": "\\b(inherits)\\b\\s+",
|
43
|
+
"captures": {
|
44
|
+
"1": {
|
45
|
+
"name": "storage.modifier.puppet"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"end": "(?={)",
|
49
|
+
"name": "meta.definition.class.inherits.puppet",
|
50
|
+
"patterns": [
|
51
|
+
{
|
52
|
+
"match": "\\b((?:[-_A-Za-z0-9\".]+::)*[-_A-Za-z0-9\".]+)\\b",
|
53
|
+
"name": "support.type.puppet"
|
54
|
+
}
|
55
|
+
]
|
56
|
+
}
|
57
|
+
]
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"begin": "^\\s*(define)\\s+([a-zA-Z0-9_:]+)\\s*(\\()",
|
61
|
+
"beginCaptures": {
|
62
|
+
"1": {
|
63
|
+
"name": "storage.type.function.puppet"
|
64
|
+
},
|
65
|
+
"2": {
|
66
|
+
"name": "entity.name.function.puppet"
|
67
|
+
},
|
68
|
+
"3": {
|
69
|
+
"name": "punctuation.definition.parameters.begin.puppet"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"contentName": "meta.function.arguments.puppet",
|
73
|
+
"end": "\\)",
|
74
|
+
"endCaptures": {
|
75
|
+
"1": {
|
76
|
+
"name": "punctuation.definition.parameters.end.puppet"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"name": "meta.function.puppet",
|
80
|
+
"patterns": [
|
81
|
+
{
|
82
|
+
"captures": {
|
83
|
+
"1": {
|
84
|
+
"name": "variable.other.puppet"
|
85
|
+
},
|
86
|
+
"2": {
|
87
|
+
"name": "punctuation.definition.variable.puppet"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"match": "((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
|
91
|
+
"name": "meta.function.argument.no-default.puppet"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"begin": "((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(?:\\s*(=)\\s*)\\s*",
|
95
|
+
"captures": {
|
96
|
+
"1": {
|
97
|
+
"name": "variable.other.puppet"
|
98
|
+
},
|
99
|
+
"2": {
|
100
|
+
"name": "punctuation.definition.variable.puppet"
|
101
|
+
},
|
102
|
+
"3": {
|
103
|
+
"name": "keyword.operator.assignment.puppet"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"end": "(?=,|\\))",
|
107
|
+
"name": "meta.function.argument.default.puppet",
|
108
|
+
"patterns": [
|
109
|
+
{
|
110
|
+
"include": "#parameter-default-types"
|
111
|
+
}
|
112
|
+
]
|
113
|
+
}
|
114
|
+
]
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"captures": {
|
118
|
+
"1": {
|
119
|
+
"name": "storage.type.puppet"
|
120
|
+
},
|
121
|
+
"2": {
|
122
|
+
"name": "entity.name.section.puppet"
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"match": "^\\s*(\\w+)\\s*{\\s*(['\"].+['\"]):",
|
126
|
+
"name": "meta.definition.resource.puppet"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"match": "\\b(case|if|else)(?!::)",
|
130
|
+
"name": "keyword.control.puppet"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"match": "((\\$?)\"?[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*\"?):(?=\\s+|$)",
|
134
|
+
"name": "entity.name.section.puppet"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"include": "#strings"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"include": "#variable"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"begin": "(?i)\\b(import|include)\\b\\s*",
|
144
|
+
"beginCaptures": {
|
145
|
+
"1": {
|
146
|
+
"name": "keyword.control.import.include.puppet"
|
147
|
+
}
|
148
|
+
},
|
149
|
+
"end": "(?=\\s|$)",
|
150
|
+
"name": "meta.include.puppet"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"match": "\\b\\w+(?=\\s*=>)",
|
154
|
+
"name": "constant.other.key.puppet"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"match": "(?<={)\\s*\\w+\\s*(?=})",
|
158
|
+
"name": "constant.other.bareword.puppet"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"match": "\\b(escape|gsub|alert|crit|debug|notice|defined|emerg|err|failed|file|generate|include|info|realize|search|tag|tagged|template|warning)\\b",
|
162
|
+
"name": "support.function.puppet"
|
163
|
+
}
|
164
|
+
],
|
165
|
+
"repository": {
|
166
|
+
"constants": {
|
167
|
+
"patterns": [
|
168
|
+
{
|
169
|
+
"match": "(?i)\\b(false|true|running|present|absent|file|directory)\\b",
|
170
|
+
"name": "constant.language.php"
|
171
|
+
}
|
172
|
+
]
|
173
|
+
},
|
174
|
+
"double-quoted-string": {
|
175
|
+
"begin": "\"",
|
176
|
+
"beginCaptures": {
|
177
|
+
"0": {
|
178
|
+
"name": "punctuation.definition.string.begin.puppet"
|
179
|
+
}
|
180
|
+
},
|
181
|
+
"end": "\"",
|
182
|
+
"endCaptures": {
|
183
|
+
"0": {
|
184
|
+
"name": "punctuation.definition.string.end.puppet"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
"name": "string.quoted.double.puppet",
|
188
|
+
"patterns": [
|
189
|
+
{
|
190
|
+
"captures": {
|
191
|
+
"1": {
|
192
|
+
"name": "punctuation.definition.constant.roole"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
"match": "(\\\\)[$\"'\\\\nrts]",
|
196
|
+
"name": "constant.character.escape.puppet"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"include": "#variable"
|
200
|
+
}
|
201
|
+
]
|
202
|
+
},
|
203
|
+
"escaped_char": {
|
204
|
+
"captures": {
|
205
|
+
"1": {
|
206
|
+
"name": "punctuation.definition.constant.roole"
|
207
|
+
}
|
208
|
+
},
|
209
|
+
"match": "(\\\\).",
|
210
|
+
"name": "constant.character.escape.puppet"
|
211
|
+
},
|
212
|
+
"line_comment": {
|
213
|
+
"patterns": [
|
214
|
+
{
|
215
|
+
"captures": {
|
216
|
+
"1": {
|
217
|
+
"name": "comment.line.number-sign.puppet"
|
218
|
+
},
|
219
|
+
"2": {
|
220
|
+
"name": "punctuation.definition.comment.puppet"
|
221
|
+
}
|
222
|
+
},
|
223
|
+
"match": "^((#).*$\\n?)",
|
224
|
+
"name": "meta.comment.full-line.puppet"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"begin": "(^[ \\t]+)?(?=#)",
|
228
|
+
"beginCaptures": {
|
229
|
+
"1": {
|
230
|
+
"name": "punctuation.whitespace.comment.leading.puppet"
|
231
|
+
}
|
232
|
+
},
|
233
|
+
"end": "(?!\\G)",
|
234
|
+
"patterns": [
|
235
|
+
{
|
236
|
+
"begin": "#",
|
237
|
+
"beginCaptures": {
|
238
|
+
"0": {
|
239
|
+
"name": "punctuation.definition.comment.puppet"
|
240
|
+
}
|
241
|
+
},
|
242
|
+
"end": "\\n",
|
243
|
+
"name": "comment.line.number-sign.puppet"
|
244
|
+
}
|
245
|
+
]
|
246
|
+
}
|
247
|
+
]
|
248
|
+
},
|
249
|
+
"nested_braces": {
|
250
|
+
"begin": "\\{",
|
251
|
+
"beginCaptures": {
|
252
|
+
"0": {
|
253
|
+
"name": "punctuation.section.scope.begin.puppet"
|
254
|
+
}
|
255
|
+
},
|
256
|
+
"end": "\\}",
|
257
|
+
"endCaptures": {
|
258
|
+
"0": {
|
259
|
+
"name": "punctuation.section.scope.end.puppet"
|
260
|
+
}
|
261
|
+
},
|
262
|
+
"patterns": [
|
263
|
+
{
|
264
|
+
"include": "#escaped_char"
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"include": "#nested_braces"
|
268
|
+
}
|
269
|
+
]
|
270
|
+
},
|
271
|
+
"nested_braces_interpolated": {
|
272
|
+
"begin": "\\{",
|
273
|
+
"beginCaptures": {
|
274
|
+
"0": {
|
275
|
+
"name": "punctuation.section.scope.begin.puppet"
|
276
|
+
}
|
277
|
+
},
|
278
|
+
"end": "\\}",
|
279
|
+
"endCaptures": {
|
280
|
+
"0": {
|
281
|
+
"name": "punctuation.section.scope.end.puppet"
|
282
|
+
}
|
283
|
+
},
|
284
|
+
"patterns": [
|
285
|
+
{
|
286
|
+
"include": "#escaped_char"
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"include": "#variable"
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"include": "#nested_braces_interpolated"
|
293
|
+
}
|
294
|
+
]
|
295
|
+
},
|
296
|
+
"nested_brackets": {
|
297
|
+
"begin": "\\[",
|
298
|
+
"beginCaptures": {
|
299
|
+
"0": {
|
300
|
+
"name": "punctuation.section.scope.begin.puppet"
|
301
|
+
}
|
302
|
+
},
|
303
|
+
"end": "\\]",
|
304
|
+
"endCaptures": {
|
305
|
+
"0": {
|
306
|
+
"name": "punctuation.section.scope.end.puppet"
|
307
|
+
}
|
308
|
+
},
|
309
|
+
"patterns": [
|
310
|
+
{
|
311
|
+
"include": "#escaped_char"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"include": "#nested_brackets"
|
315
|
+
}
|
316
|
+
]
|
317
|
+
},
|
318
|
+
"nested_brackets_interpolated": {
|
319
|
+
"begin": "\\[",
|
320
|
+
"beginCaptures": {
|
321
|
+
"0": {
|
322
|
+
"name": "punctuation.section.scope.begin.puppet"
|
323
|
+
}
|
324
|
+
},
|
325
|
+
"end": "\\]",
|
326
|
+
"endCaptures": {
|
327
|
+
"0": {
|
328
|
+
"name": "punctuation.section.scope.end.puppet"
|
329
|
+
}
|
330
|
+
},
|
331
|
+
"patterns": [
|
332
|
+
{
|
333
|
+
"include": "#escaped_char"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"include": "#variable"
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"include": "#nested_brackets_interpolated"
|
340
|
+
}
|
341
|
+
]
|
342
|
+
},
|
343
|
+
"nested_parens": {
|
344
|
+
"begin": "\\(",
|
345
|
+
"beginCaptures": {
|
346
|
+
"0": {
|
347
|
+
"name": "punctuation.section.scope.begin.puppet"
|
348
|
+
}
|
349
|
+
},
|
350
|
+
"end": "\\)",
|
351
|
+
"endCaptures": {
|
352
|
+
"0": {
|
353
|
+
"name": "punctuation.section.scope.end.puppet"
|
354
|
+
}
|
355
|
+
},
|
356
|
+
"patterns": [
|
357
|
+
{
|
358
|
+
"include": "#escaped_char"
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"include": "#nested_parens"
|
362
|
+
}
|
363
|
+
]
|
364
|
+
},
|
365
|
+
"nested_parens_interpolated": {
|
366
|
+
"begin": "\\(",
|
367
|
+
"beginCaptures": {
|
368
|
+
"0": {
|
369
|
+
"name": "punctuation.section.scope.begin.puppet"
|
370
|
+
}
|
371
|
+
},
|
372
|
+
"end": "\\)",
|
373
|
+
"endCaptures": {
|
374
|
+
"0": {
|
375
|
+
"name": "punctuation.section.scope.end.puppet"
|
376
|
+
}
|
377
|
+
},
|
378
|
+
"patterns": [
|
379
|
+
{
|
380
|
+
"include": "#escaped_char"
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"include": "#variable"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"include": "#nested_parens_interpolated"
|
387
|
+
}
|
388
|
+
]
|
389
|
+
},
|
390
|
+
"parameter-default-types": {
|
391
|
+
"patterns": [
|
392
|
+
{
|
393
|
+
"include": "#strings"
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"include": "#numbers"
|
397
|
+
},
|
398
|
+
{
|
399
|
+
"include": "#variables"
|
400
|
+
},
|
401
|
+
{
|
402
|
+
"match": "=",
|
403
|
+
"name": "keyword.operator.assignment.php"
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"begin": "\\[",
|
407
|
+
"beginCaptures": {
|
408
|
+
"0": {
|
409
|
+
"name": "punctuation.definition.array.begin.puppet"
|
410
|
+
}
|
411
|
+
},
|
412
|
+
"end": "\\]",
|
413
|
+
"endCaptures": {
|
414
|
+
"0": {
|
415
|
+
"name": "punctuation.definition.array.end.puppet"
|
416
|
+
}
|
417
|
+
},
|
418
|
+
"name": "meta.array.php",
|
419
|
+
"patterns": [
|
420
|
+
{
|
421
|
+
"include": "#parameter-default-types"
|
422
|
+
}
|
423
|
+
]
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"include": "#constants"
|
427
|
+
}
|
428
|
+
]
|
429
|
+
},
|
430
|
+
"single-quoted-string": {
|
431
|
+
"begin": "'",
|
432
|
+
"beginCaptures": {
|
433
|
+
"0": {
|
434
|
+
"name": "punctuation.definition.string.begin.puppet"
|
435
|
+
}
|
436
|
+
},
|
437
|
+
"end": "'",
|
438
|
+
"endCaptures": {
|
439
|
+
"0": {
|
440
|
+
"name": "punctuation.definition.string.end.puppet"
|
441
|
+
}
|
442
|
+
},
|
443
|
+
"name": "string.quoted.single.puppet",
|
444
|
+
"patterns": [
|
445
|
+
{
|
446
|
+
"captures": {
|
447
|
+
"1": {
|
448
|
+
"name": "punctuation.definition.constant.roole"
|
449
|
+
}
|
450
|
+
},
|
451
|
+
"match": "(\\\\)[\\\\']",
|
452
|
+
"name": "constant.character.escape.puppet"
|
453
|
+
}
|
454
|
+
]
|
455
|
+
},
|
456
|
+
"strings": {
|
457
|
+
"patterns": [
|
458
|
+
{
|
459
|
+
"include": "#double-quoted-string"
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"include": "#single-quoted-string"
|
463
|
+
}
|
464
|
+
]
|
465
|
+
},
|
466
|
+
"variable": {
|
467
|
+
"patterns": [
|
468
|
+
{
|
469
|
+
"captures": {
|
470
|
+
"1": {
|
471
|
+
"name": "punctuation.definition.variable.puppet"
|
472
|
+
}
|
473
|
+
},
|
474
|
+
"match": "(\\$)([a-zA-Zx7f-xff\\$]|::)([a-zA-Z0-9_x7f-xff\\$]|::)*\\b",
|
475
|
+
"name": "variable.other.readwrite.global.puppet"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"captures": {
|
479
|
+
"1": {
|
480
|
+
"name": "punctuation.definition.variable.puppet"
|
481
|
+
},
|
482
|
+
"2": {
|
483
|
+
"name": "punctuation.definition.variable.puppet"
|
484
|
+
}
|
485
|
+
},
|
486
|
+
"match": "(\\$\\{)(?:[a-zA-Zx7f-xff\\$]|::)(?:[a-zA-Z0-9_x7f-xff\\$]|::)*(\\})",
|
487
|
+
"name": "variable.other.readwrite.global.puppet"
|
488
|
+
}
|
489
|
+
]
|
490
|
+
}
|
491
|
+
},
|
492
|
+
"scopeName": "source.puppet",
|
493
|
+
"uuid": "AAF4E089-E3C9-4FB9-B099-FD2CCBD4E786"
|
494
|
+
}
|