github-linguist 7.11.1 → 7.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (583) hide show
  1. checksums.yaml +4 -4
  2. data/ext/linguist/lex.linguist_yy.c +619 -363
  3. data/ext/linguist/lex.linguist_yy.h +425 -59
  4. data/ext/linguist/linguist.c +5 -35
  5. data/ext/linguist/linguist.h +0 -18
  6. data/ext/linguist/tokenizer.l +61 -36
  7. data/grammars/annotation.liquidhaskell.haskell.json +1 -1835
  8. data/grammars/config.xcompose.json +1 -80
  9. data/grammars/documentation.markdown.injection.haxe.json +1 -22
  10. data/grammars/etc.json +1 -987
  11. data/grammars/file.lasso.json +1 -702
  12. data/grammars/hidden.manref.json +1 -29
  13. data/grammars/hidden.regexp.injection-shell.json +1 -28
  14. data/grammars/hint.haskell.json +1 -1762
  15. data/grammars/hint.message.haskell.json +1 -1786
  16. data/grammars/hint.type.haskell.json +1 -1759
  17. data/grammars/injections.etc.json +1 -659
  18. data/grammars/inline.prisma.json +1 -55
  19. data/grammars/markdown.hack.codeblock.json +1 -20
  20. data/grammars/markdown.haxe.codeblock.json +1 -26
  21. data/grammars/markdown.hxml.codeblock.json +1 -26
  22. data/grammars/markdown.plantuml.codeblock.json +1 -26
  23. data/grammars/objdump.x86asm.json +1 -69
  24. data/grammars/source.4dm.json +1 -1156
  25. data/grammars/source.SASLog.json +1 -18
  26. data/grammars/source.abap.json +1 -335
  27. data/grammars/source.abl.json +1 -734
  28. data/grammars/source.abnf.json +1 -294
  29. data/grammars/source.actionscript.3.json +1 -1538
  30. data/grammars/source.acucobol.json +1 -13
  31. data/grammars/source.ada.json +1 -133
  32. data/grammars/source.afm.json +1 -1207
  33. data/grammars/source.agc.json +1 -87
  34. data/grammars/source.agda.json +1 -72
  35. data/grammars/source.ahk.json +1 -195
  36. data/grammars/source.al.json +1 -130
  37. data/grammars/source.alloy.json +1 -40
  38. data/grammars/source.ampl.json +1 -151
  39. data/grammars/source.angelscript.json +1 -186
  40. data/grammars/source.antlr.json +1 -295
  41. data/grammars/source.apache-config.json +1 -346
  42. data/grammars/source.apache-config.mod_perl.json +1 -65
  43. data/grammars/source.apl.json +1 -1427
  44. data/grammars/source.applescript.json +1 -1384
  45. data/grammars/source.asl.json +1 -56
  46. data/grammars/source.asn.json +1 -55
  47. data/grammars/source.asp.json +1 -151
  48. data/grammars/source.aspectj.json +1 -960
  49. data/grammars/source.assembly.json +1 -116
  50. data/grammars/source.ats.json +1 -164
  51. data/grammars/source.autoit.json +1 -167
  52. data/grammars/source.avro.json +1 -381
  53. data/grammars/source.awk.json +1 -384
  54. data/grammars/source.ballerina.json +1 -1785
  55. data/grammars/source.batchfile.json +1 -732
  56. data/grammars/source.bdf.json +1 -425
  57. data/grammars/source.befunge.json +1 -34
  58. data/grammars/source.bf.json +1 -30
  59. data/grammars/source.blitzmax.json +1 -905
  60. data/grammars/source.bnf.json +1 -191
  61. data/grammars/source.boo.json +1 -448
  62. data/grammars/source.brightauthorproject.json +1 -24
  63. data/grammars/source.brightscript.json +1 -148
  64. data/grammars/source.bsl.json +1 -451
  65. data/grammars/source.bsv.json +1 -277
  66. data/grammars/source.c++.json +1 -436
  67. data/grammars/source.c++.qt.json +1 -29
  68. data/grammars/source.c.ec.json +1 -33
  69. data/grammars/source.c.json +1 -712
  70. data/grammars/source.c.nwscript.json +1 -0
  71. data/grammars/source.c.platform.json +1 -1115
  72. data/grammars/source.c2hs.json +1 -24
  73. data/grammars/source.cabal.json +1 -63
  74. data/grammars/source.cache.cmake.json +1 -70
  75. data/grammars/source.cake.json +1 -13
  76. data/grammars/source.camlp4.ocaml.json +1 -60
  77. data/grammars/source.capnp.json +1 -88
  78. data/grammars/source.ceylon.json +1 -93
  79. data/grammars/source.cfscript.cfc.json +1 -162
  80. data/grammars/source.cfscript.json +1 -737
  81. data/grammars/source.changelogs.rpm-spec.json +1 -91
  82. data/grammars/source.chapel.json +1 -265
  83. data/grammars/source.cirru.json +1 -61
  84. data/grammars/source.clarion.json +1 -146
  85. data/grammars/source.clean.json +1 -222
  86. data/grammars/source.click.json +1 -107
  87. data/grammars/source.clips.json +1 -67
  88. data/grammars/source.clojure.json +1 -429
  89. data/grammars/source.cm.json +1 -49
  90. data/grammars/source.cmake.json +1 -173
  91. data/grammars/source.cobol.json +1 -485
  92. data/grammars/source.coffee.json +1 -1310
  93. data/grammars/source.cool.json +1 -96
  94. data/grammars/source.coq.json +1 -58
  95. data/grammars/source.crystal.json +1 -2694
  96. data/grammars/source.cs.json +1 -4323
  97. data/grammars/source.csound-document.json +1 -175
  98. data/grammars/source.csound-score.json +1 -191
  99. data/grammars/source.csound.json +1 -824
  100. data/grammars/source.css.json +1 -1859
  101. data/grammars/source.css.less.json +1 -536
  102. data/grammars/source.css.mss.json +1 -249
  103. data/grammars/source.css.postcss.sugarss.json +1 -260
  104. data/grammars/source.css.scss.json +1 -1873
  105. data/grammars/source.csx.json +1 -13
  106. data/grammars/source.cuda-c++.json +1 -103
  107. data/grammars/source.curlrc.json +1 -984
  108. data/grammars/source.cwl.json +1 -103
  109. data/grammars/source.cython.json +1 -1912
  110. data/grammars/source.d.json +1 -741
  111. data/grammars/source.dart.json +1 -433
  112. data/grammars/source.data-weave.json +1 -1580
  113. data/grammars/source.desktop.json +1 -86
  114. data/grammars/source.diff.json +1 -153
  115. data/grammars/source.dircolors.json +1 -137
  116. data/grammars/source.direct-x.json +1 -135
  117. data/grammars/source.disasm.json +1 -30
  118. data/grammars/source.ditroff.desc.json +1 -411
  119. data/grammars/source.ditroff.json +1 -1280
  120. data/grammars/source.dm.json +1 -628
  121. data/grammars/source.dmf.json +1 -96
  122. data/grammars/source.dockerfile.json +1 -88
  123. data/grammars/source.dosbox-conf.json +1 -97
  124. data/grammars/source.dot.json +1 -117
  125. data/grammars/source.dylan.json +1 -212
  126. data/grammars/source.ebnf.json +1 -240
  127. data/grammars/source.editorconfig.json +1 -365
  128. data/grammars/source.eiffel.json +1 -133
  129. data/grammars/source.elixir.json +1 -965
  130. data/grammars/source.elm.json +1 -375
  131. data/grammars/source.emacs.lisp.json +1 -1301
  132. data/grammars/source.erlang.json +1 -1647
  133. data/grammars/source.essl.json +1 -37
  134. data/grammars/source.factor.json +1 -252
  135. data/grammars/source.fan.json +1 -341
  136. data/grammars/source.fancy.json +1 -245
  137. data/grammars/source.faust.json +1 -119
  138. data/grammars/source.figctrl.json +1 -252
  139. data/grammars/source.figfont.json +1 -121
  140. data/grammars/source.firestore.json +1 -289
  141. data/grammars/source.fish.json +1 -190
  142. data/grammars/source.fontdir.json +1 -99
  143. data/grammars/source.fontforge.json +1 -355
  144. data/grammars/source.forth.json +1 -84
  145. data/grammars/source.fortran.json +1 -464
  146. data/grammars/source.fortran.modern.json +1 -200
  147. data/grammars/source.fsharp.fsi.json +1 -9
  148. data/grammars/source.fsharp.fsl.json +1 -9
  149. data/grammars/source.fsharp.fsx.json +1 -13
  150. data/grammars/source.fsharp.json +1 -452
  151. data/grammars/source.fstar.json +1 -439
  152. data/grammars/source.futhark.json +1 -167
  153. data/grammars/source.gap.json +1 -163
  154. data/grammars/source.gcode.json +1 -176
  155. data/grammars/source.gdb.json +1 -160
  156. data/grammars/source.gdb.session.json +1 -70
  157. data/grammars/source.gdbregs.json +1 -14
  158. data/grammars/source.gdscript.json +1 -491
  159. data/grammars/source.gedcom.json +1 -196
  160. data/grammars/source.generic-db.json +1 -41
  161. data/grammars/source.gerber.json +1 -321
  162. data/grammars/source.gf.json +1 -51
  163. data/grammars/source.gfm.blade.json +1 -15
  164. data/grammars/source.gfm.json +1 -1913
  165. data/grammars/source.gitattributes.json +1 -111
  166. data/grammars/source.gitconfig.json +1 -450
  167. data/grammars/source.gitignore.json +1 -140
  168. data/grammars/source.glsl.json +1 -139
  169. data/grammars/source.gn.json +1 -345
  170. data/grammars/source.gnuplot.json +1 -260
  171. data/grammars/source.go.json +1 -540
  172. data/grammars/source.golo.json +1 -177
  173. data/grammars/source.gosu.2.json +1 -153
  174. data/grammars/source.grace.json +1 -675
  175. data/grammars/source.graphql.json +1 -978
  176. data/grammars/source.gremlin.json +1 -200
  177. data/grammars/source.groovy.gradle.json +1 -69
  178. data/grammars/source.groovy.json +1 -1374
  179. data/grammars/source.hack.json +1 -2595
  180. data/grammars/source.haproxy-config.json +1 -152
  181. data/grammars/source.harbour.json +1 -388
  182. data/grammars/source.haskell.json +1 -1760
  183. data/grammars/source.hc.json +1 -709
  184. data/grammars/source.hgignore.json +1 -34
  185. data/grammars/source.hlsl.json +1 -211
  186. data/grammars/source.hosts.json +1 -40
  187. data/grammars/source.hql.json +1 -492
  188. data/grammars/source.hsc2hs.json +1 -9
  189. data/grammars/source.hsig.json +1 -1760
  190. data/grammars/source.httpspec.json +1 -283
  191. data/grammars/source.hx.argument.json +1 -80
  192. data/grammars/source.hx.json +1 -2428
  193. data/grammars/source.hx.type.json +1 -8
  194. data/grammars/source.hxml.json +1 -59
  195. data/grammars/source.hy.json +1 -429
  196. data/grammars/source.ideal.json +1 -356
  197. data/grammars/source.idl-dlm.json +1 -105
  198. data/grammars/source.idl.json +1 -246
  199. data/grammars/source.idris.json +1 -523
  200. data/grammars/source.igor.json +1 -369
  201. data/grammars/source.inform7.json +1 -183
  202. data/grammars/source.ini.json +1 -107
  203. data/grammars/source.ini.npmrc.json +1 -311
  204. data/grammars/source.inno.json +1 -133
  205. data/grammars/source.inputrc.json +1 -500
  206. data/grammars/source.io.json +1 -156
  207. data/grammars/source.ioke.json +1 -266
  208. data/grammars/source.isabelle.root.json +1 -64
  209. data/grammars/source.isabelle.theory.json +1 -102
  210. data/grammars/source.j.json +1 -260
  211. data/grammars/source.jasmin.json +1 -294
  212. data/grammars/source.java-properties.json +1 -87
  213. data/grammars/source.java.json +1 -1020
  214. data/grammars/source.jcl.json +1 -46
  215. data/grammars/source.jflex.json +1 -484
  216. data/grammars/source.jison.json +1 -711
  217. data/grammars/source.jisonlex-injection.json +1 -10
  218. data/grammars/source.jisonlex.json +1 -434
  219. data/grammars/source.jolie.json +1 -132
  220. data/grammars/source.jq.json +1 -211
  221. data/grammars/source.js.css.json +1 -328
  222. data/grammars/source.js.json +1 -1897
  223. data/grammars/source.js.jsx.json +1 -2488
  224. data/grammars/source.js.objj.json +1 -419
  225. data/grammars/source.js.regexp.json +1 -152
  226. data/grammars/source.js.regexp.replacement.json +1 -26
  227. data/grammars/source.jsdoc.json +1 -460
  228. data/grammars/source.json.json +1 -139
  229. data/grammars/source.jsonnet.json +1 -197
  230. data/grammars/source.julia.console.json +1 -51
  231. data/grammars/source.julia.json +1 -991
  232. data/grammars/source.kotlin.json +1 -704
  233. data/grammars/source.lark.json +1 -0
  234. data/grammars/source.lbnf.json +1 -0
  235. data/grammars/source.lcov.json +1 -398
  236. data/grammars/source.lean.json +1 -226
  237. data/grammars/source.lean.markdown.json +1 -2598
  238. data/grammars/source.lex.json +1 -232
  239. data/grammars/source.lex.regexp.json +1 -269
  240. data/grammars/source.lid.json +1 -19
  241. data/grammars/source.lilypond.json +1 -869
  242. data/grammars/source.lisp.json +1 -101
  243. data/grammars/source.litcoffee.json +1 -654
  244. data/grammars/source.livescript.json +1 -603
  245. data/grammars/source.llvm.json +1 -61
  246. data/grammars/source.logos.json +1 -24
  247. data/grammars/source.logtalk.json +1 -310
  248. data/grammars/source.loomscript.json +1 -208
  249. data/grammars/source.lsl.json +1 -241
  250. data/grammars/source.ltspice.symbol.json +1 -294
  251. data/grammars/source.lua.json +1 -275
  252. data/grammars/source.m2.json +1 -125
  253. data/grammars/source.m4.json +1 -229
  254. data/grammars/source.m68k.json +1 -412
  255. data/grammars/source.mailmap.json +1 -28
  256. data/grammars/source.makefile.json +1 -470
  257. data/grammars/source.makegen.json +1 -9
  258. data/grammars/source.man-conf.json +1 -153
  259. data/grammars/source.mask.json +1 -816
  260. data/grammars/source.mata.json +1 -125
  261. data/grammars/source.mathematica.json +1 -416
  262. data/grammars/source.matlab.json +1 -1096
  263. data/grammars/source.maxscript.json +1 -465
  264. data/grammars/source.mcfunction-snapshot.json +1 -24480
  265. data/grammars/source.mcfunction.json +1 -1354
  266. data/grammars/source.mercury.json +1 -246
  267. data/grammars/source.meson.json +1 -165
  268. data/grammars/source.meta-info.json +1 -146
  269. data/grammars/source.ml.json +1 -285
  270. data/grammars/source.mlir.json +1 -109
  271. data/grammars/source.modelica.json +1 -142
  272. data/grammars/source.modula-3.json +1 -88
  273. data/grammars/source.modula2.json +1 -94
  274. data/grammars/source.monkey.json +1 -694
  275. data/grammars/source.moonscript.json +1 -144
  276. data/grammars/source.mql5.json +1 -187
  277. data/grammars/source.msl.json +1 -755
  278. data/grammars/source.mupad.json +1 -131
  279. data/grammars/source.nanorc.json +1 -333
  280. data/grammars/source.nasl.json +1 -155
  281. data/grammars/source.ncl.json +1 -53
  282. data/grammars/source.ne.json +1 -105
  283. data/grammars/source.nemerle.json +1 -132
  284. data/grammars/source.neon.json +1 -381
  285. data/grammars/source.nesc.json +1 -21
  286. data/grammars/source.netlinx.erb.json +1 -34
  287. data/grammars/source.netlinx.json +1 -704
  288. data/grammars/source.nextflow-groovy.json +1 -1359
  289. data/grammars/source.nextflow.json +1 -94
  290. data/grammars/source.nginx.json +1 -815
  291. data/grammars/source.nim.comment.json +1 -82
  292. data/grammars/source.nim.json +1 -1083
  293. data/grammars/source.nim_filter.json +1 -113
  294. data/grammars/source.nimcfg.json +1 -103
  295. data/grammars/source.ninja.json +1 -248
  296. data/grammars/source.nit.json +1 -234
  297. data/grammars/source.nix.json +1 -1196
  298. data/grammars/source.nsis.json +1 -152
  299. data/grammars/source.nu.json +1 -516
  300. data/grammars/source.nut.json +1 -262
  301. data/grammars/source.objc++.json +1 -12
  302. data/grammars/source.objc.json +1 -910
  303. data/grammars/source.objc.platform.json +1 -842
  304. data/grammars/source.objectscript.json +1 -309
  305. data/grammars/source.objectscript_class.json +1 -674
  306. data/grammars/source.objectscript_csp.json +1 -19
  307. data/grammars/source.objectscript_macros.json +1 -226
  308. data/grammars/source.ocaml.json +1 -1418
  309. data/grammars/source.ocamllex.json +1 -298
  310. data/grammars/source.ocamlyacc.json +1 -339
  311. data/grammars/source.odin-ehr.json +1 -806
  312. data/grammars/source.odin.json +1 -402
  313. data/grammars/source.ooc.json +1 -685
  314. data/grammars/source.opa.json +1 -196
  315. data/grammars/source.opal.json +1 -410
  316. data/grammars/source.opalsysdefs.json +1 -66
  317. data/grammars/source.openbsd-pkg.contents.json +1 -128
  318. data/grammars/source.opencobol.json +1 -62
  319. data/grammars/source.opentype.json +1 -448
  320. data/grammars/source.opts.json +1 -108
  321. data/grammars/source.ox.json +1 -89
  322. data/grammars/source.oz.json +1 -77
  323. data/grammars/source.p4.json +1 -122
  324. data/grammars/source.paket.dependencies.json +1 -0
  325. data/grammars/source.paket.lock.json +1 -0
  326. data/grammars/source.pan.json +1 -706
  327. data/grammars/source.papyrus.skyrim.json +1 -1272
  328. data/grammars/source.parrot.pir.json +1 -145
  329. data/grammars/source.pascal.json +1 -143
  330. data/grammars/source.pawn.json +1 -1194
  331. data/grammars/source.pcb.board.json +1 -285
  332. data/grammars/source.pcb.schematic.json +1 -424
  333. data/grammars/source.pcb.sexp.json +1 -232
  334. data/grammars/source.pep8.json +1 -118
  335. data/grammars/source.perl.6.json +1 -309
  336. data/grammars/source.perl.json +1 -2519
  337. data/grammars/source.php.zephir.json +1 -353
  338. data/grammars/source.pic.json +1 -908
  339. data/grammars/source.pig_latin.json +1 -168
  340. data/grammars/source.pike.json +1 -49
  341. data/grammars/source.plist.json +1 -336
  342. data/grammars/source.po.json +1 -222
  343. data/grammars/source.pogoscript.json +1 -79
  344. data/grammars/source.pony.json +1 -245
  345. data/grammars/source.postcss.json +1 -370
  346. data/grammars/source.postscript.json +1 -477
  347. data/grammars/source.pov-ray sdl.json +1 -82
  348. data/grammars/source.powershell.json +1 -981
  349. data/grammars/source.prisma.json +1 -435
  350. data/grammars/source.processing.json +1 -872
  351. data/grammars/source.prolog.eclipse.json +1 -201
  352. data/grammars/source.prolog.json +1 -286
  353. data/grammars/source.protobuf.json +1 -471
  354. data/grammars/source.puppet.json +1 -433
  355. data/grammars/source.purescript.json +1 -861
  356. data/grammars/source.pyjade.json +1 -996
  357. data/grammars/source.python.django.json +1 -29
  358. data/grammars/source.python.json +1 -5292
  359. data/grammars/source.python.salt.json +1 -9
  360. data/grammars/source.q.json +1 -215
  361. data/grammars/source.q_output.json +1 -348
  362. data/grammars/source.qasm.json +1 -66
  363. data/grammars/source.ql.json +1 -1408
  364. data/grammars/source.qmake.json +1 -210
  365. data/grammars/source.qml.json +1 -174
  366. data/grammars/source.qsharp.json +1 -120
  367. data/grammars/source.quake.json +1 -44
  368. data/grammars/source.quoting.raku.json +1 -0
  369. data/grammars/source.r.json +1 -194
  370. data/grammars/source.racket.json +1 -98
  371. data/grammars/source.raku.json +1 -0
  372. data/grammars/source.rascal.json +1 -283
  373. data/grammars/source.reason.hover.type.json +1 -14
  374. data/grammars/source.reason.json +1 -3382
  375. data/grammars/source.rebol.json +1 -637
  376. data/grammars/source.red.json +1 -644
  377. data/grammars/source.reg.json +1 -159
  378. data/grammars/source.regexp.extended.json +1 -558
  379. data/grammars/source.regexp.json +1 -1434
  380. data/grammars/source.regexp.python.json +1 -490
  381. data/grammars/source.regexp.raku.json +1 -0
  382. data/grammars/source.regexp.spin.json +1 -179
  383. data/grammars/source.rego.json +1 -124
  384. data/grammars/source.renpy.json +1 -1948
  385. data/grammars/source.rescript.json +1 -0
  386. data/grammars/source.rexx.json +1 -52
  387. data/grammars/source.ring.json +1 -247
  388. data/grammars/source.rpm-spec.json +1 -765
  389. data/grammars/source.ruby.gemfile.json +1 -24
  390. data/grammars/source.ruby.json +1 -2605
  391. data/grammars/source.ruby.rspec.cucumber.steps.json +1 -261
  392. data/grammars/source.rust.json +1 -629
  393. data/grammars/source.sas.json +1 -286
  394. data/grammars/source.sass.json +1 -1089
  395. data/grammars/source.sassdoc.json +1 -346
  396. data/grammars/source.scad.json +1 -145
  397. data/grammars/source.scala.json +1 -1121
  398. data/grammars/source.scaml.json +1 -451
  399. data/grammars/source.scheme.json +1 -353
  400. data/grammars/source.scilab.json +1 -96
  401. data/grammars/source.sdbl.json +1 -90
  402. data/grammars/source.sed.json +1 -1520
  403. data/grammars/source.shaderlab.json +1 -198
  404. data/grammars/source.shell.json +1 -1272
  405. data/grammars/source.shen.json +1 -143
  406. data/grammars/source.sieve.json +1 -383
  407. data/grammars/source.slice.json +1 -2755
  408. data/grammars/source.smali.json +1 -1610
  409. data/grammars/source.smalltalk.json +1 -187
  410. data/grammars/source.smpl.json +1 -314
  411. data/grammars/source.smt.json +1 -158
  412. data/grammars/source.solidity.json +1 -189
  413. data/grammars/source.sourcepawn.json +1 -651
  414. data/grammars/source.sparql.json +1 -18
  415. data/grammars/source.spin.json +1 -916
  416. data/grammars/source.sqf.json +1 -111
  417. data/grammars/source.sql.json +1 -459
  418. data/grammars/source.ssh-config.json +1 -97
  419. data/grammars/source.stan.json +1 -388
  420. data/grammars/source.stata.json +1 -197
  421. data/grammars/source.strings.json +1 -49
  422. data/grammars/source.stylus.json +1 -1018
  423. data/grammars/source.supercollider.json +1 -93
  424. data/grammars/source.svelte.json +1 -827
  425. data/grammars/source.swift.json +1 -3134
  426. data/grammars/source.sy.json +1 -2954
  427. data/grammars/source.systemverilog.json +1 -1036
  428. data/grammars/source.tags.json +1 -266
  429. data/grammars/source.tcl.json +1 -260
  430. data/grammars/source.tea.json +1 -174
  431. data/grammars/source.terra.json +1 -138
  432. data/grammars/source.terraform.json +1 -694
  433. data/grammars/source.thrift.json +1 -698
  434. data/grammars/source.tl.json +1 -259
  435. data/grammars/source.tla.json +1 -140
  436. data/grammars/source.tnsaudit.json +1 -256
  437. data/grammars/source.toc.json +1 -52
  438. data/grammars/source.toml.json +1 -426
  439. data/grammars/source.ts.json +1 -5581
  440. data/grammars/source.tsql.json +1 -507
  441. data/grammars/source.tsx.json +1 -5834
  442. data/grammars/source.turing.json +1 -1553
  443. data/grammars/source.turtle.json +1 -489
  444. data/grammars/source.txl.json +1 -48
  445. data/grammars/source.ucd.nameslist.json +1 -444
  446. data/grammars/source.ucd.unidata.json +1 -570
  447. data/grammars/source.ucfconstraints.json +1 -67
  448. data/grammars/source.ur.json +1 -31
  449. data/grammars/source.v.json +1 -1010
  450. data/grammars/source.vala.json +1 -800
  451. data/grammars/source.varnish.vcl.json +1 -331
  452. data/grammars/source.vbnet.json +1 -239
  453. data/grammars/source.verilog.json +1 -296
  454. data/grammars/source.vhdl.json +1 -1374
  455. data/grammars/source.vim-snippet.json +1 -645
  456. data/grammars/source.viml.json +1 -1197
  457. data/grammars/source.vtt.json +1 -702
  458. data/grammars/source.vyper.json +1 -213
  459. data/grammars/source.wavefront.mtl.json +1 -1190
  460. data/grammars/source.wavefront.obj.json +1 -1341
  461. data/grammars/source.wdl.json +1 -220
  462. data/grammars/source.webassembly.json +1 -349
  463. data/grammars/source.webidl.json +1 -807
  464. data/grammars/source.wgetrc.json +1 -1640
  465. data/grammars/source.wollok.json +1 -100
  466. data/grammars/source.wsd.json +1 -781
  467. data/grammars/source.x10.json +1 -64
  468. data/grammars/source.x86.json +1 -299
  469. data/grammars/source.x86asm.json +1 -42
  470. data/grammars/source.xc.json +1 -371
  471. data/grammars/source.xlfd.json +1 -462
  472. data/grammars/source.xojo.json +1 -85
  473. data/grammars/source.xq.json +1 -230
  474. data/grammars/source.xtend.json +1 -724
  475. data/grammars/source.yacc.json +1 -626
  476. data/grammars/source.yaml.json +1 -443
  477. data/grammars/source.yaml.salt.json +1 -345
  478. data/grammars/source.yang.json +1 -78
  479. data/grammars/source.yara.json +1 -99
  480. data/grammars/source.yasnippet.json +1 -377
  481. data/grammars/source.zap.json +1 -260
  482. data/grammars/source.zeek.json +1 -412
  483. data/grammars/source.zenscript.json +1 -282
  484. data/grammars/source.zig.json +1 -547
  485. data/grammars/source.zil.json +1 -750
  486. data/grammars/text.bibtex.json +1 -246
  487. data/grammars/text.cfml.basic.json +1 -735
  488. data/grammars/text.conllu.json +1 -45
  489. data/grammars/text.dfy.dafny.json +1 -188
  490. data/grammars/text.elixir.json +1 -52
  491. data/grammars/text.eml.basic.json +1 -296
  492. data/grammars/text.error-list.json +1 -53
  493. data/grammars/text.find-refs.json +1 -926
  494. data/grammars/text.gherkin.feature.json +1 -127
  495. data/grammars/text.haml.json +1 -518
  496. data/grammars/text.hamlc.json +1 -219
  497. data/grammars/text.html.asciidoc.json +1 -478
  498. data/grammars/text.html.asdoc.json +1 -529
  499. data/grammars/text.html.asp.json +1 -53
  500. data/grammars/text.html.basic.json +1 -908
  501. data/grammars/text.html.cfm.json +1 -802
  502. data/grammars/text.html.creole.json +1 -317
  503. data/grammars/text.html.cshtml.json +1 -356
  504. data/grammars/text.html.django.json +1 -63
  505. data/grammars/text.html.ecr.json +1 -48
  506. data/grammars/text.html.elixir.json +1 -21
  507. data/grammars/text.html.erb.json +1 -150
  508. data/grammars/text.html.erlang.yaws.json +1 -67
  509. data/grammars/text.html.factor.json +1 -19
  510. data/grammars/text.html.ftl.json +1 -76
  511. data/grammars/text.html.handlebars.json +1 -845
  512. data/grammars/text.html.javadoc.json +1 -426
  513. data/grammars/text.html.js.json +1 -24
  514. data/grammars/text.html.jsp.json +1 -1196
  515. data/grammars/text.html.liquid.json +1 -25
  516. data/grammars/text.html.mako.json +1 -726
  517. data/grammars/text.html.markdown.source.gfm.apib.json +1 -1298
  518. data/grammars/text.html.markdown.source.gfm.mson.json +1 -1156
  519. data/grammars/text.html.mediawiki.elm-build-output.json +1 -97
  520. data/grammars/text.html.mediawiki.elm-documentation.json +1 -17
  521. data/grammars/text.html.mediawiki.json +1 -946
  522. data/grammars/text.html.php.blade.json +1 -3833
  523. data/grammars/text.html.php.json +1 -2507
  524. data/grammars/text.html.riot.json +1 -788
  525. data/grammars/text.html.slash.json +1 -307
  526. data/grammars/text.html.smarty.json +1 -232
  527. data/grammars/text.html.soy.json +1 -606
  528. data/grammars/text.html.ssp.json +1 -43
  529. data/grammars/text.html.tcl.json +1 -37
  530. data/grammars/text.html.twig.json +1 -1344
  531. data/grammars/text.html.vue.json +1 -963
  532. data/grammars/text.idl-idldoc.json +1 -10
  533. data/grammars/text.jade.json +1 -963
  534. data/grammars/text.junit-test-report.json +1 -89
  535. data/grammars/text.log.latex.json +1 -84
  536. data/grammars/text.marko.json +1 -1662
  537. data/grammars/text.muse.json +1 -1471
  538. data/grammars/text.openbsd-pkg.desc.json +1 -78
  539. data/grammars/text.plain.json +1 -18
  540. data/grammars/text.python.console.json +1 -21
  541. data/grammars/text.python.traceback.json +1 -43
  542. data/grammars/text.rdoc.json +1 -44
  543. data/grammars/text.restructuredtext.clean.json +1 -24
  544. data/grammars/text.restructuredtext.json +1 -1765
  545. data/grammars/text.robot.json +1 -63
  546. data/grammars/text.roff.json +1 -6927
  547. data/grammars/text.rtf.json +1 -148
  548. data/grammars/text.runoff.json +1 -308
  549. data/grammars/text.sfd.json +1 -292
  550. data/grammars/text.shell-session.json +1 -29
  551. data/grammars/text.slim.json +1 -527
  552. data/grammars/text.srt.json +1 -166
  553. data/grammars/text.tex.json +1 -264
  554. data/grammars/text.tex.latex.beamer.json +1 -57
  555. data/grammars/text.tex.latex.haskell.json +1 -1826
  556. data/grammars/text.tex.latex.json +1 -1003
  557. data/grammars/text.tex.latex.memoir.json +1 -129
  558. data/grammars/text.tex.latex.rd.json +1 -111
  559. data/grammars/text.texinfo.json +1 -1525
  560. data/grammars/text.vim-help.json +1 -383
  561. data/grammars/text.xml.ant.json +1 -195
  562. data/grammars/text.xml.flex-config.json +1 -2628
  563. data/grammars/text.xml.genshi.json +1 -28
  564. data/grammars/text.xml.json +1 -351
  565. data/grammars/text.xml.plist.json +1 -664
  566. data/grammars/text.xml.pom.json +1 -769
  567. data/grammars/text.xml.svg.json +1 -562
  568. data/grammars/text.xml.xsl.json +1 -88
  569. data/grammars/text.zone_file.json +1 -67
  570. data/grammars/version +1 -1
  571. data/lib/linguist/VERSION +1 -1
  572. data/lib/linguist/generic.yml +17 -0
  573. data/lib/linguist/heuristics.yml +37 -17
  574. data/lib/linguist/languages.json +1 -1
  575. data/lib/linguist/languages.yml +41 -2
  576. data/lib/linguist/linguist.bundle +0 -0
  577. data/lib/linguist/samples.json +1 -1
  578. data/lib/linguist/strategy/extension.rb +13 -5
  579. metadata +12 -6
  580. data/ext/linguist/strndup.c +0 -10
  581. data/grammars/source.perl6fe.json +0 -2769
  582. data/grammars/source.quoting.perl6fe.json +0 -2369
  583. data/grammars/source.regexp.perl6fe.json +0 -244
