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,1010 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"py.jade",
|
4
|
+
"pyjade"
|
5
|
+
],
|
6
|
+
"name": "Jade (Python)",
|
7
|
+
"patterns": [
|
8
|
+
{
|
9
|
+
"comment": "Doctype declaration.",
|
10
|
+
"match": "^(!!!|doctype)(\\s*[a-zA-Z0-9-_]+)?",
|
11
|
+
"name": "comment.other.doctype.jade"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"begin": "^(\\s*)//-",
|
15
|
+
"comment": "Unbuffered (jade-only) comments.",
|
16
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
17
|
+
"name": "comment.unbuffered.block.jade"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"begin": "^(\\s*)//",
|
21
|
+
"comment": "Buffered (html) comments.",
|
22
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
23
|
+
"name": "string.comment.buffered.block.jade",
|
24
|
+
"patterns": [
|
25
|
+
{
|
26
|
+
"captures": {
|
27
|
+
"1": {
|
28
|
+
"name": "invalid.illegal.comment.comment.block.jade"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"comment": "Buffered comments inside buffered comments will generate invalid html.",
|
32
|
+
"match": "^\\s*(//)(?!-)",
|
33
|
+
"name": "string.comment.buffered.block.jade"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"begin": "^(\\s*)-$",
|
39
|
+
"comment": "Unbuffered code block.",
|
40
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
41
|
+
"name": "javascript.embedded.jade",
|
42
|
+
"patterns": [
|
43
|
+
{
|
44
|
+
"include": "source.python"
|
45
|
+
}
|
46
|
+
]
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"begin": "^(\\s*)(script)(?=[.#(\\s])((?![^\\n]*type=)|(?=[^\\n]*(text|application)/javascript))",
|
50
|
+
"beginCaptures": {
|
51
|
+
"2": {
|
52
|
+
"name": "entity.name.tag.script.jade"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"comment": "Script tag with JavaScript code.",
|
56
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
57
|
+
"name": "source.script.jade",
|
58
|
+
"patterns": [
|
59
|
+
{
|
60
|
+
"begin": "\\G(?=\\()",
|
61
|
+
"end": "$",
|
62
|
+
"name": "stuff.tag.script.jade",
|
63
|
+
"patterns": [
|
64
|
+
{
|
65
|
+
"include": "#tag_attributes"
|
66
|
+
}
|
67
|
+
]
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"begin": "\\G(?=[.#])",
|
71
|
+
"end": "$",
|
72
|
+
"name": "stuff.tag.script.jade",
|
73
|
+
"patterns": [
|
74
|
+
{
|
75
|
+
"include": "#complete_tag"
|
76
|
+
}
|
77
|
+
]
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"include": "source.python"
|
81
|
+
}
|
82
|
+
]
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"begin": "^(\\s*)(style)(?=[.#(\\s])",
|
86
|
+
"beginCaptures": {
|
87
|
+
"2": {
|
88
|
+
"name": "entity.name.tag.script.jade"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"comment": "Style tag with CSS code.",
|
92
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
93
|
+
"name": "source.style.jade",
|
94
|
+
"patterns": [
|
95
|
+
{
|
96
|
+
"begin": "\\G(?=\\()",
|
97
|
+
"end": "$",
|
98
|
+
"name": "stuff.tag.style.jade",
|
99
|
+
"patterns": [
|
100
|
+
{
|
101
|
+
"include": "#tag_attributes"
|
102
|
+
}
|
103
|
+
]
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"begin": "\\G(?=[.#])",
|
107
|
+
"end": "$",
|
108
|
+
"name": "stuff.tag.style.jade",
|
109
|
+
"patterns": [
|
110
|
+
{
|
111
|
+
"include": "#complete_tag"
|
112
|
+
}
|
113
|
+
]
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"include": "source.css"
|
117
|
+
}
|
118
|
+
]
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"begin": "^(\\s*):(markdown)(?=\\(|$)$",
|
122
|
+
"beginCaptures": {
|
123
|
+
"2": {
|
124
|
+
"name": "constant.language.name.markdown.filter.jade"
|
125
|
+
}
|
126
|
+
},
|
127
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
128
|
+
"name": "text.markdown.filter.jade",
|
129
|
+
"patterns": [
|
130
|
+
{
|
131
|
+
"include": "#filter_args"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"include": "text.html.markdown"
|
135
|
+
}
|
136
|
+
]
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"begin": "^(\\s*):(sass)(?=\\(|$)$",
|
140
|
+
"beginCaptures": {
|
141
|
+
"2": {
|
142
|
+
"name": "constant.language.name.sass.filter.jade"
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
146
|
+
"name": "source.sass.filter.jade",
|
147
|
+
"patterns": [
|
148
|
+
{
|
149
|
+
"include": "#filter_args"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"include": "source.sass"
|
153
|
+
}
|
154
|
+
]
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"begin": "^(\\s*):(less)(?=\\(|$)$",
|
158
|
+
"beginCaptures": {
|
159
|
+
"2": {
|
160
|
+
"name": "constant.language.name.less.filter.jade"
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
164
|
+
"name": "source.less.filter.jade",
|
165
|
+
"patterns": [
|
166
|
+
{
|
167
|
+
"include": "#filter_args"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"include": "source.less"
|
171
|
+
}
|
172
|
+
]
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"begin": "^(\\s*):(stylus)(?=\\(|$)$",
|
176
|
+
"beginCaptures": {
|
177
|
+
"2": {
|
178
|
+
"name": "constant.language.name.stylus.filter.jade"
|
179
|
+
}
|
180
|
+
},
|
181
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
182
|
+
"name": "source.stylus.filter.jade",
|
183
|
+
"patterns": [
|
184
|
+
{
|
185
|
+
"include": "#filter_args"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"include": "source.stylus"
|
189
|
+
}
|
190
|
+
]
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"begin": "^(\\s*):(coffee(-?script)?)(?=\\(|$)",
|
194
|
+
"beginCaptures": {
|
195
|
+
"2": {
|
196
|
+
"name": "constant.language.name.coffeescript.filter.jade"
|
197
|
+
}
|
198
|
+
},
|
199
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
200
|
+
"name": "source.coffeescript.filter.jade",
|
201
|
+
"patterns": [
|
202
|
+
{
|
203
|
+
"include": "#filter_args"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"include": "source.coffee"
|
207
|
+
}
|
208
|
+
]
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"begin": "^(\\s*)((:(?=.))|(:$))",
|
212
|
+
"beginCaptures": {
|
213
|
+
"4": {
|
214
|
+
"name": "invalid.illegal.empty.generic.filter.jade"
|
215
|
+
}
|
216
|
+
},
|
217
|
+
"comment": "Generic Jade filter.",
|
218
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
219
|
+
"name": "text.generic.filter.jade",
|
220
|
+
"patterns": [
|
221
|
+
{
|
222
|
+
"begin": "\\G(?<=:)(?=.)",
|
223
|
+
"end": "$",
|
224
|
+
"name": "name.generic.filter.jade",
|
225
|
+
"patterns": [
|
226
|
+
{
|
227
|
+
"match": "\\G\\(",
|
228
|
+
"name": "invalid.illegal.name.generic.filter.jade"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"match": "\\w",
|
232
|
+
"name": "constant.language.name.generic.filter.jade"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"include": "#filter_args"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"match": "\\W",
|
239
|
+
"name": "invalid.illegal.name.generic.filter.jade"
|
240
|
+
}
|
241
|
+
]
|
242
|
+
}
|
243
|
+
]
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"begin": "^(\\s*)(?=[\\w.#].*?\\.$)(?=(?:(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\\"(?:[^\\\"]|(?:(?<!\\\\)\\\\\\\"))*\\\")))*[^()]*\\))*)*)(?:(?:(?::\\s+)|(?<=\\)))(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\\"(?:[^\\\"]|(?:(?<!\\\\)\\\\\\\"))*\\\")))*[^()]*\\))*)*))*)\\.$)(?:(?:(#[\\w-]+)|(\\.[\\w-]+))|((?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))",
|
247
|
+
"beginCaptures": {
|
248
|
+
"2": {
|
249
|
+
"name": "constant.id.tag.jade"
|
250
|
+
},
|
251
|
+
"3": {
|
252
|
+
"name": "constant.language.js"
|
253
|
+
},
|
254
|
+
"4": {
|
255
|
+
"name": "entity.name.tag.jade"
|
256
|
+
}
|
257
|
+
},
|
258
|
+
"comment": "Generated from dot_block_tag.py",
|
259
|
+
"end": "^(?!(\\1\\s)|\\s*$)",
|
260
|
+
"name": "text.block.dot.tag.jade",
|
261
|
+
"patterns": [
|
262
|
+
{
|
263
|
+
"include": "#tag_attributes"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"include": "#complete_tag"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"begin": "^(?=.)",
|
270
|
+
"end": "$",
|
271
|
+
"name": "text.block.jade",
|
272
|
+
"patterns": [
|
273
|
+
{
|
274
|
+
"include": "#inline_jade"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"include": "#embedded_html"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"include": "#html_entity"
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"include": "#interpolated_value"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"include": "#interpolated_error"
|
287
|
+
}
|
288
|
+
]
|
289
|
+
}
|
290
|
+
]
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"begin": "^\\s*",
|
294
|
+
"comment": "All constructs that generally span a single line starting with any number of white-spaces.",
|
295
|
+
"end": "$",
|
296
|
+
"name": "tag.jade",
|
297
|
+
"patterns": [
|
298
|
+
{
|
299
|
+
"include": "#inline_jade"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"include": "#blocks_and_includes"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"include": "#unbuffered_code"
|
306
|
+
},
|
307
|
+
{
|
308
|
+
"include": "#mixins"
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"include": "#flow_control"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"include": "#case_conds"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"begin": "\\|",
|
318
|
+
"comment": "Tag pipe text line.",
|
319
|
+
"end": "$",
|
320
|
+
"name": "text.block.pipe.jade",
|
321
|
+
"patterns": [
|
322
|
+
{
|
323
|
+
"include": "#inline_jade"
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"include": "#embedded_html"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"include": "#html_entity"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"include": "#interpolated_value"
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"include": "#interpolated_error"
|
336
|
+
}
|
337
|
+
]
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"include": "#printed_expression"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"begin": "\\G(?=(#[^\\{\\w-])|[^\\w.#])",
|
344
|
+
"comment": "Line starting with characters incompatible with tag name/id/class is standalone text.",
|
345
|
+
"end": "$",
|
346
|
+
"name": "text.jade",
|
347
|
+
"patterns": [
|
348
|
+
{
|
349
|
+
"begin": "</?(?=[!#])",
|
350
|
+
"end": ">|$",
|
351
|
+
"patterns": [
|
352
|
+
{
|
353
|
+
"include": "#inline_jade"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"include": "#interpolated_value"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"include": "#interpolated_error"
|
360
|
+
}
|
361
|
+
]
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"include": "#inline_jade"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"include": "#embedded_html"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"include": "#html_entity"
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"include": "#interpolated_value"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"include": "#interpolated_error"
|
377
|
+
}
|
378
|
+
]
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"include": "#complete_tag"
|
382
|
+
}
|
383
|
+
]
|
384
|
+
}
|
385
|
+
],
|
386
|
+
"repository": {
|
387
|
+
"blocks_and_includes": {
|
388
|
+
"captures": {
|
389
|
+
"1": {
|
390
|
+
"name": "storage.type.import.include.jade"
|
391
|
+
},
|
392
|
+
"4": {
|
393
|
+
"name": "variable.control.import.include.jade"
|
394
|
+
}
|
395
|
+
},
|
396
|
+
"comment": "Template blocks and includes.",
|
397
|
+
"match": "(extends|include|yield|append|prepend|block( (append|prepend))?)\\s+(.*)$",
|
398
|
+
"name": "meta.first-class.jade"
|
399
|
+
},
|
400
|
+
"brackets_js": {
|
401
|
+
"begin": "\\[",
|
402
|
+
"end": "\\]",
|
403
|
+
"name": "js.value.attribute.tag.jade",
|
404
|
+
"patterns": [
|
405
|
+
{
|
406
|
+
"include": "#brackets_js"
|
407
|
+
},
|
408
|
+
{
|
409
|
+
"include": "source.python"
|
410
|
+
}
|
411
|
+
]
|
412
|
+
},
|
413
|
+
"case_conds": {
|
414
|
+
"begin": "(default|when)((\\s+|(?=:))|$)",
|
415
|
+
"captures": {
|
416
|
+
"1": {
|
417
|
+
"name": "storage.type.function.jade"
|
418
|
+
}
|
419
|
+
},
|
420
|
+
"comment": "Jade case conditionals.",
|
421
|
+
"end": "$",
|
422
|
+
"name": "meta.control.flow.jade",
|
423
|
+
"patterns": [
|
424
|
+
{
|
425
|
+
"begin": "\\G(?!:)",
|
426
|
+
"end": "(?=:\\s+)|$",
|
427
|
+
"name": "js.embedded.control.flow.jade",
|
428
|
+
"patterns": [
|
429
|
+
{
|
430
|
+
"include": "#case_when_paren"
|
431
|
+
},
|
432
|
+
{
|
433
|
+
"include": "source.python"
|
434
|
+
}
|
435
|
+
]
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"begin": ":\\s+",
|
439
|
+
"end": "$",
|
440
|
+
"name": "tag.case.control.flow.jade",
|
441
|
+
"patterns": [
|
442
|
+
{
|
443
|
+
"include": "#complete_tag"
|
444
|
+
}
|
445
|
+
]
|
446
|
+
}
|
447
|
+
]
|
448
|
+
},
|
449
|
+
"case_when_paren": {
|
450
|
+
"begin": "\\(",
|
451
|
+
"end": "\\)",
|
452
|
+
"name": "js.when.control.flow.jade",
|
453
|
+
"patterns": [
|
454
|
+
{
|
455
|
+
"include": "#case_when_paren"
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"match": ":",
|
459
|
+
"name": "invalid.illegal.name.tag.jade"
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"include": "source.python"
|
463
|
+
}
|
464
|
+
]
|
465
|
+
},
|
466
|
+
"complete_tag": {
|
467
|
+
"begin": "(?=[\\w.#])|(:\\s*)",
|
468
|
+
"end": "(\\.?$)|(?=:.)",
|
469
|
+
"name": "complete_tag.jade",
|
470
|
+
"patterns": [
|
471
|
+
{
|
472
|
+
"include": "#blocks_and_includes"
|
473
|
+
},
|
474
|
+
{
|
475
|
+
"include": "#unbuffered_code"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"include": "#mixins"
|
479
|
+
},
|
480
|
+
{
|
481
|
+
"include": "#flow_control"
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"match": "(?<=:)\\w.*$",
|
485
|
+
"name": "invalid.illegal.name.tag.jade"
|
486
|
+
},
|
487
|
+
{
|
488
|
+
"include": "#tag_name"
|
489
|
+
},
|
490
|
+
{
|
491
|
+
"include": "#tag_id"
|
492
|
+
},
|
493
|
+
{
|
494
|
+
"include": "#tag_classes"
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"include": "#tag_attributes"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"include": "#tag_mixin_attributes"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"captures": {
|
504
|
+
"2": {
|
505
|
+
"name": "invalid.illegal.end.tag.jade"
|
506
|
+
},
|
507
|
+
"4": {
|
508
|
+
"name": "invalid.illegal.end.tag.jade"
|
509
|
+
}
|
510
|
+
},
|
511
|
+
"match": "((\\.)\\s+$)|((:)\\s*$)"
|
512
|
+
},
|
513
|
+
{
|
514
|
+
"include": "#printed_expression"
|
515
|
+
},
|
516
|
+
{
|
517
|
+
"include": "#tag_text"
|
518
|
+
}
|
519
|
+
]
|
520
|
+
},
|
521
|
+
"embedded_html": {
|
522
|
+
"begin": "(?=<[^>]*>)",
|
523
|
+
"end": "$|(?=>)",
|
524
|
+
"name": "html",
|
525
|
+
"patterns": [
|
526
|
+
{
|
527
|
+
"include": "text.html.basic"
|
528
|
+
},
|
529
|
+
{
|
530
|
+
"include": "#interpolated_value"
|
531
|
+
},
|
532
|
+
{
|
533
|
+
"include": "#interpolated_error"
|
534
|
+
}
|
535
|
+
]
|
536
|
+
},
|
537
|
+
"filter_args": {
|
538
|
+
"begin": "\\G(\\()",
|
539
|
+
"captures": {
|
540
|
+
"1": {
|
541
|
+
"name": "meta.args.filter.jade"
|
542
|
+
},
|
543
|
+
"2": {
|
544
|
+
"name": "invalid.illegal.extra.args.filter.jade"
|
545
|
+
}
|
546
|
+
},
|
547
|
+
"end": "(\\))(.*?$)",
|
548
|
+
"name": "args.filter.jade",
|
549
|
+
"patterns": [
|
550
|
+
{
|
551
|
+
"begin": "([^\\s(),=]+)(=?)",
|
552
|
+
"beginCaptures": {
|
553
|
+
"1": {
|
554
|
+
"name": "entity.other.attribute-name.tag.jade"
|
555
|
+
},
|
556
|
+
"2": {
|
557
|
+
"name": "punctuation.separator.key-value.jade"
|
558
|
+
}
|
559
|
+
},
|
560
|
+
"contentName": "string.value.args.filter.jade",
|
561
|
+
"end": "((?=\\))|,|$)",
|
562
|
+
"name": "attributes.tag.jade",
|
563
|
+
"patterns": [
|
564
|
+
{
|
565
|
+
"include": "#filter_args_paren"
|
566
|
+
}
|
567
|
+
]
|
568
|
+
}
|
569
|
+
]
|
570
|
+
},
|
571
|
+
"filter_args_paren": {
|
572
|
+
"begin": "\\(",
|
573
|
+
"end": "\\)|$",
|
574
|
+
"patterns": [
|
575
|
+
{
|
576
|
+
"include": "#filter_args_paren"
|
577
|
+
}
|
578
|
+
]
|
579
|
+
},
|
580
|
+
"flow_control": {
|
581
|
+
"begin": "(for|if|else if|else|each|until|while|unless|case)(\\s+|$)",
|
582
|
+
"captures": {
|
583
|
+
"1": {
|
584
|
+
"name": "storage.type.function.jade"
|
585
|
+
}
|
586
|
+
},
|
587
|
+
"comment": "Jade control flow.",
|
588
|
+
"end": "$",
|
589
|
+
"name": "meta.control.flow.jade",
|
590
|
+
"patterns": [
|
591
|
+
{
|
592
|
+
"begin": "",
|
593
|
+
"end": "$",
|
594
|
+
"name": "js.embedded.control.flow.jade",
|
595
|
+
"patterns": [
|
596
|
+
{
|
597
|
+
"include": "source.python"
|
598
|
+
}
|
599
|
+
]
|
600
|
+
}
|
601
|
+
]
|
602
|
+
},
|
603
|
+
"html_entity": {
|
604
|
+
"patterns": [
|
605
|
+
{
|
606
|
+
"match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
|
607
|
+
"name": "constant.character.entity.html.text.jade"
|
608
|
+
},
|
609
|
+
{
|
610
|
+
"match": "[<>&]",
|
611
|
+
"name": "invalid.illegal.html_entity.text.jade"
|
612
|
+
}
|
613
|
+
]
|
614
|
+
},
|
615
|
+
"inline_jade": {
|
616
|
+
"begin": "(?<!\\\\)(#\\[)",
|
617
|
+
"captures": {
|
618
|
+
"1": {
|
619
|
+
"name": "entity.name.function.jade"
|
620
|
+
},
|
621
|
+
"2": {
|
622
|
+
"name": "entity.name.function.jade"
|
623
|
+
}
|
624
|
+
},
|
625
|
+
"end": "(\\])",
|
626
|
+
"name": "inline.jade",
|
627
|
+
"patterns": [
|
628
|
+
{
|
629
|
+
"include": "#inline_jade"
|
630
|
+
},
|
631
|
+
{
|
632
|
+
"include": "#mixins"
|
633
|
+
},
|
634
|
+
{
|
635
|
+
"begin": "(?<!\\])(?=[\\w.#])|(:\\s*)",
|
636
|
+
"end": "(?=\\]|(:.)|=|\\s)",
|
637
|
+
"name": "tag.inline.jade",
|
638
|
+
"patterns": [
|
639
|
+
{
|
640
|
+
"include": "#tag_name"
|
641
|
+
},
|
642
|
+
{
|
643
|
+
"include": "#tag_id"
|
644
|
+
},
|
645
|
+
{
|
646
|
+
"include": "#tag_classes"
|
647
|
+
},
|
648
|
+
{
|
649
|
+
"include": "#tag_attributes"
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"include": "#tag_mixin_attributes"
|
653
|
+
},
|
654
|
+
{
|
655
|
+
"include": "#inline_jade"
|
656
|
+
},
|
657
|
+
{
|
658
|
+
"match": "\\[",
|
659
|
+
"name": "invalid.illegal.tag.jade"
|
660
|
+
}
|
661
|
+
]
|
662
|
+
},
|
663
|
+
{
|
664
|
+
"include": "#unbuffered_code"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"include": "#printed_expression"
|
668
|
+
},
|
669
|
+
{
|
670
|
+
"match": "\\[",
|
671
|
+
"name": "invalid.illegal.tag.jade"
|
672
|
+
},
|
673
|
+
{
|
674
|
+
"include": "#inline_jade_text"
|
675
|
+
}
|
676
|
+
]
|
677
|
+
},
|
678
|
+
"inline_jade_text": {
|
679
|
+
"begin": "",
|
680
|
+
"end": "(?=\\])",
|
681
|
+
"name": "text.jade",
|
682
|
+
"patterns": [
|
683
|
+
{
|
684
|
+
"begin": "\\[",
|
685
|
+
"end": "\\]",
|
686
|
+
"patterns": [
|
687
|
+
{
|
688
|
+
"include": "#inline_jade_text"
|
689
|
+
}
|
690
|
+
]
|
691
|
+
},
|
692
|
+
{
|
693
|
+
"include": "#inline_jade"
|
694
|
+
},
|
695
|
+
{
|
696
|
+
"include": "#embedded_html"
|
697
|
+
},
|
698
|
+
{
|
699
|
+
"include": "#html_entity"
|
700
|
+
},
|
701
|
+
{
|
702
|
+
"include": "#interpolated_value"
|
703
|
+
},
|
704
|
+
{
|
705
|
+
"include": "#interpolated_error"
|
706
|
+
}
|
707
|
+
]
|
708
|
+
},
|
709
|
+
"interpolated_error": {
|
710
|
+
"match": "(?<!\\\\)[#!]\\{(?=[^}]*$)",
|
711
|
+
"name": "invalid.illegal.tag.jade"
|
712
|
+
},
|
713
|
+
"interpolated_value": {
|
714
|
+
"begin": "(?<!\\\\)[#!]\\{(?=.*?\\})",
|
715
|
+
"end": "\\}",
|
716
|
+
"name": "string.interpolated.jade",
|
717
|
+
"patterns": [
|
718
|
+
{
|
719
|
+
"match": "{",
|
720
|
+
"name": "invalid.illegal.tag.jade"
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"include": "source.python"
|
724
|
+
}
|
725
|
+
]
|
726
|
+
},
|
727
|
+
"mixins": {
|
728
|
+
"begin": "(((mixin\\s+)|\\+)([\\w-]+))\\s*",
|
729
|
+
"beginCaptures": {
|
730
|
+
"2": {
|
731
|
+
"name": "storage.type.function.jade"
|
732
|
+
},
|
733
|
+
"4": {
|
734
|
+
"name": "entity.name.function.jade"
|
735
|
+
}
|
736
|
+
},
|
737
|
+
"comment": "Mixin declaration and use, including the new '+' syntax.",
|
738
|
+
"end": "(?=\\])|$",
|
739
|
+
"name": "meta.mixin.jade",
|
740
|
+
"patterns": [
|
741
|
+
{
|
742
|
+
"begin": "",
|
743
|
+
"end": "(?=\\])|$",
|
744
|
+
"name": "args.mixin.jade",
|
745
|
+
"patterns": [
|
746
|
+
{
|
747
|
+
"include": "#tag_attribute_value_paren"
|
748
|
+
},
|
749
|
+
{
|
750
|
+
"include": "#tag_attribute_value_brackets"
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"include": "#tag_attribute_value_braces"
|
754
|
+
},
|
755
|
+
{
|
756
|
+
"include": "source.python"
|
757
|
+
}
|
758
|
+
]
|
759
|
+
}
|
760
|
+
]
|
761
|
+
},
|
762
|
+
"printed_expression": {
|
763
|
+
"begin": "(!?\\=)\\s*",
|
764
|
+
"captures": {
|
765
|
+
"1": {
|
766
|
+
"name": "constant"
|
767
|
+
}
|
768
|
+
},
|
769
|
+
"end": "(?=\\])|$",
|
770
|
+
"patterns": [
|
771
|
+
{
|
772
|
+
"include": "#brackets_js"
|
773
|
+
},
|
774
|
+
{
|
775
|
+
"include": "source.python"
|
776
|
+
}
|
777
|
+
]
|
778
|
+
},
|
779
|
+
"string": {
|
780
|
+
"begin": "(['\"])",
|
781
|
+
"end": "(?<!\\\\)\\1",
|
782
|
+
"name": "string.quoted.jade",
|
783
|
+
"patterns": [
|
784
|
+
{
|
785
|
+
"match": "\\\\((x[0-9a-fA-F]{2})|(u[0-9]{4})|.)",
|
786
|
+
"name": "constant.character.quoted.jade"
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"include": "#interpolated_value"
|
790
|
+
},
|
791
|
+
{
|
792
|
+
"include": "#interpolated_error"
|
793
|
+
}
|
794
|
+
]
|
795
|
+
},
|
796
|
+
"tag_attribute_value_braces": {
|
797
|
+
"begin": "\\{",
|
798
|
+
"end": "\\}",
|
799
|
+
"name": "js.value.attribute.tag.jade",
|
800
|
+
"patterns": [
|
801
|
+
{
|
802
|
+
"include": "#tag_attribute_value_paren"
|
803
|
+
},
|
804
|
+
{
|
805
|
+
"include": "#tag_attribute_value_brackets"
|
806
|
+
},
|
807
|
+
{
|
808
|
+
"include": "#tag_attribute_value_braces"
|
809
|
+
},
|
810
|
+
{
|
811
|
+
"include": "#string"
|
812
|
+
},
|
813
|
+
{
|
814
|
+
"include": "source.python"
|
815
|
+
}
|
816
|
+
]
|
817
|
+
},
|
818
|
+
"tag_attribute_value_brackets": {
|
819
|
+
"begin": "\\[",
|
820
|
+
"end": "\\]",
|
821
|
+
"name": "js.value.attribute.tag.jade",
|
822
|
+
"patterns": [
|
823
|
+
{
|
824
|
+
"include": "#tag_attribute_value_paren"
|
825
|
+
},
|
826
|
+
{
|
827
|
+
"include": "#tag_attribute_value_brackets"
|
828
|
+
},
|
829
|
+
{
|
830
|
+
"include": "#tag_attribute_value_braces"
|
831
|
+
},
|
832
|
+
{
|
833
|
+
"include": "#string"
|
834
|
+
},
|
835
|
+
{
|
836
|
+
"include": "source.python"
|
837
|
+
}
|
838
|
+
]
|
839
|
+
},
|
840
|
+
"tag_attribute_value_paren": {
|
841
|
+
"begin": "\\(",
|
842
|
+
"end": "\\)",
|
843
|
+
"name": "js.value.attribute.tag.jade",
|
844
|
+
"patterns": [
|
845
|
+
{
|
846
|
+
"include": "#tag_attribute_value_paren"
|
847
|
+
},
|
848
|
+
{
|
849
|
+
"include": "#tag_attribute_value_brackets"
|
850
|
+
},
|
851
|
+
{
|
852
|
+
"include": "#tag_attribute_value_braces"
|
853
|
+
},
|
854
|
+
{
|
855
|
+
"include": "#string"
|
856
|
+
},
|
857
|
+
{
|
858
|
+
"include": "source.python"
|
859
|
+
}
|
860
|
+
]
|
861
|
+
},
|
862
|
+
"tag_attributes": {
|
863
|
+
"begin": "(\\()",
|
864
|
+
"captures": {
|
865
|
+
"1": {
|
866
|
+
"name": "constant.name.attribute.tag.jade"
|
867
|
+
}
|
868
|
+
},
|
869
|
+
"end": "(\\))",
|
870
|
+
"name": "attributes.tag.jade",
|
871
|
+
"patterns": [
|
872
|
+
{
|
873
|
+
"captures": {
|
874
|
+
"1": {
|
875
|
+
"name": "entity.other.attribute-name.tag.jade"
|
876
|
+
}
|
877
|
+
},
|
878
|
+
"match": "([^\\s(),=/]+)\\s*((?=\\))|,|\\s+|$)(?!\\!?\\=)",
|
879
|
+
"name": "attributes.tag.jade"
|
880
|
+
},
|
881
|
+
{
|
882
|
+
"begin": "([^\\s(),=/]*[^\\s(),=!/])\\s*(!?\\=)",
|
883
|
+
"beginCaptures": {
|
884
|
+
"1": {
|
885
|
+
"name": "entity.other.attribute-name.tag.jade"
|
886
|
+
},
|
887
|
+
"2": {
|
888
|
+
"name": "punctuation.separator.key-value.jade"
|
889
|
+
}
|
890
|
+
},
|
891
|
+
"end": "(,|$|(?=\\)|((?<![+/*|&=:^~!?<>%-])\\s+[^+/*|&=:^~!?<>%-])))",
|
892
|
+
"name": "attributes.tag.jade",
|
893
|
+
"patterns": [
|
894
|
+
{
|
895
|
+
"include": "#tag_attribute_value_paren"
|
896
|
+
},
|
897
|
+
{
|
898
|
+
"include": "#tag_attribute_value_brackets"
|
899
|
+
},
|
900
|
+
{
|
901
|
+
"include": "#tag_attribute_value_braces"
|
902
|
+
},
|
903
|
+
{
|
904
|
+
"include": "#string"
|
905
|
+
},
|
906
|
+
{
|
907
|
+
"include": "source.python"
|
908
|
+
}
|
909
|
+
]
|
910
|
+
}
|
911
|
+
]
|
912
|
+
},
|
913
|
+
"tag_classes": {
|
914
|
+
"captures": {
|
915
|
+
"1": {
|
916
|
+
"name": "invalid.illegal.tag.jade"
|
917
|
+
}
|
918
|
+
},
|
919
|
+
"match": "\\.([^\\w-])?[\\w-]*",
|
920
|
+
"name": "constant.language.js"
|
921
|
+
},
|
922
|
+
"tag_id": {
|
923
|
+
"match": "#[\\w-]+",
|
924
|
+
"name": "constant.id.tag.jade"
|
925
|
+
},
|
926
|
+
"tag_mixin_attributes": {
|
927
|
+
"begin": "(&attributes\\()",
|
928
|
+
"captures": {
|
929
|
+
"1": {
|
930
|
+
"name": "entity.name.function.jade"
|
931
|
+
}
|
932
|
+
},
|
933
|
+
"end": "(\\))",
|
934
|
+
"name": "attributes.tag.jade",
|
935
|
+
"patterns": [
|
936
|
+
{
|
937
|
+
"match": "attributes(?=\\))",
|
938
|
+
"name": "storage.type.keyword.jade"
|
939
|
+
},
|
940
|
+
{
|
941
|
+
"include": "source.python"
|
942
|
+
}
|
943
|
+
]
|
944
|
+
},
|
945
|
+
"tag_name": {
|
946
|
+
"begin": "([#!]\\{(?=.*?\\}))|(\\w(([\\w:-]+[\\w-])|([\\w-]*)))",
|
947
|
+
"end": "(\\G(?<!\\5[^\\w-]))|\\}|$",
|
948
|
+
"name": "entity.name.tag.jade",
|
949
|
+
"patterns": [
|
950
|
+
{
|
951
|
+
"begin": "\\G(?<=\\{)",
|
952
|
+
"end": "(?=\\})",
|
953
|
+
"name": "entity.name.tag.jade",
|
954
|
+
"patterns": [
|
955
|
+
{
|
956
|
+
"match": "{",
|
957
|
+
"name": "invalid.illegal.tag.jade"
|
958
|
+
},
|
959
|
+
{
|
960
|
+
"include": "source.python"
|
961
|
+
}
|
962
|
+
]
|
963
|
+
}
|
964
|
+
]
|
965
|
+
},
|
966
|
+
"tag_text": {
|
967
|
+
"begin": "(?=.)",
|
968
|
+
"end": "$",
|
969
|
+
"name": "text.jade",
|
970
|
+
"patterns": [
|
971
|
+
{
|
972
|
+
"include": "#inline_jade"
|
973
|
+
},
|
974
|
+
{
|
975
|
+
"include": "#embedded_html"
|
976
|
+
},
|
977
|
+
{
|
978
|
+
"include": "#html_entity"
|
979
|
+
},
|
980
|
+
{
|
981
|
+
"include": "#interpolated_value"
|
982
|
+
},
|
983
|
+
{
|
984
|
+
"include": "#interpolated_error"
|
985
|
+
}
|
986
|
+
]
|
987
|
+
},
|
988
|
+
"unbuffered_code": {
|
989
|
+
"begin": "(-|(([a-zA-Z0-9_]+)\\s+=))",
|
990
|
+
"beginCaptures": {
|
991
|
+
"3": {
|
992
|
+
"name": "variable.parameter.javascript.embedded.jade"
|
993
|
+
}
|
994
|
+
},
|
995
|
+
"comment": "name = function() {}",
|
996
|
+
"end": "(?=\\])|$",
|
997
|
+
"name": "javascript.embedded.jade",
|
998
|
+
"patterns": [
|
999
|
+
{
|
1000
|
+
"include": "#brackets_js"
|
1001
|
+
},
|
1002
|
+
{
|
1003
|
+
"include": "source.python"
|
1004
|
+
}
|
1005
|
+
]
|
1006
|
+
}
|
1007
|
+
},
|
1008
|
+
"scopeName": "source.pyjade",
|
1009
|
+
"uuid": "2af009be-05cb-4536-812d-0d6a3f517e31"
|
1010
|
+
}
|