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,310 @@
1
+ {
2
+ "fileTypes": [
3
+ "p6",
4
+ "pl6",
5
+ "pm6",
6
+ "nqp"
7
+ ],
8
+ "firstLineMatch": "(^#!.*\\bperl6\\b)|use\\s+v6",
9
+ "keyEquivalent": "^~P",
10
+ "name": "Perl 6",
11
+ "patterns": [
12
+ {
13
+ "begin": "^=begin",
14
+ "end": "^=end",
15
+ "name": "comment.block.perl"
16
+ },
17
+ {
18
+ "begin": "(^[ \\t]+)?(?=#)",
19
+ "beginCaptures": {
20
+ "1": {
21
+ "name": "punctuation.whitespace.comment.leading.perl"
22
+ }
23
+ },
24
+ "end": "(?!\\G)",
25
+ "patterns": [
26
+ {
27
+ "begin": "#",
28
+ "beginCaptures": {
29
+ "0": {
30
+ "name": "punctuation.definition.comment.perl"
31
+ }
32
+ },
33
+ "end": "\\n",
34
+ "name": "comment.line.number-sign.perl"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "begin": "'",
40
+ "beginCaptures": {
41
+ "0": {
42
+ "name": "punctuation.definition.string.begin.perl"
43
+ }
44
+ },
45
+ "end": "'",
46
+ "endCaptures": {
47
+ "0": {
48
+ "name": "punctuation.definition.string.end.perl"
49
+ }
50
+ },
51
+ "name": "string.quoted.single.perl",
52
+ "patterns": [
53
+ {
54
+ "match": "\\\\['\\\\]",
55
+ "name": "constant.character.escape.perl"
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "begin": "\"",
61
+ "beginCaptures": {
62
+ "0": {
63
+ "name": "punctuation.definition.string.begin.perl"
64
+ }
65
+ },
66
+ "end": "\"",
67
+ "endCaptures": {
68
+ "0": {
69
+ "name": "punctuation.definition.string.end.perl"
70
+ }
71
+ },
72
+ "name": "string.quoted.double.perl",
73
+ "patterns": [
74
+ {
75
+ "match": "\\\\[abtnfre\"\\\\]",
76
+ "name": "constant.character.escape.perl"
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "begin": "q(q|to|heredoc)*\\s*:?(q|to|heredoc)*\\s*/(.+)/",
82
+ "end": "\\3",
83
+ "name": "string.quoted.single.heredoc.perl"
84
+ },
85
+ {
86
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*{{",
87
+ "end": "}}",
88
+ "name": "string.quoted.double.heredoc.brace.perl",
89
+ "patterns": [
90
+ {
91
+ "include": "#qq_brace_string_content"
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\\(\\(",
97
+ "end": "\\)\\)",
98
+ "name": "string.quoted.double.heredoc.paren.perl",
99
+ "patterns": [
100
+ {
101
+ "include": "#qq_paren_string_content"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\\[\\[",
107
+ "end": "\\]\\]",
108
+ "name": "string.quoted.double.heredoc.bracket.perl",
109
+ "patterns": [
110
+ {
111
+ "include": "#qq_bracket_string_content"
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*{",
117
+ "end": "}",
118
+ "name": "string.quoted.single.heredoc.brace.perl",
119
+ "patterns": [
120
+ {
121
+ "include": "#qq_brace_string_content"
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*/",
127
+ "end": "/",
128
+ "name": "string.quoted.single.heredoc.slash.perl",
129
+ "patterns": [
130
+ {
131
+ "include": "#qq_slash_string_content"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\\(",
137
+ "end": "\\)",
138
+ "name": "string.quoted.single.heredoc.paren.perl",
139
+ "patterns": [
140
+ {
141
+ "include": "#qq_paren_string_content"
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\\[",
147
+ "end": "\\]",
148
+ "name": "string.quoted.single.heredoc.bracket.perl",
149
+ "patterns": [
150
+ {
151
+ "include": "#qq_bracket_string_content"
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*'",
157
+ "end": "'",
158
+ "name": "string.quoted.single.heredoc.single.perl",
159
+ "patterns": [
160
+ {
161
+ "include": "#qq_single_string_content"
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "begin": "(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\s*\"",
167
+ "end": "\"",
168
+ "name": "string.quoted.single.heredoc.double.perl",
169
+ "patterns": [
170
+ {
171
+ "include": "#qq_double_string_content"
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "match": "\\b\\$\\w+\\b",
177
+ "name": "variable.other.perl"
178
+ },
179
+ {
180
+ "match": "\\b(macro|sub|submethod|method|multi|proto|only|rule|token|regex|category)\\b",
181
+ "name": "storage.type.declare.routine.perl"
182
+ },
183
+ {
184
+ "match": "\\b(module|class|role|package|enum|grammar|slang|subset)\\b",
185
+ "name": "keyword.other.module.perl"
186
+ },
187
+ {
188
+ "match": "\\b(self)\\b",
189
+ "name": "variable.language.perl"
190
+ },
191
+ {
192
+ "match": "\\b(use|require)\\b",
193
+ "name": "keyword.other.include.perl"
194
+ },
195
+ {
196
+ "match": "\\b(if|else|elsif|unless)\\b",
197
+ "name": "keyword.control.conditional.perl"
198
+ },
199
+ {
200
+ "match": "\\b(let|my|our|state|temp|has|constant)\\b",
201
+ "name": "storage.type.variable.perl"
202
+ },
203
+ {
204
+ "match": "\\b(for|loop|repeat|while|until|gather|given)\\b",
205
+ "name": "keyword.control.repeat.perl"
206
+ },
207
+ {
208
+ "match": "\\b(take|do|when|next|last|redo|return|contend|maybe|defer|default|exit|make|continue|break|goto|leave|async|lift)\\b",
209
+ "name": "keyword.control.flowcontrol.perl"
210
+ },
211
+ {
212
+ "match": "\\b(is|as|but|trusts|of|returns|handles|where|augment|supersede)\\b",
213
+ "name": "storage.modifier.type.constraints.perl"
214
+ },
215
+ {
216
+ "match": "\\b(BEGIN|CHECK|INIT|START|FIRST|ENTER|LEAVE|KEEP|UNDO|NEXT|LAST|PRE|POST|END|CATCH|CONTROL|TEMP)\\b",
217
+ "name": "meta.function.perl"
218
+ },
219
+ {
220
+ "match": "\\b(die|fail|try|warn)\\b",
221
+ "name": "keyword.control.control-handlers.perl"
222
+ },
223
+ {
224
+ "match": "\\b(prec|irs|ofs|ors|export|deep|binary|unary|reparsed|rw|parsed|cached|readonly|defequiv|will|ref|copy|inline|tighter|looser|equiv|assoc|required)\\b",
225
+ "name": "storage.modifier.perl"
226
+ },
227
+ {
228
+ "match": "\\b(NaN|Inf)\\b",
229
+ "name": "constant.numeric.perl"
230
+ },
231
+ {
232
+ "match": "\\b(oo|fatal)\\b",
233
+ "name": "keyword.other.pragma.perl"
234
+ },
235
+ {
236
+ "match": "\\b(Object|Any|Junction|Whatever|Capture|MatchSignature|Proxy|Matcher|Package|Module|ClassGrammar|Scalar|Array|Hash|KeyHash|KeySet|KeyBagPair|List|Seq|Range|Set|Bag|Mapping|Void|UndefFailure|Exception|Code|Block|Routine|Sub|MacroMethod|Submethod|Regex|Str|str|Blob|Char|ByteCodepoint|Grapheme|StrPos|StrLen|Version|NumComplex|num|complex|Bit|bit|bool|True|FalseIncreasing|Decreasing|Ordered|Callable|AnyCharPositional|Associative|Ordering|KeyExtractorComparator|OrderingPair|IO|KitchenSink|RoleInt|int|int1|int2|int4|int8|int16|int32|int64Rat|rat|rat1|rat2|rat4|rat8|rat16|rat32|rat64Buf|buf|buf1|buf2|buf4|buf8|buf16|buf32|buf64UInt|uint|uint1|uint2|uint4|uint8|uint16|uint32uint64|Abstraction|utf8|utf16|utf32)\\b",
237
+ "name": "support.type.perl"
238
+ },
239
+ {
240
+ "match": "\\b(div|x|xx|mod|also|leg|cmp|before|after|eq|ne|le|lt|gt|ge|eqv|ff|fff|and|andthen|Z|X|or|xor|orelse|extra|m|mm|rx|s|tr)\\b",
241
+ "name": "keyword.operator.perl"
242
+ },
243
+ {
244
+ "match": "(\\$|@|%|&)(\\*|:|!|\\^|~|=|\\?|(<(?=.+>)))?([A-Za-z_])([A-Za-z0-9_]|[\\-'][A-Za-z0-9_])*",
245
+ "name": "variable.other.basic.perl"
246
+ },
247
+ {
248
+ "match": "\\b(eager|hyper|substr|index|rindex|grep|map|sort|join|lines|hints|chmod|split|reduce|min|max|reverse|truncate|zip|cat|roundrobin|classify|first|sum|keys|values|pairs|defined|delete|exists|elems|end|kv|any|all|one|wrap|shape|key|value|name|pop|push|shift|splice|unshift|floor|ceiling|abs|exp|log|log10|rand|sign|sqrt|sin|cos|tan|round|strand|roots|cis|unpolar|polar|atan2|pick|chop|p5chop|chomp|p5chomp|lc|lcfirst|uc|ucfirst|capitalize|normalize|pack|unpack|quotemeta|comb|samecase|sameaccent|chars|nfd|nfc|nfkd|nfkc|printf|sprintf|caller|evalfile|run|runinstead|nothing|want|bless|chr|ord|gmtime|time|eof|localtime|gethost|getpw|chroot|getlogin|getpeername|kill|fork|wait|perl|graphs|codes|bytes|clone|print|open|read|write|readline|say|seek|close|opendir|readdir|slurp|spurt|shell|run|pos|fmt|vec|link|unlink|symlink|uniq|pair|asin|atan|sec|cosec|cotan|asec|acosec|acotan|sinh|cosh|tanh|asinh|done|acos|acosh|atanh|sech|cosech|cotanh|sech|acosech|acotanh|asech|ok|nok|plan_ok|dies_ok|lives_ok|skip|todo|pass|flunk|force_todo|use_ok|isa_ok|diag|is_deeply|isnt|like|skip_rest|unlike|cmp_ok|eval_dies_ok|nok_error|eval_lives_ok|approx|is_approx|throws_ok|version_lt|plan|EVAL|succ|pred|times|nonce|once|signature|new|connect|operator|undef|undefine|sleep|from|to|infix|postfix|prefix|circumfix|postcircumfix|minmax|lazy|count|unwrap|getc|pi|e|context|void|quasi|body|each|contains|rewinddir|subst|can|isa|flush|arity|assuming|rewind|callwith|callsame|nextwith|nextsame|attr|eval_elsewhere|none|srand|trim|trim_start|trim_end|lastcall|WHAT|WHERE|HOW|WHICH|VAR|WHO|WHENCE|ACCEPTS|REJECTS|not|true|iterator|by|re|im|invert|flip|gist|flat|tree|is-prime|throws_like|trans)\\b",
249
+ "name": "support.function.perl"
250
+ }
251
+ ],
252
+ "repository": {
253
+ "qq_brace_string_content": {
254
+ "begin": "{",
255
+ "end": "}",
256
+ "patterns": [
257
+ {
258
+ "include": "#qq_brace_string_content"
259
+ }
260
+ ]
261
+ },
262
+ "qq_bracket_string_content": {
263
+ "begin": "\\[",
264
+ "end": "\\]",
265
+ "patterns": [
266
+ {
267
+ "include": "#qq_bracket_string_content"
268
+ }
269
+ ]
270
+ },
271
+ "qq_double_string_content": {
272
+ "begin": "\"",
273
+ "end": "\"",
274
+ "patterns": [
275
+ {
276
+ "include": "#qq_double_string_content"
277
+ }
278
+ ]
279
+ },
280
+ "qq_paren_string_content": {
281
+ "begin": "\\(",
282
+ "end": "\\)",
283
+ "patterns": [
284
+ {
285
+ "include": "#qq_paren_string_content"
286
+ }
287
+ ]
288
+ },
289
+ "qq_single_string_content": {
290
+ "begin": "'",
291
+ "end": "'",
292
+ "patterns": [
293
+ {
294
+ "include": "#qq_single_string_content"
295
+ }
296
+ ]
297
+ },
298
+ "qq_slash_string_content": {
299
+ "begin": "\\\\/",
300
+ "end": "\\\\/",
301
+ "patterns": [
302
+ {
303
+ "include": "#qq_slash_string_content"
304
+ }
305
+ ]
306
+ }
307
+ },
308
+ "scopeName": "source.perl.6",
309
+ "uuid": "E685440C-0E20-4424-9693-864D5240A269"
310
+ }
@@ -0,0 +1,2413 @@
1
+ {
2
+ "comment": "\n\tTODO:\tInclude RegExp syntax\n",
3
+ "fileTypes": [
4
+ "pl",
5
+ "pm",
6
+ "pod",
7
+ "t",
8
+ "PL",
9
+ "psgi"
10
+ ],
11
+ "firstLineMatch": "^#!.*\\bperl\\b",
12
+ "keyEquivalent": "^~P",
13
+ "name": "Perl",
14
+ "patterns": [
15
+ {
16
+ "include": "#line_comment"
17
+ },
18
+ {
19
+ "begin": "^=",
20
+ "captures": {
21
+ "0": {
22
+ "name": "punctuation.definition.comment.perl"
23
+ }
24
+ },
25
+ "end": "^=cut",
26
+ "name": "comment.block.documentation.perl"
27
+ },
28
+ {
29
+ "include": "#variable"
30
+ },
31
+ {
32
+ "applyEndPatternLast": 1,
33
+ "begin": "\\b(?=qr\\s*[^\\s\\w])",
34
+ "comment": "string.regexp.compile.perl",
35
+ "end": "((([egimosxradlupc]*)))(?=(\\s+\\S|\\s*[;\\,\\#\\{\\}\\)]|$))",
36
+ "endCaptures": {
37
+ "1": {
38
+ "name": "string.regexp.compile.perl"
39
+ },
40
+ "2": {
41
+ "name": "punctuation.definition.string.perl"
42
+ },
43
+ "3": {
44
+ "name": "keyword.control.regexp-option.perl"
45
+ }
46
+ },
47
+ "patterns": [
48
+ {
49
+ "begin": "(qr)\\s*\\{",
50
+ "captures": {
51
+ "0": {
52
+ "name": "punctuation.definition.string.perl"
53
+ },
54
+ "1": {
55
+ "name": "support.function.perl"
56
+ }
57
+ },
58
+ "end": "\\}",
59
+ "name": "string.regexp.compile.nested_braces.perl",
60
+ "patterns": [
61
+ {
62
+ "include": "#escaped_char"
63
+ },
64
+ {
65
+ "include": "#variable"
66
+ },
67
+ {
68
+ "include": "#nested_braces_interpolated"
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "begin": "(qr)\\s*\\[",
74
+ "captures": {
75
+ "0": {
76
+ "name": "punctuation.definition.string.perl"
77
+ },
78
+ "1": {
79
+ "name": "support.function.perl"
80
+ }
81
+ },
82
+ "end": "\\]",
83
+ "name": "string.regexp.compile.nested_brackets.perl",
84
+ "patterns": [
85
+ {
86
+ "include": "#escaped_char"
87
+ },
88
+ {
89
+ "include": "#variable"
90
+ },
91
+ {
92
+ "include": "#nested_brackets_interpolated"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "begin": "(qr)\\s*<",
98
+ "captures": {
99
+ "0": {
100
+ "name": "punctuation.definition.string.perl"
101
+ },
102
+ "1": {
103
+ "name": "support.function.perl"
104
+ }
105
+ },
106
+ "end": ">",
107
+ "name": "string.regexp.compile.nested_ltgt.perl",
108
+ "patterns": [
109
+ {
110
+ "include": "#escaped_char"
111
+ },
112
+ {
113
+ "include": "#variable"
114
+ },
115
+ {
116
+ "include": "#nested_ltgt_interpolated"
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "begin": "(qr)\\s*\\(",
122
+ "captures": {
123
+ "0": {
124
+ "name": "punctuation.definition.string.perl"
125
+ },
126
+ "1": {
127
+ "name": "support.function.perl"
128
+ }
129
+ },
130
+ "end": "\\)",
131
+ "name": "string.regexp.compile.nested_parens.perl",
132
+ "patterns": [
133
+ {
134
+ "comment": "This is to prevent thinks like qr/foo$/ to treat $/ as a variable",
135
+ "match": "\\$(?=[^\\s\\w\\\\'\\{\\[\\(\\<])"
136
+ },
137
+ {
138
+ "include": "#escaped_char"
139
+ },
140
+ {
141
+ "include": "#variable"
142
+ },
143
+ {
144
+ "include": "#nested_parens_interpolated"
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "begin": "(qr)\\s*'",
150
+ "captures": {
151
+ "0": {
152
+ "name": "punctuation.definition.string.perl"
153
+ },
154
+ "1": {
155
+ "name": "support.function.perl"
156
+ }
157
+ },
158
+ "end": "'",
159
+ "name": "string.regexp.compile.single-quote.perl",
160
+ "patterns": [
161
+ {
162
+ "include": "#escaped_char"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "begin": "(qr)\\s*([^\\s\\w'\\{\\[\\(\\<])",
168
+ "captures": {
169
+ "0": {
170
+ "name": "punctuation.definition.string.perl"
171
+ },
172
+ "1": {
173
+ "name": "support.function.perl"
174
+ }
175
+ },
176
+ "end": "\\2",
177
+ "name": "string.regexp.compile.simple-delimiter.perl",
178
+ "patterns": [
179
+ {
180
+ "comment": "This is to prevent thinks like qr/foo$/ to treat $/ as a variable",
181
+ "match": "\\$(?=[^\\s\\w'\\{\\[\\(\\<])",
182
+ "name": "keyword.control.anchor.perl"
183
+ },
184
+ {
185
+ "include": "#escaped_char"
186
+ },
187
+ {
188
+ "include": "#variable"
189
+ },
190
+ {
191
+ "include": "#nested_parens_interpolated"
192
+ }
193
+ ]
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "applyEndPatternLast": 1,
199
+ "begin": "\\b(?=m\\s*[^\\sa-zA-Z0-9])",
200
+ "comment": "string.regexp.find-m.perl",
201
+ "end": "((([egimosxradlupc]*)))(?=(\\s+\\S|\\s*[;\\,\\#\\{\\}\\)]|$))",
202
+ "endCaptures": {
203
+ "1": {
204
+ "name": "string.regexp.find-m.perl"
205
+ },
206
+ "2": {
207
+ "name": "punctuation.definition.string.perl"
208
+ },
209
+ "3": {
210
+ "name": "keyword.control.regexp-option.perl"
211
+ }
212
+ },
213
+ "patterns": [
214
+ {
215
+ "begin": "(m)\\s*\\{",
216
+ "captures": {
217
+ "0": {
218
+ "name": "punctuation.definition.string.perl"
219
+ },
220
+ "1": {
221
+ "name": "support.function.perl"
222
+ }
223
+ },
224
+ "end": "\\}",
225
+ "name": "string.regexp.find-m.nested_braces.perl",
226
+ "patterns": [
227
+ {
228
+ "include": "#escaped_char"
229
+ },
230
+ {
231
+ "include": "#variable"
232
+ },
233
+ {
234
+ "include": "#nested_braces_interpolated"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "begin": "(m)\\s*\\[",
240
+ "captures": {
241
+ "0": {
242
+ "name": "punctuation.definition.string.perl"
243
+ },
244
+ "1": {
245
+ "name": "support.function.perl"
246
+ }
247
+ },
248
+ "end": "\\]",
249
+ "name": "string.regexp.find-m.nested_brackets.perl",
250
+ "patterns": [
251
+ {
252
+ "include": "#escaped_char"
253
+ },
254
+ {
255
+ "include": "#variable"
256
+ },
257
+ {
258
+ "include": "#nested_brackets_interpolated"
259
+ }
260
+ ]
261
+ },
262
+ {
263
+ "begin": "(m)\\s*<",
264
+ "captures": {
265
+ "0": {
266
+ "name": "punctuation.definition.string.perl"
267
+ },
268
+ "1": {
269
+ "name": "support.function.perl"
270
+ }
271
+ },
272
+ "end": ">",
273
+ "name": "string.regexp.find-m.nested_ltgt.perl",
274
+ "patterns": [
275
+ {
276
+ "include": "#escaped_char"
277
+ },
278
+ {
279
+ "include": "#variable"
280
+ },
281
+ {
282
+ "include": "#nested_ltgt_interpolated"
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ "begin": "(m)\\s*\\(",
288
+ "captures": {
289
+ "0": {
290
+ "name": "punctuation.definition.string.perl"
291
+ },
292
+ "1": {
293
+ "name": "support.function.perl"
294
+ }
295
+ },
296
+ "end": "\\)",
297
+ "name": "string.regexp.find-m.nested_parens.perl",
298
+ "patterns": [
299
+ {
300
+ "include": "#escaped_char"
301
+ },
302
+ {
303
+ "include": "#variable"
304
+ },
305
+ {
306
+ "include": "#nested_parens_interpolated"
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "begin": "(m)\\s*'",
312
+ "captures": {
313
+ "0": {
314
+ "name": "punctuation.definition.string.perl"
315
+ },
316
+ "1": {
317
+ "name": "support.function.perl"
318
+ }
319
+ },
320
+ "end": "'",
321
+ "name": "string.regexp.find-m.single-quote.perl",
322
+ "patterns": [
323
+ {
324
+ "include": "#escaped_char"
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "begin": "(m)\\s*([^\\sa-zA-Z0-9'\\{\\[\\(\\<])",
330
+ "captures": {
331
+ "0": {
332
+ "name": "punctuation.definition.string.perl"
333
+ },
334
+ "1": {
335
+ "name": "support.function.perl"
336
+ }
337
+ },
338
+ "end": "\\2",
339
+ "name": "string.regexp.find-m.simple-delimiter.perl",
340
+ "patterns": [
341
+ {
342
+ "comment": "This is to prevent thinks like qr/foo$/ to treat $/ as a variable",
343
+ "match": "\\$(?=[^\\sa-zA-Z0-9'\\{\\[\\(\\<])",
344
+ "name": "keyword.control.anchor.perl"
345
+ },
346
+ {
347
+ "include": "#escaped_char"
348
+ },
349
+ {
350
+ "include": "#variable"
351
+ },
352
+ {
353
+ "begin": "\\[",
354
+ "beginCaptures": {
355
+ "1": {
356
+ "name": "punctuation.definition.character-class.begin.perl"
357
+ }
358
+ },
359
+ "end": "\\]",
360
+ "endCaptures": {
361
+ "1": {
362
+ "name": "punctuation.definition.character-class.end.perl"
363
+ }
364
+ },
365
+ "name": "constant.other.character-class.set.perl",
366
+ "patterns": [
367
+ {
368
+ "comment": "This is to prevent thinks like qr/foo$/ to treat $/ as a variable",
369
+ "match": "\\$(?=[^\\s\\w'\\{\\[\\(\\<])",
370
+ "name": "keyword.control.anchor.perl"
371
+ },
372
+ {
373
+ "include": "#escaped_char"
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "include": "#nested_parens_interpolated"
379
+ }
380
+ ]
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "applyEndPatternLast": 1,
386
+ "begin": "\\b(?=(?<!\\&)(s)(\\s+\\S|\\s*[;\\,\\#\\{\\}\\(\\)\\[<]|$))",
387
+ "comment": "string.regexp.replace.perl",
388
+ "end": "((([egimosxradlupc]*)))(?=(\\s+\\S|\\s*[;\\,\\#\\{\\}\\)\\]>]|$))",
389
+ "endCaptures": {
390
+ "1": {
391
+ "name": "string.regexp.replace.perl"
392
+ },
393
+ "2": {
394
+ "name": "punctuation.definition.string.perl"
395
+ },
396
+ "3": {
397
+ "name": "keyword.control.regexp-option.perl"
398
+ }
399
+ },
400
+ "patterns": [
401
+ {
402
+ "begin": "(s)\\s*\\{",
403
+ "captures": {
404
+ "0": {
405
+ "name": "punctuation.definition.string.perl"
406
+ },
407
+ "1": {
408
+ "name": "support.function.perl"
409
+ }
410
+ },
411
+ "end": "\\}",
412
+ "name": "string.regexp.nested_braces.perl",
413
+ "patterns": [
414
+ {
415
+ "include": "#escaped_char"
416
+ },
417
+ {
418
+ "include": "#nested_braces"
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "begin": "(s)\\s*\\[",
424
+ "captures": {
425
+ "0": {
426
+ "name": "punctuation.definition.string.perl"
427
+ },
428
+ "1": {
429
+ "name": "support.function.perl"
430
+ }
431
+ },
432
+ "end": "\\]",
433
+ "name": "string.regexp.nested_brackets.perl",
434
+ "patterns": [
435
+ {
436
+ "include": "#escaped_char"
437
+ },
438
+ {
439
+ "include": "#nested_brackets"
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "begin": "(s)\\s*<",
445
+ "captures": {
446
+ "0": {
447
+ "name": "punctuation.definition.string.perl"
448
+ },
449
+ "1": {
450
+ "name": "support.function.perl"
451
+ }
452
+ },
453
+ "end": ">",
454
+ "name": "string.regexp.nested_ltgt.perl",
455
+ "patterns": [
456
+ {
457
+ "include": "#escaped_char"
458
+ },
459
+ {
460
+ "include": "#nested_ltgt"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "begin": "(s)\\s*\\(",
466
+ "captures": {
467
+ "0": {
468
+ "name": "punctuation.definition.string.perl"
469
+ },
470
+ "1": {
471
+ "name": "support.function.perl"
472
+ }
473
+ },
474
+ "end": "\\)",
475
+ "name": "string.regexp.nested_parens.perl",
476
+ "patterns": [
477
+ {
478
+ "include": "#escaped_char"
479
+ },
480
+ {
481
+ "include": "#nested_parens"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "begin": "\\{",
487
+ "captures": {
488
+ "0": {
489
+ "name": "punctuation.definition.string.perl"
490
+ }
491
+ },
492
+ "end": "\\}",
493
+ "name": "string.regexp.format.nested_braces.perl",
494
+ "patterns": [
495
+ {
496
+ "include": "#escaped_char"
497
+ },
498
+ {
499
+ "include": "#variable"
500
+ },
501
+ {
502
+ "include": "#nested_braces_interpolated"
503
+ }
504
+ ]
505
+ },
506
+ {
507
+ "begin": "\\[",
508
+ "captures": {
509
+ "0": {
510
+ "name": "punctuation.definition.string.perl"
511
+ }
512
+ },
513
+ "end": "\\]",
514
+ "name": "string.regexp.format.nested_brackets.perl",
515
+ "patterns": [
516
+ {
517
+ "include": "#escaped_char"
518
+ },
519
+ {
520
+ "include": "#variable"
521
+ },
522
+ {
523
+ "include": "#nested_brackets_interpolated"
524
+ }
525
+ ]
526
+ },
527
+ {
528
+ "begin": "<",
529
+ "captures": {
530
+ "0": {
531
+ "name": "punctuation.definition.string.perl"
532
+ }
533
+ },
534
+ "end": ">",
535
+ "name": "string.regexp.format.nested_ltgt.perl",
536
+ "patterns": [
537
+ {
538
+ "include": "#escaped_char"
539
+ },
540
+ {
541
+ "include": "#variable"
542
+ },
543
+ {
544
+ "include": "#nested_ltgt_interpolated"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "begin": "\\(",
550
+ "captures": {
551
+ "0": {
552
+ "name": "punctuation.definition.string.perl"
553
+ }
554
+ },
555
+ "end": "\\)",
556
+ "name": "string.regexp.format.nested_parens.perl",
557
+ "patterns": [
558
+ {
559
+ "include": "#escaped_char"
560
+ },
561
+ {
562
+ "include": "#variable"
563
+ },
564
+ {
565
+ "include": "#nested_parens_interpolated"
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "begin": "'",
571
+ "captures": {
572
+ "0": {
573
+ "name": "punctuation.definition.string.perl"
574
+ }
575
+ },
576
+ "end": "'",
577
+ "name": "string.regexp.format.single_quote.perl",
578
+ "patterns": [
579
+ {
580
+ "match": "\\\\['\\\\]",
581
+ "name": "constant.character.escape.perl"
582
+ }
583
+ ]
584
+ },
585
+ {
586
+ "begin": "([^\\s\\w\\[({<;])",
587
+ "captures": {
588
+ "0": {
589
+ "name": "punctuation.definition.string.perl"
590
+ }
591
+ },
592
+ "end": "\\1",
593
+ "name": "string.regexp.format.simple_delimiter.perl",
594
+ "patterns": [
595
+ {
596
+ "include": "#escaped_char"
597
+ },
598
+ {
599
+ "include": "#variable"
600
+ }
601
+ ]
602
+ },
603
+ {
604
+ "match": "\\s+"
605
+ }
606
+ ]
607
+ },
608
+ {
609
+ "begin": "\\b(?=s([^\\sa-zA-Z0-9\\[({<]).*\\1([egimosxradlupc]*)([\\}\\)\\;\\,]|\\s+))",
610
+ "comment": "string.regexp.replaceXXX",
611
+ "end": "((([egimosxradlupc]*)))(?=([\\}\\)\\;\\,]|\\s+|$))",
612
+ "endCaptures": {
613
+ "1": {
614
+ "name": "string.regexp.replace.perl"
615
+ },
616
+ "2": {
617
+ "name": "punctuation.definition.string.perl"
618
+ },
619
+ "3": {
620
+ "name": "keyword.control.regexp-option.perl"
621
+ }
622
+ },
623
+ "patterns": [
624
+ {
625
+ "begin": "(s\\s*)([^\\sa-zA-Z0-9\\[({<])",
626
+ "captures": {
627
+ "0": {
628
+ "name": "punctuation.definition.string.perl"
629
+ },
630
+ "1": {
631
+ "name": "support.function.perl"
632
+ }
633
+ },
634
+ "end": "(?=\\2)",
635
+ "name": "string.regexp.replaceXXX.simple_delimiter.perl",
636
+ "patterns": [
637
+ {
638
+ "include": "#escaped_char"
639
+ }
640
+ ]
641
+ },
642
+ {
643
+ "begin": "'",
644
+ "captures": {
645
+ "0": {
646
+ "name": "punctuation.definition.string.perl"
647
+ }
648
+ },
649
+ "end": "'",
650
+ "name": "string.regexp.replaceXXX.format.single_quote.perl",
651
+ "patterns": [
652
+ {
653
+ "match": "\\\\['\\\\]",
654
+ "name": "constant.character.escape.perl.perl"
655
+ }
656
+ ]
657
+ },
658
+ {
659
+ "begin": "([^\\sa-zA-Z0-9\\[({<])",
660
+ "captures": {
661
+ "0": {
662
+ "name": "punctuation.definition.string.perl"
663
+ }
664
+ },
665
+ "end": "\\1",
666
+ "name": "string.regexp.replaceXXX.format.simple_delimiter.perl",
667
+ "patterns": [
668
+ {
669
+ "include": "#escaped_char"
670
+ },
671
+ {
672
+ "include": "#variable"
673
+ }
674
+ ]
675
+ }
676
+ ]
677
+ },
678
+ {
679
+ "begin": "\\b(?=(?<!\\\\)s\\s*([^\\s\\w\\[({<>]))",
680
+ "comment": "string.regexp.replace.extended",
681
+ "end": "\\2((([egimosradlupc]*x[egimosradlupc]*)))\\b",
682
+ "endCaptures": {
683
+ "1": {
684
+ "name": "string.regexp.replace.perl"
685
+ },
686
+ "2": {
687
+ "name": "punctuation.definition.string.perl"
688
+ },
689
+ "3": {
690
+ "name": "keyword.control.regexp-option.perl"
691
+ }
692
+ },
693
+ "patterns": [
694
+ {
695
+ "begin": "(s)\\s*(.)",
696
+ "captures": {
697
+ "0": {
698
+ "name": "punctuation.definition.string.perl"
699
+ },
700
+ "1": {
701
+ "name": "support.function.perl"
702
+ }
703
+ },
704
+ "end": "(?=\\2)",
705
+ "name": "string.regexp.replace.extended.simple_delimiter.perl",
706
+ "patterns": [
707
+ {
708
+ "include": "#escaped_char"
709
+ }
710
+ ]
711
+ },
712
+ {
713
+ "begin": "'",
714
+ "captures": {
715
+ "0": {
716
+ "name": "punctuation.definition.string.perl"
717
+ }
718
+ },
719
+ "end": "'(?=[egimosradlupc]*x[egimosradlupc]*)\\b",
720
+ "name": "string.regexp.replace.extended.simple_delimiter.perl",
721
+ "patterns": [
722
+ {
723
+ "include": "#escaped_char"
724
+ }
725
+ ]
726
+ },
727
+ {
728
+ "begin": "(.)",
729
+ "captures": {
730
+ "0": {
731
+ "name": "punctuation.definition.string.perl"
732
+ }
733
+ },
734
+ "end": "\\1(?=[egimosradlupc]*x[egimosradlupc]*)\\b",
735
+ "name": "string.regexp.replace.extended.simple_delimiter.perl",
736
+ "patterns": [
737
+ {
738
+ "include": "#escaped_char"
739
+ },
740
+ {
741
+ "include": "#variable"
742
+ }
743
+ ]
744
+ }
745
+ ]
746
+ },
747
+ {
748
+ "begin": "(?<=\\(|\\{|~|&)\\s*((\\/))",
749
+ "beginCaptures": {
750
+ "1": {
751
+ "name": "string.regexp.find.perl"
752
+ },
753
+ "2": {
754
+ "name": "punctuation.definition.string.perl"
755
+ }
756
+ },
757
+ "contentName": "string.regexp.find.perl",
758
+ "end": "((\\1([egimosxradlupc]*)))(?=(\\s+\\S|\\s*[;\\,\\#\\{\\}\\)]|$))",
759
+ "endCaptures": {
760
+ "1": {
761
+ "name": "string.regexp.find.perl"
762
+ },
763
+ "2": {
764
+ "name": "punctuation.definition.string.perl"
765
+ },
766
+ "3": {
767
+ "name": "keyword.control.regexp-option.perl"
768
+ }
769
+ },
770
+ "patterns": [
771
+ {
772
+ "comment": "This is to prevent thinks like /foo$/ to treat $/ as a variable",
773
+ "match": "\\$(?=\\/)",
774
+ "name": "keyword.control.anchor.perl"
775
+ },
776
+ {
777
+ "include": "#escaped_char"
778
+ },
779
+ {
780
+ "include": "#variable"
781
+ }
782
+ ]
783
+ },
784
+ {
785
+ "captures": {
786
+ "1": {
787
+ "name": "constant.other.key.perl"
788
+ }
789
+ },
790
+ "match": "\\b(\\w+)\\s*(?==>)"
791
+ },
792
+ {
793
+ "match": "(?<={)\\s*\\w+\\s*(?=})",
794
+ "name": "constant.other.bareword.perl"
795
+ },
796
+ {
797
+ "captures": {
798
+ "1": {
799
+ "name": "keyword.control.perl"
800
+ },
801
+ "2": {
802
+ "name": "entity.name.type.class.perl"
803
+ }
804
+ },
805
+ "match": "^\\s*(package)\\s+([^\\s;]+)",
806
+ "name": "meta.class.perl"
807
+ },
808
+ {
809
+ "captures": {
810
+ "1": {
811
+ "name": "storage.type.sub.perl"
812
+ },
813
+ "2": {
814
+ "name": "entity.name.function.perl"
815
+ },
816
+ "3": {
817
+ "name": "storage.type.method.perl"
818
+ }
819
+ },
820
+ "match": "\\b(sub)(?:\\s+([-a-zA-Z0-9_]+))?\\s*(?:\\([\\$\\@\\*;]*\\))?[^\\w\\{]",
821
+ "name": "meta.function.perl"
822
+ },
823
+ {
824
+ "captures": {
825
+ "1": {
826
+ "name": "entity.name.function.perl"
827
+ },
828
+ "2": {
829
+ "name": "punctuation.definition.parameters.perl"
830
+ },
831
+ "3": {
832
+ "name": "variable.parameter.function.perl"
833
+ }
834
+ },
835
+ "match": "^\\s*(BEGIN|UNITCHECK|CHECK|INIT|END|DESTROY)\\b",
836
+ "name": "meta.function.perl"
837
+ },
838
+ {
839
+ "begin": "^(?=(\\t| {4}))",
840
+ "end": "(?=[^\\t\\s])",
841
+ "name": "meta.leading-tabs",
842
+ "patterns": [
843
+ {
844
+ "captures": {
845
+ "1": {
846
+ "name": "meta.odd-tab"
847
+ },
848
+ "2": {
849
+ "name": "meta.even-tab"
850
+ }
851
+ },
852
+ "match": "(\\t| {4})(\\t| {4})?"
853
+ }
854
+ ]
855
+ },
856
+ {
857
+ "captures": {
858
+ "1": {
859
+ "name": "support.function.perl"
860
+ },
861
+ "2": {
862
+ "name": "punctuation.definition.string.perl"
863
+ },
864
+ "5": {
865
+ "name": "punctuation.definition.string.perl"
866
+ },
867
+ "8": {
868
+ "name": "punctuation.definition.string.perl"
869
+ }
870
+ },
871
+ "match": "\\b(tr|y)\\s*([^A-Za-z0-9\\s])(.*?)(?<!\\\\)(\\\\{2})*(\\2)(.*?)(?<!\\\\)(\\\\{2})*(\\2)",
872
+ "name": "string.regexp.replace.perl"
873
+ },
874
+ {
875
+ "match": "\\b(__FILE__|__LINE__|__PACKAGE__|__SUB__|__DATA__|__END__)\\b",
876
+ "name": "constant.language.perl"
877
+ },
878
+ {
879
+ "match": "(?<!->)\\b(continue|die|do|else|elsif|exit|for|foreach|goto|if|last|next|redo|return|select|unless|until|wait|while|switch|case|require|use|eval)\\b",
880
+ "name": "keyword.control.perl"
881
+ },
882
+ {
883
+ "match": "\\b(my|our|local)\\b",
884
+ "name": "storage.modifier.perl"
885
+ },
886
+ {
887
+ "match": "(?<!\\w)\\-[rwx0RWXOezsfdlpSbctugkTBMAC]\\b",
888
+ "name": "keyword.operator.filetest.perl"
889
+ },
890
+ {
891
+ "match": "\\b(and|or|xor|as|not)\\b",
892
+ "name": "keyword.operator.logical.perl"
893
+ },
894
+ {
895
+ "match": "(<=>|=>|->)",
896
+ "name": "keyword.operator.comparison.perl"
897
+ },
898
+ {
899
+ "begin": "(((<<) *\"HTML\"))(.*)\\n?",
900
+ "captures": {
901
+ "1": {
902
+ "name": "punctuation.definition.string.perl"
903
+ },
904
+ "2": {
905
+ "name": "string.unquoted.heredoc.doublequote.perl"
906
+ },
907
+ "3": {
908
+ "name": "punctuation.definition.heredoc.perl"
909
+ },
910
+ "4": {
911
+ "patterns": [
912
+ {
913
+ "include": "$self"
914
+ }
915
+ ]
916
+ }
917
+ },
918
+ "contentName": "text.html.embedded.perl",
919
+ "end": "(^HTML$)",
920
+ "patterns": [
921
+ {
922
+ "include": "#escaped_char"
923
+ },
924
+ {
925
+ "include": "#variable"
926
+ },
927
+ {
928
+ "include": "text.html.basic"
929
+ }
930
+ ]
931
+ },
932
+ {
933
+ "begin": "(((<<) *\"XML\"))(.*)\\n?",
934
+ "captures": {
935
+ "1": {
936
+ "name": "punctuation.definition.string.perl"
937
+ },
938
+ "2": {
939
+ "name": "string.unquoted.heredoc.doublequote.perl"
940
+ },
941
+ "3": {
942
+ "name": "punctuation.definition.heredoc.perl"
943
+ },
944
+ "4": {
945
+ "patterns": [
946
+ {
947
+ "include": "$self"
948
+ }
949
+ ]
950
+ }
951
+ },
952
+ "contentName": "text.xml.embedded.perl",
953
+ "end": "(^XML$)",
954
+ "patterns": [
955
+ {
956
+ "include": "#escaped_char"
957
+ },
958
+ {
959
+ "include": "#variable"
960
+ },
961
+ {
962
+ "include": "text.xml"
963
+ }
964
+ ]
965
+ },
966
+ {
967
+ "begin": "(((<<) *\"CSS\"))(.*)\\n?",
968
+ "captures": {
969
+ "1": {
970
+ "name": "punctuation.definition.string.perl"
971
+ },
972
+ "2": {
973
+ "name": "string.unquoted.heredoc.doublequote.perl"
974
+ },
975
+ "3": {
976
+ "name": "punctuation.definition.heredoc.perl"
977
+ },
978
+ "4": {
979
+ "patterns": [
980
+ {
981
+ "include": "$self"
982
+ }
983
+ ]
984
+ }
985
+ },
986
+ "contentName": "text.css.embedded.perl",
987
+ "end": "(^CSS$)",
988
+ "patterns": [
989
+ {
990
+ "include": "#escaped_char"
991
+ },
992
+ {
993
+ "include": "#variable"
994
+ },
995
+ {
996
+ "include": "source.css"
997
+ }
998
+ ]
999
+ },
1000
+ {
1001
+ "begin": "(((<<) *\"JAVASCRIPT\"))(.*)\\n?",
1002
+ "captures": {
1003
+ "1": {
1004
+ "name": "punctuation.definition.string.perl"
1005
+ },
1006
+ "2": {
1007
+ "name": "string.unquoted.heredoc.doublequote.perl"
1008
+ },
1009
+ "3": {
1010
+ "name": "punctuation.definition.heredoc.perl"
1011
+ },
1012
+ "4": {
1013
+ "patterns": [
1014
+ {
1015
+ "include": "$self"
1016
+ }
1017
+ ]
1018
+ }
1019
+ },
1020
+ "contentName": "text.js.embedded.perl",
1021
+ "end": "(^JAVASCRIPT$)",
1022
+ "patterns": [
1023
+ {
1024
+ "include": "#escaped_char"
1025
+ },
1026
+ {
1027
+ "include": "#variable"
1028
+ },
1029
+ {
1030
+ "include": "source.js"
1031
+ }
1032
+ ]
1033
+ },
1034
+ {
1035
+ "begin": "(((<<) *\"SQL\"))(.*)\\n?",
1036
+ "captures": {
1037
+ "1": {
1038
+ "name": "punctuation.definition.string.perl"
1039
+ },
1040
+ "2": {
1041
+ "name": "string.unquoted.heredoc.doublequote.perl"
1042
+ },
1043
+ "3": {
1044
+ "name": "punctuation.definition.heredoc.perl"
1045
+ },
1046
+ "4": {
1047
+ "patterns": [
1048
+ {
1049
+ "include": "$self"
1050
+ }
1051
+ ]
1052
+ }
1053
+ },
1054
+ "contentName": "source.sql.embedded.perl",
1055
+ "end": "(^SQL$)",
1056
+ "patterns": [
1057
+ {
1058
+ "include": "#escaped_char"
1059
+ },
1060
+ {
1061
+ "include": "#variable"
1062
+ },
1063
+ {
1064
+ "include": "source.sql"
1065
+ }
1066
+ ]
1067
+ },
1068
+ {
1069
+ "begin": "(((<<) *\"POSTSCRIPT\"))(.*)\\n?",
1070
+ "captures": {
1071
+ "1": {
1072
+ "name": "punctuation.definition.string.perl"
1073
+ },
1074
+ "2": {
1075
+ "name": "string.unquoted.heredoc.doublequote.perl"
1076
+ },
1077
+ "3": {
1078
+ "name": "punctuation.definition.heredoc.perl"
1079
+ },
1080
+ "4": {
1081
+ "patterns": [
1082
+ {
1083
+ "include": "$self"
1084
+ }
1085
+ ]
1086
+ }
1087
+ },
1088
+ "contentName": "text.postscript.embedded.perl",
1089
+ "end": "(^POSTSCRIPT$)",
1090
+ "patterns": [
1091
+ {
1092
+ "include": "#escaped_char"
1093
+ },
1094
+ {
1095
+ "include": "#variable"
1096
+ },
1097
+ {
1098
+ "include": "source.postscript"
1099
+ }
1100
+ ]
1101
+ },
1102
+ {
1103
+ "begin": "(((<<) *\"([^\"]*)\"))(.*)\\n?",
1104
+ "captures": {
1105
+ "1": {
1106
+ "name": "punctuation.definition.string.perl"
1107
+ },
1108
+ "2": {
1109
+ "name": "string.unquoted.heredoc.doublequote.perl"
1110
+ },
1111
+ "3": {
1112
+ "name": "punctuation.definition.heredoc.perl"
1113
+ },
1114
+ "4": {
1115
+ "patterns": [
1116
+ {
1117
+ "include": "$self"
1118
+ }
1119
+ ]
1120
+ }
1121
+ },
1122
+ "contentName": "string.unquoted.heredoc.doublequote.perl",
1123
+ "end": "(^\\4$)",
1124
+ "patterns": [
1125
+ {
1126
+ "include": "#escaped_char"
1127
+ },
1128
+ {
1129
+ "include": "#variable"
1130
+ }
1131
+ ]
1132
+ },
1133
+ {
1134
+ "begin": "(((<<) *'HTML'))(.*)\\n?",
1135
+ "captures": {
1136
+ "1": {
1137
+ "name": "punctuation.definition.string.perl"
1138
+ },
1139
+ "2": {
1140
+ "name": "string.unquoted.heredoc.quote.perl"
1141
+ },
1142
+ "3": {
1143
+ "name": "punctuation.definition.heredoc.perl"
1144
+ },
1145
+ "4": {
1146
+ "patterns": [
1147
+ {
1148
+ "include": "$self"
1149
+ }
1150
+ ]
1151
+ }
1152
+ },
1153
+ "contentName": "text.html.embedded.perl",
1154
+ "end": "(^HTML$)",
1155
+ "patterns": [
1156
+ {
1157
+ "include": "text.html.basic"
1158
+ }
1159
+ ]
1160
+ },
1161
+ {
1162
+ "begin": "(((<<) *'XML'))(.*)\\n?",
1163
+ "captures": {
1164
+ "1": {
1165
+ "name": "punctuation.definition.string.perl"
1166
+ },
1167
+ "2": {
1168
+ "name": "string.unquoted.heredoc.quote.perl"
1169
+ },
1170
+ "3": {
1171
+ "name": "punctuation.definition.heredoc.perl"
1172
+ },
1173
+ "4": {
1174
+ "patterns": [
1175
+ {
1176
+ "include": "$self"
1177
+ }
1178
+ ]
1179
+ }
1180
+ },
1181
+ "contentName": "text.xml.embedded.perl",
1182
+ "end": "(^XML$)",
1183
+ "patterns": [
1184
+ {
1185
+ "include": "text.xml"
1186
+ }
1187
+ ]
1188
+ },
1189
+ {
1190
+ "begin": "(((<<) *'CSS'))(.*)\\n?",
1191
+ "captures": {
1192
+ "1": {
1193
+ "name": "punctuation.definition.string.perl"
1194
+ },
1195
+ "2": {
1196
+ "name": "string.unquoted.heredoc.quote.perl"
1197
+ },
1198
+ "3": {
1199
+ "name": "punctuation.definition.heredoc.perl"
1200
+ },
1201
+ "4": {
1202
+ "patterns": [
1203
+ {
1204
+ "include": "$self"
1205
+ }
1206
+ ]
1207
+ }
1208
+ },
1209
+ "contentName": "text.css.embedded.perl",
1210
+ "end": "(^CSS$)",
1211
+ "patterns": [
1212
+ {
1213
+ "include": "source.css"
1214
+ }
1215
+ ]
1216
+ },
1217
+ {
1218
+ "begin": "(((<<) *'JAVASCRIPT'))(.*)\\n?",
1219
+ "captures": {
1220
+ "1": {
1221
+ "name": "punctuation.definition.string.perl"
1222
+ },
1223
+ "2": {
1224
+ "name": "string.unquoted.heredoc.quote.perl"
1225
+ },
1226
+ "3": {
1227
+ "name": "punctuation.definition.heredoc.perl"
1228
+ },
1229
+ "4": {
1230
+ "patterns": [
1231
+ {
1232
+ "include": "$self"
1233
+ }
1234
+ ]
1235
+ }
1236
+ },
1237
+ "contentName": "text.js.embedded.perl",
1238
+ "end": "(^JAVASCRIPT$)",
1239
+ "patterns": [
1240
+ {
1241
+ "include": "source.js"
1242
+ }
1243
+ ]
1244
+ },
1245
+ {
1246
+ "begin": "(((<<) *'SQL'))(.*)\\n?",
1247
+ "captures": {
1248
+ "1": {
1249
+ "name": "punctuation.definition.string.perl"
1250
+ },
1251
+ "2": {
1252
+ "name": "string.unquoted.heredoc.quote.perl"
1253
+ },
1254
+ "3": {
1255
+ "name": "punctuation.definition.heredoc.perl"
1256
+ },
1257
+ "4": {
1258
+ "patterns": [
1259
+ {
1260
+ "include": "$self"
1261
+ }
1262
+ ]
1263
+ }
1264
+ },
1265
+ "contentName": "source.sql.embedded.perl",
1266
+ "end": "(^SQL$)",
1267
+ "patterns": [
1268
+ {
1269
+ "include": "source.sql"
1270
+ }
1271
+ ]
1272
+ },
1273
+ {
1274
+ "begin": "(((<<) *'POSTSCRIPT'))(.*)\\n?",
1275
+ "captures": {
1276
+ "1": {
1277
+ "name": "punctuation.definition.string.perl"
1278
+ },
1279
+ "2": {
1280
+ "name": "string.unquoted.heredoc.quote.perl"
1281
+ },
1282
+ "3": {
1283
+ "name": "punctuation.definition.heredoc.perl"
1284
+ },
1285
+ "4": {
1286
+ "patterns": [
1287
+ {
1288
+ "include": "$self"
1289
+ }
1290
+ ]
1291
+ }
1292
+ },
1293
+ "contentName": "source.postscript.embedded.perl",
1294
+ "end": "(^POSTSCRIPT$)",
1295
+ "patterns": [
1296
+ {
1297
+ "include": "source.postscript"
1298
+ }
1299
+ ]
1300
+ },
1301
+ {
1302
+ "begin": "(((<<) *'([^']*)'))(.*)\\n?",
1303
+ "captures": {
1304
+ "1": {
1305
+ "name": "punctuation.definition.string.perl"
1306
+ },
1307
+ "2": {
1308
+ "name": "string.unquoted.heredoc.quote.perl"
1309
+ },
1310
+ "3": {
1311
+ "name": "punctuation.definition.heredoc.perl"
1312
+ },
1313
+ "4": {
1314
+ "patterns": [
1315
+ {
1316
+ "include": "$self"
1317
+ }
1318
+ ]
1319
+ }
1320
+ },
1321
+ "contentName": "string.unquoted.heredoc.quote.perl",
1322
+ "end": "(^\\4$)"
1323
+ },
1324
+ {
1325
+ "begin": "(((<<) *\\\\((?![=\\d\\$\\( ])[^;,'\"`\\s\\)]*)))(.*)\\n?",
1326
+ "captures": {
1327
+ "1": {
1328
+ "name": "punctuation.definition.string.perl"
1329
+ },
1330
+ "2": {
1331
+ "name": "string.unquoted.heredoc.quote.perl"
1332
+ },
1333
+ "3": {
1334
+ "name": "punctuation.definition.heredoc.perl"
1335
+ },
1336
+ "4": {
1337
+ "patterns": [
1338
+ {
1339
+ "include": "$self"
1340
+ }
1341
+ ]
1342
+ }
1343
+ },
1344
+ "contentName": "string.unquoted.heredoc.quote.perl",
1345
+ "end": "(^\\4$)"
1346
+ },
1347
+ {
1348
+ "begin": "(((<<) *`([^`]*)`))(.*)\\n?",
1349
+ "captures": {
1350
+ "1": {
1351
+ "name": "punctuation.definition.string.perl"
1352
+ },
1353
+ "2": {
1354
+ "name": "string.unquoted.heredoc.backtick.perl"
1355
+ },
1356
+ "3": {
1357
+ "name": "punctuation.definition.heredoc.perl"
1358
+ },
1359
+ "4": {
1360
+ "patterns": [
1361
+ {
1362
+ "include": "$self"
1363
+ }
1364
+ ]
1365
+ }
1366
+ },
1367
+ "contentName": "string.unquoted.heredoc.backtick.perl",
1368
+ "end": "(^\\4$)",
1369
+ "patterns": [
1370
+ {
1371
+ "include": "#escaped_char"
1372
+ },
1373
+ {
1374
+ "include": "#variable"
1375
+ }
1376
+ ]
1377
+ },
1378
+ {
1379
+ "begin": "(((<<) *HTML\\b))(.*)\\n?",
1380
+ "captures": {
1381
+ "1": {
1382
+ "name": "punctuation.definition.string.perl"
1383
+ },
1384
+ "2": {
1385
+ "name": "string.unquoted.heredoc.perl"
1386
+ },
1387
+ "3": {
1388
+ "name": "punctuation.definition.heredoc.perl"
1389
+ },
1390
+ "4": {
1391
+ "patterns": [
1392
+ {
1393
+ "include": "$self"
1394
+ }
1395
+ ]
1396
+ }
1397
+ },
1398
+ "contentName": "text.html.embedded.perl",
1399
+ "end": "(^HTML$)",
1400
+ "patterns": [
1401
+ {
1402
+ "include": "#escaped_char"
1403
+ },
1404
+ {
1405
+ "include": "#variable"
1406
+ },
1407
+ {
1408
+ "include": "text.html.basic"
1409
+ }
1410
+ ]
1411
+ },
1412
+ {
1413
+ "begin": "(((<<) *XML\\b))(.*)\\n?",
1414
+ "captures": {
1415
+ "1": {
1416
+ "name": "punctuation.definition.string.perl"
1417
+ },
1418
+ "2": {
1419
+ "name": "string.unquoted.heredoc.perl"
1420
+ },
1421
+ "3": {
1422
+ "name": "punctuation.definition.heredoc.perl"
1423
+ },
1424
+ "4": {
1425
+ "patterns": [
1426
+ {
1427
+ "include": "$self"
1428
+ }
1429
+ ]
1430
+ }
1431
+ },
1432
+ "contentName": "text.xml.embedded.perl",
1433
+ "end": "(^XML$)",
1434
+ "patterns": [
1435
+ {
1436
+ "include": "#escaped_char"
1437
+ },
1438
+ {
1439
+ "include": "#variable"
1440
+ },
1441
+ {
1442
+ "include": "text.xml"
1443
+ }
1444
+ ]
1445
+ },
1446
+ {
1447
+ "begin": "(((<<) *JAVASCRIPT\\b))(.*)\\n?",
1448
+ "captures": {
1449
+ "1": {
1450
+ "name": "punctuation.definition.string.perl"
1451
+ },
1452
+ "2": {
1453
+ "name": "string.unquoted.heredoc.perl"
1454
+ },
1455
+ "3": {
1456
+ "name": "punctuation.definition.heredoc.perl"
1457
+ },
1458
+ "4": {
1459
+ "patterns": [
1460
+ {
1461
+ "include": "$self"
1462
+ }
1463
+ ]
1464
+ }
1465
+ },
1466
+ "contentName": "source.js.embedded.perl",
1467
+ "end": "(^JAVASCRIPT$)",
1468
+ "patterns": [
1469
+ {
1470
+ "include": "#escaped_char"
1471
+ },
1472
+ {
1473
+ "include": "#variable"
1474
+ },
1475
+ {
1476
+ "include": "source.js"
1477
+ }
1478
+ ]
1479
+ },
1480
+ {
1481
+ "begin": "(((<<) *SQL\\b))(.*)\\n?",
1482
+ "captures": {
1483
+ "1": {
1484
+ "name": "punctuation.definition.string.perl"
1485
+ },
1486
+ "2": {
1487
+ "name": "string.unquoted.heredoc.perl"
1488
+ },
1489
+ "3": {
1490
+ "name": "punctuation.definition.heredoc.perl"
1491
+ },
1492
+ "4": {
1493
+ "patterns": [
1494
+ {
1495
+ "include": "$self"
1496
+ }
1497
+ ]
1498
+ }
1499
+ },
1500
+ "contentName": "source.sql.embedded.perl",
1501
+ "end": "(^SQL$)",
1502
+ "patterns": [
1503
+ {
1504
+ "include": "#escaped_char"
1505
+ },
1506
+ {
1507
+ "include": "#variable"
1508
+ },
1509
+ {
1510
+ "include": "source.sql"
1511
+ }
1512
+ ]
1513
+ },
1514
+ {
1515
+ "begin": "(((<<) *POSTSCRIPT\\b))(.*)\\n?",
1516
+ "captures": {
1517
+ "1": {
1518
+ "name": "punctuation.definition.string.perl"
1519
+ },
1520
+ "2": {
1521
+ "name": "string.unquoted.heredoc.perl"
1522
+ },
1523
+ "3": {
1524
+ "name": "punctuation.definition.heredoc.perl"
1525
+ },
1526
+ "4": {
1527
+ "patterns": [
1528
+ {
1529
+ "include": "$self"
1530
+ }
1531
+ ]
1532
+ }
1533
+ },
1534
+ "contentName": "source.postscript.embedded.perl",
1535
+ "end": "(^POSTSCRIPT$)",
1536
+ "patterns": [
1537
+ {
1538
+ "include": "#escaped_char"
1539
+ },
1540
+ {
1541
+ "include": "#variable"
1542
+ },
1543
+ {
1544
+ "include": "source.postscript"
1545
+ }
1546
+ ]
1547
+ },
1548
+ {
1549
+ "begin": "(((<<) *((?![=\\d\\$\\( ])[^;,'\"`\\s\\)]*)))(.*)\\n?",
1550
+ "captures": {
1551
+ "1": {
1552
+ "name": "punctuation.definition.string.perl"
1553
+ },
1554
+ "2": {
1555
+ "name": "string.unquoted.heredoc.perl"
1556
+ },
1557
+ "3": {
1558
+ "name": "punctuation.definition.heredoc.perl"
1559
+ },
1560
+ "5": {
1561
+ "patterns": [
1562
+ {
1563
+ "include": "$self"
1564
+ }
1565
+ ]
1566
+ }
1567
+ },
1568
+ "contentName": "string.unquoted.heredoc.perl",
1569
+ "end": "(^\\4$)",
1570
+ "patterns": [
1571
+ {
1572
+ "include": "#escaped_char"
1573
+ },
1574
+ {
1575
+ "include": "#variable"
1576
+ }
1577
+ ]
1578
+ },
1579
+ {
1580
+ "begin": "\\bqq\\s*([^\\(\\{\\[\\<\\w\\s])",
1581
+ "beginCaptures": {
1582
+ "0": {
1583
+ "name": "punctuation.definition.string.begin.perl"
1584
+ }
1585
+ },
1586
+ "end": "\\1",
1587
+ "endCaptures": {
1588
+ "0": {
1589
+ "name": "punctuation.definition.string.end.perl"
1590
+ }
1591
+ },
1592
+ "name": "string.quoted.other.qq.perl",
1593
+ "patterns": [
1594
+ {
1595
+ "include": "#escaped_char"
1596
+ },
1597
+ {
1598
+ "include": "#variable"
1599
+ }
1600
+ ]
1601
+ },
1602
+ {
1603
+ "begin": "\\bqx\\s*([^'\\(\\{\\[\\<\\w\\s])",
1604
+ "beginCaptures": {
1605
+ "0": {
1606
+ "name": "punctuation.definition.string.begin.perl"
1607
+ }
1608
+ },
1609
+ "end": "\\1",
1610
+ "endCaptures": {
1611
+ "0": {
1612
+ "name": "punctuation.definition.string.end.perl"
1613
+ }
1614
+ },
1615
+ "name": "string.interpolated.qx.perl",
1616
+ "patterns": [
1617
+ {
1618
+ "include": "#escaped_char"
1619
+ },
1620
+ {
1621
+ "include": "#variable"
1622
+ }
1623
+ ]
1624
+ },
1625
+ {
1626
+ "begin": "\\bqx\\s*'",
1627
+ "beginCaptures": {
1628
+ "0": {
1629
+ "name": "punctuation.definition.string.begin.perl"
1630
+ }
1631
+ },
1632
+ "end": "'",
1633
+ "endCaptures": {
1634
+ "0": {
1635
+ "name": "punctuation.definition.string.end.perl"
1636
+ }
1637
+ },
1638
+ "name": "string.interpolated.qx.single-quote.perl",
1639
+ "patterns": [
1640
+ {
1641
+ "include": "#escaped_char"
1642
+ }
1643
+ ]
1644
+ },
1645
+ {
1646
+ "begin": "\"",
1647
+ "beginCaptures": {
1648
+ "0": {
1649
+ "name": "punctuation.definition.string.begin.perl"
1650
+ }
1651
+ },
1652
+ "end": "\"",
1653
+ "endCaptures": {
1654
+ "0": {
1655
+ "name": "punctuation.definition.string.end.perl"
1656
+ }
1657
+ },
1658
+ "name": "string.quoted.double.perl",
1659
+ "patterns": [
1660
+ {
1661
+ "include": "#escaped_char"
1662
+ },
1663
+ {
1664
+ "include": "#variable"
1665
+ }
1666
+ ]
1667
+ },
1668
+ {
1669
+ "begin": "(?<!->)\\bqw?\\s*([^\\(\\{\\[\\<\\w\\s])",
1670
+ "beginCaptures": {
1671
+ "0": {
1672
+ "name": "punctuation.definition.string.begin.perl"
1673
+ }
1674
+ },
1675
+ "end": "\\1",
1676
+ "endCaptures": {
1677
+ "0": {
1678
+ "name": "punctuation.definition.string.end.perl"
1679
+ }
1680
+ },
1681
+ "name": "string.quoted.other.q.perl"
1682
+ },
1683
+ {
1684
+ "begin": "'",
1685
+ "beginCaptures": {
1686
+ "0": {
1687
+ "name": "punctuation.definition.string.begin.perl"
1688
+ }
1689
+ },
1690
+ "end": "'",
1691
+ "endCaptures": {
1692
+ "0": {
1693
+ "name": "punctuation.definition.string.end.perl"
1694
+ }
1695
+ },
1696
+ "name": "string.quoted.single.perl",
1697
+ "patterns": [
1698
+ {
1699
+ "match": "\\\\['\\\\]",
1700
+ "name": "constant.character.escape.perl"
1701
+ }
1702
+ ]
1703
+ },
1704
+ {
1705
+ "begin": "`",
1706
+ "beginCaptures": {
1707
+ "0": {
1708
+ "name": "punctuation.definition.string.begin.perl"
1709
+ }
1710
+ },
1711
+ "end": "`",
1712
+ "endCaptures": {
1713
+ "0": {
1714
+ "name": "punctuation.definition.string.end.perl"
1715
+ }
1716
+ },
1717
+ "name": "string.interpolated.perl",
1718
+ "patterns": [
1719
+ {
1720
+ "include": "#escaped_char"
1721
+ },
1722
+ {
1723
+ "include": "#variable"
1724
+ }
1725
+ ]
1726
+ },
1727
+ {
1728
+ "begin": "(?<!->)\\bqq\\s*\\(",
1729
+ "beginCaptures": {
1730
+ "0": {
1731
+ "name": "punctuation.definition.string.begin.perl"
1732
+ }
1733
+ },
1734
+ "end": "\\)",
1735
+ "endCaptures": {
1736
+ "0": {
1737
+ "name": "punctuation.definition.string.end.perl"
1738
+ }
1739
+ },
1740
+ "name": "string.quoted.other.qq-paren.perl",
1741
+ "patterns": [
1742
+ {
1743
+ "include": "#escaped_char"
1744
+ },
1745
+ {
1746
+ "include": "#nested_parens_interpolated"
1747
+ },
1748
+ {
1749
+ "include": "#variable"
1750
+ }
1751
+ ]
1752
+ },
1753
+ {
1754
+ "begin": "\\bqq\\s*\\{",
1755
+ "beginCaptures": {
1756
+ "0": {
1757
+ "name": "punctuation.definition.string.begin.perl"
1758
+ }
1759
+ },
1760
+ "end": "\\}",
1761
+ "endCaptures": {
1762
+ "0": {
1763
+ "name": "punctuation.definition.string.end.perl"
1764
+ }
1765
+ },
1766
+ "name": "string.quoted.other.qq-brace.perl",
1767
+ "patterns": [
1768
+ {
1769
+ "include": "#escaped_char"
1770
+ },
1771
+ {
1772
+ "include": "#nested_braces_interpolated"
1773
+ },
1774
+ {
1775
+ "include": "#variable"
1776
+ }
1777
+ ]
1778
+ },
1779
+ {
1780
+ "begin": "\\bqq\\s*\\[",
1781
+ "beginCaptures": {
1782
+ "0": {
1783
+ "name": "punctuation.definition.string.begin.perl"
1784
+ }
1785
+ },
1786
+ "end": "\\]",
1787
+ "endCaptures": {
1788
+ "0": {
1789
+ "name": "punctuation.definition.string.end.perl"
1790
+ }
1791
+ },
1792
+ "name": "string.quoted.other.qq-bracket.perl",
1793
+ "patterns": [
1794
+ {
1795
+ "include": "#escaped_char"
1796
+ },
1797
+ {
1798
+ "include": "#nested_brackets_interpolated"
1799
+ },
1800
+ {
1801
+ "include": "#variable"
1802
+ }
1803
+ ]
1804
+ },
1805
+ {
1806
+ "begin": "\\bqq\\s*\\<",
1807
+ "beginCaptures": {
1808
+ "0": {
1809
+ "name": "punctuation.definition.string.begin.perl"
1810
+ }
1811
+ },
1812
+ "end": "\\>",
1813
+ "endCaptures": {
1814
+ "0": {
1815
+ "name": "punctuation.definition.string.end.perl"
1816
+ }
1817
+ },
1818
+ "name": "string.quoted.other.qq-ltgt.perl",
1819
+ "patterns": [
1820
+ {
1821
+ "include": "#escaped_char"
1822
+ },
1823
+ {
1824
+ "include": "#nested_ltgt_interpolated"
1825
+ },
1826
+ {
1827
+ "include": "#variable"
1828
+ }
1829
+ ]
1830
+ },
1831
+ {
1832
+ "begin": "(?<!->)\\bqx\\s*\\(",
1833
+ "beginCaptures": {
1834
+ "0": {
1835
+ "name": "punctuation.definition.string.begin.perl"
1836
+ }
1837
+ },
1838
+ "end": "\\)",
1839
+ "endCaptures": {
1840
+ "0": {
1841
+ "name": "punctuation.definition.string.end.perl"
1842
+ }
1843
+ },
1844
+ "name": "string.interpolated.qx-paren.perl",
1845
+ "patterns": [
1846
+ {
1847
+ "include": "#escaped_char"
1848
+ },
1849
+ {
1850
+ "include": "#nested_parens_interpolated"
1851
+ },
1852
+ {
1853
+ "include": "#variable"
1854
+ }
1855
+ ]
1856
+ },
1857
+ {
1858
+ "begin": "\\bqx\\s*\\{",
1859
+ "beginCaptures": {
1860
+ "0": {
1861
+ "name": "punctuation.definition.string.begin.perl"
1862
+ }
1863
+ },
1864
+ "end": "\\}",
1865
+ "endCaptures": {
1866
+ "0": {
1867
+ "name": "punctuation.definition.string.end.perl"
1868
+ }
1869
+ },
1870
+ "name": "string.interpolated.qx-brace.perl",
1871
+ "patterns": [
1872
+ {
1873
+ "include": "#escaped_char"
1874
+ },
1875
+ {
1876
+ "include": "#nested_braces_interpolated"
1877
+ },
1878
+ {
1879
+ "include": "#variable"
1880
+ }
1881
+ ]
1882
+ },
1883
+ {
1884
+ "begin": "\\bqx\\s*\\[",
1885
+ "beginCaptures": {
1886
+ "0": {
1887
+ "name": "punctuation.definition.string.begin.perl"
1888
+ }
1889
+ },
1890
+ "end": "\\]",
1891
+ "endCaptures": {
1892
+ "0": {
1893
+ "name": "punctuation.definition.string.end.perl"
1894
+ }
1895
+ },
1896
+ "name": "string.interpolated.qx-bracket.perl",
1897
+ "patterns": [
1898
+ {
1899
+ "include": "#escaped_char"
1900
+ },
1901
+ {
1902
+ "include": "#nested_brackets_interpolated"
1903
+ },
1904
+ {
1905
+ "include": "#variable"
1906
+ }
1907
+ ]
1908
+ },
1909
+ {
1910
+ "begin": "\\bqx\\s*\\<",
1911
+ "beginCaptures": {
1912
+ "0": {
1913
+ "name": "punctuation.definition.string.begin.perl"
1914
+ }
1915
+ },
1916
+ "end": "\\>",
1917
+ "endCaptures": {
1918
+ "0": {
1919
+ "name": "punctuation.definition.string.end.perl"
1920
+ }
1921
+ },
1922
+ "name": "string.interpolated.qx-ltgt.perl",
1923
+ "patterns": [
1924
+ {
1925
+ "include": "#escaped_char"
1926
+ },
1927
+ {
1928
+ "include": "#nested_ltgt_interpolated"
1929
+ },
1930
+ {
1931
+ "include": "#variable"
1932
+ }
1933
+ ]
1934
+ },
1935
+ {
1936
+ "begin": "(?<!->)\\bqw?\\s*\\(",
1937
+ "beginCaptures": {
1938
+ "0": {
1939
+ "name": "punctuation.definition.string.begin.perl"
1940
+ }
1941
+ },
1942
+ "end": "\\)",
1943
+ "endCaptures": {
1944
+ "0": {
1945
+ "name": "punctuation.definition.string.end.perl"
1946
+ }
1947
+ },
1948
+ "name": "string.quoted.other.q-paren.perl",
1949
+ "patterns": [
1950
+ {
1951
+ "include": "#nested_parens"
1952
+ }
1953
+ ]
1954
+ },
1955
+ {
1956
+ "begin": "\\bqw?\\s*\\{",
1957
+ "beginCaptures": {
1958
+ "0": {
1959
+ "name": "punctuation.definition.string.begin.perl"
1960
+ }
1961
+ },
1962
+ "end": "\\}",
1963
+ "endCaptures": {
1964
+ "0": {
1965
+ "name": "punctuation.definition.string.end.perl"
1966
+ }
1967
+ },
1968
+ "name": "string.quoted.other.q-brace.perl",
1969
+ "patterns": [
1970
+ {
1971
+ "include": "#nested_braces"
1972
+ }
1973
+ ]
1974
+ },
1975
+ {
1976
+ "begin": "\\bqw?\\s*\\[",
1977
+ "beginCaptures": {
1978
+ "0": {
1979
+ "name": "punctuation.definition.string.begin.perl"
1980
+ }
1981
+ },
1982
+ "end": "\\]",
1983
+ "endCaptures": {
1984
+ "0": {
1985
+ "name": "punctuation.definition.string.end.perl"
1986
+ }
1987
+ },
1988
+ "name": "string.quoted.other.q-bracket.perl",
1989
+ "patterns": [
1990
+ {
1991
+ "include": "#nested_brackets"
1992
+ }
1993
+ ]
1994
+ },
1995
+ {
1996
+ "begin": "\\bqw?\\s*\\<",
1997
+ "beginCaptures": {
1998
+ "0": {
1999
+ "name": "punctuation.definition.string.begin.perl"
2000
+ }
2001
+ },
2002
+ "end": "\\>",
2003
+ "endCaptures": {
2004
+ "0": {
2005
+ "name": "punctuation.definition.string.end.perl"
2006
+ }
2007
+ },
2008
+ "name": "string.quoted.other.q-ltgt.perl",
2009
+ "patterns": [
2010
+ {
2011
+ "include": "#nested_ltgt"
2012
+ }
2013
+ ]
2014
+ },
2015
+ {
2016
+ "begin": "^__\\w+__",
2017
+ "beginCaptures": {
2018
+ "0": {
2019
+ "name": "punctuation.definition.string.begin.perl"
2020
+ }
2021
+ },
2022
+ "end": "$",
2023
+ "endCaptures": {
2024
+ "0": {
2025
+ "name": "punctuation.definition.string.end.perl"
2026
+ }
2027
+ },
2028
+ "name": "string.unquoted.program-block.perl"
2029
+ },
2030
+ {
2031
+ "begin": "\\b(format)\\s+(\\w+)\\s*=",
2032
+ "beginCaptures": {
2033
+ "1": {
2034
+ "name": "support.function.perl"
2035
+ },
2036
+ "2": {
2037
+ "name": "entity.name.function.format.perl"
2038
+ }
2039
+ },
2040
+ "end": "^\\.\\s*$",
2041
+ "name": "meta.format.perl",
2042
+ "patterns": [
2043
+ {
2044
+ "include": "#line_comment"
2045
+ },
2046
+ {
2047
+ "include": "#variable"
2048
+ }
2049
+ ]
2050
+ },
2051
+ {
2052
+ "captures": {
2053
+ "1": {
2054
+ "name": "support.function.perl"
2055
+ },
2056
+ "2": {
2057
+ "name": "entity.name.function.perl"
2058
+ }
2059
+ },
2060
+ "match": "\\b(x)\\s*(\\d+)\\b"
2061
+ },
2062
+ {
2063
+ "match": "\\b(ARGV|DATA|ENV|SIG|STDERR|STDIN|STDOUT|atan2|bind|binmode|bless|caller|chdir|chmod|chomp|chop|chown|chr|chroot|close|closedir|cmp|connect|cos|crypt|dbmclose|dbmopen|defined|delete|dump|each|endgrent|endhostent|endnetent|endprotoent|endpwent|endservent|eof|eq|eval|exec|exists|exp|fcntl|fileno|flock|fork|formline|ge|getc|getgrent|getgrgid|getgrnam|gethostbyaddr|gethostbyname|gethostent|getlogin|getnetbyaddr|getnetbyname|getnetent|getpeername|getpgrp|getppid|getpriority|getprotobyname|getprotobynumber|getprotoent|getpwent|getpwnam|getpwuid|getservbyname|getservbyport|getservent|getsockname|getsockopt|glob|gmtime|grep|gt|hex|import|index|int|ioctl|join|keys|kill|lc|lcfirst|le|length|link|listen|local|localtime|log|lstat|lt|m|map|mkdir|msgctl|msgget|msgrcv|msgsnd|ne|no|oct|open|opendir|ord|pack|pipe|pop|pos|print|printf|push|quotemeta|rand|read|readdir|readlink|recv|ref|rename|reset|reverse|rewinddir|rindex|rmdir|s|scalar|seek|seekdir|semctl|semget|semop|send|setgrent|sethostent|setnetent|setpgrp|setpriority|setprotoent|setpwent|setservent|setsockopt|shift|shmctl|shmget|shmread|shmwrite|shutdown|sin|sleep|socket|socketpair|sort|splice|split|sprintf|sqrt|srand|stat|study|substr|symlink|syscall|sysopen|sysread|system|syswrite|tell|telldir|tie|tied|time|times|tr|truncate|uc|ucfirst|umask|undef|unlink|unpack|unshift|untie|utime|values|vec|waitpid|wantarray|warn|write|y)\\b",
2064
+ "name": "support.function.perl"
2065
+ },
2066
+ {
2067
+ "captures": {
2068
+ "1": {
2069
+ "name": "punctuation.section.scope.begin.perl"
2070
+ },
2071
+ "2": {
2072
+ "name": "punctuation.section.scope.end.perl"
2073
+ }
2074
+ },
2075
+ "comment": "Match empty brackets for ↩ snippet",
2076
+ "match": "(\\{)(\\})"
2077
+ },
2078
+ {
2079
+ "captures": {
2080
+ "1": {
2081
+ "name": "punctuation.section.scope.begin.perl"
2082
+ },
2083
+ "2": {
2084
+ "name": "punctuation.section.scope.end.perl"
2085
+ }
2086
+ },
2087
+ "comment": "Match empty parenthesis for ↩ snippet",
2088
+ "match": "(\\()(\\))"
2089
+ }
2090
+ ],
2091
+ "repository": {
2092
+ "escaped_char": {
2093
+ "patterns": [
2094
+ {
2095
+ "match": "\\\\\\d+",
2096
+ "name": "constant.character.escape.perl"
2097
+ },
2098
+ {
2099
+ "match": "\\\\c[^\\s\\\\]",
2100
+ "name": "constant.character.escape.perl"
2101
+ },
2102
+ {
2103
+ "match": "\\\\g(?:\\{(?:\\w*|-\\d+)\\}|\\d+)",
2104
+ "name": "constant.character.escape.perl"
2105
+ },
2106
+ {
2107
+ "match": "\\\\k(?:\\{\\w*\\}|<\\w*>|'\\w*')",
2108
+ "name": "constant.character.escape.perl"
2109
+ },
2110
+ {
2111
+ "match": "\\\\N\\{[^\\}]*\\}",
2112
+ "name": "constant.character.escape.perl"
2113
+ },
2114
+ {
2115
+ "match": "\\\\o\\{\\d*\\}",
2116
+ "name": "constant.character.escape.perl"
2117
+ },
2118
+ {
2119
+ "match": "\\\\(?:p|P)(?:\\{\\w*\\}|P)",
2120
+ "name": "constant.character.escape.perl"
2121
+ },
2122
+ {
2123
+ "match": "\\\\x(?:[0-9a-zA-Z]{2}|\\{\\w*\\})?",
2124
+ "name": "constant.character.escape.perl"
2125
+ },
2126
+ {
2127
+ "match": "\\\\.",
2128
+ "name": "constant.character.escape.perl"
2129
+ }
2130
+ ]
2131
+ },
2132
+ "line_comment": {
2133
+ "patterns": [
2134
+ {
2135
+ "begin": "(^[ \\t]+)?(?=#)",
2136
+ "beginCaptures": {
2137
+ "1": {
2138
+ "name": "punctuation.whitespace.comment.leading.perl"
2139
+ }
2140
+ },
2141
+ "end": "(?!\\G)",
2142
+ "patterns": [
2143
+ {
2144
+ "begin": "#",
2145
+ "beginCaptures": {
2146
+ "0": {
2147
+ "name": "punctuation.definition.comment.perl"
2148
+ }
2149
+ },
2150
+ "end": "\\n",
2151
+ "name": "comment.line.number-sign.perl"
2152
+ }
2153
+ ]
2154
+ }
2155
+ ]
2156
+ },
2157
+ "nested_braces": {
2158
+ "begin": "\\{",
2159
+ "captures": {
2160
+ "1": {
2161
+ "name": "punctuation.section.scope.perl"
2162
+ }
2163
+ },
2164
+ "end": "\\}",
2165
+ "patterns": [
2166
+ {
2167
+ "include": "#escaped_char"
2168
+ },
2169
+ {
2170
+ "include": "#nested_braces"
2171
+ }
2172
+ ]
2173
+ },
2174
+ "nested_braces_interpolated": {
2175
+ "begin": "\\{",
2176
+ "captures": {
2177
+ "1": {
2178
+ "name": "punctuation.section.scope.perl"
2179
+ }
2180
+ },
2181
+ "end": "\\}",
2182
+ "patterns": [
2183
+ {
2184
+ "include": "#escaped_char"
2185
+ },
2186
+ {
2187
+ "include": "#variable"
2188
+ },
2189
+ {
2190
+ "include": "#nested_braces_interpolated"
2191
+ }
2192
+ ]
2193
+ },
2194
+ "nested_brackets": {
2195
+ "begin": "\\[",
2196
+ "captures": {
2197
+ "1": {
2198
+ "name": "punctuation.section.scope.perl"
2199
+ }
2200
+ },
2201
+ "end": "\\]",
2202
+ "patterns": [
2203
+ {
2204
+ "include": "#escaped_char"
2205
+ },
2206
+ {
2207
+ "include": "#nested_brackets"
2208
+ }
2209
+ ]
2210
+ },
2211
+ "nested_brackets_interpolated": {
2212
+ "begin": "\\[",
2213
+ "captures": {
2214
+ "1": {
2215
+ "name": "punctuation.section.scope.perl"
2216
+ }
2217
+ },
2218
+ "end": "\\]",
2219
+ "patterns": [
2220
+ {
2221
+ "include": "#escaped_char"
2222
+ },
2223
+ {
2224
+ "include": "#variable"
2225
+ },
2226
+ {
2227
+ "include": "#nested_brackets_interpolated"
2228
+ }
2229
+ ]
2230
+ },
2231
+ "nested_ltgt": {
2232
+ "begin": "<",
2233
+ "captures": {
2234
+ "1": {
2235
+ "name": "punctuation.section.scope.perl"
2236
+ }
2237
+ },
2238
+ "end": ">",
2239
+ "patterns": [
2240
+ {
2241
+ "include": "#nested_ltgt"
2242
+ }
2243
+ ]
2244
+ },
2245
+ "nested_ltgt_interpolated": {
2246
+ "begin": "<",
2247
+ "captures": {
2248
+ "1": {
2249
+ "name": "punctuation.section.scope.perl"
2250
+ }
2251
+ },
2252
+ "end": ">",
2253
+ "patterns": [
2254
+ {
2255
+ "include": "#variable"
2256
+ },
2257
+ {
2258
+ "include": "#nested_ltgt_interpolated"
2259
+ }
2260
+ ]
2261
+ },
2262
+ "nested_parens": {
2263
+ "begin": "\\(",
2264
+ "captures": {
2265
+ "1": {
2266
+ "name": "punctuation.section.scope.perl"
2267
+ }
2268
+ },
2269
+ "end": "\\)",
2270
+ "patterns": [
2271
+ {
2272
+ "include": "#escaped_char"
2273
+ },
2274
+ {
2275
+ "include": "#nested_parens"
2276
+ }
2277
+ ]
2278
+ },
2279
+ "nested_parens_interpolated": {
2280
+ "begin": "\\(",
2281
+ "captures": {
2282
+ "1": {
2283
+ "name": "punctuation.section.scope.perl"
2284
+ }
2285
+ },
2286
+ "end": "\\)",
2287
+ "patterns": [
2288
+ {
2289
+ "comment": "This is to prevent thinks like qr/foo$/ to treat $/ as a variable",
2290
+ "match": "\\$(?=[^\\s\\w'\\{\\[\\(\\<])",
2291
+ "name": "keyword.control.anchor.perl"
2292
+ },
2293
+ {
2294
+ "include": "#escaped_char"
2295
+ },
2296
+ {
2297
+ "include": "#variable"
2298
+ },
2299
+ {
2300
+ "include": "#nested_parens_interpolated"
2301
+ }
2302
+ ]
2303
+ },
2304
+ "variable": {
2305
+ "patterns": [
2306
+ {
2307
+ "captures": {
2308
+ "1": {
2309
+ "name": "punctuation.definition.variable.perl"
2310
+ }
2311
+ },
2312
+ "match": "(\\$)&(?![A-Za-z0-9_])",
2313
+ "name": "variable.other.regexp.match.perl"
2314
+ },
2315
+ {
2316
+ "captures": {
2317
+ "1": {
2318
+ "name": "punctuation.definition.variable.perl"
2319
+ }
2320
+ },
2321
+ "match": "(\\$)`(?![A-Za-z0-9_])",
2322
+ "name": "variable.other.regexp.pre-match.perl"
2323
+ },
2324
+ {
2325
+ "captures": {
2326
+ "1": {
2327
+ "name": "punctuation.definition.variable.perl"
2328
+ }
2329
+ },
2330
+ "match": "(\\$)'(?![A-Za-z0-9_])",
2331
+ "name": "variable.other.regexp.post-match.perl"
2332
+ },
2333
+ {
2334
+ "captures": {
2335
+ "1": {
2336
+ "name": "punctuation.definition.variable.perl"
2337
+ }
2338
+ },
2339
+ "match": "(\\$)\\+(?![A-Za-z0-9_])",
2340
+ "name": "variable.other.regexp.last-paren-match.perl"
2341
+ },
2342
+ {
2343
+ "captures": {
2344
+ "1": {
2345
+ "name": "punctuation.definition.variable.perl"
2346
+ }
2347
+ },
2348
+ "match": "(\\$)\"(?![A-Za-z0-9_])",
2349
+ "name": "variable.other.readwrite.list-separator.perl"
2350
+ },
2351
+ {
2352
+ "captures": {
2353
+ "1": {
2354
+ "name": "punctuation.definition.variable.perl"
2355
+ }
2356
+ },
2357
+ "match": "(\\$)0(?![A-Za-z0-9_])",
2358
+ "name": "variable.other.predefined.program-name.perl"
2359
+ },
2360
+ {
2361
+ "captures": {
2362
+ "1": {
2363
+ "name": "punctuation.definition.variable.perl"
2364
+ }
2365
+ },
2366
+ "match": "(\\$)[_ab\\*\\.\\/\\|,\\\\;#%=\\-~^:?!\\$<>\\(\\)\\[\\]@](?![A-Za-z0-9_])",
2367
+ "name": "variable.other.predefined.perl"
2368
+ },
2369
+ {
2370
+ "captures": {
2371
+ "1": {
2372
+ "name": "punctuation.definition.variable.perl"
2373
+ }
2374
+ },
2375
+ "match": "(\\$)[0-9]+(?![A-Za-z0-9_])",
2376
+ "name": "variable.other.subpattern.perl"
2377
+ },
2378
+ {
2379
+ "captures": {
2380
+ "1": {
2381
+ "name": "punctuation.definition.variable.perl"
2382
+ }
2383
+ },
2384
+ "match": "([\\$\\@\\%](#)?)([a-zA-Zx7f-xff\\$]|::)([a-zA-Z0-9_x7f-xff\\$]|::)*\\b",
2385
+ "name": "variable.other.readwrite.global.perl"
2386
+ },
2387
+ {
2388
+ "captures": {
2389
+ "1": {
2390
+ "name": "punctuation.definition.variable.perl"
2391
+ },
2392
+ "2": {
2393
+ "name": "punctuation.definition.variable.perl"
2394
+ }
2395
+ },
2396
+ "match": "(\\$\\{)(?:[a-zA-Zx7f-xff\\$]|::)(?:[a-zA-Z0-9_x7f-xff\\$]|::)*(\\})",
2397
+ "name": "variable.other.readwrite.global.perl"
2398
+ },
2399
+ {
2400
+ "captures": {
2401
+ "1": {
2402
+ "name": "punctuation.definition.variable.perl"
2403
+ }
2404
+ },
2405
+ "match": "([\\$\\@\\%](#)?)[0-9_]\\b",
2406
+ "name": "variable.other.readwrite.global.special.perl"
2407
+ }
2408
+ ]
2409
+ }
2410
+ },
2411
+ "scopeName": "source.perl",
2412
+ "uuid": "EDBFE125-6B1C-11D9-9189-000D93589AF6"
2413
+ }