@@ -1,1434 +1 @@
1
- {
2
- "name": "Regular Expression",
3
- "scopeName": "source.regexp",
4
- "patterns": [
5
- {
6
- "begin": "\\A\\s*(?:/\\s*)?(\\(\\?\\^?[A-Za-wyz]*x[A-Za-z]*[-A-Za-wyz]*\\))",
7
- "end": "(?=A)B",
8
- "patterns": [
9
- {
10
- "include": "source.regexp.extended"
11
- }
12
- ],
13
- "beginCaptures": {
14
- "1": {
15
- "patterns": [
16
- {
17
- "include": "#group"
18
- }
19
- ]
20
- }
21
- }
22
- },
23
- {
24
- "begin": "\\A(?:\\xC2\\xAD|\\xAD){2}",
25
- "end": "(?=A)B",
26
- "patterns": [
27
- {
28
- "include": "source.sy"
29
- }
30
- ]
31
- },
32
- {
33
- "include": "#main"
34
- }
35
- ],
36
- "repository": {
37
- "alternation": {
38
- "name": "keyword.operator.logical.or.regexp",
39
- "match": "\\|"
40
- },
41
- "anchor": {
42
- "patterns": [
43
- {
44
- "name": "keyword.control.anchor.line-start.regexp",
45
- "match": "\\^"
46
- },
47
- {
48
- "name": "keyword.control.anchor.line-end.regexp",
49
- "match": "\\$"
50
- },
51
- {
52
- "name": "keyword.control.anchor.string-start.regexp",
53
- "match": "\\\\A"
54
- },
55
- {
56
- "name": "keyword.control.anchor.string-end-line.regexp",
57
- "match": "\\\\Z"
58
- },
59
- {
60
- "name": "keyword.control.anchor.string-end.regexp",
61
- "match": "\\\\z"
62
- },
63
- {
64
- "name": "keyword.control.anchor.search-start.regexp",
65
- "match": "\\\\G"
66
- },
67
- {
68
- "name": "meta.unicode-boundary.regexp",
69
- "match": "(?:(\\\\b)|(\\\\B))(\\{)(\\w+)(})",
70
- "captures": {
71
- "1": {
72
- "name": "keyword.control.anchor.word-boundary.regexp"
73
- },
74
- "2": {
75
- "name": "keyword.control.anchor.non-word-boundary.regexp"
76
- },
77
- "3": {
78
- "name": "punctuation.definition.unicode-boundary.bracket.curly.begin.regexp"
79
- },
80
- "4": {
81
- "name": "entity.property.name.regexp"
82
- },
83
- "5": {
84
- "name": "punctuation.definition.unicode-boundary.bracket.curly.end.regexp"
85
- }
86
- }
87
- },
88
- {
89
- "name": "keyword.control.anchor.word-boundary.regexp",
90
- "match": "\\\\b"
91
- },
92
- {
93
- "name": "keyword.control.anchor.non-word-boundary.regexp",
94
- "match": "\\\\B"
95
- }
96
- ]
97
- },
98
- "assertion": {
99
- "patterns": [
100
- {
101
- "name": "meta.assertion.positive.look-ahead.regexp",
102
- "begin": "\\(\\?=",
103
- "end": "\\)",
104
- "patterns": [
105
- {
106
- "include": "#main"
107
- }
108
- ],
109
- "beginCaptures": {
110
- "0": {
111
- "name": "punctuation.definition.assertion.begin.regexp"
112
- }
113
- },
114
- "endCaptures": {
115
- "0": {
116
- "name": "punctuation.definition.assertion.end.regexp"
117
- }
118
- }
119
- },
120
- {
121
- "name": "meta.assertion.negative.look-ahead.regexp",
122
- "begin": "\\(\\?!",
123
- "end": "\\)",
124
- "patterns": [
125
- {
126
- "include": "#main"
127
- }
128
- ],
129
- "beginCaptures": {
130
- "0": {
131
- "name": "punctuation.definition.assertion.begin.regexp"
132
- }
133
- },
134
- "endCaptures": {
135
- "0": {
136
- "name": "punctuation.definition.assertion.end.regexp"
137
- }
138
- }
139
- },
140
- {
141
- "name": "meta.assertion.negative.look-behind.regexp",
142
- "begin": "\\(\\?\u003c!",
143
- "end": "\\)",
144
- "patterns": [
145
- {
146
- "include": "#main"
147
- }
148
- ],
149
- "beginCaptures": {
150
- "0": {
151
- "name": "punctuation.definition.assertion.begin.regexp"
152
- }
153
- },
154
- "endCaptures": {
155
- "0": {
156
- "name": "punctuation.definition.assertion.end.regexp"
157
- }
158
- }
159
- },
160
- {
161
- "name": "meta.assertion.positive.look-behind.regexp",
162
- "begin": "\\(\\?\u003c=",
163
- "end": "\\)",
164
- "patterns": [
165
- {
166
- "include": "#main"
167
- }
168
- ],
169
- "beginCaptures": {
170
- "0": {
171
- "name": "punctuation.definition.assertion.begin.regexp"
172
- }
173
- },
174
- "endCaptures": {
175
- "0": {
176
- "name": "punctuation.definition.assertion.end.regexp"
177
- }
178
- }
179
- }
180
- ]
181
- },
182
- "calloutBrackets": {
183
- "begin": "{",
184
- "end": "}",
185
- "patterns": [
186
- {
187
- "include": "#calloutBrackets"
188
- },
189
- {
190
- "include": "#main"
191
- }
192
- ],
193
- "beginCaptures": {
194
- "0": {
195
- "name": "punctuation.definition.bracket.curly.begin.regexp"
196
- }
197
- },
198
- "endCaptures": {
199
- "0": {
200
- "name": "punctuation.definition.bracket.curly.end.regexp"
201
- }
202
- }
203
- },
204
- "class": {
205
- "name": "meta.character-class.set.regexp",
206
- "begin": "\\[",
207
- "end": "\\]",
208
- "patterns": [
209
- {
210
- "include": "#classInnards"
211
- }
212
- ],
213
- "beginCaptures": {
214
- "0": {
215
- "name": "punctuation.definition.character-class.set.begin.regexp"
216
- }
217
- },
218
- "endCaptures": {
219
- "0": {
220
- "name": "punctuation.definition.character-class.set.end.regexp"
221
- }
222
- }
223
- },
224
- "classInnards": {
225
- "patterns": [
226
- {
227
- "name": "keyword.operator.logical.not.regexp",
228
- "match": "\\G\\^"
229
- },
230
- {
231
- "name": "constant.character.escape.backspace.regexp",
232
- "match": "\\\\b"
233
- },
234
- {
235
- "begin": "(\u0026\u0026)(\\[)",
236
- "end": "\\]",
237
- "patterns": [
238
- {
239
- "include": "#classInnards"
240
- }
241
- ],
242
- "beginCaptures": {
243
- "1": {
244
- "name": "keyword.operator.logical.intersect.regexp"
245
- },
246
- "2": {
247
- "name": "punctuation.definition.character-class.set.begin.regexp"
248
- }
249
- },
250
- "endCaptures": {
251
- "0": {
252
- "name": "punctuation.definition.character-class.set.end.regexp"
253
- }
254
- }
255
- },
256
- {
257
- "name": "keyword.operator.logical.intersect.regexp",
258
- "match": "\u0026\u0026"
259
- },
260
- {
261
- "name": "punctuation.separator.range.dash.regexp",
262
- "match": "(?\u003c!\\G|\\\\[dwshDWSHN])-(?!\\])"
263
- },
264
- {
265
- "name": "constant.language.posix.$2-char.character-class.regexp",
266
- "match": "(\\[:)(\\^?)(\\w+)(:\\])",
267
- "captures": {
268
- "1": {
269
- "name": "punctuation.definition.character-class.set.begin.regexp"
270
- },
271
- "2": {
272
- "name": "keyword.operator.logical.not.regexp"
273
- },
274
- "3": {
275
- "name": "support.constant.posix-class.regexp"
276
- },
277
- "4": {
278
- "name": "punctuation.definition.character-class.set.end.regexp"
279
- }
280
- }
281
- },
282
- {
283
- "name": "constant.character.escape.backslash.regexp",
284
- "match": "\\\\\\[|\\\\\\]"
285
- },
286
- {
287
- "match": "\\^|\\$|\\(|\\)|\\["
288
- },
289
- {
290
- "include": "#escape"
291
- },
292
- {
293
- "include": "$self"
294
- },
295
- {
296
- "name": "constant.single.character.character-class.regexp",
297
- "match": "[^\\]]"
298
- }
299
- ]
300
- },
301
- "comment": {
302
- "name": "comment.block.regexp",
303
- "begin": "\\(\\?#",
304
- "end": "\\)",
305
- "patterns": [
306
- {
307
- "name": "constant.character.escape.backslash.regexp",
308
- "match": "\\\\."
309
- }
310
- ]
311
- },
312
- "conditional": {
313
- "name": "meta.conditional.regexp",
314
- "begin": "(\\()(\\?)(?=\\()",
315
- "end": "\\)",
316
- "patterns": [
317
- {
318
- "name": "punctuation.separator.condition.if-else.regexp",
319
- "match": "\\|"
320
- },
321
- {
322
- "include": "#assertion"
323
- },
324
- {
325
- "name": "meta.condition.function-call.regexp",
326
- "begin": "\\G\\(",
327
- "end": "\\)",
328
- "patterns": [
329
- {
330
- "name": "storage.type.function.subpattern.regexp",
331
- "match": "\\GDEFINE"
332
- },
333
- {
334
- "name": "keyword.other.assertion.regexp",
335
- "match": "\\Gassert"
336
- },
337
- {
338
- "match": "\\G(?:(\u003c)([^\u003e]+)(\u003e)|(')([^\u003e]+)('))",
339
- "captures": {
340
- "1": {
341
- "name": "punctuation.definition.group-reference.bracket.angle.begin.regexp"
342
- },
343
- "2": {
344
- "name": "entity.group.name.regexp"
345
- },
346
- "3": {
347
- "name": "punctuation.definition.group-reference.bracket.angle.end.regexp"
348
- },
349
- "4": {
350
- "name": "punctuation.definition.group-reference.quote.single.begin.regexp"
351
- },
352
- "5": {
353
- "name": "entity.group.name.regexp"
354
- },
355
- "6": {
356
- "name": "punctuation.definition.group-reference.quote.single.end.regexp"
357
- }
358
- }
359
- },
360
- {
361
- "match": "\\G(R(\u0026))(\\w+)",
362
- "captures": {
363
- "1": {
364
- "name": "keyword.other.recursion.specific.regexp"
365
- },
366
- "2": {
367
- "name": "punctuation.definition.reference.regexp"
368
- },
369
- "3": {
370
- "name": "entity.group.name.regexp"
371
- }
372
- }
373
- },
374
- {
375
- "name": "keyword.other.recursion.specific-group.regexp",
376
- "match": "\\GR\\d+"
377
- },
378
- {
379
- "name": "keyword.other.recursion.overall.regexp",
380
- "match": "\\GR"
381
- },
382
- {
383
- "name": "keyword.other.reference.absolute.regexp",
384
- "match": "\\G\\d+"
385
- },
386
- {
387
- "name": "keyword.other.reference.relative.regexp",
388
- "match": "\\G[-+]\\d+"
389
- },
390
- {
391
- "name": "entity.group.name.regexp",
392
- "match": "\\G\\w+"
393
- }
394
- ],
395
- "beginCaptures": {
396
- "0": {
397
- "name": "punctuation.section.condition.begin.regexp"
398
- }
399
- },
400
- "endCaptures": {
401
- "0": {
402
- "name": "punctuation.section.condition.end.regexp"
403
- }
404
- }
405
- },
406
- {
407
- "include": "#main"
408
- }
409
- ],
410
- "beginCaptures": {
411
- "1": {
412
- "name": "punctuation.section.condition.begin.regexp"
413
- },
414
- "2": {
415
- "name": "keyword.control.flow.regexp"
416
- }
417
- },
418
- "endCaptures": {
419
- "0": {
420
- "name": "punctuation.section.condition.end.regexp"
421
- }
422
- }
423
- },
424
- "escape": {
425
- "patterns": [
426
- {
427
- "name": "constant.character.escape.decimal.regexp",
428
- "match": "\\\\d"
429
- },
430
- {
431
- "name": "constant.character.escape.whitespace.regexp",
432
- "match": "\\\\s"
433
- },
434
- {
435
- "name": "constant.character.escape.word-char.regexp",
436
- "match": "\\\\w"
437
- },
438
- {
439
- "name": "constant.character.escape.newline.regexp",
440
- "match": "\\\\n"
441
- },
442
- {
443
- "name": "constant.character.escape.tab.regexp",
444
- "match": "\\\\t"
445
- },
446
- {
447
- "name": "constant.character.escape.return.regexp",
448
- "match": "\\\\r"
449
- },
450
- {
451
- "name": "constant.character.escape.non-decimal.regexp",
452
- "match": "\\\\D"
453
- },
454
- {
455
- "name": "constant.character.escape.non-whitespace.regexp",
456
- "match": "\\\\S"
457
- },
458
- {
459
- "name": "constant.character.escape.non-word-char.regexp",
460
- "match": "\\\\W"
461
- },
462
- {
463
- "name": "constant.character.escape.alarm.regexp",
464
- "match": "\\\\a"
465
- },
466
- {
467
- "name": "constant.character.escape.escape-char.regexp",
468
- "match": "\\\\e"
469
- },
470
- {
471
- "name": "constant.character.escape.form-feed.regexp",
472
- "match": "\\\\f"
473
- },
474
- {
475
- "name": "constant.character.escape.vertical-tab.regexp",
476
- "match": "\\\\v"
477
- },
478
- {
479
- "name": "constant.character.escape.numeric.regexp",
480
- "match": "\\\\x[0-9A-Fa-f]{2}"
481
- },
482
- {
483
- "name": "meta.character-escape.hex.regexp",
484
- "match": "(\\\\x)(\\{)([0-9A-Fa-f]{2,})(\\})",
485
- "captures": {
486
- "1": {
487
- "name": "keyword.operator.unicode-escape.hex.regexp"
488
- },
489
- "2": {
490
- "name": "punctuation.definition.unicode-escape.bracket.curly.begin.regexp"
491
- },
492
- "3": {
493
- "name": "constant.numeric.codepoint.hex.regexp"
494
- },
495
- "4": {
496
- "name": "punctuation.definition.unicode-escape.bracket.curly.end.regexp"
497
- }
498
- }
499
- },
500
- {
501
- "name": "meta.character-escape.octal.regexp",
502
- "match": "(\\\\o)(\\{)(\\d{2,})(\\})",
503
- "captures": {
504
- "1": {
505
- "name": "keyword.operator.unicode-escape.octal.regexp"
506
- },
507
- "2": {
508
- "name": "punctuation.definition.unicode-escape.bracket.curly.begin.regexp"
509
- },
510
- "3": {
511
- "name": "constant.numeric.codepoint.octal.regexp"
512
- },
513
- "4": {
514
- "name": "punctuation.definition.unicode-escape.bracket.curly.end.regexp"
515
- }
516
- }
517
- },
518
- {
519
- "name": "meta.unicode-property.regexp",
520
- "match": "(\\\\[Pp])(\\{)(\\^?)([^{}]+)(\\})",
521
- "captures": {
522
- "1": {
523
- "name": "keyword.operator.unicode-property.regexp"
524
- },
525
- "2": {
526
- "name": "punctuation.definition.unicode-escape.bracket.curly.begin.regexp"
527
- },
528
- "3": {
529
- "name": "keyword.operator.logical.not.regexp"
530
- },
531
- "4": {
532
- "name": "entity.property.name.regexp",
533
- "patterns": [
534
- {
535
- "include": "#propInnards"
536
- }
537
- ]
538
- },
539
- "5": {
540
- "name": "punctuation.definition.unicode-escape.bracket.curly.end.regexp"
541
- }
542
- }
543
- },
544
- {
545
- "name": "meta.unicode-property.single-letter.regexp",
546
- "match": "(\\\\[Pp])(\\w)",
547
- "captures": {
548
- "1": {
549
- "name": "keyword.operator.unicode-property.regexp"
550
- },
551
- "2": {
552
- "name": "entity.property.name.regexp"
553
- }
554
- }
555
- },
556
- {
557
- "name": "meta.group-reference.regexp",
558
- "contentName": "entity.group.name.regexp",
559
- "begin": "(\\\\[kg])(\u003c)",
560
- "end": "\u003e",
561
- "patterns": [
562
- {
563
- "include": "#groupRefInnards"
564
- }
565
- ],
566
- "beginCaptures": {
567
- "1": {
568
- "name": "keyword.operator.group-reference.regexp"
569
- },
570
- "2": {
571
- "name": "punctuation.definition.group-reference.bracket.angle.begin.regexp"
572
- }
573
- },
574
- "endCaptures": {
575
- "0": {
576
- "name": "punctuation.definition.group-reference.bracket.angle.end.regexp"
577
- }
578
- }
579
- },
580
- {
581
- "name": "meta.group-reference.regexp",
582
- "contentName": "entity.group.name.regexp",
583
- "begin": "(\\\\[kg])(')",
584
- "end": "'",
585
- "patterns": [
586
- {
587
- "include": "#groupRefInnards"
588
- }
589
- ],
590
- "beginCaptures": {
591
- "1": {
592
- "name": "keyword.operator.group-reference.regexp"
593
- },
594
- "2": {
595
- "name": "punctuation.definition.group-reference.quote.single.begin.regexp"
596
- }
597
- },
598
- "endCaptures": {
599
- "0": {
600
- "name": "punctuation.definition.group-reference.quote.single.end.regexp"
601
- }
602
- }
603
- },
604
- {
605
- "name": "meta.group-reference.regexp",
606
- "contentName": "entity.group.name.regexp",
607
- "begin": "(\\\\[kg])({)",
608
- "end": "}",
609
- "beginCaptures": {
610
- "1": {
611
- "name": "keyword.operator.group-reference.regexp"
612
- },
613
- "2": {
614
- "name": "punctuation.definition.group-reference.bracket.curly.begin.regexp"
615
- }
616
- },
617
- "endCaptures": {
618
- "0": {
619
- "name": "punctuation.definition.group-reference.bracket.curly.end.regexp"
620
- }
621
- }
622
- },
623
- {
624
- "name": "meta.group-reference.single-letter.regexp",
625
- "match": "(\\\\g)(\\d)",
626
- "captures": {
627
- "1": {
628
- "name": "keyword.operator.group-reference.regexp"
629
- },
630
- "2": {
631
- "name": "entity.group.name.regexp"
632
- }
633
- }
634
- },
635
- {
636
- "name": "meta.named-char.regexp",
637
- "match": "(\\\\N)(\\{)([^{}]+)(\\})",
638
- "captures": {
639
- "1": {
640
- "name": "keyword.operator.named-char.regexp"
641
- },
642
- "2": {
643
- "name": "punctuation.definition.unicode-escape.bracket.curly.begin.regexp"
644
- },
645
- "3": {
646
- "name": "entity.character.name.regexp",
647
- "patterns": [
648
- {
649
- "name": "punctuation.separator.colon.regexp",
650
- "match": ":"
651
- },
652
- {
653
- "name": "punctuation.separator.codepoint.regexp",
654
- "match": "(?\u003c=U)\\+(?=[A-Fa-f0-9])"
655
- }
656
- ]
657
- },
658
- "4": {
659
- "name": "punctuation.definition.unicode-escape.bracket.curly.end.regexp"
660
- }
661
- }
662
- },
663
- {
664
- "name": "constant.character.escape.octal.numeric.regexp",
665
- "match": "\\\\(?:\\d{3}|0\\d)"
666
- },
667
- {
668
- "name": "constant.character.escape.null-byte.numeric.regexp",
669
- "match": "\\\\0"
670
- },
671
- {
672
- "name": "keyword.other.back-reference.$1.regexp",
673
- "match": "\\\\(\\d{1,2})"
674
- },
675
- {
676
- "name": "constant.character.escape.control-char.regexp",
677
- "match": "\\\\(?:c|C-)[?-_]"
678
- },
679
- {
680
- "name": "constant.character.escape.hex-digit.regexp",
681
- "match": "\\\\h"
682
- },
683
- {
684
- "name": "constant.character.escape.non-hex-digit.regexp",
685
- "match": "\\\\H"
686
- },
687
- {
688
- "name": "keyword.control.end-mode.regexp",
689
- "match": "\\\\E"
690
- },
691
- {
692
- "name": "keyword.control.quote-mode.regexp",
693
- "match": "\\\\Q"
694
- },
695
- {
696
- "name": "keyword.control.foldcase-mode.regexp",
697
- "match": "\\\\F"
698
- },
699
- {
700
- "name": "keyword.control.lowercase-mode.regexp",
701
- "match": "\\\\L"
702
- },
703
- {
704
- "name": "keyword.control.titlecase-mode.regexp",
705
- "match": "\\\\U"
706
- },
707
- {
708
- "name": "keyword.control.keep-out.regexp",
709
- "match": "\\\\K"
710
- },
711
- {
712
- "name": "constant.character.escape.lowercase-next.regexp",
713
- "match": "\\\\l"
714
- },
715
- {
716
- "name": "constant.character.escape.titlecase-next.regexp",
717
- "match": "\\\\u"
718
- },
719
- {
720
- "name": "constant.character.escape.non-newline.regexp",
721
- "match": "\\\\N"
722
- },
723
- {
724
- "name": "constant.character.escape.extended-grapheme.regexp",
725
- "match": "\\\\X"
726
- },
727
- {
728
- "name": "constant.character.escape.linebreak-grapheme.regexp",
729
- "match": "\\\\R"
730
- },
731
- {
732
- "name": "constant.character.escape.non-vertical-whitespace.regexp",
733
- "match": "\\\\V"
734
- },
735
- {
736
- "name": "constant.character.escape.meta-control.regexp",
737
- "match": "\\\\M-\\\\C-[?-_]"
738
- },
739
- {
740
- "name": "constant.character.escape.meta-char.regexp",
741
- "match": "\\\\M-."
742
- },
743
- {
744
- "name": "constant.character.escape.any-char.regexp",
745
- "match": "\\\\O"
746
- },
747
- {
748
- "name": "keyword.control.anchor.text-boundary.regexp",
749
- "match": "\\\\[yY]"
750
- },
751
- {
752
- "name": "constant.character.escape.misc.regexp",
753
- "match": "\\\\."
754
- }
755
- ]
756
- },
757
- "fixedGroups": {
758
- "patterns": [
759
- {
760
- "name": "meta.group-reference.reset.regexp",
761
- "match": "(\\()(\\?[R0])(\\))",
762
- "captures": {
763
- "1": {
764
- "name": "punctuation.definition.group.begin.regexp"
765
- },
766
- "2": {
767
- "name": "keyword.other.back-reference.regexp"
768
- },
769
- "3": {
770
- "name": "punctuation.definition.group.end.regexp"
771
- }
772
- }
773
- },
774
- {
775
- "name": "meta.group.scoped-modifiers.regexp",
776
- "match": "(\\(\\?)((?:y{[\\w]+}|[-A-Za-z^])*)(\\))",
777
- "captures": {
778
- "1": {
779
- "name": "punctuation.definition.group.begin.regexp"
780
- },
781
- "2": {
782
- "patterns": [
783
- {
784
- "include": "#scopedModifiers"
785
- }
786
- ]
787
- },
788
- "3": {
789
- "name": "punctuation.definition.group.end.regexp"
790
- }
791
- }
792
- },
793
- {
794
- "name": "meta.control-verb.regexp",
795
- "match": "(\\(\\*)(\\w*)(?:([:=])([^\\s()]*))?(\\))",
796
- "captures": {
797
- "1": {
798
- "name": "punctuation.definition.group.begin.regexp"
799
- },
800
- "2": {
801
- "name": "keyword.control.verb.regexp"
802
- },
803
- "3": {
804
- "name": "punctuation.separator.key-value.regexp"
805
- },
806
- "4": {
807
- "name": "variable.parameter.control-verb.regexp"
808
- },
809
- "5": {
810
- "name": "punctuation.definition.group.begin.regexp"
811
- }
812
- }
813
- },
814
- {
815
- "name": "meta.group-reference.named.regexp",
816
- "match": "(\\()(\\?(?:\u0026|P[\u003e=]))(\\w+)(\\))",
817
- "captures": {
818
- "1": {
819
- "name": "punctuation.definition.group.begin.regexp"
820
- },
821
- "2": {
822
- "name": "keyword.other.back-reference.regexp"
823
- },
824
- "3": {
825
- "name": "entity.group.name.regexp"
826
- },
827
- "4": {
828
- "name": "punctuation.definition.group.begin.regexp"
829
- }
830
- }
831
- },
832
- {
833
- "name": "meta.group-reference.relative.regexp",
834
- "match": "(\\()(\\?[-+]\\d+)(\\))",
835
- "captures": {
836
- "1": {
837
- "name": "punctuation.definition.group.begin.regexp"
838
- },
839
- "2": {
840
- "name": "keyword.other.back-reference.regexp"
841
- },
842
- "3": {
843
- "name": "punctuation.definition.group.end.regexp"
844
- }
845
- }
846
- },
847
- {
848
- "name": "meta.callout.regexp",
849
- "match": "(\\()(\\?C\\d*)(\\))",
850
- "captures": {
851
- "1": {
852
- "name": "punctuation.definition.group.begin.regexp"
853
- },
854
- "2": {
855
- "name": "keyword.control.callout.regexp"
856
- },
857
- "3": {
858
- "name": "punctuation.definition.group.end.regexp"
859
- }
860
- }
861
- },
862
- {
863
- "name": "meta.callout.regexp",
864
- "match": "(?x)\n(\\(\\*)\n([_A-Za-z][_A-Za-z0-9]*) # Name\n((\\[)([_A-Za-z][_A-Za-z0-9]*)(\\])) # [tag]\n(\\))",
865
- "captures": {
866
- "1": {
867
- "name": "punctuation.definition.group.begin.regexp"
868
- },
869
- "2": {
870
- "name": "entity.name.callout.regexp"
871
- },
872
- "3": {
873
- "name": "entity.name.tag.callout-tag.regexp"
874
- },
875
- "4": {
876
- "name": "punctuation.definition.callout-tag.begin.regexp"
877
- },
878
- "5": {
879
- "name": "callout-tag.constant.other.regexp"
880
- },
881
- "6": {
882
- "name": "punctuation.definition.callout-tag.end.regexp"
883
- },
884
- "7": {
885
- "name": "punctuation.definition.group.end.regexp"
886
- }
887
- }
888
- },
889
- {
890
- "name": "meta.absent-function.clear-range.regexp",
891
- "match": "(\\()(\\?~)(\\|)(\\))",
892
- "captures": {
893
- "1": {
894
- "name": "punctuation.definition.group.begin.regexp"
895
- },
896
- "2": {
897
- "name": "keyword.control.flow.regexp"
898
- },
899
- "3": {
900
- "name": "punctuation.separator.delimiter.pipe.regexp"
901
- },
902
- "4": {
903
- "name": "punctuation.definition.group.end.regexp"
904
- }
905
- }
906
- },
907
- {
908
- "name": "meta.absent-stopper.regexp",
909
- "match": "(\\()(\\?~)(\\|)([^|\\)]*)(\\))",
910
- "captures": {
911
- "1": {
912
- "name": "punctuation.definition.group.begin.regexp"
913
- },
914
- "2": {
915
- "name": "keyword.control.flow.regexp"
916
- },
917
- "3": {
918
- "name": "punctuation.separator.delimiter.pipe.regexp"
919
- },
920
- "4": {
921
- "name": "variable.parameter.absent-function.regexp",
922
- "patterns": [
923
- {
924
- "include": "#main"
925
- }
926
- ]
927
- },
928
- "5": {
929
- "name": "punctuation.definition.group.end.regexp"
930
- }
931
- }
932
- },
933
- {
934
- "name": "meta.absent-expression.regexp",
935
- "match": "(?x)\n(\\()\n(\\?~)\n(\\|) ([^|\\)]*)\n(\\|) ([^|\\)]*)\n(\\))",
936
- "captures": {
937
- "1": {
938
- "name": "punctuation.definition.group.begin.regexp"
939
- },
940
- "2": {
941
- "name": "keyword.control.flow.regexp"
942
- },
943
- "3": {
944
- "name": "punctuation.separator.delimiter.pipe.regexp"
945
- },
946
- "4": {
947
- "name": "variable.parameter.absent-function.regexp",
948
- "patterns": [
949
- {
950
- "include": "#main"
951
- }
952
- ]
953
- },
954
- "5": {
955
- "name": "punctuation.separator.delimiter.pipe.regexp"
956
- },
957
- "6": {
958
- "name": "variable.parameter.absent-function.regexp",
959
- "patterns": [
960
- {
961
- "include": "#main"
962
- }
963
- ]
964
- },
965
- "7": {
966
- "name": "punctuation.definition.group.end.regexp"
967
- }
968
- }
969
- },
970
- {
971
- "name": "meta.absent-repeater.regexp",
972
- "match": "(\\()(\\?~)([^|\\)]*)(\\))",
973
- "captures": {
974
- "1": {
975
- "name": "punctuation.definition.group.begin.regexp"
976
- },
977
- "2": {
978
- "name": "keyword.control.flow.regexp"
979
- },
980
- "3": {
981
- "name": "variable.parameter.absent-function.regexp",
982
- "patterns": [
983
- {
984
- "include": "#main"
985
- }
986
- ]
987
- },
988
- "4": {
989
- "name": "punctuation.definition.group.end.regexp"
990
- }
991
- }
992
- }
993
- ]
994
- },
995
- "group": {
996
- "patterns": [
997
- {
998
- "include": "#fixedGroups"
999
- },
1000
- {
1001
- "name": "meta.group.named.regexp",
1002
- "begin": "\\(\\?(?=P?[\u003c'])",
1003
- "end": "\\)",
1004
- "patterns": [
1005
- {
1006
- "contentName": "entity.group.name.regexp",
1007
- "begin": "\\G(P?)(\u003c)",
1008
- "end": "\u003e",
1009
- "beginCaptures": {
1010
- "1": {
1011
- "name": "storage.type.function.named-group.regexp"
1012
- },
1013
- "2": {
1014
- "name": "punctuation.definition.named-group.bracket.angle.begin.regexp"
1015
- }
1016
- },
1017
- "endCaptures": {
1018
- "0": {
1019
- "name": "punctuation.definition.named-group.bracket.angle.end.regexp"
1020
- }
1021
- }
1022
- },
1023
- {
1024
- "contentName": "entity.group.name.regexp",
1025
- "begin": "\\G'",
1026
- "end": "'",
1027
- "beginCaptures": {
1028
- "0": {
1029
- "name": "punctuation.definition.named-group.quote.single.begin.regexp"
1030
- }
1031
- },
1032
- "endCaptures": {
1033
- "0": {
1034
- "name": "punctuation.definition.named-group.quote.single.end.regexp"
1035
- }
1036
- }
1037
- },
1038
- {
1039
- "include": "#main"
1040
- }
1041
- ],
1042
- "beginCaptures": {
1043
- "0": {
1044
- "name": "punctuation.definition.group.begin.regexp"
1045
- }
1046
- },
1047
- "endCaptures": {
1048
- "0": {
1049
- "name": "punctuation.definition.group.end.regexp"
1050
- }
1051
- }
1052
- },
1053
- {
1054
- "name": "meta.group.non-capturing.regexp",
1055
- "begin": "(\\(\\?)((?:y{[\\w]+}|[-A-Za-z^])*)(:)",
1056
- "end": "\\)",
1057
- "patterns": [
1058
- {
1059
- "include": "#main"
1060
- }
1061
- ],
1062
- "beginCaptures": {
1063
- "1": {
1064
- "name": "punctuation.definition.group.begin.regexp"
1065
- },
1066
- "2": {
1067
- "patterns": [
1068
- {
1069
- "include": "#scopedModifiers"
1070
- }
1071
- ]
1072
- },
1073
- "3": {
1074
- "name": "punctuation.separator.colon.regexp"
1075
- }
1076
- },
1077
- "endCaptures": {
1078
- "0": {
1079
- "name": "punctuation.definition.group.end.regexp"
1080
- }
1081
- }
1082
- },
1083
- {
1084
- "name": "meta.group.atomic.regexp",
1085
- "begin": "\\(\\?\u003e",
1086
- "end": "\\)",
1087
- "patterns": [
1088
- {
1089
- "include": "#main"
1090
- }
1091
- ],
1092
- "beginCaptures": {
1093
- "0": {
1094
- "name": "punctuation.definition.group.begin.regexp"
1095
- }
1096
- },
1097
- "endCaptures": {
1098
- "0": {
1099
- "name": "punctuation.definition.group.end.regexp"
1100
- }
1101
- }
1102
- },
1103
- {
1104
- "name": "meta.group.script-run.regexp",
1105
- "begin": "(\\(\\*)((?:atomic_)?script_run|a?sr)(:)",
1106
- "end": "\\)",
1107
- "patterns": [
1108
- {
1109
- "include": "#main"
1110
- }
1111
- ],
1112
- "beginCaptures": {
1113
- "1": {
1114
- "name": "punctuation.definition.group.begin.regexp"
1115
- },
1116
- "2": {
1117
- "name": "keyword.control.verb.regexp"
1118
- },
1119
- "3": {
1120
- "name": "punctuation.separator.colon.regexp"
1121
- }
1122
- },
1123
- "endCaptures": {
1124
- "0": {
1125
- "name": "punctuation.definition.group.end.regexp"
1126
- }
1127
- }
1128
- },
1129
- {
1130
- "name": "meta.group.callout.contents.regexp",
1131
- "begin": "(\\(\\?{1,2})({)",
1132
- "end": "(?x)\n(}) # Last closing bracket\n((\\[)([_A-Za-z][_A-Za-z0-9]*)(\\]))? # [tag]\n(X|\u003c|\u003e)? # Callout direction\n(?:[^\\)]*) # Silently skip unexpected characters\n(\\)) # Closing bracket",
1133
- "patterns": [
1134
- {
1135
- "include": "#calloutBrackets"
1136
- },
1137
- {
1138
- "include": "#main"
1139
- }
1140
- ],
1141
- "beginCaptures": {
1142
- "1": {
1143
- "name": "punctuation.definition.group.begin.regexp"
1144
- },
1145
- "2": {
1146
- "name": "punctuation.definition.bracket.curly.begin.regexp"
1147
- }
1148
- },
1149
- "endCaptures": {
1150
- "1": {
1151
- "name": "punctuation.definition.bracket.curly.end.regexp"
1152
- },
1153
- "2": {
1154
- "name": "entity.name.tag.callout-tag.regexp"
1155
- },
1156
- "3": {
1157
- "name": "punctuation.definition.callout-tag.begin.regexp"
1158
- },
1159
- "4": {
1160
- "name": "callout-tag.constant.other.regexp"
1161
- },
1162
- "5": {
1163
- "name": "punctuation.definition.callout-tag.end.regexp"
1164
- },
1165
- "6": {
1166
- "name": "constant.language.callout-direction.regexp"
1167
- },
1168
- "7": {
1169
- "name": "punctuation.definition.group.end.regexp"
1170
- }
1171
- }
1172
- },
1173
- {
1174
- "name": "meta.group.callout.regexp",
1175
- "begin": "(?x)\n(\\(\\*)\n([_A-Za-z][_A-Za-z0-9]*) # Name\n((\\[)([_A-Za-z][_A-Za-z0-9]*)(\\]))? # [tag]\n({)",
1176
- "end": "(?x)\n(})\n(?:[^\\)]*)\n(?:(\\))|(?=$))",
1177
- "patterns": [
1178
- {
1179
- "include": "#main"
1180
- },
1181
- {
1182
- "name": "variable.parameter.argument.regexp",
1183
- "match": "[-\\w]+"
1184
- }
1185
- ],
1186
- "beginCaptures": {
1187
- "1": {
1188
- "name": "punctuation.definition.group.begin.regexp"
1189
- },
1190
- "2": {
1191
- "name": "entity.name.callout.regexp"
1192
- },
1193
- "3": {
1194
- "name": "entity.name.tag.callout-tag.regexp"
1195
- },
1196
- "4": {
1197
- "name": "punctuation.definition.callout-tag.begin.regexp"
1198
- },
1199
- "5": {
1200
- "name": "callout-tag.constant.other.regexp"
1201
- },
1202
- "6": {
1203
- "name": "punctuation.definition.callout-tag.end.regexp"
1204
- },
1205
- "7": {
1206
- "name": "punctuation.definition.arguments.begin.regexp"
1207
- }
1208
- },
1209
- "endCaptures": {
1210
- "1": {
1211
- "name": "punctuation.definition.arguments.end.regexp"
1212
- },
1213
- "2": {
1214
- "name": "punctuation.definition.group.end.regexp"
1215
- }
1216
- }
1217
- },
1218
- {
1219
- "name": "meta.absent-function.regexp",
1220
- "begin": "(\\()(\\?~)(\\|)",
1221
- "end": "\\)",
1222
- "patterns": [
1223
- {
1224
- "name": "punctuation.separator.delimiter.pipe.regexp",
1225
- "match": "\\|"
1226
- },
1227
- {
1228
- "name": "variable.parameter.argument.regexp",
1229
- "match": "[-\\w]+"
1230
- },
1231
- {
1232
- "include": "#main"
1233
- }
1234
- ],
1235
- "beginCaptures": {
1236
- "1": {
1237
- "name": "punctuation.definition.group.begin.regexp"
1238
- },
1239
- "2": {
1240
- "name": "keyword.control.flow.regexp"
1241
- },
1242
- "3": {
1243
- "name": "punctuation.separator.delimiter.pipe.regexp"
1244
- }
1245
- },
1246
- "endCaptures": {
1247
- "0": {
1248
- "name": "punctuation.definition.group.end.regexp"
1249
- }
1250
- }
1251
- },
1252
- {
1253
- "name": "meta.group.regexp",
1254
- "begin": "\\(",
1255
- "end": "\\)",
1256
- "patterns": [
1257
- {
1258
- "include": "#main"
1259
- }
1260
- ],
1261
- "beginCaptures": {
1262
- "0": {
1263
- "name": "punctuation.definition.group.begin.regexp"
1264
- }
1265
- },
1266
- "endCaptures": {
1267
- "0": {
1268
- "name": "punctuation.definition.group.end.regexp"
1269
- }
1270
- }
1271
- }
1272
- ]
1273
- },
1274
- "groupRefInnards": {
1275
- "patterns": [
1276
- {
1277
- "name": "keyword.operator.arithmetic.minus.regexp",
1278
- "match": "\\-(?=\\d)"
1279
- },
1280
- {
1281
- "name": "keyword.operator.arithmetic.plus.regexp",
1282
- "match": "\\+(?=\\d)"
1283
- }
1284
- ]
1285
- },
1286
- "main": {
1287
- "patterns": [
1288
- {
1289
- "include": "#comment"
1290
- },
1291
- {
1292
- "include": "#variable"
1293
- },
1294
- {
1295
- "include": "#anchor"
1296
- },
1297
- {
1298
- "include": "#escape"
1299
- },
1300
- {
1301
- "include": "#wildcard"
1302
- },
1303
- {
1304
- "include": "#alternation"
1305
- },
1306
- {
1307
- "include": "#quantifier"
1308
- },
1309
- {
1310
- "include": "#assertion"
1311
- },
1312
- {
1313
- "include": "#conditional"
1314
- },
1315
- {
1316
- "include": "#group"
1317
- },
1318
- {
1319
- "include": "#class"
1320
- }
1321
- ]
1322
- },
1323
- "propInnards": {
1324
- "patterns": [
1325
- {
1326
- "name": "keyword.operator.comparison.regexp",
1327
- "match": "="
1328
- },
1329
- {
1330
- "name": "constant.language.boolean.${0:/downcase}.regexp",
1331
- "match": "True|False"
1332
- }
1333
- ]
1334
- },
1335
- "quantifier": {
1336
- "patterns": [
1337
- {
1338
- "name": "keyword.operator.quantifier.regexp",
1339
- "match": "[*+?]"
1340
- },
1341
- {
1342
- "name": "keyword.operator.quantifier.specific.regexp",
1343
- "match": "(\\{)(?:(\\d+)(,?)(\\d*)|(,)(\\d+))(\\})",
1344
- "captures": {
1345
- "1": {
1346
- "name": "punctuation.definition.quantifier.bracket.curly.begin.regexp"
1347
- },
1348
- "2": {
1349
- "name": "keyword.operator.quantifier.min.regexp"
1350
- },
1351
- "3": {
1352
- "name": "punctuation.delimiter.comma.regexp"
1353
- },
1354
- "4": {
1355
- "name": "keyword.operator.quantifier.max.regexp"
1356
- },
1357
- "5": {
1358
- "name": "punctuation.delimiter.comma.regexp"
1359
- },
1360
- "6": {
1361
- "name": "keyword.operator.quantifier.max.regexp"
1362
- },
1363
- "7": {
1364
- "name": "punctuation.definition.quantifier.bracket.curly.end.regexp"
1365
- }
1366
- }
1367
- }
1368
- ]
1369
- },
1370
- "scopedModifiers": {
1371
- "patterns": [
1372
- {
1373
- "name": "meta.text-segment-mode.regexp",
1374
- "match": "(y)({)(\\w+)(})",
1375
- "captures": {
1376
- "1": {
1377
- "name": "storage.modifier.flag.y.regexp"
1378
- },
1379
- "2": {
1380
- "name": "punctuation.definition.option.bracket.curly.begin.regexp"
1381
- },
1382
- "3": {
1383
- "name": "variable.parameter.option-mode.regexp"
1384
- },
1385
- "4": {
1386
- "name": "punctuation.definition.option.bracket.curly.end.regexp"
1387
- }
1388
- }
1389
- },
1390
- {
1391
- "name": "keyword.operator.modifier.reset.regexp",
1392
- "match": "(?:(?\u003c=\\?)|\\G|^)\\^"
1393
- },
1394
- {
1395
- "name": "keyword.operator.modifier.negate.regexp",
1396
- "match": "-"
1397
- },
1398
- {
1399
- "name": "storage.modifier.flag.$0.regexp",
1400
- "match": "[A-Za-z]"
1401
- }
1402
- ]
1403
- },
1404
- "variable": {
1405
- "patterns": [
1406
- {
1407
- "name": "variable.other.regexp",
1408
- "match": "(?\u003c![^\\\\]\\\\|^\\\\)\\$(?!\\d|-)[-\\w]+",
1409
- "captures": {
1410
- "1": {
1411
- "name": "punctuation.definition.variable.regexp"
1412
- }
1413
- }
1414
- },
1415
- {
1416
- "name": "variable.other.bracket.regexp",
1417
- "match": "(?\u003c![^\\\\]\\\\|^\\\\)(\\$\\{)\\s*(?!\\d|-)[-\\w]+\\s*(\\})",
1418
- "captures": {
1419
- "1": {
1420
- "name": "punctuation.definition.variable.begin.regexp"
1421
- },
1422
- "2": {
1423
- "name": "punctuation.definition.variable.end.regexp"
1424
- }
1425
- }
1426
- }
1427
- ]
1428
- },
1429
- "wildcard": {
1430
- "name": "constant.character.wildcard.dot.match.any.regexp",
1431
- "match": "\\."
1432
- }
1433
- }
1434
- }
1
+ {"name":"Regular Expression","scopeName":"source.regexp","patterns":[{"begin":"(?:\\A|\\G)\\s*(?:/\\s*)?(\\(\\?\\^?[A-Za-wyz]*x[A-Za-z]*[-A-Za-wyz]*\\))","end":"(?=A)B","patterns":[{"include":"source.regexp.extended"}],"beginCaptures":{"1":{"patterns":[{"include":"#group"}]}}},{"begin":"\\A(?:\\xC2\\xAD|\\xAD){2}","end":"(?=A)B","patterns":[{"include":"source.sy"}]},{"include":"#main"}],"repository":{"alternation":{"name":"keyword.operator.logical.or.regexp","match":"\\|"},"anchor":{"patterns":[{"name":"keyword.control.anchor.line-start.regexp","match":"\\^"},{"name":"keyword.control.anchor.line-end.regexp","match":"\\$"},{"name":"keyword.control.anchor.string-start.regexp","match":"\\\\A"},{"name":"keyword.control.anchor.string-end-line.regexp","match":"\\\\Z"},{"name":"keyword.control.anchor.string-end.regexp","match":"\\\\z"},{"name":"keyword.control.anchor.search-start.regexp","match":"\\\\G"},{"name":"meta.unicode-boundary.regexp","match":"(?:(\\\\b)|(\\\\B))(\\{)(\\w+)(})","captures":{"1":{"name":"keyword.control.anchor.word-boundary.regexp"},"2":{"name":"keyword.control.anchor.non-word-boundary.regexp"},"3":{"name":"punctuation.definition.unicode-boundary.bracket.curly.begin.regexp"},"4":{"name":"entity.property.name.regexp"},"5":{"name":"punctuation.definition.unicode-boundary.bracket.curly.end.regexp"}}},{"name":"keyword.control.anchor.word-boundary.regexp","match":"\\\\b"},{"name":"keyword.control.anchor.non-word-boundary.regexp","match":"\\\\B"}]},"assertion":{"patterns":[{"name":"meta.assertion.positive.look-ahead.regexp","begin":"\\(\\?=","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.assertion.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.assertion.end.regexp"}}},{"name":"meta.assertion.negative.look-ahead.regexp","begin":"\\(\\?!","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.assertion.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.assertion.end.regexp"}}},{"name":"meta.assertion.negative.look-behind.regexp","begin":"\\(\\?\u003c!","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.assertion.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.assertion.end.regexp"}}},{"name":"meta.assertion.positive.look-behind.regexp","begin":"\\(\\?\u003c=","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.assertion.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.assertion.end.regexp"}}}]},"calloutBrackets":{"begin":"{","end":"}","patterns":[{"include":"#calloutBrackets"},{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.regexp"}}},"class":{"name":"meta.character-class.set.regexp","begin":"\\[","end":"\\]","patterns":[{"include":"#classInnards"}],"beginCaptures":{"0":{"name":"punctuation.definition.character-class.set.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.character-class.set.end.regexp"}}},"classInnards":{"patterns":[{"name":"keyword.operator.logical.not.regexp","match":"\\G\\^"},{"name":"constant.character.escape.backspace.regexp","match":"\\\\b"},{"begin":"(\u0026\u0026)(\\[)","end":"\\]","patterns":[{"include":"#classInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.logical.intersect.regexp"},"2":{"name":"punctuation.definition.character-class.set.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.character-class.set.end.regexp"}}},{"name":"keyword.operator.logical.intersect.regexp","match":"\u0026\u0026"},{"name":"punctuation.separator.range.dash.regexp","match":"(?\u003c!\\G|\\\\[dwshDWSHN])-(?!\\])"},{"name":"constant.language.posix.$2-char.character-class.regexp","match":"(\\[:)(\\^?)(\\w+)(:\\])","captures":{"1":{"name":"punctuation.definition.character-class.set.begin.regexp"},"2":{"name":"keyword.operator.logical.not.regexp"},"3":{"name":"support.constant.posix-class.regexp"},"4":{"name":"punctuation.definition.character-class.set.end.regexp"}}},{"name":"constant.character.escape.backslash.regexp","match":"\\\\\\[|\\\\\\]"},{"match":"\\^|\\$|\\(|\\)|\\["},{"include":"#escape"},{"include":"#main"},{"name":"constant.single.character.character-class.regexp","match":"[^\\]]"}]},"comment":{"name":"comment.block.regexp","begin":"\\(\\?#","end":"\\)","patterns":[{"name":"constant.character.escape.backslash.regexp","match":"\\\\."}]},"conditional":{"name":"meta.conditional.regexp","begin":"(\\()(\\?)(?=\\()","end":"\\)","patterns":[{"name":"punctuation.separator.condition.if-else.regexp","match":"\\|"},{"include":"#assertion"},{"name":"meta.condition.function-call.regexp","begin":"\\G\\(","end":"\\)","patterns":[{"name":"storage.type.function.subpattern.regexp","match":"\\GDEFINE"},{"name":"keyword.other.assertion.regexp","match":"\\Gassert"},{"match":"\\G(?:(\u003c)([^\u003e]+)(\u003e)|(')([^\u003e]+)('))","captures":{"1":{"name":"punctuation.definition.group-reference.bracket.angle.begin.regexp"},"2":{"name":"entity.group.name.regexp"},"3":{"name":"punctuation.definition.group-reference.bracket.angle.end.regexp"},"4":{"name":"punctuation.definition.group-reference.quote.single.begin.regexp"},"5":{"name":"entity.group.name.regexp"},"6":{"name":"punctuation.definition.group-reference.quote.single.end.regexp"}}},{"match":"\\G(R(\u0026))(\\w+)","captures":{"1":{"name":"keyword.other.recursion.specific.regexp"},"2":{"name":"punctuation.definition.reference.regexp"},"3":{"name":"entity.group.name.regexp"}}},{"name":"keyword.other.recursion.specific-group.regexp","match":"\\GR\\d+"},{"name":"keyword.other.recursion.overall.regexp","match":"\\GR"},{"name":"keyword.other.reference.absolute.regexp","match":"\\G\\d+"},{"name":"keyword.other.reference.relative.regexp","match":"\\G[-+]\\d+"},{"name":"entity.group.name.regexp","match":"\\G\\w+"}],"beginCaptures":{"0":{"name":"punctuation.section.condition.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.section.condition.end.regexp"}}},{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.section.condition.begin.regexp"},"2":{"name":"keyword.control.flow.regexp"}},"endCaptures":{"0":{"name":"punctuation.section.condition.end.regexp"}}},"escape":{"patterns":[{"name":"constant.character.escape.decimal.regexp","match":"\\\\d"},{"name":"constant.character.escape.whitespace.regexp","match":"\\\\s"},{"name":"constant.character.escape.word-char.regexp","match":"\\\\w"},{"name":"constant.character.escape.newline.regexp","match":"\\\\n"},{"name":"constant.character.escape.tab.regexp","match":"\\\\t"},{"name":"constant.character.escape.return.regexp","match":"\\\\r"},{"name":"constant.character.escape.non-decimal.regexp","match":"\\\\D"},{"name":"constant.character.escape.non-whitespace.regexp","match":"\\\\S"},{"name":"constant.character.escape.non-word-char.regexp","match":"\\\\W"},{"name":"constant.character.escape.alarm.regexp","match":"\\\\a"},{"name":"constant.character.escape.escape-char.regexp","match":"\\\\e"},{"name":"constant.character.escape.form-feed.regexp","match":"\\\\f"},{"name":"constant.character.escape.vertical-tab.regexp","match":"\\\\v"},{"name":"constant.character.escape.numeric.regexp","match":"\\\\x[0-9A-Fa-f]{2}"},{"name":"meta.character-escape.hex.regexp","match":"(\\\\x)(\\{)([0-9A-Fa-f]{2,})(\\})","captures":{"1":{"name":"keyword.operator.unicode-escape.hex.regexp"},"2":{"name":"punctuation.definition.unicode-escape.bracket.curly.begin.regexp"},"3":{"name":"constant.numeric.codepoint.hex.regexp"},"4":{"name":"punctuation.definition.unicode-escape.bracket.curly.end.regexp"}}},{"name":"meta.character-escape.octal.regexp","match":"(\\\\o)(\\{)(\\d{2,})(\\})","captures":{"1":{"name":"keyword.operator.unicode-escape.octal.regexp"},"2":{"name":"punctuation.definition.unicode-escape.bracket.curly.begin.regexp"},"3":{"name":"constant.numeric.codepoint.octal.regexp"},"4":{"name":"punctuation.definition.unicode-escape.bracket.curly.end.regexp"}}},{"name":"meta.unicode-property.regexp","match":"(\\\\[Pp])(\\{)(\\^?)([^{}]+)(\\})","captures":{"1":{"name":"keyword.operator.unicode-property.regexp"},"2":{"name":"punctuation.definition.unicode-escape.bracket.curly.begin.regexp"},"3":{"name":"keyword.operator.logical.not.regexp"},"4":{"name":"entity.property.name.regexp","patterns":[{"include":"#propInnards"}]},"5":{"name":"punctuation.definition.unicode-escape.bracket.curly.end.regexp"}}},{"name":"meta.unicode-property.single-letter.regexp","match":"(\\\\[Pp])(\\w)","captures":{"1":{"name":"keyword.operator.unicode-property.regexp"},"2":{"name":"entity.property.name.regexp"}}},{"name":"meta.group-reference.regexp","contentName":"entity.group.name.regexp","begin":"(\\\\[kg])(\u003c)","end":"\u003e","patterns":[{"include":"#groupRefInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.group-reference.regexp"},"2":{"name":"punctuation.definition.group-reference.bracket.angle.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group-reference.bracket.angle.end.regexp"}}},{"name":"meta.group-reference.regexp","contentName":"entity.group.name.regexp","begin":"(\\\\[kg])(')","end":"'","patterns":[{"include":"#groupRefInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.group-reference.regexp"},"2":{"name":"punctuation.definition.group-reference.quote.single.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group-reference.quote.single.end.regexp"}}},{"name":"meta.group-reference.regexp","contentName":"entity.group.name.regexp","begin":"(\\\\[kg])({)","end":"}","beginCaptures":{"1":{"name":"keyword.operator.group-reference.regexp"},"2":{"name":"punctuation.definition.group-reference.bracket.curly.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group-reference.bracket.curly.end.regexp"}}},{"name":"meta.group-reference.single-letter.regexp","match":"(\\\\g)(\\d)","captures":{"1":{"name":"keyword.operator.group-reference.regexp"},"2":{"name":"entity.group.name.regexp"}}},{"name":"meta.named-char.regexp","match":"(\\\\N)(\\{)([^{}]+)(\\})","captures":{"1":{"name":"keyword.operator.named-char.regexp"},"2":{"name":"punctuation.definition.unicode-escape.bracket.curly.begin.regexp"},"3":{"name":"entity.character.name.regexp","patterns":[{"name":"punctuation.separator.colon.regexp","match":":"},{"name":"punctuation.separator.codepoint.regexp","match":"(?\u003c=U)\\+(?=[A-Fa-f0-9])"}]},"4":{"name":"punctuation.definition.unicode-escape.bracket.curly.end.regexp"}}},{"name":"constant.character.escape.octal.numeric.regexp","match":"\\\\(?:\\d{3}|0\\d)"},{"name":"constant.character.escape.null-byte.numeric.regexp","match":"\\\\0"},{"name":"keyword.other.back-reference.$1.regexp","match":"\\\\(\\d{1,2})"},{"name":"constant.character.escape.control-char.regexp","match":"\\\\(?:c|C-)[?-_]"},{"name":"constant.character.escape.hex-digit.regexp","match":"\\\\h"},{"name":"constant.character.escape.non-hex-digit.regexp","match":"\\\\H"},{"name":"keyword.control.end-mode.regexp","match":"\\\\E"},{"name":"keyword.control.quote-mode.regexp","match":"\\\\Q"},{"name":"keyword.control.foldcase-mode.regexp","match":"\\\\F"},{"name":"keyword.control.lowercase-mode.regexp","match":"\\\\L"},{"name":"keyword.control.titlecase-mode.regexp","match":"\\\\U"},{"name":"keyword.control.keep-out.regexp","match":"\\\\K"},{"name":"constant.character.escape.lowercase-next.regexp","match":"\\\\l"},{"name":"constant.character.escape.titlecase-next.regexp","match":"\\\\u"},{"name":"constant.character.escape.non-newline.regexp","match":"\\\\N"},{"name":"constant.character.escape.extended-grapheme.regexp","match":"\\\\X"},{"name":"constant.character.escape.linebreak-grapheme.regexp","match":"\\\\R"},{"name":"constant.character.escape.non-vertical-whitespace.regexp","match":"\\\\V"},{"name":"constant.character.escape.meta-control.regexp","match":"\\\\M-\\\\C-[?-_]"},{"name":"constant.character.escape.meta-char.regexp","match":"\\\\M-."},{"name":"constant.character.escape.any-char.regexp","match":"\\\\O"},{"name":"keyword.control.anchor.text-boundary.regexp","match":"\\\\[yY]"},{"name":"constant.character.escape.misc.regexp","match":"\\\\."}]},"fixedGroups":{"patterns":[{"name":"meta.group-reference.reset.regexp","match":"(\\()(\\?[R0])(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.other.back-reference.regexp"},"3":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.group.scoped-modifiers.regexp","match":"(\\(\\?)((?:y{[\\w]+}|[-A-Za-z^])*)(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"patterns":[{"include":"#scopedModifiers"}]},"3":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.control-verb.regexp","match":"(\\(\\*)(\\w*)(?:([:=])([^\\s()]*))?(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.control.verb.regexp"},"3":{"name":"punctuation.separator.key-value.regexp"},"4":{"name":"variable.parameter.control-verb.regexp"},"5":{"name":"punctuation.definition.group.begin.regexp"}}},{"name":"meta.group-reference.named.regexp","match":"(\\()(\\?(?:\u0026|P[\u003e=]))(\\w+)(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.other.back-reference.regexp"},"3":{"name":"entity.group.name.regexp"},"4":{"name":"punctuation.definition.group.begin.regexp"}}},{"name":"meta.group-reference.relative.regexp","match":"(\\()(\\?[-+]\\d+)(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.other.back-reference.regexp"},"3":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.callout.regexp","match":"(\\()(\\?C\\d*)(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.control.callout.regexp"},"3":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.callout.regexp","match":"(?x)\n(\\(\\*)\n([_A-Za-z][_A-Za-z0-9]*) # Name\n((\\[)([_A-Za-z][_A-Za-z0-9]*)(\\])) # [tag]\n(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"entity.name.callout.regexp"},"3":{"name":"entity.name.tag.callout-tag.regexp"},"4":{"name":"punctuation.definition.callout-tag.begin.regexp"},"5":{"name":"callout-tag.constant.other.regexp"},"6":{"name":"punctuation.definition.callout-tag.end.regexp"},"7":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.absent-function.clear-range.regexp","match":"(\\()(\\?~)(\\|)(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.control.flow.regexp"},"3":{"name":"punctuation.separator.delimiter.pipe.regexp"},"4":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.absent-stopper.regexp","match":"(\\()(\\?~)(\\|)([^|\\)]*)(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.control.flow.regexp"},"3":{"name":"punctuation.separator.delimiter.pipe.regexp"},"4":{"name":"variable.parameter.absent-function.regexp","patterns":[{"include":"#main"}]},"5":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.absent-expression.regexp","match":"(?x)\n(\\()\n(\\?~)\n(\\|) ([^|\\)]*)\n(\\|) ([^|\\)]*)\n(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.control.flow.regexp"},"3":{"name":"punctuation.separator.delimiter.pipe.regexp"},"4":{"name":"variable.parameter.absent-function.regexp","patterns":[{"include":"#main"}]},"5":{"name":"punctuation.separator.delimiter.pipe.regexp"},"6":{"name":"variable.parameter.absent-function.regexp","patterns":[{"include":"#main"}]},"7":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.absent-repeater.regexp","match":"(\\()(\\?~)([^|\\)]*)(\\))","captures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.control.flow.regexp"},"3":{"name":"variable.parameter.absent-function.regexp","patterns":[{"include":"#main"}]},"4":{"name":"punctuation.definition.group.end.regexp"}}}]},"group":{"patterns":[{"include":"#fixedGroups"},{"name":"meta.group.named.regexp","begin":"\\(\\?(?=P?[\u003c'])","end":"\\)","patterns":[{"contentName":"entity.group.name.regexp","begin":"\\G(P?)(\u003c)","end":"\u003e","beginCaptures":{"1":{"name":"storage.type.function.named-group.regexp"},"2":{"name":"punctuation.definition.named-group.bracket.angle.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.named-group.bracket.angle.end.regexp"}}},{"contentName":"entity.group.name.regexp","begin":"\\G'","end":"'","beginCaptures":{"0":{"name":"punctuation.definition.named-group.quote.single.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.named-group.quote.single.end.regexp"}}},{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.group.non-capturing.regexp","begin":"(\\(\\?)((?:y{[\\w]+}|[-A-Za-z^])*)(:)","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"patterns":[{"include":"#scopedModifiers"}]},"3":{"name":"punctuation.separator.colon.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.group.atomic.regexp","begin":"\\(\\?\u003e","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.group.script-run.regexp","begin":"(\\(\\*)((?:atomic_)?script_run|a?sr)(:)","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.control.verb.regexp"},"3":{"name":"punctuation.separator.colon.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.group.callout.contents.regexp","begin":"(\\(\\?{1,2})({)","end":"(?x)\n(}) # Last closing bracket\n((\\[)([_A-Za-z][_A-Za-z0-9]*)(\\]))? # [tag]\n(X|\u003c|\u003e)? # Callout direction\n(?:[^\\)]*) # Silently skip unexpected characters\n(\\)) # Closing bracket","patterns":[{"include":"#calloutBrackets"},{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"punctuation.definition.bracket.curly.begin.regexp"}},"endCaptures":{"1":{"name":"punctuation.definition.bracket.curly.end.regexp"},"2":{"name":"entity.name.tag.callout-tag.regexp"},"3":{"name":"punctuation.definition.callout-tag.begin.regexp"},"4":{"name":"callout-tag.constant.other.regexp"},"5":{"name":"punctuation.definition.callout-tag.end.regexp"},"6":{"name":"constant.language.callout-direction.regexp"},"7":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.group.callout.regexp","begin":"(?x)\n(\\(\\*)\n([_A-Za-z][_A-Za-z0-9]*) # Name\n((\\[)([_A-Za-z][_A-Za-z0-9]*)(\\]))? # [tag]\n({)","end":"(?x)\n(})\n(?:[^\\)]*)\n(?:(\\))|(?=$))","patterns":[{"include":"#main"},{"name":"variable.parameter.argument.regexp","match":"[-\\w]+"}],"beginCaptures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"entity.name.callout.regexp"},"3":{"name":"entity.name.tag.callout-tag.regexp"},"4":{"name":"punctuation.definition.callout-tag.begin.regexp"},"5":{"name":"callout-tag.constant.other.regexp"},"6":{"name":"punctuation.definition.callout-tag.end.regexp"},"7":{"name":"punctuation.definition.arguments.begin.regexp"}},"endCaptures":{"1":{"name":"punctuation.definition.arguments.end.regexp"},"2":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.absent-function.regexp","begin":"(\\()(\\?~)(\\|)","end":"\\)","patterns":[{"name":"punctuation.separator.delimiter.pipe.regexp","match":"\\|"},{"name":"variable.parameter.argument.regexp","match":"[-\\w]+"},{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.definition.group.begin.regexp"},"2":{"name":"keyword.control.flow.regexp"},"3":{"name":"punctuation.separator.delimiter.pipe.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.regexp"}}},{"name":"meta.group.regexp","begin":"\\(","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.regexp"}}}]},"groupRefInnards":{"patterns":[{"name":"keyword.operator.arithmetic.minus.regexp","match":"\\-(?=\\d)"},{"name":"keyword.operator.arithmetic.plus.regexp","match":"\\+(?=\\d)"}]},"main":{"patterns":[{"include":"#comment"},{"include":"#variable"},{"include":"#anchor"},{"include":"#escape"},{"include":"#wildcard"},{"include":"#alternation"},{"include":"#quantifier"},{"include":"#assertion"},{"include":"#conditional"},{"include":"#group"},{"include":"#class"}]},"propInnards":{"patterns":[{"name":"keyword.operator.comparison.regexp","match":"="},{"name":"constant.language.boolean.${0:/downcase}.regexp","match":"True|False"}]},"quantifier":{"patterns":[{"name":"keyword.operator.quantifier.regexp","match":"[*+?]"},{"name":"keyword.operator.quantifier.specific.regexp","match":"(\\{)(?:(\\d+)(,?)(\\d*)|(,)(\\d+))(\\})","captures":{"1":{"name":"punctuation.definition.quantifier.bracket.curly.begin.regexp"},"2":{"name":"keyword.operator.quantifier.min.regexp"},"3":{"name":"punctuation.delimiter.comma.regexp"},"4":{"name":"keyword.operator.quantifier.max.regexp"},"5":{"name":"punctuation.delimiter.comma.regexp"},"6":{"name":"keyword.operator.quantifier.max.regexp"},"7":{"name":"punctuation.definition.quantifier.bracket.curly.end.regexp"}}}]},"scopedModifiers":{"patterns":[{"name":"meta.text-segment-mode.regexp","match":"(y)({)(\\w+)(})","captures":{"1":{"name":"storage.modifier.flag.y.regexp"},"2":{"name":"punctuation.definition.option.bracket.curly.begin.regexp"},"3":{"name":"variable.parameter.option-mode.regexp"},"4":{"name":"punctuation.definition.option.bracket.curly.end.regexp"}}},{"name":"keyword.operator.modifier.reset.regexp","match":"(?:(?\u003c=\\?)|\\G|^)\\^"},{"name":"keyword.operator.modifier.negate.regexp","match":"-"},{"name":"storage.modifier.flag.$0.regexp","match":"[A-Za-z]"}]},"variable":{"patterns":[{"name":"variable.other.regexp","match":"(?\u003c![^\\\\]\\\\|^\\\\)\\$(?!\\d|-)[-\\w]+","captures":{"1":{"name":"punctuation.definition.variable.regexp"}}},{"name":"variable.other.bracket.regexp","match":"(?\u003c![^\\\\]\\\\|^\\\\)(\\$\\{)\\s*(?!\\d|-)[-\\w]+\\s*(\\})","captures":{"1":{"name":"punctuation.definition.variable.begin.regexp"},"2":{"name":"punctuation.definition.variable.end.regexp"}}}]},"wildcard":{"name":"constant.character.wildcard.dot.match.any.regexp","match":"\\."}}}