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,343 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"vcl.erb",
|
4
|
+
"vcl"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "^.*\\b(backend|sub)\\s*(\\w+\\s*)?(\\s*\\{[^\\}]*)?\\s*$",
|
7
|
+
"foldingStopMarker": "^\\s*\\}",
|
8
|
+
"keyEquivalent": "^~V",
|
9
|
+
"name": "VCL",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"match": "\\#.*",
|
13
|
+
"name": "comment.line.number-sign.vcl"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"match": "\\/\\/.*",
|
17
|
+
"name": "comment.line.double-slash.vcl"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"begin": "\\/\\*",
|
21
|
+
"end": "\\*\\/",
|
22
|
+
"name": "comment.block.vcl"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"name": "meta.include.vcl",
|
26
|
+
"begin": "\\b(import|include)\\b\\s*",
|
27
|
+
"beginCaptures": {
|
28
|
+
"1": {
|
29
|
+
"name": "keyword.control.import.php"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"end": "(?=\\s|;|$)",
|
33
|
+
"patterns": [
|
34
|
+
{
|
35
|
+
"include": "#strings"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"name": "meta.director.vcl",
|
41
|
+
"begin": "(?i)^\\s*(director)\\s+([a-z0-9_]+)\\s+(round\\-robin|random|client|hash|dns|fallback)\\s*\\{",
|
42
|
+
"end": "\\}",
|
43
|
+
"captures": {
|
44
|
+
"1": {
|
45
|
+
"name": "storage.type.director.vcl"
|
46
|
+
},
|
47
|
+
"2": {
|
48
|
+
"name": "entity.name.type.director.vcl"
|
49
|
+
},
|
50
|
+
"3": {
|
51
|
+
"name": "storage.type.director.family.vcl"
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"patterns": [
|
55
|
+
{
|
56
|
+
"include": "$self"
|
57
|
+
}
|
58
|
+
]
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"name": "meta.backend.vcl",
|
62
|
+
"begin": "(?i)^\\s*(backend)\\s+([a-z0-9_]+)\\s*\\{",
|
63
|
+
"end": "\\}",
|
64
|
+
"captures": {
|
65
|
+
"1": {
|
66
|
+
"name": "storage.type.backend.vcl"
|
67
|
+
},
|
68
|
+
"2": {
|
69
|
+
"name": "entity.name.type.backend.vcl"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"patterns": [
|
73
|
+
{
|
74
|
+
"include": "$self"
|
75
|
+
}
|
76
|
+
]
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"name": "meta.acl.vcl",
|
80
|
+
"begin": "(?i)^\\s*(acl)\\s+([a-z0-9_]+)\\s*\\{",
|
81
|
+
"end": "\\}",
|
82
|
+
"captures": {
|
83
|
+
"1": {
|
84
|
+
"name": "storage.type.acl.vcl"
|
85
|
+
},
|
86
|
+
"2": {
|
87
|
+
"name": "entity.name.type.acl.vcl"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"patterns": [
|
91
|
+
{
|
92
|
+
"include": "$self"
|
93
|
+
}
|
94
|
+
]
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"name": "meta.probe.vcl",
|
98
|
+
"match": "(?i)^\\s*(probe)\\s+([a-z0-9_]+)\\s*",
|
99
|
+
"captures": {
|
100
|
+
"1": {
|
101
|
+
"name": "storage.type.probe.vcl"
|
102
|
+
},
|
103
|
+
"2": {
|
104
|
+
"name": "entity.name.type.probe.vcl"
|
105
|
+
}
|
106
|
+
}
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"name": "meta.subroutine.vcl",
|
110
|
+
"begin": "(?i)^\\s*(sub)\\s+([a-z0-9_]+)\\s*\\{",
|
111
|
+
"end": "\\}",
|
112
|
+
"captures": {
|
113
|
+
"1": {
|
114
|
+
"name": "storage.type.subroutine.vcl"
|
115
|
+
},
|
116
|
+
"2": {
|
117
|
+
"name": "entity.name.type.subroutine.vcl"
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"patterns": [
|
121
|
+
{
|
122
|
+
"include": "$self"
|
123
|
+
}
|
124
|
+
]
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"begin": "\\b(return)\\s*\\(",
|
128
|
+
"end": "\\)",
|
129
|
+
"captures": {
|
130
|
+
"1": {
|
131
|
+
"name": "keyword.control.vcl"
|
132
|
+
}
|
133
|
+
},
|
134
|
+
"patterns": [
|
135
|
+
{
|
136
|
+
"match": "(deliver|error|fetch|hash|hit_for_pass|lookup|ok|pass|pipe|restart|synth|retry|abandon|fail|purge)",
|
137
|
+
"name": "constant.language.return.vcl"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"match": ".*",
|
141
|
+
"name": "meta.error.vcl"
|
142
|
+
}
|
143
|
+
]
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"name": "meta.error.vcl",
|
147
|
+
"begin": "\\b(error)\\b\\s*",
|
148
|
+
"beginCaptures": {
|
149
|
+
"1": {
|
150
|
+
"name": "keyword.control.error"
|
151
|
+
}
|
152
|
+
},
|
153
|
+
"end": "(?=\\s|;|$)",
|
154
|
+
"patterns": [
|
155
|
+
{
|
156
|
+
"include": "#strings"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"include": "#numbers"
|
160
|
+
}
|
161
|
+
]
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"match": "\\b(set|unset|remove|synthetic|call|if|else|elsif|else if)\\b",
|
165
|
+
"captures": {
|
166
|
+
"1": {
|
167
|
+
"name": "keyword.control.php"
|
168
|
+
}
|
169
|
+
}
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"include": "#variables"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"include": "#numbers"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"include": "#strings"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"include": "#functions"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"include": "#constants"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"include": "#subkeys"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"include": "#blocks"
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"repository": {
|
194
|
+
"blocks": {
|
195
|
+
"patterns": [
|
196
|
+
{
|
197
|
+
"begin": "\\{",
|
198
|
+
"end": "\\}",
|
199
|
+
"patterns": [
|
200
|
+
{
|
201
|
+
"include": "$self"
|
202
|
+
}
|
203
|
+
]
|
204
|
+
}
|
205
|
+
]
|
206
|
+
},
|
207
|
+
"subkeys": {
|
208
|
+
"patterns": [
|
209
|
+
{
|
210
|
+
"name": "variable.subkey.vcl",
|
211
|
+
"match": "\\.(max_connections|first_byte_timeout|between_bytes_timeout|probe|host_header|retries|backend|weight|host|list|port|connect_timeout|ttl|suffix|url|request|window|threshold|initial|expected_response|interval|timeout)\\b"
|
212
|
+
}
|
213
|
+
]
|
214
|
+
},
|
215
|
+
"constants": {
|
216
|
+
"patterns": [
|
217
|
+
{
|
218
|
+
"match": "\\b(true|false|now)\\b",
|
219
|
+
"name": "constant.builtin.vcl"
|
220
|
+
}
|
221
|
+
]
|
222
|
+
},
|
223
|
+
"functions": {
|
224
|
+
"patterns": [
|
225
|
+
{
|
226
|
+
"match": "(hash_data|regsuball|regsub|ban_url|ban|purge|synth)",
|
227
|
+
"name": "support.function.builtin.vcl"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"match": "std\\.(log|toupper|tolower|set_ip_tos|random|log|syslog|fileread|collect|duration|integer|ip)",
|
231
|
+
"name": "support.function.module.std.vcl"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"match": "redis[0-9]?\\.(call|send|pipeline|init_redis)",
|
235
|
+
"name": "support.function.module.libvmodredis.vcl"
|
236
|
+
}
|
237
|
+
]
|
238
|
+
},
|
239
|
+
"variables": {
|
240
|
+
"patterns": [
|
241
|
+
{
|
242
|
+
"match": "(req|bereq|obj|beresp|client|server|resp)\\.[a-zA-Z0-9\\-\\_\\.]+",
|
243
|
+
"name": "variable.other.vcl"
|
244
|
+
}
|
245
|
+
]
|
246
|
+
},
|
247
|
+
"strings": {
|
248
|
+
"patterns": [
|
249
|
+
{
|
250
|
+
"include": "#string-long"
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"include": "#string-single-quoted"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"include": "#string-double-quoted"
|
257
|
+
}
|
258
|
+
]
|
259
|
+
},
|
260
|
+
"numbers": {
|
261
|
+
"patterns": [
|
262
|
+
{
|
263
|
+
"match": "\\b[0-9]+ ?(m|s|h|d|w)\\b",
|
264
|
+
"name": "constant.numeric.time.vcl"
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"match": "\\b[0-9]+(\\b|;)",
|
268
|
+
"name": "constant.numeric.vcl"
|
269
|
+
}
|
270
|
+
]
|
271
|
+
},
|
272
|
+
"string-long": {
|
273
|
+
"patterns": [
|
274
|
+
{
|
275
|
+
"begin": "\\{\"",
|
276
|
+
"beginCaptures": {
|
277
|
+
"0": {
|
278
|
+
"name": "punctuation.definition.string.begin.vcl"
|
279
|
+
}
|
280
|
+
},
|
281
|
+
"contentName": "meta.string-contents.quoted.double.vcl",
|
282
|
+
"end": "\"\\}",
|
283
|
+
"endCaptures": {
|
284
|
+
"0": {
|
285
|
+
"name": "punctuation.definition.string.end.vcl"
|
286
|
+
}
|
287
|
+
},
|
288
|
+
"name": "string.quoted.long.vcl"
|
289
|
+
}
|
290
|
+
]
|
291
|
+
},
|
292
|
+
"string-double-quoted": {
|
293
|
+
"patterns": [
|
294
|
+
{
|
295
|
+
"begin": "\"",
|
296
|
+
"beginCaptures": {
|
297
|
+
"0": {
|
298
|
+
"name": "punctuation.definition.string.begin.vcl"
|
299
|
+
}
|
300
|
+
},
|
301
|
+
"contentName": "meta.string-contents.quoted.double.vcl",
|
302
|
+
"end": "\"",
|
303
|
+
"endCaptures": {
|
304
|
+
"0": {
|
305
|
+
"name": "punctuation.definition.string.end.vcl"
|
306
|
+
}
|
307
|
+
},
|
308
|
+
"name": "string.quoted.double.vcl",
|
309
|
+
"patterns": [
|
310
|
+
{
|
311
|
+
"match": "\\\\[\\\\\"]",
|
312
|
+
"name": "constant.character.escape.vcl"
|
313
|
+
}
|
314
|
+
]
|
315
|
+
}
|
316
|
+
]
|
317
|
+
},
|
318
|
+
"string-single-quoted": {
|
319
|
+
"begin": "'",
|
320
|
+
"beginCaptures": {
|
321
|
+
"0": {
|
322
|
+
"name": "punctuation.definition.string.begin.vcl"
|
323
|
+
}
|
324
|
+
},
|
325
|
+
"contentName": "meta.string-contents.quoted.single.vcl",
|
326
|
+
"end": "'",
|
327
|
+
"endCaptures": {
|
328
|
+
"0": {
|
329
|
+
"name": "punctuation.definition.string.end.vcl"
|
330
|
+
}
|
331
|
+
},
|
332
|
+
"name": "string.quoted.single.vcl",
|
333
|
+
"patterns": [
|
334
|
+
{
|
335
|
+
"match": "\\\\[\\\\']",
|
336
|
+
"name": "constant.character.escape.vcl"
|
337
|
+
}
|
338
|
+
]
|
339
|
+
}
|
340
|
+
},
|
341
|
+
"scopeName": "source.varnish.vcl",
|
342
|
+
"uuid": "D03975D6-0E30-46EC-9A63-AE75EA409EB9"
|
343
|
+
}
|
@@ -0,0 +1,338 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"vb"
|
4
|
+
],
|
5
|
+
"name": "VB.NET",
|
6
|
+
"patterns": [
|
7
|
+
{
|
8
|
+
"include": "#singleLineComment"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"include": "#region"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"include": "#quotedString"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"include": "#compilerOption"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"include": "#importDefinition"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"include": "#numericConstant"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"include": "#characterOperator"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"include": "#lineContinuationOperator"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"include": "#wordOperator"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"include": "#languageContants"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"include": "#compilerDirectives"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"include": "#supportTypes"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"include": "#suportFunctions"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"include": "#linqKeywords"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"include": "#languageVariable"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"include": "#namespaceDefinition"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"include": "#moduleDefinition"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"include": "#interfaceDefinition"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"include": "#classDefinition"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"include": "#functionDefinition"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"include": "#lambdaDefinition"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"include": "#propertyDefinition"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"include": "#propertyGetSet"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"include": "#definitionEnd"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"include": "#storageModifiers"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"include": "#inheritanceModifiers"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"include": "#controlKeywords"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"include": "#modifierKeywords"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"include": "#vbFunctions"
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"repository": {
|
96
|
+
"characterOperator": {
|
97
|
+
"match": "(\\.|\\+=|\\+|\\*=|\\*|\\\\=|\\\\|/=|/|=|-=|-|<|<=|>|>=|&=|&|\\^|\\^=|>>=|>>|<<=|<<|:=)",
|
98
|
+
"name": "keyword.operator.vbnet"
|
99
|
+
},
|
100
|
+
"classDefinition": {
|
101
|
+
"captures": {
|
102
|
+
"1": {
|
103
|
+
"name": "storage.type.class.vbnet"
|
104
|
+
},
|
105
|
+
"2": {
|
106
|
+
"name": "entity.name.type.class.vbnet"
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"match": "(?i:\\b(class)\\s+([a-zA-Z_]\\w*)\\s*)",
|
110
|
+
"name": "meta.class.vbnet"
|
111
|
+
},
|
112
|
+
"compilerDirectives": {
|
113
|
+
"match": "^\\s*(?i:#if|#else|#elseif|#endif|#const|#externalsource|#end|#end externalsource)\\s+",
|
114
|
+
"name": "keyword.directive.vbnet"
|
115
|
+
},
|
116
|
+
"compilerOption": {
|
117
|
+
"captures": {
|
118
|
+
"1": {
|
119
|
+
"name": "keyword.other.compiler-option.vbnet"
|
120
|
+
},
|
121
|
+
"2": {
|
122
|
+
"name": "support.constant.compiler-option.vbnet"
|
123
|
+
},
|
124
|
+
"3": {
|
125
|
+
"name": "constant.language.option-value.vbnet"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"match": "(?i:^\\s*(option)\\s*(strict|infer|explicit|compare)\\s*(on|off|binary|text))"
|
129
|
+
},
|
130
|
+
"controlKeywords": {
|
131
|
+
"match": "(?i:\\b(If|Then|Else|ElseIf|Else If|End If|While|End While|For|End For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|End With|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf|Step|GoTo|Try|Catch|Finally|End Try|Using|RaiseEvent|Stop|On Error|Resume|Async|Await|Yield)\\b)",
|
132
|
+
"name": "keyword.control.vbnet"
|
133
|
+
},
|
134
|
+
"definitionEnd": {
|
135
|
+
"match": "(?i:^\\s*(end)\\s+(function|sub|class|namespace|module|interface|property|addhandler|enum|event|operator|raiseevent|removehandler|select|structure|synclock))",
|
136
|
+
"name": "keyword.control.end-definition.vbnet"
|
137
|
+
},
|
138
|
+
"functionDefinition": {
|
139
|
+
"begin": "(?i:\\b(function|sub)\\s+([a-zA-Z_]\\w*)\\s*(\\()?)",
|
140
|
+
"beginCaptures": {
|
141
|
+
"1": {
|
142
|
+
"name": "support.type.function.vbnet"
|
143
|
+
},
|
144
|
+
"2": {
|
145
|
+
"name": "entity.name.function.vbnet"
|
146
|
+
},
|
147
|
+
"3": {
|
148
|
+
"name": "meta.parameters.vbnet"
|
149
|
+
},
|
150
|
+
"4": {
|
151
|
+
"name": "punctuation.definition.parameters.vbnet"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
"end": "(\\))?\\s*",
|
155
|
+
"endCaptures": {
|
156
|
+
"1": {
|
157
|
+
"name": "punctuation.definition.parameters.vbnet"
|
158
|
+
}
|
159
|
+
},
|
160
|
+
"name": "meta.function.vbnet",
|
161
|
+
"patterns": [
|
162
|
+
{
|
163
|
+
"include": "#modifierKeywords"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"include": "#supportTypes"
|
167
|
+
}
|
168
|
+
]
|
169
|
+
},
|
170
|
+
"importDefinition": {
|
171
|
+
"captures": {
|
172
|
+
"1": {
|
173
|
+
"name": "keyword.other.vbnet"
|
174
|
+
},
|
175
|
+
"2": {
|
176
|
+
"name": "variable.other.namespace-alias.vbnet"
|
177
|
+
}
|
178
|
+
},
|
179
|
+
"match": "(?i:^\\s*(imports)\\s*([a-zA-Z_]\\w*\\s*=)?\\s*([a-zA-Z_]\\w*\\.?)+)"
|
180
|
+
},
|
181
|
+
"inheritanceModifiers": {
|
182
|
+
"match": "(?i:overloads|overrides|overridable|notoverridable|mustoverride|mustoverride overrides|notoverridable overrides|overloads overrides|mustinherit|notinheritable)",
|
183
|
+
"name": "storage.modifier.inheritance.vbnet"
|
184
|
+
},
|
185
|
+
"interfaceDefinition": {
|
186
|
+
"captures": {
|
187
|
+
"1": {
|
188
|
+
"name": "storage.type.interface.vbnet"
|
189
|
+
},
|
190
|
+
"2": {
|
191
|
+
"name": "entity.name.type.interface.vbnet"
|
192
|
+
}
|
193
|
+
},
|
194
|
+
"match": "(?i:\\b(interface)\\s+([a-zA-Z_]\\w*)\\s*)",
|
195
|
+
"name": "meta.interface.vbnet"
|
196
|
+
},
|
197
|
+
"lambdaDefinition": {
|
198
|
+
"match": "(?i:function|sub)",
|
199
|
+
"name": "support.type.lambda.vbnet"
|
200
|
+
},
|
201
|
+
"languageContants": {
|
202
|
+
"match": "((?i:true|false|nothing))",
|
203
|
+
"name": "constant.language.vbnet"
|
204
|
+
},
|
205
|
+
"languageVariable": {
|
206
|
+
"match": "\\b((?i:Me|MyBase|MyClass))\\.",
|
207
|
+
"name": "keyword.other.vbnet"
|
208
|
+
},
|
209
|
+
"lineContinuationOperator": {
|
210
|
+
"match": "\\w*\\b(\\_)$",
|
211
|
+
"name": "keyword.operator.vbnet"
|
212
|
+
},
|
213
|
+
"linqKeywords": {
|
214
|
+
"match": "(?i:\\b(from|aggregate|select|where|order by|join|groupp by|into|group join|equals|let|distinct|skip|skip while|take|take while)\\b)",
|
215
|
+
"name": "keyword.control.linq.vbnet"
|
216
|
+
},
|
217
|
+
"modifierKeywords": {
|
218
|
+
"match": "\\b(?i:As|byval|byref|optional|handles|inherits|implements|withevents|end set|end get|of|alias|declare|widening|narrowing|ansi|assembly|auto|iterator|key|unicode)\\s+",
|
219
|
+
"name": "keyword.modifier.vbnet"
|
220
|
+
},
|
221
|
+
"moduleDefinition": {
|
222
|
+
"captures": {
|
223
|
+
"1": {
|
224
|
+
"name": "storage.type.module.vbnet"
|
225
|
+
},
|
226
|
+
"2": {
|
227
|
+
"name": "entity.name.type.module.vbnet"
|
228
|
+
}
|
229
|
+
},
|
230
|
+
"match": "(?i:\\b(module)\\s+([a-zA-Z_]\\w*)\\s*)",
|
231
|
+
"name": "meta.module.vbnet"
|
232
|
+
},
|
233
|
+
"namespaceDefinition": {
|
234
|
+
"captures": {
|
235
|
+
"1": {
|
236
|
+
"name": "storage.type.namespace.vbnet"
|
237
|
+
},
|
238
|
+
"2": {
|
239
|
+
"name": "entity.name.type.namespace.vbnet"
|
240
|
+
}
|
241
|
+
},
|
242
|
+
"match": "\\b((?i:namespace))\\s+([a-zA-Z_]\\w*)\\s*",
|
243
|
+
"name": "meta.namespace.vbnet"
|
244
|
+
},
|
245
|
+
"numericConstant": {
|
246
|
+
"match": "\\b(-?\\d+(\\.?\\d?)*)",
|
247
|
+
"name": "constant.numeric.vbnet"
|
248
|
+
},
|
249
|
+
"propertyDefinition": {
|
250
|
+
"begin": "(?i:\\b(property)\\s+([a-zA-Z_]\\w*)\\s*(\\()?)",
|
251
|
+
"beginCaptures": {
|
252
|
+
"1": {
|
253
|
+
"name": "storage.type.property.vbnet"
|
254
|
+
},
|
255
|
+
"2": {
|
256
|
+
"name": "entity.name.type.property.vbnet"
|
257
|
+
},
|
258
|
+
"3": {
|
259
|
+
"name": "punctuation.definition.parameters.property.vbnet"
|
260
|
+
}
|
261
|
+
},
|
262
|
+
"end": "(\\))?\\s*",
|
263
|
+
"endCaptures": {
|
264
|
+
"1": {
|
265
|
+
"name": "punctuation.definition.parameters.property.vbnet"
|
266
|
+
}
|
267
|
+
},
|
268
|
+
"name": "meta.property.vbnet",
|
269
|
+
"patterns": [
|
270
|
+
{
|
271
|
+
"include": "#modifierKeywords"
|
272
|
+
},
|
273
|
+
{
|
274
|
+
"include": "#supportTypes"
|
275
|
+
}
|
276
|
+
]
|
277
|
+
},
|
278
|
+
"propertyGetSet": {
|
279
|
+
"match": "(?i:^\\s*(protected friend|protected|friend|private)?\\s+(get|set)\\s*\\(?\\b)",
|
280
|
+
"name": "keyword.other.property.accessor.vbnet"
|
281
|
+
},
|
282
|
+
"quotedString": {
|
283
|
+
"match": "(\")([^\"]|\"\")*(\")",
|
284
|
+
"name": "string.quoted.double.vbnet"
|
285
|
+
},
|
286
|
+
"region": {
|
287
|
+
"begin": "^\\s*((?i:#region))",
|
288
|
+
"beginCaptures": {
|
289
|
+
"1": {
|
290
|
+
"name": "keyword.directive.vbnet"
|
291
|
+
}
|
292
|
+
},
|
293
|
+
"end": "^\\s*((?i:#end region))",
|
294
|
+
"endCaptures": {
|
295
|
+
"1": {
|
296
|
+
"name": "keyword.directive.vbnet"
|
297
|
+
}
|
298
|
+
},
|
299
|
+
"name": "meta.region.source.vbnet",
|
300
|
+
"patterns": [
|
301
|
+
{
|
302
|
+
"include": "$self"
|
303
|
+
}
|
304
|
+
]
|
305
|
+
},
|
306
|
+
"singleLineComment": {
|
307
|
+
"comment": "single quote comment",
|
308
|
+
"match": "'.*$",
|
309
|
+
"name": "comment.line.singlequote.vbnet"
|
310
|
+
},
|
311
|
+
"storageModifiers": {
|
312
|
+
"match": "\\b(?i:dim|public|private|protected friend|protected|friend|shadows|static|shared|readonly|default|partial|readonly|writeonly|erase|redim|lib)\\b",
|
313
|
+
"name": "storage.modifier.access.vbnet"
|
314
|
+
},
|
315
|
+
"suportFunctions": {
|
316
|
+
"match": "(?i:\\b(new|addressof|addhandler|removehandler|throw|typeof|like|call|synclock)\\b)",
|
317
|
+
"name": "support.function.vbnet"
|
318
|
+
},
|
319
|
+
"supportTypes": {
|
320
|
+
"match": "(?i:\\b(integer|decimal|double|single|date|long|short|char|string|byte|date|boolean|delegate|event|enum|sbyte|uinteger|ulong|ushort|const|object|global|paramarray)\\b)",
|
321
|
+
"name": "support.type.vbnet"
|
322
|
+
},
|
323
|
+
"vbFunctions": {
|
324
|
+
"captures": {
|
325
|
+
"1": {
|
326
|
+
"name": "support.function.vbnet"
|
327
|
+
}
|
328
|
+
},
|
329
|
+
"match": "\\b((?i:CBool|CByte|CChar|CDate|CDbl|CDec|Char|CInt|CLng|CObj|CSByte|CShort|CSng|CStr|CType|CUInt|CULng|CUShort|DirectCast|GetType|TryCast|GetXmlNamespace))\\("
|
330
|
+
},
|
331
|
+
"wordOperator": {
|
332
|
+
"match": "(?i:\\b(mod|not|and|andalso|or|orelse|in|is|isnot|xor|out)\\b)",
|
333
|
+
"name": "keyword.operator.vbnet"
|
334
|
+
}
|
335
|
+
},
|
336
|
+
"scopeName": "source.vbnet",
|
337
|
+
"uuid": "975d5447-0eb5-444c-a471-5934193ca1ea"
|
338
|
+
}
|