github-linguist-grammars 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (335) hide show
  1. checksums.yaml +7 -0
  2. data/grammars/file.lasso.json +713 -0
  3. data/grammars/module.ceylon.json +54 -0
  4. data/grammars/objdump.x86asm.json +73 -0
  5. data/grammars/source.Inform7.json +45 -0
  6. data/grammars/source.Kotlin.json +774 -0
  7. data/grammars/source.LS.json +104 -0
  8. data/grammars/source.MCPOST.json +68 -0
  9. data/grammars/source.MOD.json +70 -0
  10. data/grammars/source.abap.json +176 -0
  11. data/grammars/source.abl.json +138 -0
  12. data/grammars/source.actionscript.3.json +1571 -0
  13. data/grammars/source.acucobol.json +16 -0
  14. data/grammars/source.ada.json +140 -0
  15. data/grammars/source.agda.json +254 -0
  16. data/grammars/source.ahk.json +171 -0
  17. data/grammars/source.alloy.json +44 -0
  18. data/grammars/source.ampl.json +157 -0
  19. data/grammars/source.antlr.json +300 -0
  20. data/grammars/source.apache-config.json +352 -0
  21. data/grammars/source.apache-config.mod_perl.json +70 -0
  22. data/grammars/source.apl.json +442 -0
  23. data/grammars/source.applescript.json +1385 -0
  24. data/grammars/source.apt.json +25 -0
  25. data/grammars/source.asm.x86.json +182 -0
  26. data/grammars/source.asp.json +157 -0
  27. data/grammars/source.aspectj.json +963 -0
  28. data/grammars/source.ats.json +170 -0
  29. data/grammars/source.autoit.3.json +132 -0
  30. data/grammars/source.awk.json +388 -0
  31. data/grammars/source.befunge.json +38 -0
  32. data/grammars/source.bf.json +36 -0
  33. data/grammars/source.bison.json +59 -0
  34. data/grammars/source.blitzmax.json +912 -0
  35. data/grammars/source.boo.json +452 -0
  36. data/grammars/source.brightauthorproject.json +29 -0
  37. data/grammars/source.brightscript.json +158 -0
  38. data/grammars/source.bro.json +409 -0
  39. data/grammars/source.bsv.json +283 -0
  40. data/grammars/source.c++.json +364 -0
  41. data/grammars/source.c++.qt.json +37 -0
  42. data/grammars/source.c.ec.json +39 -0
  43. data/grammars/source.c.json +727 -0
  44. data/grammars/source.c.platform.json +154 -0
  45. data/grammars/source.cache.cmake.json +75 -0
  46. data/grammars/source.cake.json +16 -0
  47. data/grammars/source.camlp4.ocaml.json +63 -0
  48. data/grammars/source.capnp.json +93 -0
  49. data/grammars/source.ceylon.json +77 -0
  50. data/grammars/source.cfscript.cfc.json +170 -0
  51. data/grammars/source.cfscript.json +744 -0
  52. data/grammars/source.chapel.json +240 -0
  53. data/grammars/source.cirru.json +66 -0
  54. data/grammars/source.clarion.json +159 -0
  55. data/grammars/source.clips.json +80 -0
  56. data/grammars/source.clojure.json +397 -0
  57. data/grammars/source.cm.json +54 -0
  58. data/grammars/source.cmake.json +181 -0
  59. data/grammars/source.cobol.json +528 -0
  60. data/grammars/source.coffee.json +678 -0
  61. data/grammars/source.compiled-papyrus.json +11 -0
  62. data/grammars/source.cool.json +103 -0
  63. data/grammars/source.coq.json +62 -0
  64. data/grammars/source.crystal.json +2760 -0
  65. data/grammars/source.cs.json +556 -0
  66. data/grammars/source.css.json +630 -0
  67. data/grammars/source.css.less.json +276 -0
  68. data/grammars/source.css.mss.json +256 -0
  69. data/grammars/source.csx.json +16 -0
  70. data/grammars/source.cuda-c++.json +137 -0
  71. data/grammars/source.cython.json +2108 -0
  72. data/grammars/source.d.json +722 -0
  73. data/grammars/source.dart.json +763 -0
  74. data/grammars/source.desktop.json +90 -0
  75. data/grammars/source.diff.json +162 -0
  76. data/grammars/source.dockerfile.json +89 -0
  77. data/grammars/source.dosbatch.json +70 -0
  78. data/grammars/source.dot.json +126 -0
  79. data/grammars/source.dylan.json +217 -0
  80. data/grammars/source.eiffel.json +138 -0
  81. data/grammars/source.elixir.json +737 -0
  82. data/grammars/source.elm.json +355 -0
  83. data/grammars/source.erazor.json +126 -0
  84. data/grammars/source.erlang.json +1674 -0
  85. data/grammars/source.essl.json +50 -0
  86. data/grammars/source.factor.json +260 -0
  87. data/grammars/source.fan.json +188 -0
  88. data/grammars/source.fancy.json +270 -0
  89. data/grammars/source.fish.json +214 -0
  90. data/grammars/source.forth.json +101 -0
  91. data/grammars/source.fortran.json +499 -0
  92. data/grammars/source.fortran.modern.json +226 -0
  93. data/grammars/source.fsharp.json +403 -0
  94. data/grammars/source.gap.json +167 -0
  95. data/grammars/source.gcode.json +25 -0
  96. data/grammars/source.gdscript.json +154 -0
  97. data/grammars/source.gfm.json +1270 -0
  98. data/grammars/source.glsl.json +71 -0
  99. data/grammars/source.gnuplot.json +276 -0
  100. data/grammars/source.go.json +552 -0
  101. data/grammars/source.golo.json +182 -0
  102. data/grammars/source.gosu.2.json +163 -0
  103. data/grammars/source.grace.json +679 -0
  104. data/grammars/source.groovy.gradle.json +73 -0
  105. data/grammars/source.groovy.json +1385 -0
  106. data/grammars/source.harbour.json +450 -0
  107. data/grammars/source.haskell.json +449 -0
  108. data/grammars/source.haxe.2.json +1243 -0
  109. data/grammars/source.hss.1.json +464 -0
  110. data/grammars/source.httpspec.json +287 -0
  111. data/grammars/source.hxml.json +26 -0
  112. data/grammars/source.hy.json +270 -0
  113. data/grammars/source.idl-dlm.json +112 -0
  114. data/grammars/source.idl.json +267 -0
  115. data/grammars/source.idris.json +537 -0
  116. data/grammars/source.ini.json +113 -0
  117. data/grammars/source.inno.json +65 -0
  118. data/grammars/source.io.json +164 -0
  119. data/grammars/source.ioke.json +272 -0
  120. data/grammars/source.isabelle.root.json +68 -0
  121. data/grammars/source.isabelle.theory.json +106 -0
  122. data/grammars/source.j.json +49 -0
  123. data/grammars/source.jade.json +1009 -0
  124. data/grammars/source.jasmin.json +299 -0
  125. data/grammars/source.java-properties.json +97 -0
  126. data/grammars/source.java.json +1026 -0
  127. data/grammars/source.jcl.json +49 -0
  128. data/grammars/source.jflex.json +490 -0
  129. data/grammars/source.jq.json +218 -0
  130. data/grammars/source.js.json +948 -0
  131. data/grammars/source.js.jsx.json +2937 -0
  132. data/grammars/source.js.objj.json +424 -0
  133. data/grammars/source.js.regexp.json +150 -0
  134. data/grammars/source.js.regexp.replacement.json +30 -0
  135. data/grammars/source.json.json +149 -0
  136. data/grammars/source.julia.json +407 -0
  137. data/grammars/source.lean.json +145 -0
  138. data/grammars/source.lid.json +23 -0
  139. data/grammars/source.lilypond.json +623 -0
  140. data/grammars/source.lisp.json +111 -0
  141. data/grammars/source.litcoffee.json +669 -0
  142. data/grammars/source.livescript.json +616 -0
  143. data/grammars/source.llvm.json +71 -0
  144. data/grammars/source.logos.json +31 -0
  145. data/grammars/source.logtalk.json +315 -0
  146. data/grammars/source.loomscript.json +214 -0
  147. data/grammars/source.lsl.json +216 -0
  148. data/grammars/source.lua.json +191 -0
  149. data/grammars/source.makefile.json +474 -0
  150. data/grammars/source.makegen.json +13 -0
  151. data/grammars/source.man.json +53 -0
  152. data/grammars/source.mask.json +701 -0
  153. data/grammars/source.mata.json +133 -0
  154. data/grammars/source.mathematica.json +429 -0
  155. data/grammars/source.matlab.json +776 -0
  156. data/grammars/source.mercury.json +251 -0
  157. data/grammars/source.ml.json +291 -0
  158. data/grammars/source.modelica.json +142 -0
  159. data/grammars/source.modula2.json +103 -0
  160. data/grammars/source.monkey.json +701 -0
  161. data/grammars/source.moonscript.json +149 -0
  162. data/grammars/source.mupad.json +149 -0
  163. data/grammars/source.nant-build.json +86 -0
  164. data/grammars/source.ncl.json +66 -0
  165. data/grammars/source.nemerle.json +137 -0
  166. data/grammars/source.nesc.json +27 -0
  167. data/grammars/source.netlinx.erb.json +47 -0
  168. data/grammars/source.netlinx.json +768 -0
  169. data/grammars/source.nginx.json +797 -0
  170. data/grammars/source.nim.json +1150 -0
  171. data/grammars/source.nim_filter.json +133 -0
  172. data/grammars/source.nimcfg.json +116 -0
  173. data/grammars/source.ninja.json +66 -0
  174. data/grammars/source.nit.json +238 -0
  175. data/grammars/source.nix.json +1200 -0
  176. data/grammars/source.nmml.json +87 -0
  177. data/grammars/source.nsis.json +150 -0
  178. data/grammars/source.objc++.json +19 -0
  179. data/grammars/source.objc.json +918 -0
  180. data/grammars/source.objc.platform.json +277 -0
  181. data/grammars/source.ocaml.json +1426 -0
  182. data/grammars/source.ocamllex.json +305 -0
  183. data/grammars/source.ocamlyacc.json +346 -0
  184. data/grammars/source.octave.json +451 -0
  185. data/grammars/source.ooc.json +692 -0
  186. data/grammars/source.opa.json +206 -0
  187. data/grammars/source.opal.json +415 -0
  188. data/grammars/source.opalsysdefs.json +70 -0
  189. data/grammars/source.opencobol.json +65 -0
  190. data/grammars/source.ox.json +97 -0
  191. data/grammars/source.oz.json +84 -0
  192. data/grammars/source.papyrus-assembly.json +266 -0
  193. data/grammars/source.papyrus.json +231 -0
  194. data/grammars/source.parrot.pir.json +117 -0
  195. data/grammars/source.pascal.json +150 -0
  196. data/grammars/source.perl.6.json +310 -0
  197. data/grammars/source.perl.json +2413 -0
  198. data/grammars/source.php.zephir.json +362 -0
  199. data/grammars/source.pig_latin.json +172 -0
  200. data/grammars/source.pike.json +62 -0
  201. data/grammars/source.plsql.oracle.json +642 -0
  202. data/grammars/source.po.json +232 -0
  203. data/grammars/source.pogoscript.json +85 -0
  204. data/grammars/source.postscript.json +231 -0
  205. data/grammars/source.powershell.json +755 -0
  206. data/grammars/source.processing.json +885 -0
  207. data/grammars/source.prolog.eclipse.json +206 -0
  208. data/grammars/source.prolog.json +292 -0
  209. data/grammars/source.protobuf.json +395 -0
  210. data/grammars/source.pubspec.json +13 -0
  211. data/grammars/source.puppet.json +494 -0
  212. data/grammars/source.purescript.json +818 -0
  213. data/grammars/source.pyjade.json +1010 -0
  214. data/grammars/source.python.django.json +34 -0
  215. data/grammars/source.python.json +1960 -0
  216. data/grammars/source.python.salt.json +13 -0
  217. data/grammars/source.qmake.json +217 -0
  218. data/grammars/source.qml.json +195 -0
  219. data/grammars/source.r.json +203 -0
  220. data/grammars/source.racket.json +119 -0
  221. data/grammars/source.rebol.json +647 -0
  222. data/grammars/source.red.json +652 -0
  223. data/grammars/source.regexp.babel.json +190 -0
  224. data/grammars/source.regexp.python.json +187 -0
  225. data/grammars/source.regexp.spin.json +188 -0
  226. data/grammars/source.ruby.json +1956 -0
  227. data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
  228. data/grammars/source.rust.json +269 -0
  229. data/grammars/source.sas.json +322 -0
  230. data/grammars/source.sas_log.json +26 -0
  231. data/grammars/source.sass.json +248 -0
  232. data/grammars/source.sbt.json +36 -0
  233. data/grammars/source.scad.json +152 -0
  234. data/grammars/source.scala.json +739 -0
  235. data/grammars/source.scaml.json +466 -0
  236. data/grammars/source.scheme.json +370 -0
  237. data/grammars/source.scilab.json +103 -0
  238. data/grammars/source.scss.json +1321 -0
  239. data/grammars/source.shell.json +1212 -0
  240. data/grammars/source.smali.json +1668 -0
  241. data/grammars/source.smalltalk.json +135 -0
  242. data/grammars/source.smt.json +173 -0
  243. data/grammars/source.sp.json +118 -0
  244. data/grammars/source.sparql.json +23 -0
  245. data/grammars/source.spin.json +936 -0
  246. data/grammars/source.sqf.json +112 -0
  247. data/grammars/source.sql.json +473 -0
  248. data/grammars/source.stata.json +208 -0
  249. data/grammars/source.strings.json +53 -0
  250. data/grammars/source.stylus.json +1021 -0
  251. data/grammars/source.swift.json +965 -0
  252. data/grammars/source.systemverilog.json +1050 -0
  253. data/grammars/source.tcl.json +277 -0
  254. data/grammars/source.tea.json +180 -0
  255. data/grammars/source.thrift.json +704 -0
  256. data/grammars/source.toml.json +327 -0
  257. data/grammars/source.ts.json +1094 -0
  258. data/grammars/source.tsx.json +1324 -0
  259. data/grammars/source.turtle.json +505 -0
  260. data/grammars/source.txl.json +62 -0
  261. data/grammars/source.ucfconstraints.json +72 -0
  262. data/grammars/source.vala.json +814 -0
  263. data/grammars/source.varnish.vcl.json +343 -0
  264. data/grammars/source.vbnet.json +338 -0
  265. data/grammars/source.verilog.json +302 -0
  266. data/grammars/source.vhdl.json +1349 -0
  267. data/grammars/source.viml.json +224 -0
  268. data/grammars/source.webidl.json +814 -0
  269. data/grammars/source.x10.json +68 -0
  270. data/grammars/source.x86asm.json +47 -0
  271. data/grammars/source.xc.json +379 -0
  272. data/grammars/source.xq.json +241 -0
  273. data/grammars/source.xquery.json +193 -0
  274. data/grammars/source.xtend.json +733 -0
  275. data/grammars/source.yaml.json +334 -0
  276. data/grammars/source.yaml.salt.json +348 -0
  277. data/grammars/text.bibtex.json +251 -0
  278. data/grammars/text.cfml.basic.json +736 -0
  279. data/grammars/text.dart-analysis-output.json +162 -0
  280. data/grammars/text.dart-doccomments.json +19 -0
  281. data/grammars/text.elixir.json +45 -0
  282. data/grammars/text.gherkin.feature.json +135 -0
  283. data/grammars/text.groff.json +113 -0
  284. data/grammars/text.haml.json +299 -0
  285. data/grammars/text.html.abl.json +24 -0
  286. data/grammars/text.html.asciidoc.json +492 -0
  287. data/grammars/text.html.asdoc.json +541 -0
  288. data/grammars/text.html.asp.json +58 -0
  289. data/grammars/text.html.basic.json +552 -0
  290. data/grammars/text.html.cfm.json +811 -0
  291. data/grammars/text.html.creole.json +329 -0
  292. data/grammars/text.html.django.json +69 -0
  293. data/grammars/text.html.elixir.json +18 -0
  294. data/grammars/text.html.erb.json +157 -0
  295. data/grammars/text.html.erlang.yaws.json +72 -0
  296. data/grammars/text.html.factor.json +27 -0
  297. data/grammars/text.html.handlebars.json +783 -0
  298. data/grammars/text.html.jsp.json +1203 -0
  299. data/grammars/text.html.liquid.json +35 -0
  300. data/grammars/text.html.mako.json +729 -0
  301. data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
  302. data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
  303. data/grammars/text.html.mediawiki.json +972 -0
  304. data/grammars/text.html.php.json +2607 -0
  305. data/grammars/text.html.slash.json +313 -0
  306. data/grammars/text.html.smarty.json +216 -0
  307. data/grammars/text.html.ssp.json +49 -0
  308. data/grammars/text.html.tcl.json +44 -0
  309. data/grammars/text.html.twig.json +1353 -0
  310. data/grammars/text.html.vue.json +642 -0
  311. data/grammars/text.idl-idldoc.json +14 -0
  312. data/grammars/text.junit-test-report.json +92 -0
  313. data/grammars/text.log.latex.json +86 -0
  314. data/grammars/text.python.console.json +25 -0
  315. data/grammars/text.python.traceback.json +46 -0
  316. data/grammars/text.rdoc.json +48 -0
  317. data/grammars/text.restructuredtext.json +561 -0
  318. data/grammars/text.robot.json +73 -0
  319. data/grammars/text.shell-session.json +48 -0
  320. data/grammars/text.slim.json +527 -0
  321. data/grammars/text.tex.json +271 -0
  322. data/grammars/text.tex.latex.beamer.json +63 -0
  323. data/grammars/text.tex.latex.haskell.json +56 -0
  324. data/grammars/text.tex.latex.json +1013 -0
  325. data/grammars/text.tex.latex.memoir.json +99 -0
  326. data/grammars/text.tex.latex.rd.json +117 -0
  327. data/grammars/text.xml.ant.json +202 -0
  328. data/grammars/text.xml.flex-config.json +2634 -0
  329. data/grammars/text.xml.genshi.json +34 -0
  330. data/grammars/text.xml.json +364 -0
  331. data/grammars/text.xml.pom.json +774 -0
  332. data/grammars/text.xml.xsl.json +94 -0
  333. data/grammars/text.zone_file.json +72 -0
  334. data/lib/linguist/grammars.rb +13 -0
  335. metadata +389 -0
@@ -0,0 +1,49 @@
1
+ {
2
+ "fileTypes": [
3
+ "ssp"
4
+ ],
5
+ "foldingStartMarker": "(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*-->)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)",
6
+ "foldingStopMarker": "(?x)\n\t\t(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t|^\\s*-->\n\t\t|(^|\\s)\\}\n\t\t)",
7
+ "name": "Ssp (Scalate)",
8
+ "patterns": [
9
+ {
10
+ "begin": "<%+#",
11
+ "captures": {
12
+ "0": {
13
+ "name": "punctuation.definition.comment.ssp"
14
+ }
15
+ },
16
+ "end": "%>",
17
+ "name": "comment.block.ssp"
18
+ },
19
+ {
20
+ "begin": "<%+(?!>)[-=]?",
21
+ "captures": {
22
+ "0": {
23
+ "name": "punctuation.section.embedded.scala"
24
+ }
25
+ },
26
+ "end": "-?%>",
27
+ "name": "source.scala.embedded.html",
28
+ "patterns": [
29
+ {
30
+ "captures": {
31
+ "1": {
32
+ "name": "punctuation.definition.comment.scala"
33
+ }
34
+ },
35
+ "match": "(#).*?(?=-?%>)",
36
+ "name": "comment.line.number-sign.scala"
37
+ },
38
+ {
39
+ "include": "source.scala"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "include": "text.html.basic"
45
+ }
46
+ ],
47
+ "scopeName": "text.html.ssp",
48
+ "uuid": "1869C69F-D37C-4F69-86F3-9D7213CB57C7"
49
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "fileTypes": [
3
+ "tcl",
4
+ "adp",
5
+ "inc"
6
+ ],
7
+ "keyEquivalent": "^~T",
8
+ "name": "HTML (Tcl)",
9
+ "patterns": [
10
+ {
11
+ "begin": "<%",
12
+ "beginCaptures": {
13
+ "0": {
14
+ "name": "punctuation.section.embedded.begin.tcl"
15
+ }
16
+ },
17
+ "contentName": "source.tcl",
18
+ "end": "(%)>",
19
+ "endCaptures": {
20
+ "0": {
21
+ "name": "punctuation.section.embedded.end.tcl"
22
+ },
23
+ "1": {
24
+ "name": "source.tcl"
25
+ }
26
+ },
27
+ "name": "meta.embedded.line.tcl",
28
+ "patterns": [
29
+ {
30
+ "match": "(env|ns_adp_argc|ns_adp_argv|ns_adp_bind_args|ns_adp_break|ns_adp_debug|ns_adp_dir|ns_adp_dump|ns_adp_eval|ns_adp_exception|ns_adp_include|ns_adp_parse|ns_adp_puts|ns_adp_registertag|ns_adp_return|ns_adp_stream|ns_adp_tell|ns_adp_trunc|ns_atclose|ns_atexit|ns_atshutdown|ns_atsignal|ns_cache_flush|ns_cache_names|ns_cache_size|ns_cache_stats|ns_checkurl|ns_chmod|ns_cond|ns_config|ns_configsection|ns_configsections|ns_conn|ns_conncptofp|ns_connsendfp|ns_cp|ns_cpfp|ns_critsec|ns_crypt|ns_db|ns_dbconfigpath|ns_dberror|ns_dbformvalue|ns_dbformvalueput|ns_dbquotename|ns_dbquotevalue|ns_deleterow|ns_eval|ns_event|ns_ext|ns_findrowbyid|ns_fmttime|ns_ftruncate|ns_getcsv|ns_getform|ns_get_multipart_formdata|ns_geturl|ns_gifsize|ns_gmtime|ns_guesstype|ns_hostbyaddr|ns_hrefs|ns_httpget|ns_httpopen|ns_httptime|ns_info|ns_insertrow|ns_jpegsize|ns_kill|ns_library|ns_link|ns_localsqltimestamp|ns_localtime|ns_log|ns_logroll|ns_markfordelete|ns_mkdir|ns_mktemp|ns_modulepath|ns_mutex|ns_normalizepath|ns_param|ns_parseheader|ns_parsehttptime|ns_parsequery|ns_passwordcheck|ns_perm|ns_permpasswd|ns_pooldescription|ns_puts|ns_queryexists|ns_queryget|ns_querygetall|ns_quotehtml|ns_rand|ns_register_adptag|ns_register_filter|ns_register_proc|ns_register_trace|ns_rename|ns_requestauthorize|ns_respond|ns_return|ns_returnredirect|ns_rmdir|ns_rollfile|ns_rwlock|ns_schedule_daily|ns_schedule_proc|ns_schedule_weekly|ns_section|ns_sema|ns_sendmail|ns_server|ns_set|ns_setexpires|ns_set_precision|ns_share|ns_shutdown|ns_sleep|ns_sockaccept|ns_sockblocking|ns_sockcallback|ns_sockcheck|ns_socketpair|ns_socklistencallback|ns_socknonblocking|ns_socknread|ns_sockopen|ns_sockselect|ns_striphtml|ns_symlink|ns_thread|ns_time|ns_tmpnam|ns_truncate|ns_unlink|ns_unschedule_proc|ns_url2file|ns_urldecode|ns_urlencode|ns_uudecode|ns_uuencode|ns_write|ns_writecontent|ns_writefp|nsv_incr)\\b",
31
+ "name": "keyword.other.tcl.aolserver"
32
+ },
33
+ {
34
+ "include": "source.tcl"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "include": "text.html.basic"
40
+ }
41
+ ],
42
+ "scopeName": "text.html.tcl",
43
+ "uuid": "42F00A35-6D17-44B8-8C9B-438F9FE9E241"
44
+ }
@@ -0,0 +1,1353 @@
1
+ {
2
+ "fileTypes": [
3
+ "twig",
4
+ "html.twig"
5
+ ],
6
+ "firstLineMatch": "<!(?i:DOCTYPE)|<(?i:html)|<\\?(?i:php)|\\{\\{|\\{%|\\{#",
7
+ "foldingStartMarker": "(?x)\n (<(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)\\b.*?>\n |<!--(?!.*--\\s*>)\n |^<!--\\ \\#tminclude\\ (?>.*?-->)$\n |\\{%\\s+(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)\n )",
8
+ "foldingStopMarker": "(?x)\n (</(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)>\n |^(?!.*?<!--).*?--\\s*>\n |^<!--\\ end\\ tminclude\\ -->$\n |\\{%\\s+end(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)\n )",
9
+ "keyEquivalent": "^~T",
10
+ "name": "HTML (Twig)",
11
+ "patterns": [
12
+ {
13
+ "begin": "(<)([a-zA-Z0-9:]++)(?=[^>]*></\\2>)",
14
+ "beginCaptures": {
15
+ "1": {
16
+ "name": "punctuation.definition.tag.html"
17
+ },
18
+ "2": {
19
+ "name": "entity.name.tag.html"
20
+ }
21
+ },
22
+ "end": "(>(<)/)(\\2)(>)",
23
+ "endCaptures": {
24
+ "1": {
25
+ "name": "punctuation.definition.tag.html"
26
+ },
27
+ "2": {
28
+ "name": "meta.scope.between-tag-pair.html"
29
+ },
30
+ "3": {
31
+ "name": "entity.name.tag.html"
32
+ },
33
+ "4": {
34
+ "name": "punctuation.definition.tag.html"
35
+ }
36
+ },
37
+ "name": "meta.tag.any.html",
38
+ "patterns": [
39
+ {
40
+ "include": "#tag-stuff"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "begin": "(<\\?)(xml)",
46
+ "captures": {
47
+ "1": {
48
+ "name": "punctuation.definition.tag.html"
49
+ },
50
+ "2": {
51
+ "name": "entity.name.tag.xml.html"
52
+ }
53
+ },
54
+ "end": "(\\?>)",
55
+ "name": "meta.tag.preprocessor.xml.html",
56
+ "patterns": [
57
+ {
58
+ "include": "#tag-generic-attribute"
59
+ },
60
+ {
61
+ "include": "#string-double-quoted"
62
+ },
63
+ {
64
+ "include": "#string-single-quoted"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "begin": "<!--",
70
+ "captures": {
71
+ "0": {
72
+ "name": "punctuation.definition.comment.html"
73
+ }
74
+ },
75
+ "end": "--\\s*>",
76
+ "name": "comment.block.html",
77
+ "patterns": [
78
+ {
79
+ "match": "--",
80
+ "name": "invalid.illegal.bad-comments-or-CDATA.html"
81
+ },
82
+ {
83
+ "include": "#embedded-code"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "begin": "<!",
89
+ "captures": {
90
+ "0": {
91
+ "name": "punctuation.definition.tag.html"
92
+ }
93
+ },
94
+ "end": ">",
95
+ "name": "meta.tag.sgml.html",
96
+ "patterns": [
97
+ {
98
+ "begin": "(?i:DOCTYPE)",
99
+ "captures": {
100
+ "1": {
101
+ "name": "entity.name.tag.doctype.html"
102
+ }
103
+ },
104
+ "end": "(?=>)",
105
+ "name": "meta.tag.sgml.doctype.html",
106
+ "patterns": [
107
+ {
108
+ "match": "\"[^\">]*\"",
109
+ "name": "string.quoted.double.doctype.identifiers-and-DTDs.html"
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "begin": "\\[CDATA\\[",
115
+ "end": "]](?=>)",
116
+ "name": "constant.other.inline-data.html"
117
+ },
118
+ {
119
+ "match": "(\\s*)(?!--|>)\\S(\\s*)",
120
+ "name": "invalid.illegal.bad-comments-or-CDATA.html"
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "include": "#embedded-code"
126
+ },
127
+ {
128
+ "begin": "(?:^\\s+)?(<)((?i:style))\\b(?![^>]*/>)",
129
+ "captures": {
130
+ "1": {
131
+ "name": "punctuation.definition.tag.html"
132
+ },
133
+ "2": {
134
+ "name": "entity.name.tag.style.html"
135
+ },
136
+ "3": {
137
+ "name": "punctuation.definition.tag.html"
138
+ }
139
+ },
140
+ "end": "(</)((?i:style))(>)(?:\\s*\\n)?",
141
+ "name": "source.css.embedded.html",
142
+ "patterns": [
143
+ {
144
+ "include": "#tag-stuff"
145
+ },
146
+ {
147
+ "begin": "(>)",
148
+ "beginCaptures": {
149
+ "1": {
150
+ "name": "punctuation.definition.tag.html"
151
+ }
152
+ },
153
+ "end": "(?=</(?i:style))",
154
+ "patterns": [
155
+ {
156
+ "include": "#embedded-code"
157
+ },
158
+ {
159
+ "include": "source.css"
160
+ }
161
+ ]
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "begin": "(?:^\\s+)?(<)((?i:script))\\b(?![^>]*/>)",
167
+ "beginCaptures": {
168
+ "1": {
169
+ "name": "punctuation.definition.tag.html"
170
+ },
171
+ "2": {
172
+ "name": "entity.name.tag.script.html"
173
+ }
174
+ },
175
+ "end": "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?",
176
+ "endCaptures": {
177
+ "2": {
178
+ "name": "punctuation.definition.tag.html"
179
+ }
180
+ },
181
+ "name": "source.js.embedded.html",
182
+ "patterns": [
183
+ {
184
+ "include": "#tag-stuff"
185
+ },
186
+ {
187
+ "begin": "(?<!</(?:script|SCRIPT))(>)",
188
+ "captures": {
189
+ "1": {
190
+ "name": "punctuation.definition.tag.html"
191
+ },
192
+ "2": {
193
+ "name": "entity.name.tag.script.html"
194
+ }
195
+ },
196
+ "end": "(</)((?i:script))",
197
+ "patterns": [
198
+ {
199
+ "captures": {
200
+ "1": {
201
+ "name": "punctuation.definition.comment.js"
202
+ }
203
+ },
204
+ "match": "(//).*?((?=</script)|$\\n?)",
205
+ "name": "comment.line.double-slash.js"
206
+ },
207
+ {
208
+ "begin": "/\\*",
209
+ "captures": {
210
+ "0": {
211
+ "name": "punctuation.definition.comment.js"
212
+ }
213
+ },
214
+ "end": "\\*/|(?=</script)",
215
+ "name": "comment.block.js"
216
+ },
217
+ {
218
+ "include": "#php"
219
+ },
220
+ {
221
+ "include": "#twig-print-tag"
222
+ },
223
+ {
224
+ "include": "#twig-statement-tag"
225
+ },
226
+ {
227
+ "include": "#twig-comment-tag"
228
+ },
229
+ {
230
+ "include": "source.js"
231
+ }
232
+ ]
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ "begin": "(</?)((?i:body|head|html)\\b)",
238
+ "captures": {
239
+ "1": {
240
+ "name": "punctuation.definition.tag.html"
241
+ },
242
+ "2": {
243
+ "name": "entity.name.tag.structure.any.html"
244
+ }
245
+ },
246
+ "end": "(>)",
247
+ "name": "meta.tag.structure.any.html",
248
+ "patterns": [
249
+ {
250
+ "include": "#tag-stuff"
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "begin": "(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)",
256
+ "beginCaptures": {
257
+ "1": {
258
+ "name": "punctuation.definition.tag.begin.html"
259
+ },
260
+ "2": {
261
+ "name": "entity.name.tag.block.any.html"
262
+ }
263
+ },
264
+ "end": "(>)",
265
+ "endCaptures": {
266
+ "1": {
267
+ "name": "punctuation.definition.tag.end.html"
268
+ }
269
+ },
270
+ "name": "meta.tag.block.any.html",
271
+ "patterns": [
272
+ {
273
+ "include": "#tag-stuff"
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "begin": "(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)",
279
+ "beginCaptures": {
280
+ "1": {
281
+ "name": "punctuation.definition.tag.begin.html"
282
+ },
283
+ "2": {
284
+ "name": "entity.name.tag.inline.any.html"
285
+ }
286
+ },
287
+ "end": "((?: ?/)?>)",
288
+ "endCaptures": {
289
+ "1": {
290
+ "name": "punctuation.definition.tag.end.html"
291
+ }
292
+ },
293
+ "name": "meta.tag.inline.any.html",
294
+ "patterns": [
295
+ {
296
+ "include": "#tag-stuff"
297
+ }
298
+ ]
299
+ },
300
+ {
301
+ "begin": "(</?)([a-zA-Z0-9:]+)",
302
+ "beginCaptures": {
303
+ "1": {
304
+ "name": "punctuation.definition.tag.begin.html"
305
+ },
306
+ "2": {
307
+ "name": "entity.name.tag.other.html"
308
+ }
309
+ },
310
+ "end": "(>)",
311
+ "endCaptures": {
312
+ "1": {
313
+ "name": "punctuation.definition.tag.end.html"
314
+ }
315
+ },
316
+ "name": "meta.tag.other.html",
317
+ "patterns": [
318
+ {
319
+ "include": "#tag-stuff"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "include": "#entities"
325
+ },
326
+ {
327
+ "match": "<>",
328
+ "name": "invalid.illegal.incomplete.html"
329
+ },
330
+ {
331
+ "match": "<",
332
+ "name": "invalid.illegal.bad-angle-bracket.html"
333
+ },
334
+ {
335
+ "include": "#twig-print-tag"
336
+ },
337
+ {
338
+ "include": "#twig-statement-tag"
339
+ },
340
+ {
341
+ "include": "#twig-comment-tag"
342
+ }
343
+ ],
344
+ "repository": {
345
+ "embedded-code": {
346
+ "patterns": [
347
+ {
348
+ "include": "#ruby"
349
+ },
350
+ {
351
+ "include": "#php"
352
+ },
353
+ {
354
+ "include": "#twig-print-tag"
355
+ },
356
+ {
357
+ "include": "#twig-statement-tag"
358
+ },
359
+ {
360
+ "include": "#twig-comment-tag"
361
+ },
362
+ {
363
+ "include": "#python"
364
+ }
365
+ ]
366
+ },
367
+ "entities": {
368
+ "patterns": [
369
+ {
370
+ "captures": {
371
+ "1": {
372
+ "name": "punctuation.definition.entity.html"
373
+ },
374
+ "3": {
375
+ "name": "punctuation.definition.entity.html"
376
+ }
377
+ },
378
+ "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
379
+ "name": "constant.character.entity.html"
380
+ },
381
+ {
382
+ "match": "&",
383
+ "name": "invalid.illegal.bad-ampersand.html"
384
+ }
385
+ ]
386
+ },
387
+ "twig-print-tag": {
388
+ "begin": "\\{\\{-?",
389
+ "beginCaptures": {
390
+ "0": {
391
+ "name": "punctuation.section.tag.twig"
392
+ }
393
+ },
394
+ "end": "-?\\}\\}",
395
+ "endCaptures": {
396
+ "0": {
397
+ "name": "punctuation.section.tag.twig"
398
+ }
399
+ },
400
+ "name": "meta.tag.template.value.twig",
401
+ "patterns": [
402
+ {
403
+ "include": "#twig-constants"
404
+ },
405
+ {
406
+ "include": "#twig-operators"
407
+ },
408
+ {
409
+ "include": "#twig-functions-warg"
410
+ },
411
+ {
412
+ "include": "#twig-functions"
413
+ },
414
+ {
415
+ "include": "#twig-macros"
416
+ },
417
+ {
418
+ "include": "#twig-objects"
419
+ },
420
+ {
421
+ "include": "#twig-properties"
422
+ },
423
+ {
424
+ "include": "#twig-filters-warg"
425
+ },
426
+ {
427
+ "include": "#twig-filters"
428
+ },
429
+ {
430
+ "include": "#twig-filters-warg-ud"
431
+ },
432
+ {
433
+ "include": "#twig-filters-ud"
434
+ },
435
+ {
436
+ "include": "#twig-strings"
437
+ },
438
+ {
439
+ "include": "#twig-arrays"
440
+ },
441
+ {
442
+ "include": "#twig-hashes"
443
+ }
444
+ ]
445
+ },
446
+ "twig-statement-tag": {
447
+ "begin": "\\{%-?",
448
+ "beginCaptures": {
449
+ "0": {
450
+ "name": "punctuation.section.tag.twig"
451
+ }
452
+ },
453
+ "end": "-?%\\}",
454
+ "endCaptures": {
455
+ "0": {
456
+ "name": "punctuation.section.tag.twig"
457
+ }
458
+ },
459
+ "name": "meta.tag.template.block.twig",
460
+ "patterns": [
461
+ {
462
+ "include": "#twig-constants"
463
+ },
464
+ {
465
+ "include": "#twig-keywords"
466
+ },
467
+ {
468
+ "include": "#twig-operators"
469
+ },
470
+ {
471
+ "include": "#twig-functions-warg"
472
+ },
473
+ {
474
+ "include": "#twig-functions"
475
+ },
476
+ {
477
+ "include": "#twig-macros"
478
+ },
479
+ {
480
+ "include": "#twig-filters-warg"
481
+ },
482
+ {
483
+ "include": "#twig-filters"
484
+ },
485
+ {
486
+ "include": "#twig-filters-warg-ud"
487
+ },
488
+ {
489
+ "include": "#twig-filters-ud"
490
+ },
491
+ {
492
+ "include": "#twig-objects"
493
+ },
494
+ {
495
+ "include": "#twig-properties"
496
+ },
497
+ {
498
+ "include": "#twig-strings"
499
+ },
500
+ {
501
+ "include": "#twig-arrays"
502
+ },
503
+ {
504
+ "include": "#twig-hashes"
505
+ }
506
+ ]
507
+ },
508
+ "twig-comment-tag": {
509
+ "begin": "\\{#-?",
510
+ "beginCaptures": {
511
+ "0": {
512
+ "name": "punctuation.definition.comment.begin.twig"
513
+ }
514
+ },
515
+ "end": "-?#\\}",
516
+ "endCaptures": {
517
+ "0": {
518
+ "name": "punctuation.definition.comment.end.twig"
519
+ }
520
+ },
521
+ "name": "comment.block.twig"
522
+ },
523
+ "twig-constants": {
524
+ "patterns": [
525
+ {
526
+ "match": "(?i)(?<=[\\s\\[\\(\\{:,])(?:true|false|null|none)(?=[\\s\\)\\]\\}\\,])",
527
+ "name": "constant.language.twig"
528
+ },
529
+ {
530
+ "match": "(?<=[\\s\\[\\(\\{:,]|\\.\\.|\\*\\*)[0-9]+(?:\\.[0-9]+)?(?=[\\s\\)\\]\\}\\,]|\\.\\.|\\*\\*)",
531
+ "name": "constant.numeric.twig"
532
+ }
533
+ ]
534
+ },
535
+ "twig-operators": {
536
+ "patterns": [
537
+ {
538
+ "captures": {
539
+ "1": {
540
+ "name": "keyword.operator.arithmetic.twig"
541
+ }
542
+ },
543
+ "match": "(?<=\\s)(\\+|-|//?|%|\\*\\*?)(?=\\s)"
544
+ },
545
+ {
546
+ "captures": {
547
+ "1": {
548
+ "name": "keyword.operator.assignment.twig"
549
+ }
550
+ },
551
+ "match": "(?<=\\s)(=|~)(?=\\s)"
552
+ },
553
+ {
554
+ "captures": {
555
+ "1": {
556
+ "name": "keyword.operator.bitwise.twig"
557
+ }
558
+ },
559
+ "match": "(?<=\\s)(b-(?:and|or|xor))(?=\\s)"
560
+ },
561
+ {
562
+ "captures": {
563
+ "1": {
564
+ "name": "keyword.operator.comparison.twig"
565
+ }
566
+ },
567
+ "match": "(?<=\\s)((?:!|=)=|<=?|>=?|(?:not )?in|is(?: not)?|(?:ends|starts) with|matches)(?=\\s)"
568
+ },
569
+ {
570
+ "captures": {
571
+ "1": {
572
+ "name": "keyword.operator.logical.twig"
573
+ }
574
+ },
575
+ "match": "(?<=\\s)(\\?|:|and|not|or)(?=\\s)"
576
+ },
577
+ {
578
+ "captures": {
579
+ "0": {
580
+ "name": "keyword.operator.other.twig"
581
+ }
582
+ },
583
+ "match": "(?<=[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]\\)'\"])\\.\\.(?=[a-zA-Z0-9_\\x{7f}-\\x{ff}'\"])"
584
+ },
585
+ {
586
+ "captures": {
587
+ "0": {
588
+ "name": "keyword.operator.other.twig"
589
+ }
590
+ },
591
+ "match": "(?<=[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]\\}\\)'\"])\\|(?=[a-zA-Z_\\x{7f}-\\x{ff}])"
592
+ }
593
+ ]
594
+ },
595
+ "twig-objects": {
596
+ "captures": {
597
+ "1": {
598
+ "name": "variable.other.twig"
599
+ }
600
+ },
601
+ "match": "(?<=[\\s\\{\\[\\(:,])([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(?=[\\s\\}\\[\\]\\(\\)\\.\\|,:])"
602
+ },
603
+ "twig-properties": {
604
+ "patterns": [
605
+ {
606
+ "captures": {
607
+ "1": {
608
+ "name": "punctuation.separator.property.twig"
609
+ },
610
+ "2": {
611
+ "name": "variable.other.property.twig"
612
+ }
613
+ },
614
+ "match": "(?x)\n (?<=[a-zA-Z0-9_\\x{7f}-\\x{ff}])\n (\\.)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n (?=[\\.\\s\\|\\[\\)\\]\\}:,])\n "
615
+ },
616
+ {
617
+ "begin": "(?x)\n (?<=[a-zA-Z0-9_\\x{7f}-\\x{ff}])\n (\\.)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n (\\()\n ",
618
+ "beginCaptures": {
619
+ "1": {
620
+ "name": "punctuation.separator.property.twig"
621
+ },
622
+ "2": {
623
+ "name": "variable.other.property.twig"
624
+ },
625
+ "3": {
626
+ "name": "punctuation.definition.parameters.begin.twig"
627
+ }
628
+ },
629
+ "end": "\\)",
630
+ "endCaptures": {
631
+ "0": {
632
+ "name": "punctuation.definition.parameters.end.twig"
633
+ }
634
+ },
635
+ "patterns": [
636
+ {
637
+ "include": "#twig-constants"
638
+ },
639
+ {
640
+ "include": "#twig-functions-warg"
641
+ },
642
+ {
643
+ "include": "#twig-functions"
644
+ },
645
+ {
646
+ "include": "#twig-macros"
647
+ },
648
+ {
649
+ "include": "#twig-objects"
650
+ },
651
+ {
652
+ "include": "#twig-properties"
653
+ },
654
+ {
655
+ "include": "#twig-filters-warg"
656
+ },
657
+ {
658
+ "include": "#twig-filters"
659
+ },
660
+ {
661
+ "include": "#twig-filters-warg-ud"
662
+ },
663
+ {
664
+ "include": "#twig-filters-ud"
665
+ },
666
+ {
667
+ "include": "#twig-strings"
668
+ },
669
+ {
670
+ "include": "#twig-arrays"
671
+ }
672
+ ],
673
+ "contentName": "meta.function.arguments.twig"
674
+ },
675
+ {
676
+ "captures": {
677
+ "1": {
678
+ "name": "punctuation.section.array.begin.twig"
679
+ },
680
+ "2": {
681
+ "name": "variable.other.property.twig"
682
+ },
683
+ "3": {
684
+ "name": "punctuation.section.array.end.twig"
685
+ },
686
+ "4": {
687
+ "name": "punctuation.section.array.begin.twig"
688
+ },
689
+ "5": {
690
+ "name": "variable.other.property.twig"
691
+ },
692
+ "6": {
693
+ "name": "punctuation.section.array.end.twig"
694
+ },
695
+ "7": {
696
+ "name": "punctuation.section.array.begin.twig"
697
+ },
698
+ "8": {
699
+ "name": "variable.other.property.twig"
700
+ },
701
+ "9": {
702
+ "name": "punctuation.section.array.end.twig"
703
+ }
704
+ },
705
+ "match": "(?x)\n (?<=[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]])\n (?:\n (\\[)('[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*')(\\])\n |(\\[)(\"[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*\")(\\])\n |(\\[)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\])\n )\n "
706
+ }
707
+ ]
708
+ },
709
+ "twig-strings": {
710
+ "patterns": [
711
+ {
712
+ "begin": "(?:(?<!\\\\)|(?<=\\\\\\\\))'",
713
+ "beginCaptures": {
714
+ "0": {
715
+ "name": "punctuation.definition.string.begin.twig"
716
+ }
717
+ },
718
+ "end": "(?:(?<!\\\\)|(?<=\\\\\\\\))'",
719
+ "endCaptures": {
720
+ "0": {
721
+ "name": "punctuation.definition.string.end.twig"
722
+ }
723
+ },
724
+ "name": "string.quoted.single.twig"
725
+ },
726
+ {
727
+ "begin": "(?:(?<!\\\\)|(?<=\\\\\\\\))\"",
728
+ "beginCaptures": {
729
+ "0": {
730
+ "name": "punctuation.definition.string.begin.twig"
731
+ }
732
+ },
733
+ "end": "(?:(?<!\\\\)|(?<=\\\\\\\\))\"",
734
+ "endCaptures": {
735
+ "0": {
736
+ "name": "punctuation.definition.string.end.twig"
737
+ }
738
+ },
739
+ "name": "string.quoted.double.twig"
740
+ }
741
+ ]
742
+ },
743
+ "twig-arrays": {
744
+ "begin": "(?<=[\\s\\(\\{\\[:,])\\[",
745
+ "beginCaptures": {
746
+ "0": {
747
+ "name": "punctuation.section.array.begin.twig"
748
+ }
749
+ },
750
+ "end": "\\]",
751
+ "endCaptures": {
752
+ "0": {
753
+ "name": "punctuation.section.array.end.twig"
754
+ }
755
+ },
756
+ "patterns": [
757
+ {
758
+ "include": "#twig-arrays"
759
+ },
760
+ {
761
+ "include": "#twig-hashes"
762
+ },
763
+ {
764
+ "include": "#twig-constants"
765
+ },
766
+ {
767
+ "include": "#twig-strings"
768
+ },
769
+ {
770
+ "include": "#twig-functions-warg"
771
+ },
772
+ {
773
+ "include": "#twig-functions"
774
+ },
775
+ {
776
+ "include": "#twig-macros"
777
+ },
778
+ {
779
+ "include": "#twig-objects"
780
+ },
781
+ {
782
+ "include": "#twig-properties"
783
+ },
784
+ {
785
+ "include": "#twig-filters-warg"
786
+ },
787
+ {
788
+ "include": "#twig-filters"
789
+ },
790
+ {
791
+ "include": "#twig-filters-warg-ud"
792
+ },
793
+ {
794
+ "include": "#twig-filters-ud"
795
+ },
796
+ {
797
+ "match": ",",
798
+ "name": "punctuation.separator.object.twig"
799
+ }
800
+ ],
801
+ "name": "meta.array.twig"
802
+ },
803
+ "twig-hashes": {
804
+ "begin": "(?<=[\\s\\(\\{\\[:,])\\{",
805
+ "beginCaptures": {
806
+ "0": {
807
+ "name": "punctuation.section.hash.begin.twig"
808
+ }
809
+ },
810
+ "end": "\\}",
811
+ "endCaptures": {
812
+ "0": {
813
+ "name": "punctuation.section.hash.end.twig"
814
+ }
815
+ },
816
+ "patterns": [
817
+ {
818
+ "include": "#twig-hashes"
819
+ },
820
+ {
821
+ "include": "#twig-arrays"
822
+ },
823
+ {
824
+ "include": "#twig-constants"
825
+ },
826
+ {
827
+ "include": "#twig-strings"
828
+ },
829
+ {
830
+ "include": "#twig-functions-warg"
831
+ },
832
+ {
833
+ "include": "#twig-functions"
834
+ },
835
+ {
836
+ "include": "#twig-macros"
837
+ },
838
+ {
839
+ "include": "#twig-objects"
840
+ },
841
+ {
842
+ "include": "#twig-properties"
843
+ },
844
+ {
845
+ "include": "#twig-filters-warg"
846
+ },
847
+ {
848
+ "include": "#twig-filters"
849
+ },
850
+ {
851
+ "include": "#twig-filters-warg-ud"
852
+ },
853
+ {
854
+ "include": "#twig-filters-ud"
855
+ },
856
+ {
857
+ "match": ":",
858
+ "name": "punctuation.separator.key-value.twig"
859
+ },
860
+ {
861
+ "match": ",",
862
+ "name": "punctuation.separator.object.twig"
863
+ }
864
+ ],
865
+ "name": "meta.hash.twig"
866
+ },
867
+ "twig-keywords": {
868
+ "match": "(?<=\\s)((?:end)?(?:autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)|as|do|else|elseif|extends|flush|from|ignore missing|import|include|only|use|with)(?=\\s)",
869
+ "name": "keyword.control.twig"
870
+ },
871
+ "twig-functions-warg": {
872
+ "begin": "(?<=[\\s\\(\\[\\{:,])(attribute|block|constant|cycle|date|divisible by|dump|include|max|min|parent|random|range|same as|source|template_from_string)(\\()",
873
+ "beginCaptures": {
874
+ "1": {
875
+ "name": "support.function.twig"
876
+ },
877
+ "2": {
878
+ "name": "punctuation.definition.parameters.begin.twig"
879
+ }
880
+ },
881
+ "end": "\\)",
882
+ "endCaptures": {
883
+ "0": {
884
+ "name": "punctuation.definition.parameters.end.twig"
885
+ }
886
+ },
887
+ "patterns": [
888
+ {
889
+ "include": "#twig-constants"
890
+ },
891
+ {
892
+ "include": "#twig-functions-warg"
893
+ },
894
+ {
895
+ "include": "#twig-functions"
896
+ },
897
+ {
898
+ "include": "#twig-macros"
899
+ },
900
+ {
901
+ "include": "#twig-objects"
902
+ },
903
+ {
904
+ "include": "#twig-properties"
905
+ },
906
+ {
907
+ "include": "#twig-filters-warg"
908
+ },
909
+ {
910
+ "include": "#twig-filters"
911
+ },
912
+ {
913
+ "include": "#twig-filters-warg-ud"
914
+ },
915
+ {
916
+ "include": "#twig-filters-ud"
917
+ },
918
+ {
919
+ "include": "#twig-strings"
920
+ },
921
+ {
922
+ "include": "#twig-arrays"
923
+ }
924
+ ],
925
+ "contentName": "meta.function.arguments.twig"
926
+ },
927
+ "twig-functions": {
928
+ "captures": {
929
+ "1": {
930
+ "name": "support.function.twig"
931
+ }
932
+ },
933
+ "match": "(?<=is\\s)(defined|empty|even|iterable|odd)"
934
+ },
935
+ "twig-macros": {
936
+ "begin": "(?x)\n (?<=[\\s\\(\\[\\{:,])\n ([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n (?:\n (\\.)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n )?\n (\\()\n ",
937
+ "beginCaptures": {
938
+ "1": {
939
+ "name": "meta.function-call.twig"
940
+ },
941
+ "2": {
942
+ "name": "punctuation.separator.property.twig"
943
+ },
944
+ "3": {
945
+ "name": "variable.other.property.twig"
946
+ },
947
+ "4": {
948
+ "name": "punctuation.definition.parameters.begin.twig"
949
+ }
950
+ },
951
+ "end": "\\)",
952
+ "endCaptures": {
953
+ "0": {
954
+ "name": "punctuation.definition.parameters.end.twig"
955
+ }
956
+ },
957
+ "patterns": [
958
+ {
959
+ "include": "#twig-constants"
960
+ },
961
+ {
962
+ "include": "#twig-operators"
963
+ },
964
+ {
965
+ "include": "#twig-functions-warg"
966
+ },
967
+ {
968
+ "include": "#twig-functions"
969
+ },
970
+ {
971
+ "include": "#twig-macros"
972
+ },
973
+ {
974
+ "include": "#twig-objects"
975
+ },
976
+ {
977
+ "include": "#twig-properties"
978
+ },
979
+ {
980
+ "include": "#twig-filters-warg"
981
+ },
982
+ {
983
+ "include": "#twig-filters"
984
+ },
985
+ {
986
+ "include": "#twig-filters-warg-ud"
987
+ },
988
+ {
989
+ "include": "#twig-filters-ud"
990
+ },
991
+ {
992
+ "include": "#twig-strings"
993
+ },
994
+ {
995
+ "include": "#twig-arrays"
996
+ },
997
+ {
998
+ "include": "#twig-hashes"
999
+ }
1000
+ ],
1001
+ "contentName": "meta.function.arguments.twig"
1002
+ },
1003
+ "twig-filters-warg": {
1004
+ "begin": "(?<=(?:[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]\\)\\'\\\"]\\|)|\\{%\\sfilter\\s)(batch|convert_encoding|date|date_modify|default|e(?:scape)?|format|join|merge|number_format|replace|round|slice|split|trim)(\\()",
1005
+ "beginCaptures": {
1006
+ "1": {
1007
+ "name": "support.function.twig"
1008
+ },
1009
+ "2": {
1010
+ "name": "punctuation.definition.parameters.begin.twig"
1011
+ }
1012
+ },
1013
+ "end": "\\)",
1014
+ "endCaptures": {
1015
+ "0": {
1016
+ "name": "punctuation.definition.parameters.end.twig"
1017
+ }
1018
+ },
1019
+ "patterns": [
1020
+ {
1021
+ "include": "#twig-constants"
1022
+ },
1023
+ {
1024
+ "include": "#twig-functions-warg"
1025
+ },
1026
+ {
1027
+ "include": "#twig-functions"
1028
+ },
1029
+ {
1030
+ "include": "#twig-macros"
1031
+ },
1032
+ {
1033
+ "include": "#twig-objects"
1034
+ },
1035
+ {
1036
+ "include": "#twig-properties"
1037
+ },
1038
+ {
1039
+ "include": "#twig-filters-warg"
1040
+ },
1041
+ {
1042
+ "include": "#twig-filters"
1043
+ },
1044
+ {
1045
+ "include": "#twig-filters-warg-ud"
1046
+ },
1047
+ {
1048
+ "include": "#twig-filters-ud"
1049
+ },
1050
+ {
1051
+ "include": "#twig-strings"
1052
+ },
1053
+ {
1054
+ "include": "#twig-arrays"
1055
+ },
1056
+ {
1057
+ "include": "#twig-hashes"
1058
+ }
1059
+ ],
1060
+ "contentName": "meta.function.arguments.twig"
1061
+ },
1062
+ "twig-filters": {
1063
+ "captures": {
1064
+ "1": {
1065
+ "name": "support.function.twig"
1066
+ }
1067
+ },
1068
+ "match": "(?<=(?:[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]\\)\\'\\\"]\\|)|\\{%\\sfilter\\s)(abs|capitalize|e(?:scape)?|first|join|(?:json|url)_encode|keys|last|length|lower|nl2br|number_format|raw|reverse|round|sort|striptags|title|trim|upper)(?=[\\s\\|\\]\\}\\):,]|\\.\\.|\\*\\*)"
1069
+ },
1070
+ "twig-filters-warg-ud": {
1071
+ "begin": "(?<=(?:[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]\\)\\'\\\"]\\|)|\\{%\\sfilter\\s)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\()",
1072
+ "beginCaptures": {
1073
+ "1": {
1074
+ "name": "meta.function-call.other.twig"
1075
+ },
1076
+ "2": {
1077
+ "name": "punctuation.definition.parameters.begin.twig"
1078
+ }
1079
+ },
1080
+ "end": "\\)",
1081
+ "endCaptures": {
1082
+ "0": {
1083
+ "name": "punctuation.definition.parameters.end.twig"
1084
+ }
1085
+ },
1086
+ "patterns": [
1087
+ {
1088
+ "include": "#twig-constants"
1089
+ },
1090
+ {
1091
+ "include": "#twig-functions-warg"
1092
+ },
1093
+ {
1094
+ "include": "#twig-functions"
1095
+ },
1096
+ {
1097
+ "include": "#twig-macros"
1098
+ },
1099
+ {
1100
+ "include": "#twig-objects"
1101
+ },
1102
+ {
1103
+ "include": "#twig-properties"
1104
+ },
1105
+ {
1106
+ "include": "#twig-filters-warg"
1107
+ },
1108
+ {
1109
+ "include": "#twig-filters"
1110
+ },
1111
+ {
1112
+ "include": "#twig-filters-warg-ud"
1113
+ },
1114
+ {
1115
+ "include": "#twig-filters-ud"
1116
+ },
1117
+ {
1118
+ "include": "#twig-strings"
1119
+ },
1120
+ {
1121
+ "include": "#twig-arrays"
1122
+ },
1123
+ {
1124
+ "include": "#twig-hashes"
1125
+ }
1126
+ ],
1127
+ "contentName": "meta.function.arguments.twig"
1128
+ },
1129
+ "twig-filters-ud": {
1130
+ "captures": {
1131
+ "1": {
1132
+ "name": "meta.function-call.other.twig"
1133
+ }
1134
+ },
1135
+ "match": "(?<=(?:[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]\\)\\'\\\"]\\|)|\\{%\\sfilter\\s)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)"
1136
+ },
1137
+ "php": {
1138
+ "begin": "(?=(^\\s*)?<\\?)",
1139
+ "end": "(?!(^\\s*)?<\\?)",
1140
+ "patterns": [
1141
+ {
1142
+ "include": "source.php"
1143
+ }
1144
+ ]
1145
+ },
1146
+ "python": {
1147
+ "begin": "(?:^\\s*)<\\?python(?!.*\\?>)",
1148
+ "end": "\\?>(?:\\s*$\\n)?",
1149
+ "name": "source.python.embedded.html",
1150
+ "patterns": [
1151
+ {
1152
+ "include": "source.python"
1153
+ }
1154
+ ]
1155
+ },
1156
+ "ruby": {
1157
+ "patterns": [
1158
+ {
1159
+ "begin": "<%+#",
1160
+ "captures": {
1161
+ "0": {
1162
+ "name": "punctuation.definition.comment.erb"
1163
+ }
1164
+ },
1165
+ "end": "%>",
1166
+ "name": "comment.block.erb"
1167
+ },
1168
+ {
1169
+ "begin": "<%+(?!>)=?",
1170
+ "captures": {
1171
+ "0": {
1172
+ "name": "punctuation.section.embedded.ruby"
1173
+ }
1174
+ },
1175
+ "end": "-?%>",
1176
+ "name": "source.ruby.embedded.html",
1177
+ "patterns": [
1178
+ {
1179
+ "captures": {
1180
+ "1": {
1181
+ "name": "punctuation.definition.comment.ruby"
1182
+ }
1183
+ },
1184
+ "match": "(#).*?(?=-?%>)",
1185
+ "name": "comment.line.number-sign.ruby"
1186
+ },
1187
+ {
1188
+ "include": "source.ruby"
1189
+ }
1190
+ ]
1191
+ },
1192
+ {
1193
+ "begin": "<\\?r(?!>)=?",
1194
+ "captures": {
1195
+ "0": {
1196
+ "name": "punctuation.section.embedded.ruby.nitro"
1197
+ }
1198
+ },
1199
+ "end": "-?\\?>",
1200
+ "name": "source.ruby.nitro.embedded.html",
1201
+ "patterns": [
1202
+ {
1203
+ "captures": {
1204
+ "1": {
1205
+ "name": "punctuation.definition.comment.ruby.nitro"
1206
+ }
1207
+ },
1208
+ "match": "(#).*?(?=-?\\?>)",
1209
+ "name": "comment.line.number-sign.ruby.nitro"
1210
+ },
1211
+ {
1212
+ "include": "source.ruby"
1213
+ }
1214
+ ]
1215
+ }
1216
+ ]
1217
+ },
1218
+ "string-double-quoted": {
1219
+ "begin": "\"",
1220
+ "beginCaptures": {
1221
+ "0": {
1222
+ "name": "punctuation.definition.string.begin.html"
1223
+ }
1224
+ },
1225
+ "end": "\"",
1226
+ "endCaptures": {
1227
+ "0": {
1228
+ "name": "punctuation.definition.string.end.html"
1229
+ }
1230
+ },
1231
+ "name": "string.quoted.double.html",
1232
+ "patterns": [
1233
+ {
1234
+ "include": "#embedded-code"
1235
+ },
1236
+ {
1237
+ "include": "#entities"
1238
+ }
1239
+ ]
1240
+ },
1241
+ "string-single-quoted": {
1242
+ "begin": "'",
1243
+ "beginCaptures": {
1244
+ "0": {
1245
+ "name": "punctuation.definition.string.begin.html"
1246
+ }
1247
+ },
1248
+ "end": "'",
1249
+ "endCaptures": {
1250
+ "0": {
1251
+ "name": "punctuation.definition.string.end.html"
1252
+ }
1253
+ },
1254
+ "name": "string.quoted.single.html",
1255
+ "patterns": [
1256
+ {
1257
+ "include": "#embedded-code"
1258
+ },
1259
+ {
1260
+ "include": "#entities"
1261
+ }
1262
+ ]
1263
+ },
1264
+ "tag-generic-attribute": {
1265
+ "match": "\\b([a-zA-Z\\-:]+)",
1266
+ "name": "entity.other.attribute-name.html"
1267
+ },
1268
+ "tag-id-attribute": {
1269
+ "begin": "\\b(id)\\b\\s*(=)",
1270
+ "captures": {
1271
+ "1": {
1272
+ "name": "entity.other.attribute-name.id.html"
1273
+ },
1274
+ "2": {
1275
+ "name": "punctuation.separator.key-value.html"
1276
+ }
1277
+ },
1278
+ "end": "(?<='|\")",
1279
+ "name": "meta.attribute-with-value.id.html",
1280
+ "patterns": [
1281
+ {
1282
+ "begin": "\"",
1283
+ "beginCaptures": {
1284
+ "0": {
1285
+ "name": "punctuation.definition.string.begin.html"
1286
+ }
1287
+ },
1288
+ "contentName": "meta.toc-list.id.html",
1289
+ "end": "\"",
1290
+ "endCaptures": {
1291
+ "0": {
1292
+ "name": "punctuation.definition.string.end.html"
1293
+ }
1294
+ },
1295
+ "name": "string.quoted.double.html",
1296
+ "patterns": [
1297
+ {
1298
+ "include": "#embedded-code"
1299
+ },
1300
+ {
1301
+ "include": "#entities"
1302
+ }
1303
+ ]
1304
+ },
1305
+ {
1306
+ "begin": "'",
1307
+ "beginCaptures": {
1308
+ "0": {
1309
+ "name": "punctuation.definition.string.begin.html"
1310
+ }
1311
+ },
1312
+ "contentName": "meta.toc-list.id.html",
1313
+ "end": "'",
1314
+ "endCaptures": {
1315
+ "0": {
1316
+ "name": "punctuation.definition.string.end.html"
1317
+ }
1318
+ },
1319
+ "name": "string.quoted.single.html",
1320
+ "patterns": [
1321
+ {
1322
+ "include": "#embedded-code"
1323
+ },
1324
+ {
1325
+ "include": "#entities"
1326
+ }
1327
+ ]
1328
+ }
1329
+ ]
1330
+ },
1331
+ "tag-stuff": {
1332
+ "patterns": [
1333
+ {
1334
+ "include": "#tag-id-attribute"
1335
+ },
1336
+ {
1337
+ "include": "#tag-generic-attribute"
1338
+ },
1339
+ {
1340
+ "include": "#string-double-quoted"
1341
+ },
1342
+ {
1343
+ "include": "#string-single-quoted"
1344
+ },
1345
+ {
1346
+ "include": "#embedded-code"
1347
+ }
1348
+ ]
1349
+ }
1350
+ },
1351
+ "scopeName": "text.html.twig",
1352
+ "uuid": "C220B028-86FF-44CB-8A59-27937FC83730"
1353
+ }