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,2488 +1 @@
1
- {
2
- "name": "JavaScript (Babel)",
3
- "scopeName": "source.js.jsx",
4
- "patterns": [
5
- {
6
- "include": "#core"
7
- }
8
- ],
9
- "repository": {
10
- "brackets": {
11
- "patterns": [
12
- {
13
- "include": "#round-brackets"
14
- },
15
- {
16
- "include": "#square-brackets"
17
- },
18
- {
19
- "include": "#curly-brackets"
20
- }
21
- ]
22
- },
23
- "class-method-definition": {
24
- "patterns": [
25
- {
26
- "name": "meta.short-method.flowtype.js",
27
- "begin": "(@@[_$a-zA-Z][$\\w]*|static|return)(?=\\s*[\u003c(])|(?=\\s*\u003c)",
28
- "end": "(?=\\s*[;{])",
29
- "patterns": [
30
- {
31
- "include": "#flowtype-polymorph"
32
- },
33
- {
34
- "include": "#function-declaration-parameters"
35
- },
36
- {
37
- "include": "#flowtype-annotation"
38
- },
39
- {
40
- "include": "#comments"
41
- },
42
- {
43
- "include": "#curly-brackets"
44
- }
45
- ],
46
- "beginCaptures": {
47
- "1": {
48
- "name": "keyword.operator.flowtype.js"
49
- }
50
- }
51
- },
52
- {
53
- "name": "meta.class-method.computed.js",
54
- "begin": "(?\u003c=[]\"'])\\s*(?=[\u003c(])",
55
- "end": "(?=\\s*[;{])",
56
- "patterns": [
57
- {
58
- "include": "#flowtype-polymorph"
59
- },
60
- {
61
- "include": "#function-declaration-parameters"
62
- },
63
- {
64
- "include": "#flowtype-annotation"
65
- },
66
- {
67
- "include": "#comments"
68
- },
69
- {
70
- "include": "#curly-brackets"
71
- }
72
- ]
73
- },
74
- {
75
- "name": "meta.class-accessor.js",
76
- "begin": "(?x)\n ((?\u003eget|set)\\s+)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )(?=\\s*[\u003c(])",
77
- "end": "(?=\\s*[;{])",
78
- "patterns": [
79
- {
80
- "include": "#flowtype-polymorph"
81
- },
82
- {
83
- "include": "#function-declaration-parameters"
84
- },
85
- {
86
- "include": "#flowtype-annotation"
87
- },
88
- {
89
- "include": "#comments"
90
- },
91
- {
92
- "include": "#curly-brackets"
93
- }
94
- ],
95
- "beginCaptures": {
96
- "1": {
97
- "name": "storage.type.js"
98
- },
99
- "10": {
100
- "name": "string.unquoted.js"
101
- },
102
- "11": {
103
- "name": "entity.name.function.js"
104
- },
105
- "2": {
106
- "name": "string.quoted.js"
107
- },
108
- "3": {
109
- "name": "punctuation.definition.string.begin.js"
110
- },
111
- "4": {
112
- "name": "entity.name.function.js"
113
- },
114
- "5": {
115
- "name": "punctuation.definition.string.end.js"
116
- },
117
- "6": {
118
- "name": "string.quoted.js"
119
- },
120
- "7": {
121
- "name": "punctuation.definition.string.begin.js"
122
- },
123
- "8": {
124
- "name": "entity.name.function.js"
125
- },
126
- "9": {
127
- "name": "punctuation.definition.string.end.js"
128
- }
129
- }
130
- },
131
- {
132
- "name": "meta.class-method.js",
133
- "begin": "(?x)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )(?=\\s*[\u003c(])",
134
- "end": "(?=\\s*[;{])",
135
- "patterns": [
136
- {
137
- "include": "#flowtype-polymorph"
138
- },
139
- {
140
- "include": "#function-declaration-parameters"
141
- },
142
- {
143
- "include": "#flowtype-annotation"
144
- },
145
- {
146
- "include": "#comments"
147
- },
148
- {
149
- "include": "#curly-brackets"
150
- }
151
- ],
152
- "beginCaptures": {
153
- "1": {
154
- "name": "string.quoted.js"
155
- },
156
- "10": {
157
- "name": "entity.name.function.js"
158
- },
159
- "2": {
160
- "name": "punctuation.definition.string.begin.js"
161
- },
162
- "3": {
163
- "name": "entity.name.function.js"
164
- },
165
- "4": {
166
- "name": "punctuation.definition.string.end.js"
167
- },
168
- "5": {
169
- "name": "string.quoted.js"
170
- },
171
- "6": {
172
- "name": "punctuation.definition.string.begin.js"
173
- },
174
- "7": {
175
- "name": "entity.name.function.js"
176
- },
177
- "8": {
178
- "name": "punctuation.definition.string.end.js"
179
- },
180
- "9": {
181
- "name": "string.unquoted.js"
182
- }
183
- }
184
- }
185
- ]
186
- },
187
- "class-method-storage": {
188
- "patterns": [
189
- {
190
- "name": "storage.modifier.js",
191
- "match": "(?\u003c!\\.)\\b(?\u003estatic|declare)\\b"
192
- },
193
- {
194
- "name": "storage.type.js",
195
- "match": "(?\u003c!\\.)\\b(async)\\b"
196
- },
197
- {
198
- "name": "storage.type.js",
199
- "match": "(?\u003c!\\.)\\b(get|set)\\b(?!\\s*\\()"
200
- },
201
- {
202
- "name": "keyword.generator.asterisk.js",
203
- "match": "\\*"
204
- }
205
- ]
206
- },
207
- "class-properties": {
208
- "patterns": [
209
- {
210
- "name": "meta.class.property.js",
211
- "begin": "([_$a-zA-Z][$\\w]*)(?=\\s*[:=])",
212
- "end": "(?=\\s*[;}])",
213
- "patterns": [
214
- {
215
- "include": "#flowtype-annotation"
216
- },
217
- {
218
- "include": "#expression"
219
- }
220
- ],
221
- "beginCaptures": {
222
- "1": {
223
- "name": "variable.other.property.js"
224
- }
225
- }
226
- }
227
- ]
228
- },
229
- "comments": {
230
- "patterns": [
231
- {
232
- "name": "comment.block.documentation.js",
233
- "begin": "/\\*\\*(?!/)",
234
- "end": "\\*/",
235
- "captures": {
236
- "0": {
237
- "name": "punctuation.definition.comment.js"
238
- }
239
- }
240
- },
241
- {
242
- "name": "comment.block.js",
243
- "begin": "/\\*",
244
- "end": "\\*/",
245
- "beginCaptures": {
246
- "0": {
247
- "name": "punctuation.definition.comment.begin.js"
248
- }
249
- },
250
- "endCaptures": {
251
- "0": {
252
- "name": "punctuation.definition.comment.end.js"
253
- }
254
- }
255
- },
256
- {
257
- "name": "comment.block.html.js",
258
- "match": "(?\u003e\u003c!--|--\u003e)",
259
- "captures": {
260
- "0": {
261
- "name": "punctuation.definition.comment.js"
262
- }
263
- }
264
- },
265
- {
266
- "name": "comment.line.double-slash.js",
267
- "match": "(//).*$\\n?",
268
- "captures": {
269
- "1": {
270
- "name": "punctuation.definition.comment.js"
271
- }
272
- }
273
- },
274
- {
275
- "name": "comment.line.shebang.js",
276
- "match": "^(#!).*$\\n?",
277
- "captures": {
278
- "1": {
279
- "name": "punctuation.definition.comment.js"
280
- }
281
- }
282
- }
283
- ]
284
- },
285
- "core": {
286
- "patterns": [
287
- {
288
- "include": "#literal-function-labels"
289
- },
290
- {
291
- "include": "#literal-arrow-function-labels"
292
- },
293
- {
294
- "include": "#literal-labels"
295
- },
296
- {
297
- "include": "#literal-for"
298
- },
299
- {
300
- "include": "#literal-switch"
301
- },
302
- {
303
- "include": "#styled-components"
304
- },
305
- {
306
- "include": "#graphql"
307
- },
308
- {
309
- "include": "#expression"
310
- },
311
- {
312
- "include": "#literal-punctuation"
313
- }
314
- ]
315
- },
316
- "curly-brackets": {
317
- "patterns": [
318
- {
319
- "name": "meta.group.braces.curly.js",
320
- "begin": "{",
321
- "end": "}",
322
- "patterns": [
323
- {
324
- "include": "$self"
325
- }
326
- ],
327
- "beginCaptures": {
328
- "0": {
329
- "name": "meta.brace.curly.begin.js"
330
- }
331
- },
332
- "endCaptures": {
333
- "0": {
334
- "name": "meta.brace.curly.end.js"
335
- }
336
- }
337
- }
338
- ]
339
- },
340
- "es7-decorators": {
341
- "patterns": [
342
- {
343
- "name": "tag.decorator.js",
344
- "match": "(?x)\n (@)([_$a-zA-Z][$\\w]*)\\b",
345
- "captures": {
346
- "1": {
347
- "name": "punctuation.definition.tag.js"
348
- },
349
- "2": {
350
- "name": "entity.name.tag.js"
351
- }
352
- }
353
- }
354
- ]
355
- },
356
- "expression": {
357
- "patterns": [
358
- {
359
- "include": "#merge-conflits"
360
- },
361
- {
362
- "include": "#literal-regexp"
363
- },
364
- {
365
- "include": "#literal-jsx"
366
- },
367
- {
368
- "include": "#es7-decorators"
369
- },
370
- {
371
- "include": "#support-class"
372
- },
373
- {
374
- "include": "#support-other"
375
- },
376
- {
377
- "include": "#literal-function"
378
- },
379
- {
380
- "include": "#literal-arrow-function"
381
- },
382
- {
383
- "include": "#literal-prototype"
384
- },
385
- {
386
- "include": "#literal-keywords"
387
- },
388
- {
389
- "include": "#literal-method"
390
- },
391
- {
392
- "include": "#literal-module"
393
- },
394
- {
395
- "include": "#literal-class"
396
- },
397
- {
398
- "include": "#flowtype-declaration"
399
- },
400
- {
401
- "include": "#literal-number"
402
- },
403
- {
404
- "include": "#literal-template-string"
405
- },
406
- {
407
- "include": "#literal-string"
408
- },
409
- {
410
- "include": "#literal-language-constant"
411
- },
412
- {
413
- "include": "#literal-language-variable"
414
- },
415
- {
416
- "include": "#literal-constructor"
417
- },
418
- {
419
- "include": "#literal-method-call"
420
- },
421
- {
422
- "include": "#literal-function-call"
423
- },
424
- {
425
- "include": "#comments"
426
- },
427
- {
428
- "include": "#brackets"
429
- },
430
- {
431
- "include": "#literal-operators"
432
- },
433
- {
434
- "include": "#literal-variable"
435
- }
436
- ]
437
- },
438
- "flowtype-annotation": {
439
- "patterns": [
440
- {
441
- "name": "meta.flowtype.annotation.js",
442
- "begin": "(?:(\\?)\\s*)?(:)",
443
- "end": "(?=\\S)",
444
- "patterns": [
445
- {
446
- "include": "#flowtype-tokens"
447
- }
448
- ],
449
- "beginCaptures": {
450
- "1": {
451
- "name": "keyword.operator.flowtype.optional.js"
452
- },
453
- "2": {
454
- "name": "keyword.operator.flowtype.annotation.js"
455
- }
456
- },
457
- "applyEndPatternLast": true
458
- }
459
- ]
460
- },
461
- "flowtype-brackets": {
462
- "patterns": [
463
- {
464
- "begin": "{",
465
- "end": "}",
466
- "patterns": [
467
- {
468
- "include": "#flowtype-tokens"
469
- }
470
- ],
471
- "beginCaptures": {
472
- "0": {
473
- "name": "punctuation.section.flowtype.begin.js"
474
- }
475
- },
476
- "endCaptures": {
477
- "0": {
478
- "name": "punctuation.section.flowtype.end.js"
479
- }
480
- }
481
- }
482
- ]
483
- },
484
- "flowtype-declaration": {
485
- "patterns": [
486
- {
487
- "name": "support.type.declare.flowtype.js",
488
- "match": "(?\u003c!\\.)\\b(declare)\\b"
489
- },
490
- {
491
- "name": "meta.type.flowtype.js",
492
- "begin": "(?\u003c!\\.)\\b(type)\\b(?=\\s*[_$a-zA-Z])",
493
- "end": "(?=\\s*(;|from))",
494
- "patterns": [
495
- {
496
- "include": "#flowtype-tokens"
497
- }
498
- ],
499
- "beginCaptures": {
500
- "1": {
501
- "name": "support.type.type.flowtype.js"
502
- }
503
- }
504
- },
505
- {
506
- "name": "meta.type.flowtype.js",
507
- "begin": "(?\u003c!\\.)\\b(type)\\b(?=\\s*{)",
508
- "end": "(?\u003c=})",
509
- "patterns": [
510
- {
511
- "include": "#comments"
512
- },
513
- {
514
- "include": "#flowtype-brackets"
515
- },
516
- {
517
- "include": "#flowtype-polymorph"
518
- },
519
- {
520
- "name": "entity.name.type.js",
521
- "match": "([_$a-zA-Z][$\\w]*)"
522
- }
523
- ],
524
- "beginCaptures": {
525
- "1": {
526
- "name": "support.type.type.flowtype.js"
527
- }
528
- }
529
- }
530
- ]
531
- },
532
- "flowtype-identifier": {
533
- "patterns": [
534
- {
535
- "include": "#support-class"
536
- },
537
- {
538
- "name": "constant.other.primitve.flowtype.js",
539
- "match": "\\b(?:any|bool|boolean|mixed|number|string|void)\\b"
540
- },
541
- {
542
- "name": "variable.other.flowtype.js",
543
- "match": "[_$a-zA-Z][$\\w]*"
544
- },
545
- {
546
- "name": "keyword.operator.flowtype.optional.js",
547
- "match": "\\?"
548
- }
549
- ]
550
- },
551
- "flowtype-polymorph": {
552
- "name": "meta.flowtype.polymorph.js",
553
- "begin": "\u003c",
554
- "end": "\u003e",
555
- "patterns": [
556
- {
557
- "include": "#flowtype-tokens"
558
- }
559
- ],
560
- "beginCaptures": {
561
- "0": {
562
- "name": "punctuation.section.flowtype.begin.js"
563
- }
564
- },
565
- "endCaptures": {
566
- "0": {
567
- "name": "punctuation.section.flowtype.end.js"
568
- }
569
- }
570
- },
571
- "flowtype-tokens": {
572
- "patterns": [
573
- {
574
- "begin": "(?\u003c=[:?|\u0026=])(?=\\s*{)",
575
- "end": "(?\u003c=})",
576
- "patterns": [
577
- {
578
- "include": "#flowtype-brackets"
579
- }
580
- ]
581
- },
582
- {
583
- "name": "meta.flowtype.set.js",
584
- "match": "\\s*([|\u0026])\\s*",
585
- "captures": {
586
- "1": {
587
- "name": "keyword.operator.flowtype.other.js"
588
- }
589
- }
590
- },
591
- {
592
- "name": "keyword.operator.flowtype.other.js",
593
- "match": "[*:?\u0026|.]|\\.\\.\\.|\\b(typeof)\\b"
594
- },
595
- {
596
- "begin": "\u003c",
597
- "end": "\u003e",
598
- "patterns": [
599
- {
600
- "include": "#flowtype-tokens"
601
- }
602
- ],
603
- "beginCaptures": {
604
- "0": {
605
- "name": "punctuation.section.flowtype.begin.js"
606
- }
607
- },
608
- "endCaptures": {
609
- "0": {
610
- "name": "punctuation.section.flowtype.end.js"
611
- }
612
- }
613
- },
614
- {
615
- "begin": "\\[",
616
- "end": "\\]",
617
- "patterns": [
618
- {
619
- "include": "#flowtype-tokens"
620
- }
621
- ],
622
- "beginCaptures": {
623
- "0": {
624
- "name": "punctuation.section.flowtype.begin.js"
625
- }
626
- },
627
- "endCaptures": {
628
- "0": {
629
- "name": "punctuation.section.flowtype.end.js"
630
- }
631
- }
632
- },
633
- {
634
- "begin": "\\(",
635
- "end": "\\)",
636
- "patterns": [
637
- {
638
- "include": "#flowtype-tokens"
639
- }
640
- ],
641
- "beginCaptures": {
642
- "0": {
643
- "name": "punctuation.section.flowtype.begin.js"
644
- }
645
- },
646
- "endCaptures": {
647
- "0": {
648
- "name": "punctuation.section.flowtype.end.js"
649
- }
650
- }
651
- },
652
- {
653
- "name": "meta.flowtype.function.js",
654
- "begin": "=\u003e",
655
- "end": "(?\u003c=}|[_$a-zA-Z])",
656
- "patterns": [
657
- {
658
- "include": "#flowtype-brackets"
659
- },
660
- {
661
- "include": "#flowtype-identifier"
662
- },
663
- {
664
- "include": "#comments"
665
- }
666
- ],
667
- "beginCaptures": {
668
- "0": {
669
- "name": "keyword.operator.flowtype.js"
670
- }
671
- }
672
- },
673
- {
674
- "include": "#flowtype-identifier"
675
- },
676
- {
677
- "include": "#literal-string"
678
- },
679
- {
680
- "include": "#comments"
681
- }
682
- ]
683
- },
684
- "function-declaration-parameters": {
685
- "patterns": [
686
- {
687
- "begin": "\\(",
688
- "end": "\\)",
689
- "patterns": [
690
- {
691
- "include": "#comments"
692
- },
693
- {
694
- "include": "#flowtype-annotation"
695
- },
696
- {
697
- "name": "keyword.operator.spread.js",
698
- "match": "(?\u003c!\\.)\\.\\.\\."
699
- },
700
- {
701
- "name": "variable.parameter.function.js",
702
- "match": "([_$a-zA-Z][$\\w]*)"
703
- },
704
- {
705
- "name": "punctuation.separator.parameter.function.js",
706
- "match": ","
707
- },
708
- {
709
- "name": "meta.parameter.optional.js",
710
- "begin": "=",
711
- "end": "(?=[,)])",
712
- "patterns": [
713
- {
714
- "include": "#expression"
715
- }
716
- ],
717
- "beginCaptures": {
718
- "0": {
719
- "name": "keyword.operator.assignment.js"
720
- }
721
- }
722
- }
723
- ],
724
- "beginCaptures": {
725
- "0": {
726
- "name": "punctuation.definition.parameters.begin.js"
727
- }
728
- },
729
- "endCaptures": {
730
- "0": {
731
- "name": "punctuation.definition.parameters.end.js"
732
- }
733
- }
734
- }
735
- ]
736
- },
737
- "graphql": {
738
- "patterns": [
739
- {
740
- "name": "meta.graphql.js",
741
- "begin": "\\s*+gql`",
742
- "end": "`",
743
- "patterns": [
744
- {
745
- "include": "source.graphql"
746
- },
747
- {
748
- "name": "js",
749
- "begin": "\\${",
750
- "end": "}",
751
- "patterns": [
752
- {
753
- "include": "#core"
754
- }
755
- ]
756
- }
757
- ]
758
- },
759
- {
760
- "name": "meta.graphql.js",
761
- "begin": "\\s*+`#graphql",
762
- "end": "`",
763
- "patterns": [
764
- {
765
- "include": "source.graphql"
766
- },
767
- {
768
- "name": "js",
769
- "begin": "\\${",
770
- "end": "}",
771
- "patterns": [
772
- {
773
- "include": "#core"
774
- }
775
- ]
776
- }
777
- ]
778
- }
779
- ]
780
- },
781
- "jsx-attribute-assignment": {
782
- "name": "keyword.operator.assignment.jsx",
783
- "match": "="
784
- },
785
- "jsx-attribute-name": {
786
- "name": "entity.other.attribute-name.jsx",
787
- "match": "[_$a-zA-Z][-$\\w]*"
788
- },
789
- "jsx-attributes": {
790
- "patterns": [
791
- {
792
- "include": "#jsx-attribute-name"
793
- },
794
- {
795
- "include": "#jsx-attribute-assignment"
796
- },
797
- {
798
- "include": "#jsx-string-quoted"
799
- },
800
- {
801
- "include": "#jsx-evaluated-code"
802
- },
803
- {
804
- "include": "#comments"
805
- }
806
- ]
807
- },
808
- "jsx-entities": {
809
- "patterns": [
810
- {
811
- "name": "constant.character.entity.jsx",
812
- "match": "\u0026(?:[a-zA-Z0-9]+|#\\d+|#x[[:xdigit:]]+);"
813
- },
814
- {
815
- "name": "invalid.illegal.bad-ampersand.jsx",
816
- "match": "\u0026\\S*;"
817
- }
818
- ]
819
- },
820
- "jsx-evaluated-code": {
821
- "name": "meta.embedded.expression.jsx",
822
- "begin": "{",
823
- "end": "}",
824
- "patterns": [
825
- {
826
- "include": "#expression"
827
- }
828
- ],
829
- "beginCaptures": {
830
- "0": {
831
- "name": "punctuation.section.embedded.begin.jsx"
832
- }
833
- },
834
- "endCaptures": {
835
- "0": {
836
- "name": "punctuation.section.embedded.end.jsx"
837
- }
838
- }
839
- },
840
- "jsx-string-quoted": {
841
- "name": "string.quoted.jsx",
842
- "begin": "([\"'])",
843
- "end": "\\1",
844
- "patterns": [
845
- {
846
- "include": "#jsx-entities"
847
- }
848
- ],
849
- "beginCaptures": {
850
- "0": {
851
- "name": "punctuation.definition.string.begin.jsx"
852
- }
853
- },
854
- "endCaptures": {
855
- "0": {
856
- "name": "punctuation.definition.string.end.jsx"
857
- }
858
- }
859
- },
860
- "jsx-tag-end": {
861
- "begin": "\u003e",
862
- "end": "(?=\u003c/)",
863
- "patterns": [
864
- {
865
- "include": "#jsx-tag-start"
866
- },
867
- {
868
- "include": "#jsx-evaluated-code"
869
- },
870
- {
871
- "include": "#jsx-entities"
872
- }
873
- ],
874
- "beginCaptures": {
875
- "0": {
876
- "name": "punctuation.definition.tag.end.jsx"
877
- }
878
- }
879
- },
880
- "jsx-tag-start": {
881
- "patterns": [
882
- {
883
- "begin": "(\u003c)([_$a-zA-Z][-$:.\\w]*[$\\w]*)",
884
- "end": "(\u003c/)(\\2)(\u003e)|(/\u003e)",
885
- "patterns": [
886
- {
887
- "include": "#jsx-tag-end"
888
- },
889
- {
890
- "include": "#jsx-attributes"
891
- }
892
- ],
893
- "beginCaptures": {
894
- "1": {
895
- "name": "punctuation.definition.tag.begin.jsx"
896
- },
897
- "2": {
898
- "name": "entity.name.tag.html.jsx"
899
- }
900
- },
901
- "endCaptures": {
902
- "1": {
903
- "name": "punctuation.definition.tag.begin.jsx"
904
- },
905
- "2": {
906
- "name": "entity.name.tag.html.jsx"
907
- },
908
- "3": {
909
- "name": "punctuation.definition.tag.end.jsx"
910
- },
911
- "4": {
912
- "name": "punctuation.definition.tag.end.jsx"
913
- }
914
- }
915
- },
916
- {
917
- "name": "invalid.illegal.tag.incomplete.jsx",
918
- "match": "\u003c"
919
- }
920
- ]
921
- },
922
- "literal-arrow-function": {
923
- "patterns": [
924
- {
925
- "name": "meta.function.arrow.js",
926
- "begin": "(?x)\n (?:([_$a-zA-Z][$\\w]*)\\s*(=)\\s*)?\n (?:\\b(async)\\s+)?\n (?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*(=\u003e))",
927
- "end": "(?\u003c=\\))\\s*(=\u003e)",
928
- "patterns": [
929
- {
930
- "include": "#function-declaration-parameters"
931
- }
932
- ],
933
- "beginCaptures": {
934
- "1": {
935
- "name": "entity.name.function.js"
936
- },
937
- "2": {
938
- "name": "keyword.operator.assignment.js"
939
- },
940
- "3": {
941
- "name": "storage.type.js"
942
- }
943
- },
944
- "endCaptures": {
945
- "1": {
946
- "name": "storage.type.function.arrow.js"
947
- }
948
- }
949
- },
950
- {
951
- "name": "meta.function.arrow.js",
952
- "match": "(?x)\n (?:([_$a-zA-Z][$\\w]*)\\s*(=)\\s*)?\n (?:(async)\\s+)?\n \\b([_$a-zA-Z][$\\w]*)\\s*(=\u003e)",
953
- "captures": {
954
- "1": {
955
- "name": "entity.name.function.js"
956
- },
957
- "2": {
958
- "name": "keyword.operator.assignment.js"
959
- },
960
- "3": {
961
- "name": "storage.type.js"
962
- },
963
- "4": {
964
- "name": "variable.parameter.function.js"
965
- },
966
- "5": {
967
- "name": "storage.type.function.arrow.js"
968
- }
969
- }
970
- },
971
- {
972
- "name": "meta.prototype.function.arrow.js",
973
- "begin": "(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)(prototype)\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(async)?\n \\s*(?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*(=\u003e))",
974
- "end": "(?\u003c=\\))\\s*(=\u003e)",
975
- "patterns": [
976
- {
977
- "include": "#function-declaration-parameters"
978
- }
979
- ],
980
- "beginCaptures": {
981
- "1": {
982
- "name": "entity.name.class.js"
983
- },
984
- "2": {
985
- "name": "keyword.operator.accessor.js"
986
- },
987
- "3": {
988
- "name": "variable.language.prototype.js"
989
- },
990
- "4": {
991
- "name": "keyword.operator.accessor.js"
992
- },
993
- "5": {
994
- "name": "entity.name.function.js"
995
- },
996
- "6": {
997
- "name": "keyword.operator.assignment.js"
998
- },
999
- "7": {
1000
- "name": "storage.type.js"
1001
- }
1002
- },
1003
- "endCaptures": {
1004
- "1": {
1005
- "name": "storage.type.function.arrow.js"
1006
- }
1007
- }
1008
- },
1009
- {
1010
- "name": "meta.prototype.function.arrow.js",
1011
- "match": "(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)(prototype)\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(async)?\n \\s*\\b([_$a-zA-Z][$\\w]*)\\s*(=\u003e)",
1012
- "captures": {
1013
- "1": {
1014
- "name": "entity.name.class.js"
1015
- },
1016
- "2": {
1017
- "name": "keyword.operator.accessor.js"
1018
- },
1019
- "3": {
1020
- "name": "variable.language.prototype.js"
1021
- },
1022
- "4": {
1023
- "name": "keyword.operator.accessor.js"
1024
- },
1025
- "5": {
1026
- "name": "entity.name.function.js"
1027
- },
1028
- "6": {
1029
- "name": "keyword.operator.assignment.js"
1030
- },
1031
- "7": {
1032
- "name": "storage.type.js"
1033
- },
1034
- "8": {
1035
- "name": "variable.parameter.function.js"
1036
- },
1037
- "9": {
1038
- "name": "storage.type.function.arrow.js"
1039
- }
1040
- }
1041
- },
1042
- {
1043
- "name": "meta.function.static.arrow.js",
1044
- "begin": "(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(async)?\n \\s*(?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*(=\u003e))",
1045
- "end": "(?\u003c=\\))\\s*(=\u003e)",
1046
- "patterns": [
1047
- {
1048
- "include": "#function-declaration-parameters"
1049
- }
1050
- ],
1051
- "beginCaptures": {
1052
- "1": {
1053
- "name": "entity.name.class.js"
1054
- },
1055
- "2": {
1056
- "name": "keyword.operator.accessor.js"
1057
- },
1058
- "3": {
1059
- "name": "entity.name.function.js"
1060
- },
1061
- "4": {
1062
- "name": "keyword.operator.assignment.js"
1063
- },
1064
- "5": {
1065
- "name": "storage.type.js"
1066
- }
1067
- },
1068
- "endCaptures": {
1069
- "1": {
1070
- "name": "storage.type.function.arrow.js"
1071
- }
1072
- }
1073
- },
1074
- {
1075
- "name": "meta.function.static.arrow.js",
1076
- "match": "(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(async)?\n \\s*\\b([_$a-zA-Z][$\\w]*)\\s*(=\u003e)",
1077
- "captures": {
1078
- "1": {
1079
- "name": "entity.name.class.js"
1080
- },
1081
- "2": {
1082
- "name": "keyword.operator.accessor.js"
1083
- },
1084
- "3": {
1085
- "name": "entity.name.function.js"
1086
- },
1087
- "4": {
1088
- "name": "keyword.operator.assignment.js"
1089
- },
1090
- "5": {
1091
- "name": "storage.type.js"
1092
- },
1093
- "6": {
1094
- "name": "variable.parameter.function.js"
1095
- },
1096
- "7": {
1097
- "name": "storage.type.function.arrow.js"
1098
- }
1099
- }
1100
- }
1101
- ]
1102
- },
1103
- "literal-arrow-function-labels": {
1104
- "patterns": [
1105
- {
1106
- "name": "meta.function.json.arrow.js",
1107
- "begin": "(?x)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )\n \\s*(:)\n \\s*(?:\\b(async)\\s+)?\n \\s*(?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*(=\u003e))",
1108
- "end": "(?\u003c=\\))\\s*(=\u003e)",
1109
- "patterns": [
1110
- {
1111
- "include": "#function-declaration-parameters"
1112
- }
1113
- ],
1114
- "beginCaptures": {
1115
- "1": {
1116
- "name": "string.quoted.js"
1117
- },
1118
- "10": {
1119
- "name": "entity.name.function.js"
1120
- },
1121
- "11": {
1122
- "name": "punctuation.separator.key-value.js"
1123
- },
1124
- "12": {
1125
- "name": "storage.type.js"
1126
- },
1127
- "2": {
1128
- "name": "punctuation.definition.string.begin.js"
1129
- },
1130
- "3": {
1131
- "name": "entity.name.function.js"
1132
- },
1133
- "4": {
1134
- "name": "punctuation.definition.string.end.js"
1135
- },
1136
- "5": {
1137
- "name": "string.quoted.js"
1138
- },
1139
- "6": {
1140
- "name": "punctuation.definition.string.begin.js"
1141
- },
1142
- "7": {
1143
- "name": "entity.name.function.js"
1144
- },
1145
- "8": {
1146
- "name": "punctuation.definition.string.end.js"
1147
- },
1148
- "9": {
1149
- "name": "string.unquoted.js"
1150
- }
1151
- },
1152
- "endCaptures": {
1153
- "1": {
1154
- "name": "storage.type.function.arrow.js"
1155
- }
1156
- }
1157
- },
1158
- {
1159
- "name": "meta.function.json.arrow.js",
1160
- "match": "(?x)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )\n \\s*(:)\n \\s*(?:\\b(async)\\s+)?\n \\s*\\b([_$a-zA-Z][$\\w]*)\\s*(=\u003e)",
1161
- "captures": {
1162
- "1": {
1163
- "name": "string.quoted.js"
1164
- },
1165
- "10": {
1166
- "name": "entity.name.function.js"
1167
- },
1168
- "11": {
1169
- "name": "punctuation.separator.key-value.js"
1170
- },
1171
- "12": {
1172
- "name": "storage.type.js"
1173
- },
1174
- "13": {
1175
- "name": "variable.parameter.function.js"
1176
- },
1177
- "14": {
1178
- "name": "storage.type.function.arrow.js"
1179
- },
1180
- "2": {
1181
- "name": "punctuation.definition.string.begin.js"
1182
- },
1183
- "3": {
1184
- "name": "entity.name.function.js"
1185
- },
1186
- "4": {
1187
- "name": "punctuation.definition.string.end.js"
1188
- },
1189
- "5": {
1190
- "name": "string.quoted.js"
1191
- },
1192
- "6": {
1193
- "name": "punctuation.definition.string.begin.js"
1194
- },
1195
- "7": {
1196
- "name": "entity.name.function.js"
1197
- },
1198
- "8": {
1199
- "name": "punctuation.definition.string.end.js"
1200
- },
1201
- "9": {
1202
- "name": "string.unquoted.js"
1203
- }
1204
- }
1205
- }
1206
- ]
1207
- },
1208
- "literal-class": {
1209
- "patterns": [
1210
- {
1211
- "name": "meta.class.js",
1212
- "begin": "(?\u003c!\\.)\\b(?:(class)|(interface))\\b",
1213
- "end": "\\}",
1214
- "patterns": [
1215
- {
1216
- "include": "#comments"
1217
- },
1218
- {
1219
- "begin": "([_$a-zA-Z][$\\w]*)",
1220
- "end": "(?={)",
1221
- "patterns": [
1222
- {
1223
- "include": "#comments"
1224
- },
1225
- {
1226
- "include": "#flowtype-polymorph"
1227
- },
1228
- {
1229
- "name": "meta.class.extends.js",
1230
- "begin": "(?\u003c!\\.)\\b(extends)\\b",
1231
- "end": "(?={)",
1232
- "patterns": [
1233
- {
1234
- "include": "#flowtype-polymorph"
1235
- },
1236
- {
1237
- "include": "#expression"
1238
- }
1239
- ],
1240
- "beginCaptures": {
1241
- "0": {
1242
- "name": "storage.type.extends.js"
1243
- }
1244
- }
1245
- }
1246
- ],
1247
- "beginCaptures": {
1248
- "0": {
1249
- "name": "entity.name.class.js"
1250
- }
1251
- }
1252
- },
1253
- {
1254
- "begin": "\\{",
1255
- "end": "(?=})",
1256
- "patterns": [
1257
- {
1258
- "include": "#es7-decorators"
1259
- },
1260
- {
1261
- "include": "#class-properties"
1262
- },
1263
- {
1264
- "include": "#class-method-definition"
1265
- },
1266
- {
1267
- "include": "#class-method-storage"
1268
- },
1269
- {
1270
- "include": "#brackets"
1271
- },
1272
- {
1273
- "include": "#comments"
1274
- }
1275
- ],
1276
- "beginCaptures": {
1277
- "0": {
1278
- "name": "meta.brace.curly.begin.js"
1279
- }
1280
- }
1281
- }
1282
- ],
1283
- "beginCaptures": {
1284
- "1": {
1285
- "name": "storage.type.class.js"
1286
- },
1287
- "2": {
1288
- "name": "storage.type.interface.flowtype.js"
1289
- }
1290
- },
1291
- "endCaptures": {
1292
- "0": {
1293
- "name": "meta.brace.curly.end.js"
1294
- }
1295
- }
1296
- }
1297
- ]
1298
- },
1299
- "literal-constructor": {
1300
- "patterns": [
1301
- {
1302
- "name": "meta.instance.constructor.js",
1303
- "begin": "(new)\\s+(?=[_$a-zA-Z][$\\w.]*)",
1304
- "end": "(?![_$a-zA-Z][$\\w.]*)",
1305
- "patterns": [
1306
- {
1307
- "include": "#support-class"
1308
- },
1309
- {
1310
- "include": "#support-other"
1311
- },
1312
- {
1313
- "match": "([_$a-zA-Z][$\\w.]*\\.)?([_$a-zA-Z][$\\w]*)",
1314
- "captures": {
1315
- "2": {
1316
- "name": "variable.function.constructor.js"
1317
- }
1318
- }
1319
- }
1320
- ],
1321
- "beginCaptures": {
1322
- "1": {
1323
- "name": "keyword.operator.new.js"
1324
- }
1325
- }
1326
- }
1327
- ]
1328
- },
1329
- "literal-for": {
1330
- "patterns": [
1331
- {
1332
- "name": "meta.for.js",
1333
- "begin": "(?\u003c!\\.)\\b(for)\\b",
1334
- "end": "\\)",
1335
- "patterns": [
1336
- {
1337
- "include": "#comments"
1338
- },
1339
- {
1340
- "begin": "\\(",
1341
- "end": "(?=\\))",
1342
- "patterns": [
1343
- {
1344
- "include": "#literal-keyword-storage"
1345
- },
1346
- {
1347
- "include": "#expression"
1348
- },
1349
- {
1350
- "include": "#literal-punctuation"
1351
- }
1352
- ],
1353
- "beginCaptures": {
1354
- "0": {
1355
- "name": "meta.brace.round.begin.js"
1356
- }
1357
- }
1358
- }
1359
- ],
1360
- "beginCaptures": {
1361
- "1": {
1362
- "name": "keyword.control.loop.js"
1363
- }
1364
- },
1365
- "endCaptures": {
1366
- "0": {
1367
- "name": "meta.brace.round.end.js"
1368
- }
1369
- }
1370
- }
1371
- ]
1372
- },
1373
- "literal-function": {
1374
- "patterns": [
1375
- {
1376
- "name": "meta.function.js",
1377
- "begin": "(?x)\n (?:([_$a-zA-Z][$\\w]*)\\s*(=)\\s*)?\n (?:(async)\\s+)?\n (function)(?\u003e\\s*(\\*)|(?=[\\s(\u003c]))\n \\s*([_$a-zA-Z][$\\w]*)?",
1378
- "end": "(?\u003c=\\))",
1379
- "patterns": [
1380
- {
1381
- "include": "#flowtype-polymorph"
1382
- },
1383
- {
1384
- "include": "#function-declaration-parameters"
1385
- }
1386
- ],
1387
- "beginCaptures": {
1388
- "1": {
1389
- "name": "entity.name.function.js"
1390
- },
1391
- "2": {
1392
- "name": "keyword.operator.assignment.js"
1393
- },
1394
- "3": {
1395
- "name": "storage.type.js"
1396
- },
1397
- "4": {
1398
- "name": "storage.type.function.js"
1399
- },
1400
- "5": {
1401
- "name": "keyword.generator.asterisk.js"
1402
- },
1403
- "6": {
1404
- "name": "entity.name.function.js"
1405
- }
1406
- }
1407
- },
1408
- {
1409
- "name": "meta.function.prototype.js",
1410
- "begin": "(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)(prototype)\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(?:(async)\\s+)?\n \\s*(function)(?\u003e\\s*(\\*)|(?=[\\s(\u003c]))\n \\s*([_$a-zA-Z][$\\w]*)?\\s*",
1411
- "end": "(?\u003c=\\))",
1412
- "patterns": [
1413
- {
1414
- "include": "#flowtype-polymorph"
1415
- },
1416
- {
1417
- "include": "#function-declaration-parameters"
1418
- }
1419
- ],
1420
- "beginCaptures": {
1421
- "1": {
1422
- "name": "entity.name.class.js"
1423
- },
1424
- "10": {
1425
- "name": "entity.name.function.js"
1426
- },
1427
- "2": {
1428
- "name": "keyword.operator.accessor.js"
1429
- },
1430
- "3": {
1431
- "name": "variable.language.prototype.js"
1432
- },
1433
- "4": {
1434
- "name": "keyword.operator.accessor.js"
1435
- },
1436
- "5": {
1437
- "name": "entity.name.function.js"
1438
- },
1439
- "6": {
1440
- "name": "keyword.operator.assignment.js"
1441
- },
1442
- "7": {
1443
- "name": "storage.type.js"
1444
- },
1445
- "8": {
1446
- "name": "storage.type.function.js"
1447
- },
1448
- "9": {
1449
- "name": "keyword.generator.asterisk.js"
1450
- }
1451
- }
1452
- },
1453
- {
1454
- "name": "meta.function.static.js",
1455
- "begin": "(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(?:(async)\\s+)?\n \\s*(function)(?\u003e\\s*(\\*)|(?=[\\s(\u003c]))\n \\s*([_$a-zA-Z][$\\w]*)?\\s*",
1456
- "end": "(?\u003c=\\))",
1457
- "patterns": [
1458
- {
1459
- "include": "#flowtype-polymorph"
1460
- },
1461
- {
1462
- "include": "#function-declaration-parameters"
1463
- }
1464
- ],
1465
- "beginCaptures": {
1466
- "1": {
1467
- "name": "entity.name.class.js"
1468
- },
1469
- "2": {
1470
- "name": "keyword.operator.accessor.js"
1471
- },
1472
- "3": {
1473
- "name": "entity.name.function.js"
1474
- },
1475
- "4": {
1476
- "name": "keyword.operator.assignment.js"
1477
- },
1478
- "5": {
1479
- "name": "storage.type.js"
1480
- },
1481
- "6": {
1482
- "name": "storage.type.function.js"
1483
- },
1484
- "7": {
1485
- "name": "keyword.generator.asterisk.js"
1486
- },
1487
- "8": {
1488
- "name": "entity.name.function.js"
1489
- }
1490
- }
1491
- }
1492
- ]
1493
- },
1494
- "literal-function-call": {
1495
- "patterns": [
1496
- {
1497
- "name": "meta.function-call.without-arguments.js",
1498
- "match": "([_$a-zA-Z][$\\w]*)\\s*(\\(\\s*\\))",
1499
- "captures": {
1500
- "1": {
1501
- "name": "entity.name.function.js"
1502
- },
1503
- "2": {
1504
- "name": "meta.group.braces.round.function.arguments.js"
1505
- }
1506
- }
1507
- },
1508
- {
1509
- "name": "meta.function-call.with-arguments.js",
1510
- "match": "([_$a-zA-Z][$\\w]*)\\s*(?=\\()",
1511
- "captures": {
1512
- "1": {
1513
- "name": "entity.name.function.js"
1514
- }
1515
- }
1516
- },
1517
- {
1518
- "name": "meta.function-call.tagged-template.js",
1519
- "match": "([_$a-zA-Z][$\\w]*)\\s*(?=`)",
1520
- "captures": {
1521
- "1": {
1522
- "name": "entity.name.function.js"
1523
- }
1524
- }
1525
- }
1526
- ]
1527
- },
1528
- "literal-function-labels": {
1529
- "patterns": [
1530
- {
1531
- "name": "meta.function.json.js",
1532
- "begin": "(?x)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )\n \\s*(:)\n \\s*(?:\\b(async)\\s+)?\n \\s*(function)(?\u003e\\s*(\\*)|(?=[\\s(\u003c]))\n \\s*([_$a-zA-Z][$\\w]*)?",
1533
- "end": "(?\u003c=\\))",
1534
- "patterns": [
1535
- {
1536
- "include": "#flowtype-polymorph"
1537
- },
1538
- {
1539
- "include": "#function-declaration-parameters"
1540
- }
1541
- ],
1542
- "beginCaptures": {
1543
- "1": {
1544
- "name": "string.quoted.js"
1545
- },
1546
- "10": {
1547
- "name": "entity.name.function.js"
1548
- },
1549
- "11": {
1550
- "name": "punctuation.separator.key-value.js"
1551
- },
1552
- "12": {
1553
- "name": "storage.type.js"
1554
- },
1555
- "13": {
1556
- "name": "storage.type.function.js"
1557
- },
1558
- "14": {
1559
- "name": "keyword.generator.asterisk.js"
1560
- },
1561
- "15": {
1562
- "name": "entity.name.function.js"
1563
- },
1564
- "2": {
1565
- "name": "punctuation.definition.string.begin.js"
1566
- },
1567
- "3": {
1568
- "name": "entity.name.function.js"
1569
- },
1570
- "4": {
1571
- "name": "punctuation.definition.string.end.js"
1572
- },
1573
- "5": {
1574
- "name": "string.quoted.js"
1575
- },
1576
- "6": {
1577
- "name": "punctuation.definition.string.begin.js"
1578
- },
1579
- "7": {
1580
- "name": "entity.name.function.js"
1581
- },
1582
- "8": {
1583
- "name": "punctuation.definition.string.end.js"
1584
- },
1585
- "9": {
1586
- "name": "string.unquoted.js"
1587
- }
1588
- }
1589
- }
1590
- ]
1591
- },
1592
- "literal-jsx": {
1593
- "contentName": "meta.jsx.js",
1594
- "begin": "(?\u003c=\\(|\\{|\\[|,|\u0026\u0026|\\|\\||\\?|:|=|=\u003e|\\Wreturn|^return|\\Wdefault|^)(?=\\s*\u003c[_$a-zA-Z])",
1595
- "end": "(?\u003c=/\u003e|\u003e)",
1596
- "patterns": [
1597
- {
1598
- "include": "#jsx-tag-start"
1599
- }
1600
- ]
1601
- },
1602
- "literal-keyword-storage": {
1603
- "patterns": [
1604
- {
1605
- "name": "storage.type.js",
1606
- "match": "(?\u003c!\\.)\\b(?\u003econst|let|var)\\b"
1607
- }
1608
- ]
1609
- },
1610
- "literal-keywords": {
1611
- "patterns": [
1612
- {
1613
- "include": "#literal-keyword-storage"
1614
- },
1615
- {
1616
- "match": "(?\u003c!\\.)\\b((?\u003eawait|yield))\\b(?:\\s*(\\*))?",
1617
- "captures": {
1618
- "1": {
1619
- "name": "keyword.control.flow.js"
1620
- },
1621
- "2": {
1622
- "name": "keyword.generator.asterisk.js"
1623
- }
1624
- }
1625
- },
1626
- {
1627
- "name": "keyword.control.flow.js",
1628
- "match": "(?\u003c!\\.)\\b(return)\\b"
1629
- },
1630
- {
1631
- "name": "keyword.control.conditional.js",
1632
- "match": "(?\u003c!\\.)\\b(?\u003eif|else)\\b"
1633
- },
1634
- {
1635
- "name": "keyword.control.trycatch.js",
1636
- "match": "(?\u003c!\\.)\\b(?\u003ecatch|finally|throw|try)\\b"
1637
- },
1638
- {
1639
- "name": "keyword.control.loop.js",
1640
- "match": "(?\u003c!\\.)\\b(?\u003ebreak|continue|do|goto|while|case|default)\\b"
1641
- },
1642
- {
1643
- "name": "keyword.other.reserved.js",
1644
- "match": "(?\u003c!\\.)\\b(?\u003eenum|module|public|package|private|interface|protected)\\b"
1645
- },
1646
- {
1647
- "name": "keyword.other.js",
1648
- "match": "(?\u003c!\\.)\\b(debugger)\\b"
1649
- }
1650
- ]
1651
- },
1652
- "literal-labels": {
1653
- "patterns": [
1654
- {
1655
- "begin": "(?x)\n (?\u003c!\\?)(?\u003c!\\?\\s)(?=(?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n )\\s*:)",
1656
- "end": ":",
1657
- "patterns": [
1658
- {
1659
- "include": "#literal-string"
1660
- }
1661
- ],
1662
- "endCaptures": {
1663
- "0": {
1664
- "name": "punctuation.separator.key-value.js"
1665
- }
1666
- }
1667
- },
1668
- {
1669
- "name": "constant.other.object.key.js",
1670
- "match": "(?\u003c!\\.|\\?|\\?\\s)([_$a-zA-Z][$\\w]*)\\s*(:)",
1671
- "captures": {
1672
- "1": {
1673
- "name": "string.unquoted.label.js"
1674
- },
1675
- "2": {
1676
- "name": "punctuation.separator.key-value.js"
1677
- }
1678
- }
1679
- }
1680
- ]
1681
- },
1682
- "literal-language-constant": {
1683
- "patterns": [
1684
- {
1685
- "name": "constant.language.boolean.true.js",
1686
- "match": "(?\u003c!\\.)\\b(true)\\b"
1687
- },
1688
- {
1689
- "name": "constant.language.boolean.false.js",
1690
- "match": "(?\u003c!\\.)\\b(false)\\b"
1691
- },
1692
- {
1693
- "name": "constant.language.null.js",
1694
- "match": "(?\u003c!\\.)\\b(null)\\b"
1695
- },
1696
- {
1697
- "name": "constant.language.undefined.js",
1698
- "match": "(?\u003c!\\.)\\b(undefined)\\b"
1699
- },
1700
- {
1701
- "name": "constant.language.nan.js",
1702
- "match": "(?\u003c!\\.)\\b(NaN)\\b"
1703
- }
1704
- ]
1705
- },
1706
- "literal-language-variable": {
1707
- "patterns": [
1708
- {
1709
- "name": "variable.language.arguments.js",
1710
- "match": "(?\u003c!(?\u003c!\\.\\.)\\.)\\b(arguments)\\b"
1711
- },
1712
- {
1713
- "name": "variable.language.super.js",
1714
- "match": "(?\u003c!(?\u003c!\\.\\.)\\.)\\b(super)\\b"
1715
- },
1716
- {
1717
- "name": "variable.language.this.js",
1718
- "match": "(?\u003c!(?\u003c!\\.\\.)\\.)\\b(this)\\b"
1719
- },
1720
- {
1721
- "name": "variable.language.self.js",
1722
- "match": "(?\u003c!(?\u003c!\\.\\.)\\.)\\b(self)\\b"
1723
- },
1724
- {
1725
- "name": "variable.language.proto.js",
1726
- "match": "(?\u003c=\\.)(__proto__)\\b"
1727
- },
1728
- {
1729
- "name": "variable.language.constructor.js",
1730
- "match": "(?\u003c=\\.)(constructor)\\b"
1731
- },
1732
- {
1733
- "name": "variable.language.prototype.js",
1734
- "match": "(?\u003c=\\.)(prototype)\\b"
1735
- }
1736
- ]
1737
- },
1738
- "literal-method": {
1739
- "patterns": [
1740
- {
1741
- "name": "meta.method.js",
1742
- "begin": "(?x)\n (?:\\b(static)\\s+)?\n (?:\\b(async)\\s+)?\n (?:(\\*)\\s*)?\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )\n (?=\\s*(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))(?\u003e\\s|/\\*.*\\*/)*\\{)",
1743
- "end": "(?\u003c=\\))",
1744
- "patterns": [
1745
- {
1746
- "include": "#function-declaration-parameters"
1747
- }
1748
- ],
1749
- "beginCaptures": {
1750
- "1": {
1751
- "name": "storage.type.js"
1752
- },
1753
- "10": {
1754
- "name": "entity.name.function.js"
1755
- },
1756
- "11": {
1757
- "name": "punctuation.definition.string.end.js"
1758
- },
1759
- "12": {
1760
- "name": "string.unquoted.js"
1761
- },
1762
- "13": {
1763
- "name": "entity.name.function.js"
1764
- },
1765
- "2": {
1766
- "name": "storage.type.js"
1767
- },
1768
- "3": {
1769
- "name": "keyword.generator.asterisk.js"
1770
- },
1771
- "4": {
1772
- "name": "string.quoted.js"
1773
- },
1774
- "5": {
1775
- "name": "punctuation.definition.string.begin.js"
1776
- },
1777
- "6": {
1778
- "name": "entity.name.function.js"
1779
- },
1780
- "7": {
1781
- "name": "punctuation.definition.string.end.js"
1782
- },
1783
- "8": {
1784
- "name": "string.quoted.js"
1785
- },
1786
- "9": {
1787
- "name": "punctuation.definition.string.begin.js"
1788
- }
1789
- }
1790
- },
1791
- {
1792
- "name": "meta.accessor.js",
1793
- "begin": "(?x)\n \\b(?:(static)\\s+)?\n (get|set)\\s+\n ([_$a-zA-Z][$\\w]*|\\d+)\\s*\n (?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))(?\u003e\\s|/\\*.*\\*/)*\\{)",
1794
- "end": "(?\u003c=\\))",
1795
- "patterns": [
1796
- {
1797
- "include": "#function-declaration-parameters"
1798
- }
1799
- ],
1800
- "beginCaptures": {
1801
- "1": {
1802
- "name": "storage.type.js"
1803
- },
1804
- "2": {
1805
- "name": "storage.type.accessor.js"
1806
- },
1807
- "3": {
1808
- "name": "entity.name.accessor.js"
1809
- }
1810
- }
1811
- }
1812
- ]
1813
- },
1814
- "literal-method-call": {
1815
- "patterns": [
1816
- {
1817
- "name": "meta.function-call.static.without-arguments.js",
1818
- "match": "(?x)\n (?:(?\u003c=\\.)|\\b)\n ([A-Z][$\\w]*)\\s*(\\.)\n ([_$a-zA-Z][$\\w]*)\\s*\n (\\(\\s*\\))",
1819
- "captures": {
1820
- "1": {
1821
- "name": "variable.other.class.js"
1822
- },
1823
- "2": {
1824
- "name": "keyword.operator.accessor.js"
1825
- },
1826
- "3": {
1827
- "name": "entity.name.function.js"
1828
- },
1829
- "4": {
1830
- "name": "meta.group.braces.round.function.arguments.js"
1831
- }
1832
- }
1833
- },
1834
- {
1835
- "name": "meta.function-call.static.with-arguments.js",
1836
- "match": "(?x)\n (?:(?\u003c=\\.)|\\b)\n ([A-Z][$\\w]*)\\s*(\\.)\n ([_$a-zA-Z][$\\w]*)\\s*\n (?=\\()",
1837
- "captures": {
1838
- "1": {
1839
- "name": "variable.other.class.js"
1840
- },
1841
- "2": {
1842
- "name": "keyword.operator.accessor.js"
1843
- },
1844
- "3": {
1845
- "name": "entity.name.function.js"
1846
- }
1847
- }
1848
- },
1849
- {
1850
- "name": "meta.function-call.method.without-arguments.js",
1851
- "match": "(?x)\n (?\u003c=\\.)\n ([_$a-zA-Z][$\\w]*)\\s*\n (\\(\\s*\\))",
1852
- "captures": {
1853
- "1": {
1854
- "name": "entity.name.function.js"
1855
- },
1856
- "2": {
1857
- "name": "meta.group.braces.round.function.arguments.js"
1858
- }
1859
- }
1860
- },
1861
- {
1862
- "name": "meta.function-call.method.with-arguments.js",
1863
- "match": "(?x)\n (?\u003c=\\.)\n ([_$a-zA-Z][$\\w]*)\\s*\n (?=\\()",
1864
- "captures": {
1865
- "1": {
1866
- "name": "entity.name.function.js"
1867
- }
1868
- }
1869
- }
1870
- ]
1871
- },
1872
- "literal-module": {
1873
- "patterns": [
1874
- {
1875
- "name": "keyword.operator.module.js",
1876
- "match": "(?\u003c!\\.)\\b(?\u003eimport|export|default|from|as)\\b"
1877
- }
1878
- ]
1879
- },
1880
- "literal-number": {
1881
- "patterns": [
1882
- {
1883
- "name": "invalid.illegal.numeric.hex.js",
1884
- "match": "(?i)(?:\\B[-+]|\\b)0x[0-9a-f]*\\.(\\B|\\b[0-9]+)"
1885
- },
1886
- {
1887
- "name": "invalid.illegal.numeric.octal.js",
1888
- "match": "(?:\\B[-+]|\\b)0[0-9]+\\.(\\B|\\b[0-9]+)"
1889
- },
1890
- {
1891
- "name": "constant.numeric.js",
1892
- "match": "(?xi)\n (?:\\B[-+])?\n (?:\n \\b0b[0-1]*| # binary\n \\b0o[0-7]*| # octal\n \\b0x[0-9a-f]*| # hex\n (\n \\B\\.[0-9]+| # e.g. .999\n \\b[0-9]+(\\.[0-9]*)? # e.g. 999.999, 999. or 999\n )(e[-+]?[0-9]+)? # e.g. e+123, E-123\n )"
1893
- },
1894
- {
1895
- "name": "constant.language.infinity.js",
1896
- "match": "(?:\\B[-+]|\\b)(Infinity)\\b"
1897
- }
1898
- ]
1899
- },
1900
- "literal-operators": {
1901
- "patterns": [
1902
- {
1903
- "name": "keyword.operator.js",
1904
- "match": "(?\u003c!\\.)\\b(?\u003edelete|instanceof|in|new|of|typeof|void|with)\\b"
1905
- },
1906
- {
1907
- "name": "keyword.operator.logical.js",
1908
- "match": "(?x)\n !(?!=)| # logical-not right-to-left right\n \u0026\u0026 | # logical-and left-to-right both\n \\|\\| # logical-or left-to-right both"
1909
- },
1910
- {
1911
- "name": "keyword.operator.assignment.js",
1912
- "match": "(?x)\n =(?!=) # assignment right-to-left both"
1913
- },
1914
- {
1915
- "name": "keyword.operator.assignment.augmented.js",
1916
- "match": "(?x)\n %= | # assignment right-to-left both\n \u0026= | # assignment right-to-left both\n \\*= | # assignment right-to-left both\n \\+= | # assignment right-to-left both\n -= | # assignment right-to-left both\n /= | # assignment right-to-left both\n \\^= | # assignment right-to-left both\n \\|= | # assignment right-to-left both\n \u003c\u003c= | # assignment right-to-left both\n \u003e\u003e= | # assignment right-to-left both\n \u003e\u003e\u003e= # assignment right-to-left both"
1917
- },
1918
- {
1919
- "name": "keyword.operator.bitwise.js",
1920
- "match": "(?x)\n ~ | # bitwise-not right-to-left right\n \u003c\u003c | # bitwise-shift left-to-right both\n \u003e\u003e\u003e | # bitwise-shift left-to-right both\n \u003e\u003e | # bitwise-shift left-to-right both\n \u0026 | # bitwise-and left-to-right both\n \\^ | # bitwise-xor left-to-right both\n \\| # bitwise-or left-to-right both"
1921
- },
1922
- {
1923
- "name": "keyword.operator.relational.js",
1924
- "match": "(?x)\n \u003c= | # relational left-to-right both\n \u003e= | # relational left-to-right both\n \u003c | # relational left-to-right both\n \u003e # relational left-to-right both"
1925
- },
1926
- {
1927
- "name": "keyword.operator.comparison.js",
1928
- "match": "(?x)\n === | # equality left-to-right both\n !== | # equality left-to-right both\n == | # equality left-to-right both\n != # equality left-to-right both"
1929
- },
1930
- {
1931
- "name": "keyword.operator.arithmetic.js",
1932
- "match": "(?x)\n -- | # decrement n/a right-or-left\n \\+\\+ | # increment n/a right-or-left\n / | # division left-to-right both\n % | # modulus left-to-right both\n \\* | # multiplication left-to-right both\n \\+ | # addition left-to-right both\n - # subtraction left-to-right both"
1933
- },
1934
- {
1935
- "name": "keyword.operator.ternary.js",
1936
- "match": "[?:]"
1937
- },
1938
- {
1939
- "name": "keyword.operator.spread.js",
1940
- "match": "(?\u003c!\\.)\\.\\.\\."
1941
- },
1942
- {
1943
- "name": "keyword.operator.accessor.js",
1944
- "match": "\\."
1945
- }
1946
- ]
1947
- },
1948
- "literal-prototype": {
1949
- "patterns": [
1950
- {
1951
- "name": "meta.prototype.declaration.js",
1952
- "match": "([_$a-zA-Z][$\\w]*)(\\.)(prototype)\\s*(=)\\s*",
1953
- "captures": {
1954
- "1": {
1955
- "name": "entity.name.class.js"
1956
- },
1957
- "2": {
1958
- "name": "keyword.operator.accessor.js"
1959
- },
1960
- "3": {
1961
- "name": "variable.language.prototype.js"
1962
- },
1963
- "4": {
1964
- "name": "keyword.operator.assignment.js"
1965
- }
1966
- }
1967
- },
1968
- {
1969
- "name": "meta.prototype.access.js",
1970
- "match": "([_$a-zA-Z][$\\w]*)(\\.)(prototype)\\b",
1971
- "captures": {
1972
- "1": {
1973
- "name": "entity.name.class.js"
1974
- },
1975
- "2": {
1976
- "name": "keyword.operator.accessor.js"
1977
- },
1978
- "3": {
1979
- "name": "variable.language.prototype.js"
1980
- }
1981
- }
1982
- }
1983
- ]
1984
- },
1985
- "literal-punctuation": {
1986
- "patterns": [
1987
- {
1988
- "name": "punctuation.terminator.statement.js",
1989
- "match": ";"
1990
- },
1991
- {
1992
- "name": "meta.delimiter.comma.js",
1993
- "match": ","
1994
- }
1995
- ]
1996
- },
1997
- "literal-regexp": {
1998
- "patterns": [
1999
- {
2000
- "name": "string.regexp.js",
2001
- "begin": "(?x)\n (?\u003c=\n \\.|\\(|,|{|}|\\[|;|\u003c|\u003e|\u003c=|\u003e=|==|!=|===|!==|\\+|-|\\*|%|\\+\\+|--|\u003c\u003c|\u003e\u003e|\u003e\u003e\u003e|\u0026|\\||\\^|!|~|\u0026\u0026|\\|\\||\\?|:|=|\\+=|-=|\\*=|%=|\u003c\u003c=|\u003e\u003e=|\u003e\u003e\u003e=|\u0026=|\\|=|\\^=|/|/=|\n \\Wnew|\\Wdelete|\\Wvoid|\\Wtypeof|\\Winstanceof|\\Win|\\Wdo|\\Wreturn|\\Wcase|\\Wthrow|\\Wyield|\n ^new|^delete|^void|^typeof|^instanceof|^in|^do|^return|^case|^throw|^yield|^\n )\\s*\n (/)\n (?!/|\\*|$)",
2002
- "end": "(/)([gimy]*)",
2003
- "patterns": [
2004
- {
2005
- "include": "source.js.regexp"
2006
- }
2007
- ],
2008
- "beginCaptures": {
2009
- "1": {
2010
- "name": "punctuation.definition.string.begin.js"
2011
- }
2012
- },
2013
- "endCaptures": {
2014
- "1": {
2015
- "name": "punctuation.definition.string.end.js"
2016
- },
2017
- "2": {
2018
- "name": "keyword.other.js"
2019
- }
2020
- }
2021
- }
2022
- ]
2023
- },
2024
- "literal-string": {
2025
- "patterns": [
2026
- {
2027
- "name": "string.quoted.js",
2028
- "begin": "([\"'])",
2029
- "end": "(\\1)|(\\n)",
2030
- "patterns": [
2031
- {
2032
- "include": "#string-content"
2033
- }
2034
- ],
2035
- "beginCaptures": {
2036
- "0": {
2037
- "name": "punctuation.definition.string.begin.js"
2038
- }
2039
- },
2040
- "endCaptures": {
2041
- "1": {
2042
- "name": "punctuation.definition.string.end.js"
2043
- },
2044
- "2": {
2045
- "name": "invalid.illegal.newline.js"
2046
- }
2047
- }
2048
- }
2049
- ]
2050
- },
2051
- "literal-switch": {
2052
- "patterns": [
2053
- {
2054
- "name": "meta.switch.js",
2055
- "begin": "(?\u003c!\\.)\\b(switch)\\b",
2056
- "end": "\\}",
2057
- "patterns": [
2058
- {
2059
- "include": "#comments"
2060
- },
2061
- {
2062
- "include": "#round-brackets"
2063
- },
2064
- {
2065
- "begin": "\\{",
2066
- "end": "(?=})",
2067
- "patterns": [
2068
- {
2069
- "begin": "(?\u003c!\\.)\\b(case|default)\\b",
2070
- "end": "(?=:)",
2071
- "patterns": [
2072
- {
2073
- "include": "#expression"
2074
- }
2075
- ],
2076
- "beginCaptures": {
2077
- "1": {
2078
- "name": "keyword.control.switch.js"
2079
- }
2080
- }
2081
- },
2082
- {
2083
- "include": "$self"
2084
- }
2085
- ],
2086
- "beginCaptures": {
2087
- "0": {
2088
- "name": "meta.brace.curly.begin.js"
2089
- }
2090
- }
2091
- }
2092
- ],
2093
- "beginCaptures": {
2094
- "1": {
2095
- "name": "keyword.control.switch.js"
2096
- }
2097
- },
2098
- "endCaptures": {
2099
- "0": {
2100
- "name": "meta.brace.curly.end.js"
2101
- }
2102
- }
2103
- }
2104
- ]
2105
- },
2106
- "literal-template-string": {
2107
- "begin": "`",
2108
- "end": "`",
2109
- "patterns": [
2110
- {
2111
- "include": "#string-content"
2112
- },
2113
- {
2114
- "name": "constant.character.escape.js",
2115
- "match": "\\\\`"
2116
- },
2117
- {
2118
- "begin": "\\${",
2119
- "end": "}",
2120
- "patterns": [
2121
- {
2122
- "include": "#expression"
2123
- }
2124
- ],
2125
- "beginCaptures": {
2126
- "0": {
2127
- "name": "keyword.other.substitution.begin.js"
2128
- }
2129
- },
2130
- "endCaptures": {
2131
- "0": {
2132
- "name": "keyword.other.substitution.end.js"
2133
- }
2134
- }
2135
- },
2136
- {
2137
- "name": "string.interpolated.js",
2138
- "match": "."
2139
- }
2140
- ],
2141
- "captures": {
2142
- "0": {
2143
- "name": "keyword.other.template.end.js"
2144
- }
2145
- },
2146
- "beginCaptures": {
2147
- "0": {
2148
- "name": "keyword.other.template.begin.js"
2149
- }
2150
- }
2151
- },
2152
- "literal-variable": {
2153
- "patterns": [
2154
- {
2155
- "name": "variable.other.constant.js",
2156
- "match": "_*?[A-Z][_$\\dA-Z]*\\b"
2157
- },
2158
- {
2159
- "name": "meta.property.class.js",
2160
- "match": "\\b([A-Z][$\\w]*)\\s*(\\.)([_$a-zA-Z][$\\w]*)",
2161
- "captures": {
2162
- "1": {
2163
- "name": "variable.other.class.js"
2164
- },
2165
- "2": {
2166
- "name": "keyword.operator.accessor.js"
2167
- },
2168
- "3": {
2169
- "name": "variable.other.property.static.js"
2170
- }
2171
- }
2172
- },
2173
- {
2174
- "name": "variable.other.object.js",
2175
- "match": "(?\u003c!\\.)([_$a-zA-Z][$\\w]*)\\s*(?=[\\[\\.])",
2176
- "captures": {
2177
- "1": {
2178
- "name": "variable.other.object.js"
2179
- }
2180
- }
2181
- },
2182
- {
2183
- "name": "meta.property.object.js",
2184
- "match": "(?\u003c=\\.)\\s*([_$a-zA-Z][$\\w]*)",
2185
- "captures": {
2186
- "1": {
2187
- "name": "variable.other.property.js"
2188
- }
2189
- }
2190
- },
2191
- {
2192
- "name": "variable.other.readwrite.js",
2193
- "match": "[_$a-zA-Z][$\\w]*"
2194
- }
2195
- ]
2196
- },
2197
- "merge-conflits": {
2198
- "patterns": [
2199
- {
2200
- "match": "^([\u003c]{7})\\s(.+)$",
2201
- "captures": {
2202
- "1": {
2203
- "name": "invalid.illegal.conflict-marker.merge-into.js"
2204
- },
2205
- "2": {
2206
- "name": "invalid.illegal.string.js"
2207
- }
2208
- }
2209
- },
2210
- {
2211
- "match": "^([=|]{7})$",
2212
- "captures": {
2213
- "1": {
2214
- "name": "invalid.illegal.conflict-marker.separator.js"
2215
- }
2216
- }
2217
- },
2218
- {
2219
- "match": "^([\u003e]{7})\\s(.+)$",
2220
- "captures": {
2221
- "1": {
2222
- "name": "invalid.illegal.conflict-marker.other-commit.js"
2223
- },
2224
- "2": {
2225
- "name": "invalid.illegal.string.js"
2226
- }
2227
- }
2228
- }
2229
- ]
2230
- },
2231
- "round-brackets": {
2232
- "patterns": [
2233
- {
2234
- "name": "meta.group.braces.round.js",
2235
- "begin": "\\(",
2236
- "end": "\\)",
2237
- "patterns": [
2238
- {
2239
- "include": "#expression"
2240
- }
2241
- ],
2242
- "beginCaptures": {
2243
- "0": {
2244
- "name": "meta.brace.round.begin.js"
2245
- }
2246
- },
2247
- "endCaptures": {
2248
- "0": {
2249
- "name": "meta.brace.round.end.js"
2250
- }
2251
- }
2252
- }
2253
- ]
2254
- },
2255
- "square-brackets": {
2256
- "patterns": [
2257
- {
2258
- "name": "meta.group.braces.square.js",
2259
- "begin": "\\[",
2260
- "end": "\\]",
2261
- "patterns": [
2262
- {
2263
- "include": "#expression"
2264
- }
2265
- ],
2266
- "beginCaptures": {
2267
- "0": {
2268
- "name": "meta.brace.square.begin.js"
2269
- }
2270
- },
2271
- "endCaptures": {
2272
- "0": {
2273
- "name": "meta.brace.square.end.js"
2274
- }
2275
- }
2276
- }
2277
- ]
2278
- },
2279
- "string-content": {
2280
- "patterns": [
2281
- {
2282
- "name": "constant.character.escape.newline.js",
2283
- "match": "\\\\\\s*\\n"
2284
- },
2285
- {
2286
- "name": "constant.character.escape.js",
2287
- "match": "\\\\([1-7][0-7]{0,2}|[0-7]{2,3}|[bfnrtv0'\"\\\\]|x[[:xdigit:]]{2}|u\\{[[:xdigit:]]+\\}|u[[:xdigit:]]{4})"
2288
- }
2289
- ]
2290
- },
2291
- "styled-components": {
2292
- "patterns": [
2293
- {
2294
- "name": "meta.styled-components.js",
2295
- "contentName": "source.css.embedded.js",
2296
- "begin": "(?\u003c!\\.)\\b(injectGlobal|keyframes)\\s*(`)",
2297
- "end": "`",
2298
- "patterns": [
2299
- {
2300
- "include": "source.js.css"
2301
- }
2302
- ],
2303
- "beginCaptures": {
2304
- "1": {
2305
- "name": "variable.function.tagged-template.js"
2306
- },
2307
- "2": {
2308
- "name": "punctuation.definition.string.template.begin.js"
2309
- }
2310
- },
2311
- "endCaptures": {
2312
- "0": {
2313
- "name": "punctuation.definition.string.template.end.js"
2314
- }
2315
- }
2316
- },
2317
- {
2318
- "name": "meta.styled-components.js",
2319
- "contentName": "source.css.embedded.js",
2320
- "begin": "(?\u003c!\\.)\\b(styled)(\\.)([_$a-zA-Z][$\\w]*)\\s*(`)",
2321
- "end": "`",
2322
- "patterns": [
2323
- {
2324
- "include": "source.js.css"
2325
- }
2326
- ],
2327
- "beginCaptures": {
2328
- "1": {
2329
- "name": "variable.other.object.js"
2330
- },
2331
- "2": {
2332
- "name": "punctuation.accessor.js"
2333
- },
2334
- "3": {
2335
- "name": "variable.function.tagged-template.js"
2336
- },
2337
- "4": {
2338
- "name": "punctuation.definition.string.template.begin.js"
2339
- }
2340
- },
2341
- "endCaptures": {
2342
- "0": {
2343
- "name": "punctuation.definition.string.template.end.js"
2344
- }
2345
- }
2346
- },
2347
- {
2348
- "name": "meta.styled-components.js",
2349
- "begin": "(?\u003c!\\.)\\b(styled)\\s*(?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*`)",
2350
- "end": "(?\u003c=`)",
2351
- "patterns": [
2352
- {
2353
- "name": "meta.function-call.with-arguments.js meta.group.js",
2354
- "begin": "\\(",
2355
- "end": "\\)",
2356
- "patterns": [
2357
- {
2358
- "include": "#expression"
2359
- }
2360
- ],
2361
- "beginCaptures": {
2362
- "0": {
2363
- "name": "punctuation.definition.group.begin.js"
2364
- }
2365
- },
2366
- "endCaptures": {
2367
- "0": {
2368
- "name": "punctuation.definition.group.end.js"
2369
- }
2370
- }
2371
- },
2372
- {
2373
- "contentName": "source.css.embedded.js",
2374
- "begin": "`",
2375
- "end": "`",
2376
- "patterns": [
2377
- {
2378
- "include": "source.js.css"
2379
- }
2380
- ],
2381
- "beginCaptures": {
2382
- "0": {
2383
- "name": "punctuation.definition.string.template.begin.js"
2384
- }
2385
- },
2386
- "endCaptures": {
2387
- "0": {
2388
- "name": "punctuation.definition.string.template.end.js"
2389
- }
2390
- }
2391
- }
2392
- ],
2393
- "captures": {
2394
- "1": {
2395
- "name": "meta.function-call.with-arguments.js entity.name.function.js"
2396
- }
2397
- }
2398
- }
2399
- ]
2400
- },
2401
- "support-class": {
2402
- "patterns": [
2403
- {
2404
- "name": "support.class.builtin.js",
2405
- "match": "(?\u003c!\\.)\\b(Array|ArrayBuffer|Boolean|DataView|Date|Float32Array|Float64Array|Function|Infinity|Int16Array|Int32Array|Int8Array|JSON|Map|Math|NaN|Number|Object|Promise|Proxy|Reflect|RegExp|Set|String|Symbol|System|TypeError|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|WeakMap|WeakSet)\\b"
2406
- },
2407
- {
2408
- "name": "support.class.error.js",
2409
- "match": "(?\u003c!\\.)\\b((?\u003eEval|Range|Reference|Syntax|Type|URI)?Error)\\b"
2410
- },
2411
- {
2412
- "name": "support.class.node.js",
2413
- "match": "\\b(?\u003eBuffer)\\b"
2414
- }
2415
- ]
2416
- },
2417
- "support-other": {
2418
- "patterns": [
2419
- {
2420
- "name": "support.function.builtin.js",
2421
- "match": "(?\u003c!\\.)\\b(constructor|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|hasOwnProperty|isFinite|isNaN|isPrototypeOf|parseFloat|parseInt|propertyIsEnumerable|toLocaleString|toString|unescape|valueOf)\\b"
2422
- },
2423
- {
2424
- "name": "support.function.node.js",
2425
- "match": "(?\u003c!\\.)\\b(clearImmediate|clearInterval|clearTimeout|require|setImmediate|setInterval|setTimeout)\\b"
2426
- },
2427
- {
2428
- "name": "support.type.object.dom.js",
2429
- "match": "(?\u003c!\\.)\\b(?\u003edocument|window)\\b"
2430
- },
2431
- {
2432
- "name": "support.type.object.node.js",
2433
- "match": "(?\u003c!\\.)\\b(?\u003eglobal|GLOBAL|root|__dirname|__filename)\\b"
2434
- },
2435
- {
2436
- "match": "(?\u003c!\\.)\\b(console)(?:(\\.)(assert|count|dir|error|group|groupCollapsed|groupEnd|info|log|profile|profileEnd|table|time|timeEnd|trace|warn))?\\b",
2437
- "captures": {
2438
- "1": {
2439
- "name": "support.type.object.console.js"
2440
- },
2441
- "2": {
2442
- "name": "keyword.operator.accessor.js"
2443
- },
2444
- "3": {
2445
- "name": "support.function.console.js"
2446
- }
2447
- }
2448
- },
2449
- {
2450
- "match": "(?\u003c!\\.)\\b(process)(?:(\\.)(?:(arch|argv|config|env|execArgv|execPath|exitCode|mainModule|pid|platform|stderr|stdin|stdout|title|version|versions)|(abort|chdir|cwd|exit|getgid|getgroups|getuid|hrtime|initgroups|kill|memoryUsage|nextTick|setgid|setgroups|setuid|umask|uptime)))?\\b",
2451
- "captures": {
2452
- "1": {
2453
- "name": "support.type.object.process.js"
2454
- },
2455
- "2": {
2456
- "name": "keyword.operator.accessor.js"
2457
- },
2458
- "3": {
2459
- "name": "support.type.object.process.js"
2460
- },
2461
- "4": {
2462
- "name": "support.function.process.js"
2463
- }
2464
- }
2465
- },
2466
- {
2467
- "match": "(?\u003c!\\.)\\b(exports|module)(?:(\\.)(children|exports|filename|id|loaded|parent))?\\b",
2468
- "captures": {
2469
- "1": {
2470
- "name": "support.type.object.module.js"
2471
- },
2472
- "2": {
2473
- "name": "keyword.operator.accessor.js"
2474
- },
2475
- "3": {
2476
- "name": "support.type.object.module.js"
2477
- }
2478
- }
2479
- },
2480
- {
2481
- "name": "meta.tag.mustache.js",
2482
- "begin": "{{",
2483
- "end": "}}"
2484
- }
2485
- ]
2486
- }
2487
- }
2488
- }
1
+ {"name":"JavaScript (Babel)","scopeName":"source.js.jsx","patterns":[{"include":"#core"}],"repository":{"brackets":{"patterns":[{"include":"#round-brackets"},{"include":"#square-brackets"},{"include":"#curly-brackets"}]},"class-method-definition":{"patterns":[{"name":"meta.short-method.flowtype.js","begin":"(@@[_$a-zA-Z][$\\w]*|static|return)(?=\\s*[\u003c(])|(?=\\s*\u003c)","end":"(?=\\s*[;{])","patterns":[{"include":"#flowtype-polymorph"},{"include":"#function-declaration-parameters"},{"include":"#flowtype-annotation"},{"include":"#comments"},{"include":"#curly-brackets"}],"beginCaptures":{"1":{"name":"keyword.operator.flowtype.js"}}},{"name":"meta.class-method.computed.js","begin":"(?\u003c=[]\"'])\\s*(?=[\u003c(])","end":"(?=\\s*[;{])","patterns":[{"include":"#flowtype-polymorph"},{"include":"#function-declaration-parameters"},{"include":"#flowtype-annotation"},{"include":"#comments"},{"include":"#curly-brackets"}]},{"name":"meta.class-accessor.js","begin":"(?x)\n ((?\u003eget|set)\\s+)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )(?=\\s*[\u003c(])","end":"(?=\\s*[;{])","patterns":[{"include":"#flowtype-polymorph"},{"include":"#function-declaration-parameters"},{"include":"#flowtype-annotation"},{"include":"#comments"},{"include":"#curly-brackets"}],"beginCaptures":{"1":{"name":"storage.type.js"},"10":{"name":"string.unquoted.js"},"11":{"name":"entity.name.function.js"},"2":{"name":"string.quoted.js"},"3":{"name":"punctuation.definition.string.begin.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"punctuation.definition.string.end.js"},"6":{"name":"string.quoted.js"},"7":{"name":"punctuation.definition.string.begin.js"},"8":{"name":"entity.name.function.js"},"9":{"name":"punctuation.definition.string.end.js"}}},{"name":"meta.class-method.js","begin":"(?x)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )(?=\\s*[\u003c(])","end":"(?=\\s*[;{])","patterns":[{"include":"#flowtype-polymorph"},{"include":"#function-declaration-parameters"},{"include":"#flowtype-annotation"},{"include":"#comments"},{"include":"#curly-brackets"}],"beginCaptures":{"1":{"name":"string.quoted.js"},"10":{"name":"entity.name.function.js"},"2":{"name":"punctuation.definition.string.begin.js"},"3":{"name":"entity.name.function.js"},"4":{"name":"punctuation.definition.string.end.js"},"5":{"name":"string.quoted.js"},"6":{"name":"punctuation.definition.string.begin.js"},"7":{"name":"entity.name.function.js"},"8":{"name":"punctuation.definition.string.end.js"},"9":{"name":"string.unquoted.js"}}}]},"class-method-storage":{"patterns":[{"name":"storage.modifier.js","match":"(?\u003c!\\.)\\b(?\u003estatic|declare)\\b"},{"name":"storage.type.js","match":"(?\u003c!\\.)\\b(async)\\b"},{"name":"storage.type.js","match":"(?\u003c!\\.)\\b(get|set)\\b(?!\\s*\\()"},{"name":"keyword.generator.asterisk.js","match":"\\*"}]},"class-properties":{"patterns":[{"name":"meta.class.property.js","begin":"([_$a-zA-Z][$\\w]*)(?=\\s*[:=])","end":"(?=\\s*[;}])","patterns":[{"include":"#flowtype-annotation"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.other.property.js"}}}]},"comments":{"patterns":[{"name":"comment.block.documentation.js","begin":"/\\*\\*(?!/)","end":"\\*/","captures":{"0":{"name":"punctuation.definition.comment.js"}}},{"name":"comment.block.js","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}}},{"name":"comment.block.html.js","match":"(?\u003e\u003c!--|--\u003e)","captures":{"0":{"name":"punctuation.definition.comment.js"}}},{"name":"comment.line.double-slash.js","match":"(//).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.js"}}},{"name":"comment.line.shebang.js","match":"^(#!).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.js"}}}]},"core":{"patterns":[{"include":"#literal-function-labels"},{"include":"#literal-arrow-function-labels"},{"include":"#literal-labels"},{"include":"#literal-for"},{"include":"#literal-switch"},{"include":"#styled-components"},{"include":"#graphql"},{"include":"#expression"},{"include":"#literal-punctuation"}]},"curly-brackets":{"patterns":[{"name":"meta.group.braces.curly.js","begin":"{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"meta.brace.curly.begin.js"}},"endCaptures":{"0":{"name":"meta.brace.curly.end.js"}}}]},"es7-decorators":{"patterns":[{"name":"tag.decorator.js","match":"(?x)\n (@)([_$a-zA-Z][$\\w]*)\\b","captures":{"1":{"name":"punctuation.definition.tag.js"},"2":{"name":"entity.name.tag.js"}}}]},"expression":{"patterns":[{"include":"#merge-conflits"},{"include":"#literal-regexp"},{"include":"#literal-jsx"},{"include":"#es7-decorators"},{"include":"#support-class"},{"include":"#support-other"},{"include":"#literal-function"},{"include":"#literal-arrow-function"},{"include":"#literal-prototype"},{"include":"#literal-keywords"},{"include":"#literal-method"},{"include":"#literal-module"},{"include":"#literal-class"},{"include":"#flowtype-declaration"},{"include":"#literal-number"},{"include":"#literal-template-string"},{"include":"#literal-string"},{"include":"#literal-language-constant"},{"include":"#literal-language-variable"},{"include":"#literal-constructor"},{"include":"#literal-method-call"},{"include":"#literal-function-call"},{"include":"#comments"},{"include":"#brackets"},{"include":"#literal-operators"},{"include":"#literal-variable"}]},"flowtype-annotation":{"patterns":[{"name":"meta.flowtype.annotation.js","begin":"(?:(\\?)\\s*)?(:)","end":"(?=\\S)","patterns":[{"include":"#flowtype-tokens"}],"beginCaptures":{"1":{"name":"keyword.operator.flowtype.optional.js"},"2":{"name":"keyword.operator.flowtype.annotation.js"}},"applyEndPatternLast":true}]},"flowtype-brackets":{"patterns":[{"begin":"{","end":"}","patterns":[{"include":"#flowtype-tokens"}],"beginCaptures":{"0":{"name":"punctuation.section.flowtype.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.flowtype.end.js"}}}]},"flowtype-declaration":{"patterns":[{"name":"support.type.declare.flowtype.js","match":"(?\u003c!\\.)\\b(declare)\\b"},{"name":"meta.type.flowtype.js","begin":"(?\u003c!\\.)\\b(type)\\b(?=\\s*[_$a-zA-Z])","end":"(?=\\s*(;|from))","patterns":[{"include":"#flowtype-tokens"}],"beginCaptures":{"1":{"name":"support.type.type.flowtype.js"}}},{"name":"meta.type.flowtype.js","begin":"(?\u003c!\\.)\\b(type)\\b(?=\\s*{)","end":"(?\u003c=})","patterns":[{"include":"#comments"},{"include":"#flowtype-brackets"},{"include":"#flowtype-polymorph"},{"name":"entity.name.type.js","match":"([_$a-zA-Z][$\\w]*)"}],"beginCaptures":{"1":{"name":"support.type.type.flowtype.js"}}}]},"flowtype-identifier":{"patterns":[{"include":"#support-class"},{"name":"constant.other.primitve.flowtype.js","match":"\\b(?:any|bool|boolean|mixed|number|string|void)\\b"},{"name":"variable.other.flowtype.js","match":"[_$a-zA-Z][$\\w]*"},{"name":"keyword.operator.flowtype.optional.js","match":"\\?"}]},"flowtype-polymorph":{"name":"meta.flowtype.polymorph.js","begin":"\u003c","end":"\u003e","patterns":[{"include":"#flowtype-tokens"}],"beginCaptures":{"0":{"name":"punctuation.section.flowtype.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.flowtype.end.js"}}},"flowtype-tokens":{"patterns":[{"begin":"(?\u003c=[:?|\u0026=])(?=\\s*{)","end":"(?\u003c=})","patterns":[{"include":"#flowtype-brackets"}]},{"name":"meta.flowtype.set.js","match":"\\s*([|\u0026])\\s*","captures":{"1":{"name":"keyword.operator.flowtype.other.js"}}},{"name":"keyword.operator.flowtype.other.js","match":"[*:?\u0026|.]|\\.\\.\\.|\\b(typeof)\\b"},{"begin":"\u003c","end":"\u003e","patterns":[{"include":"#flowtype-tokens"}],"beginCaptures":{"0":{"name":"punctuation.section.flowtype.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.flowtype.end.js"}}},{"begin":"\\[","end":"\\]","patterns":[{"include":"#flowtype-tokens"}],"beginCaptures":{"0":{"name":"punctuation.section.flowtype.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.flowtype.end.js"}}},{"begin":"\\(","end":"\\)","patterns":[{"include":"#flowtype-tokens"}],"beginCaptures":{"0":{"name":"punctuation.section.flowtype.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.flowtype.end.js"}}},{"name":"meta.flowtype.function.js","begin":"=\u003e","end":"(?\u003c=}|[_$a-zA-Z])","patterns":[{"include":"#flowtype-brackets"},{"include":"#flowtype-identifier"},{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.operator.flowtype.js"}}},{"include":"#flowtype-identifier"},{"include":"#literal-string"},{"include":"#comments"}]},"function-declaration-parameters":{"patterns":[{"begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#flowtype-annotation"},{"name":"keyword.operator.spread.js","match":"(?\u003c!\\.)\\.\\.\\."},{"name":"variable.parameter.function.js","match":"([_$a-zA-Z][$\\w]*)"},{"name":"punctuation.separator.parameter.function.js","match":","},{"name":"meta.parameter.optional.js","begin":"=","end":"(?=[,)])","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.js"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.js"}}}]},"graphql":{"patterns":[{"name":"meta.graphql.js","begin":"\\s*+gql`","end":"`","patterns":[{"include":"source.graphql"},{"name":"js","begin":"\\${","end":"}","patterns":[{"include":"#core"}]}]},{"name":"meta.graphql.js","begin":"\\s*+`#graphql","end":"`","patterns":[{"include":"source.graphql"},{"name":"js","begin":"\\${","end":"}","patterns":[{"include":"#core"}]}]}]},"jsx-attribute-assignment":{"name":"keyword.operator.assignment.jsx","match":"="},"jsx-attribute-name":{"name":"entity.other.attribute-name.jsx","match":"[_$a-zA-Z][-$\\w]*"},"jsx-attributes":{"patterns":[{"include":"#jsx-attribute-name"},{"include":"#jsx-attribute-assignment"},{"include":"#jsx-string-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#comments"}]},"jsx-entities":{"patterns":[{"name":"constant.character.entity.jsx","match":"\u0026(?:[a-zA-Z0-9]+|#\\d+|#x[[:xdigit:]]+);"},{"name":"invalid.illegal.bad-ampersand.jsx","match":"\u0026\\S*;"}]},"jsx-evaluated-code":{"name":"meta.embedded.expression.jsx","begin":"{","end":"}","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.jsx"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.jsx"}}},"jsx-string-quoted":{"name":"string.quoted.jsx","begin":"([\"'])","end":"\\1","patterns":[{"include":"#jsx-entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.jsx"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.jsx"}}},"jsx-tag-end":{"begin":"\u003e","end":"(?=\u003c/)","patterns":[{"include":"#jsx-tag-start"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.jsx"}}},"jsx-tag-start":{"patterns":[{"begin":"(\u003c)([_$a-zA-Z][-$:.\\w]*[$\\w]*)","end":"(\u003c/)(\\2)(\u003e)|(/\u003e)","patterns":[{"include":"#jsx-tag-end"},{"include":"#jsx-attributes"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.jsx"},"2":{"name":"entity.name.tag.html.jsx"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.jsx"},"2":{"name":"entity.name.tag.html.jsx"},"3":{"name":"punctuation.definition.tag.end.jsx"},"4":{"name":"punctuation.definition.tag.end.jsx"}}},{"name":"invalid.illegal.tag.incomplete.jsx","match":"\u003c"}]},"literal-arrow-function":{"patterns":[{"name":"meta.function.arrow.js","begin":"(?x)\n (?:([_$a-zA-Z][$\\w]*)\\s*(=)\\s*)?\n (?:\\b(async)\\s+)?\n (?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*(=\u003e))","end":"(?\u003c=\\))\\s*(=\u003e)","patterns":[{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"entity.name.function.js"},"2":{"name":"keyword.operator.assignment.js"},"3":{"name":"storage.type.js"}},"endCaptures":{"1":{"name":"storage.type.function.arrow.js"}}},{"name":"meta.function.arrow.js","match":"(?x)\n (?:([_$a-zA-Z][$\\w]*)\\s*(=)\\s*)?\n (?:(async)\\s+)?\n \\b([_$a-zA-Z][$\\w]*)\\s*(=\u003e)","captures":{"1":{"name":"entity.name.function.js"},"2":{"name":"keyword.operator.assignment.js"},"3":{"name":"storage.type.js"},"4":{"name":"variable.parameter.function.js"},"5":{"name":"storage.type.function.arrow.js"}}},{"name":"meta.prototype.function.arrow.js","begin":"(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)(prototype)\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(async)?\n \\s*(?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*(=\u003e))","end":"(?\u003c=\\))\\s*(=\u003e)","patterns":[{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"entity.name.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"variable.language.prototype.js"},"4":{"name":"keyword.operator.accessor.js"},"5":{"name":"entity.name.function.js"},"6":{"name":"keyword.operator.assignment.js"},"7":{"name":"storage.type.js"}},"endCaptures":{"1":{"name":"storage.type.function.arrow.js"}}},{"name":"meta.prototype.function.arrow.js","match":"(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)(prototype)\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(async)?\n \\s*\\b([_$a-zA-Z][$\\w]*)\\s*(=\u003e)","captures":{"1":{"name":"entity.name.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"variable.language.prototype.js"},"4":{"name":"keyword.operator.accessor.js"},"5":{"name":"entity.name.function.js"},"6":{"name":"keyword.operator.assignment.js"},"7":{"name":"storage.type.js"},"8":{"name":"variable.parameter.function.js"},"9":{"name":"storage.type.function.arrow.js"}}},{"name":"meta.function.static.arrow.js","begin":"(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(async)?\n \\s*(?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*(=\u003e))","end":"(?\u003c=\\))\\s*(=\u003e)","patterns":[{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"entity.name.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"entity.name.function.js"},"4":{"name":"keyword.operator.assignment.js"},"5":{"name":"storage.type.js"}},"endCaptures":{"1":{"name":"storage.type.function.arrow.js"}}},{"name":"meta.function.static.arrow.js","match":"(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(async)?\n \\s*\\b([_$a-zA-Z][$\\w]*)\\s*(=\u003e)","captures":{"1":{"name":"entity.name.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"entity.name.function.js"},"4":{"name":"keyword.operator.assignment.js"},"5":{"name":"storage.type.js"},"6":{"name":"variable.parameter.function.js"},"7":{"name":"storage.type.function.arrow.js"}}}]},"literal-arrow-function-labels":{"patterns":[{"name":"meta.function.json.arrow.js","begin":"(?x)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )\n \\s*(:)\n \\s*(?:\\b(async)\\s+)?\n \\s*(?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*(=\u003e))","end":"(?\u003c=\\))\\s*(=\u003e)","patterns":[{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"string.quoted.js"},"10":{"name":"entity.name.function.js"},"11":{"name":"punctuation.separator.key-value.js"},"12":{"name":"storage.type.js"},"2":{"name":"punctuation.definition.string.begin.js"},"3":{"name":"entity.name.function.js"},"4":{"name":"punctuation.definition.string.end.js"},"5":{"name":"string.quoted.js"},"6":{"name":"punctuation.definition.string.begin.js"},"7":{"name":"entity.name.function.js"},"8":{"name":"punctuation.definition.string.end.js"},"9":{"name":"string.unquoted.js"}},"endCaptures":{"1":{"name":"storage.type.function.arrow.js"}}},{"name":"meta.function.json.arrow.js","match":"(?x)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )\n \\s*(:)\n \\s*(?:\\b(async)\\s+)?\n \\s*\\b([_$a-zA-Z][$\\w]*)\\s*(=\u003e)","captures":{"1":{"name":"string.quoted.js"},"10":{"name":"entity.name.function.js"},"11":{"name":"punctuation.separator.key-value.js"},"12":{"name":"storage.type.js"},"13":{"name":"variable.parameter.function.js"},"14":{"name":"storage.type.function.arrow.js"},"2":{"name":"punctuation.definition.string.begin.js"},"3":{"name":"entity.name.function.js"},"4":{"name":"punctuation.definition.string.end.js"},"5":{"name":"string.quoted.js"},"6":{"name":"punctuation.definition.string.begin.js"},"7":{"name":"entity.name.function.js"},"8":{"name":"punctuation.definition.string.end.js"},"9":{"name":"string.unquoted.js"}}}]},"literal-class":{"patterns":[{"name":"meta.class.js","begin":"(?\u003c!\\.)\\b(?:(class)|(interface))\\b","end":"\\}","patterns":[{"include":"#comments"},{"begin":"([_$a-zA-Z][$\\w]*)","end":"(?={)","patterns":[{"include":"#comments"},{"include":"#flowtype-polymorph"},{"name":"meta.class.extends.js","begin":"(?\u003c!\\.)\\b(extends)\\b","end":"(?={)","patterns":[{"include":"#flowtype-polymorph"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"storage.type.extends.js"}}}],"beginCaptures":{"0":{"name":"entity.name.class.js"}}},{"begin":"\\{","end":"(?=})","patterns":[{"include":"#es7-decorators"},{"include":"#class-properties"},{"include":"#class-method-definition"},{"include":"#class-method-storage"},{"include":"#brackets"},{"include":"#comments"}],"beginCaptures":{"0":{"name":"meta.brace.curly.begin.js"}}}],"beginCaptures":{"1":{"name":"storage.type.class.js"},"2":{"name":"storage.type.interface.flowtype.js"}},"endCaptures":{"0":{"name":"meta.brace.curly.end.js"}}}]},"literal-constructor":{"patterns":[{"name":"meta.instance.constructor.js","begin":"(new)\\s+(?=[_$a-zA-Z][$\\w.]*)","end":"(?![_$a-zA-Z][$\\w.]*)","patterns":[{"include":"#support-class"},{"include":"#support-other"},{"match":"([_$a-zA-Z][$\\w.]*\\.)?([_$a-zA-Z][$\\w]*)","captures":{"2":{"name":"variable.function.constructor.js"}}}],"beginCaptures":{"1":{"name":"keyword.operator.new.js"}}}]},"literal-for":{"patterns":[{"name":"meta.for.js","begin":"(?\u003c!\\.)\\b(for)\\b","end":"\\)","patterns":[{"include":"#comments"},{"begin":"\\(","end":"(?=\\))","patterns":[{"include":"#literal-keyword-storage"},{"include":"#expression"},{"include":"#literal-punctuation"}],"beginCaptures":{"0":{"name":"meta.brace.round.begin.js"}}}],"beginCaptures":{"1":{"name":"keyword.control.loop.js"}},"endCaptures":{"0":{"name":"meta.brace.round.end.js"}}}]},"literal-function":{"patterns":[{"name":"meta.function.js","begin":"(?x)\n (?:([_$a-zA-Z][$\\w]*)\\s*(=)\\s*)?\n (?:(async)\\s+)?\n (function)(?\u003e\\s*(\\*)|(?=[\\s(\u003c]))\n \\s*([_$a-zA-Z][$\\w]*)?","end":"(?\u003c=\\))","patterns":[{"include":"#flowtype-polymorph"},{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"entity.name.function.js"},"2":{"name":"keyword.operator.assignment.js"},"3":{"name":"storage.type.js"},"4":{"name":"storage.type.function.js"},"5":{"name":"keyword.generator.asterisk.js"},"6":{"name":"entity.name.function.js"}}},{"name":"meta.function.prototype.js","begin":"(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)(prototype)\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(?:(async)\\s+)?\n \\s*(function)(?\u003e\\s*(\\*)|(?=[\\s(\u003c]))\n \\s*([_$a-zA-Z][$\\w]*)?\\s*","end":"(?\u003c=\\))","patterns":[{"include":"#flowtype-polymorph"},{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"entity.name.class.js"},"10":{"name":"entity.name.function.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"variable.language.prototype.js"},"4":{"name":"keyword.operator.accessor.js"},"5":{"name":"entity.name.function.js"},"6":{"name":"keyword.operator.assignment.js"},"7":{"name":"storage.type.js"},"8":{"name":"storage.type.function.js"},"9":{"name":"keyword.generator.asterisk.js"}}},{"name":"meta.function.static.js","begin":"(?x)\n (\\b_?[A-Z][$\\w]*)?\n (\\.)([_$a-zA-Z][$\\w]*)\n \\s*(=)\n \\s*(?:(async)\\s+)?\n \\s*(function)(?\u003e\\s*(\\*)|(?=[\\s(\u003c]))\n \\s*([_$a-zA-Z][$\\w]*)?\\s*","end":"(?\u003c=\\))","patterns":[{"include":"#flowtype-polymorph"},{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"entity.name.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"entity.name.function.js"},"4":{"name":"keyword.operator.assignment.js"},"5":{"name":"storage.type.js"},"6":{"name":"storage.type.function.js"},"7":{"name":"keyword.generator.asterisk.js"},"8":{"name":"entity.name.function.js"}}}]},"literal-function-call":{"patterns":[{"name":"meta.function-call.without-arguments.js","match":"([_$a-zA-Z][$\\w]*)\\s*(\\(\\s*\\))","captures":{"1":{"name":"entity.name.function.js"},"2":{"name":"meta.group.braces.round.function.arguments.js"}}},{"name":"meta.function-call.with-arguments.js","match":"([_$a-zA-Z][$\\w]*)\\s*(?=\\()","captures":{"1":{"name":"entity.name.function.js"}}},{"name":"meta.function-call.tagged-template.js","match":"([_$a-zA-Z][$\\w]*)\\s*(?=`)","captures":{"1":{"name":"entity.name.function.js"}}}]},"literal-function-labels":{"patterns":[{"name":"meta.function.json.js","begin":"(?x)\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )\n \\s*(:)\n \\s*(?:\\b(async)\\s+)?\n \\s*(function)(?\u003e\\s*(\\*)|(?=[\\s(\u003c]))\n \\s*([_$a-zA-Z][$\\w]*)?","end":"(?\u003c=\\))","patterns":[{"include":"#flowtype-polymorph"},{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"string.quoted.js"},"10":{"name":"entity.name.function.js"},"11":{"name":"punctuation.separator.key-value.js"},"12":{"name":"storage.type.js"},"13":{"name":"storage.type.function.js"},"14":{"name":"keyword.generator.asterisk.js"},"15":{"name":"entity.name.function.js"},"2":{"name":"punctuation.definition.string.begin.js"},"3":{"name":"entity.name.function.js"},"4":{"name":"punctuation.definition.string.end.js"},"5":{"name":"string.quoted.js"},"6":{"name":"punctuation.definition.string.begin.js"},"7":{"name":"entity.name.function.js"},"8":{"name":"punctuation.definition.string.end.js"},"9":{"name":"string.unquoted.js"}}}]},"literal-jsx":{"contentName":"meta.jsx.js","begin":"(?\u003c=\\(|\\{|\\[|,|\u0026\u0026|\\|\\||\\?|:|=|=\u003e|\\Wreturn|^return|\\Wdefault|^)(?=\\s*\u003c[_$a-zA-Z])","end":"(?\u003c=/\u003e|\u003e)","patterns":[{"include":"#jsx-tag-start"}]},"literal-keyword-storage":{"patterns":[{"name":"storage.type.js","match":"(?\u003c!\\.)\\b(?\u003econst|let|var)\\b"}]},"literal-keywords":{"patterns":[{"include":"#literal-keyword-storage"},{"match":"(?\u003c!\\.)\\b((?\u003eawait|yield))\\b(?:\\s*(\\*))?","captures":{"1":{"name":"keyword.control.flow.js"},"2":{"name":"keyword.generator.asterisk.js"}}},{"name":"keyword.control.flow.js","match":"(?\u003c!\\.)\\b(return)\\b"},{"name":"keyword.control.conditional.js","match":"(?\u003c!\\.)\\b(?\u003eif|else)\\b"},{"name":"keyword.control.trycatch.js","match":"(?\u003c!\\.)\\b(?\u003ecatch|finally|throw|try)\\b"},{"name":"keyword.control.loop.js","match":"(?\u003c!\\.)\\b(?\u003ebreak|continue|do|goto|while|case|default)\\b"},{"name":"keyword.other.reserved.js","match":"(?\u003c!\\.)\\b(?\u003eenum|module|public|package|private|interface|protected)\\b"},{"name":"keyword.other.js","match":"(?\u003c!\\.)\\b(debugger)\\b"}]},"literal-labels":{"patterns":[{"begin":"(?x)\n (?\u003c!\\?)(?\u003c!\\?\\s)(?=(?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n )\\s*:)","end":":","patterns":[{"include":"#literal-string"}],"endCaptures":{"0":{"name":"punctuation.separator.key-value.js"}}},{"name":"constant.other.object.key.js","match":"(?\u003c!\\.|\\?|\\?\\s)([_$a-zA-Z][$\\w]*)\\s*(:)","captures":{"1":{"name":"string.unquoted.label.js"},"2":{"name":"punctuation.separator.key-value.js"}}}]},"literal-language-constant":{"patterns":[{"name":"constant.language.boolean.true.js","match":"(?\u003c!\\.)\\b(true)\\b"},{"name":"constant.language.boolean.false.js","match":"(?\u003c!\\.)\\b(false)\\b"},{"name":"constant.language.null.js","match":"(?\u003c!\\.)\\b(null)\\b"},{"name":"constant.language.undefined.js","match":"(?\u003c!\\.)\\b(undefined)\\b"},{"name":"constant.language.nan.js","match":"(?\u003c!\\.)\\b(NaN)\\b"}]},"literal-language-variable":{"patterns":[{"name":"variable.language.arguments.js","match":"(?\u003c!(?\u003c!\\.\\.)\\.)\\b(arguments)\\b"},{"name":"variable.language.super.js","match":"(?\u003c!(?\u003c!\\.\\.)\\.)\\b(super)\\b"},{"name":"variable.language.this.js","match":"(?\u003c!(?\u003c!\\.\\.)\\.)\\b(this)\\b"},{"name":"variable.language.self.js","match":"(?\u003c!(?\u003c!\\.\\.)\\.)\\b(self)\\b"},{"name":"variable.language.proto.js","match":"(?\u003c=\\.)(__proto__)\\b"},{"name":"variable.language.constructor.js","match":"(?\u003c=\\.)(constructor)\\b"},{"name":"variable.language.prototype.js","match":"(?\u003c=\\.)(prototype)\\b"}]},"literal-method":{"patterns":[{"name":"meta.method.js","begin":"(?x)\n (?:\\b(static)\\s+)?\n (?:\\b(async)\\s+)?\n (?:(\\*)\\s*)?\n (?\u003e\n ((')((?\u003e[^'\\\\]|\\\\.)*)('))|\n ((\")((?\u003e[^\"\\\\]|\\\\.)*)(\"))|\n (([_$a-zA-Z][$\\w]*|\\d+))\n )\n (?=\\s*(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))(?\u003e\\s|/\\*.*\\*/)*\\{)","end":"(?\u003c=\\))","patterns":[{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"storage.type.js"},"10":{"name":"entity.name.function.js"},"11":{"name":"punctuation.definition.string.end.js"},"12":{"name":"string.unquoted.js"},"13":{"name":"entity.name.function.js"},"2":{"name":"storage.type.js"},"3":{"name":"keyword.generator.asterisk.js"},"4":{"name":"string.quoted.js"},"5":{"name":"punctuation.definition.string.begin.js"},"6":{"name":"entity.name.function.js"},"7":{"name":"punctuation.definition.string.end.js"},"8":{"name":"string.quoted.js"},"9":{"name":"punctuation.definition.string.begin.js"}}},{"name":"meta.accessor.js","begin":"(?x)\n \\b(?:(static)\\s+)?\n (get|set)\\s+\n ([_$a-zA-Z][$\\w]*|\\d+)\\s*\n (?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))(?\u003e\\s|/\\*.*\\*/)*\\{)","end":"(?\u003c=\\))","patterns":[{"include":"#function-declaration-parameters"}],"beginCaptures":{"1":{"name":"storage.type.js"},"2":{"name":"storage.type.accessor.js"},"3":{"name":"entity.name.accessor.js"}}}]},"literal-method-call":{"patterns":[{"name":"meta.function-call.static.without-arguments.js","match":"(?x)\n (?:(?\u003c=\\.)|\\b)\n ([A-Z][$\\w]*)\\s*(\\.)\n ([_$a-zA-Z][$\\w]*)\\s*\n (\\(\\s*\\))","captures":{"1":{"name":"variable.other.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"entity.name.function.js"},"4":{"name":"meta.group.braces.round.function.arguments.js"}}},{"name":"meta.function-call.static.with-arguments.js","match":"(?x)\n (?:(?\u003c=\\.)|\\b)\n ([A-Z][$\\w]*)\\s*(\\.)\n ([_$a-zA-Z][$\\w]*)\\s*\n (?=\\()","captures":{"1":{"name":"variable.other.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"entity.name.function.js"}}},{"name":"meta.function-call.method.without-arguments.js","match":"(?x)\n (?\u003c=\\.)\n ([_$a-zA-Z][$\\w]*)\\s*\n (\\(\\s*\\))","captures":{"1":{"name":"entity.name.function.js"},"2":{"name":"meta.group.braces.round.function.arguments.js"}}},{"name":"meta.function-call.method.with-arguments.js","match":"(?x)\n (?\u003c=\\.)\n ([_$a-zA-Z][$\\w]*)\\s*\n (?=\\()","captures":{"1":{"name":"entity.name.function.js"}}}]},"literal-module":{"patterns":[{"name":"keyword.operator.module.js","match":"(?\u003c!\\.)\\b(?\u003eimport|export|default|from|as)\\b"}]},"literal-number":{"patterns":[{"name":"invalid.illegal.numeric.hex.js","match":"(?i)(?:\\B[-+]|\\b)0x[0-9a-f]*\\.(\\B|\\b[0-9]+)"},{"name":"invalid.illegal.numeric.octal.js","match":"(?:\\B[-+]|\\b)0[0-9]+\\.(\\B|\\b[0-9]+)"},{"name":"constant.numeric.js","match":"(?xi)\n (?:\\B[-+])?\n (?:\n \\b0b[0-1]*| # binary\n \\b0o[0-7]*| # octal\n \\b0x[0-9a-f]*| # hex\n (\n \\B\\.[0-9]+| # e.g. .999\n \\b[0-9]+(\\.[0-9]*)? # e.g. 999.999, 999. or 999\n )(e[-+]?[0-9]+)? # e.g. e+123, E-123\n )"},{"name":"constant.language.infinity.js","match":"(?:\\B[-+]|\\b)(Infinity)\\b"}]},"literal-operators":{"patterns":[{"name":"keyword.operator.js","match":"(?\u003c!\\.)\\b(?\u003edelete|instanceof|in|new|of|typeof|void|with)\\b"},{"name":"keyword.operator.logical.js","match":"(?x)\n !(?!=)| # logical-not right-to-left right\n \u0026\u0026 | # logical-and left-to-right both\n \\|\\| # logical-or left-to-right both"},{"name":"keyword.operator.assignment.js","match":"(?x)\n =(?!=) # assignment right-to-left both"},{"name":"keyword.operator.assignment.augmented.js","match":"(?x)\n %= | # assignment right-to-left both\n \u0026= | # assignment right-to-left both\n \\*= | # assignment right-to-left both\n \\+= | # assignment right-to-left both\n -= | # assignment right-to-left both\n /= | # assignment right-to-left both\n \\^= | # assignment right-to-left both\n \\|= | # assignment right-to-left both\n \u003c\u003c= | # assignment right-to-left both\n \u003e\u003e= | # assignment right-to-left both\n \u003e\u003e\u003e= # assignment right-to-left both"},{"name":"keyword.operator.bitwise.js","match":"(?x)\n ~ | # bitwise-not right-to-left right\n \u003c\u003c | # bitwise-shift left-to-right both\n \u003e\u003e\u003e | # bitwise-shift left-to-right both\n \u003e\u003e | # bitwise-shift left-to-right both\n \u0026 | # bitwise-and left-to-right both\n \\^ | # bitwise-xor left-to-right both\n \\| # bitwise-or left-to-right both"},{"name":"keyword.operator.relational.js","match":"(?x)\n \u003c= | # relational left-to-right both\n \u003e= | # relational left-to-right both\n \u003c | # relational left-to-right both\n \u003e # relational left-to-right both"},{"name":"keyword.operator.comparison.js","match":"(?x)\n === | # equality left-to-right both\n !== | # equality left-to-right both\n == | # equality left-to-right both\n != # equality left-to-right both"},{"name":"keyword.operator.arithmetic.js","match":"(?x)\n -- | # decrement n/a right-or-left\n \\+\\+ | # increment n/a right-or-left\n / | # division left-to-right both\n % | # modulus left-to-right both\n \\* | # multiplication left-to-right both\n \\+ | # addition left-to-right both\n - # subtraction left-to-right both"},{"name":"keyword.operator.ternary.js","match":"[?:]"},{"name":"keyword.operator.spread.js","match":"(?\u003c!\\.)\\.\\.\\."},{"name":"keyword.operator.accessor.js","match":"\\."}]},"literal-prototype":{"patterns":[{"name":"meta.prototype.declaration.js","match":"([_$a-zA-Z][$\\w]*)(\\.)(prototype)\\s*(=)\\s*","captures":{"1":{"name":"entity.name.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"variable.language.prototype.js"},"4":{"name":"keyword.operator.assignment.js"}}},{"name":"meta.prototype.access.js","match":"([_$a-zA-Z][$\\w]*)(\\.)(prototype)\\b","captures":{"1":{"name":"entity.name.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"variable.language.prototype.js"}}}]},"literal-punctuation":{"patterns":[{"name":"punctuation.terminator.statement.js","match":";"},{"name":"meta.delimiter.comma.js","match":","}]},"literal-regexp":{"patterns":[{"name":"string.regexp.js","begin":"(?x)\n (?\u003c=\n \\.|\\(|,|{|}|\\[|;|\u003c|\u003e|\u003c=|\u003e=|==|!=|===|!==|\\+|-|\\*|%|\\+\\+|--|\u003c\u003c|\u003e\u003e|\u003e\u003e\u003e|\u0026|\\||\\^|!|~|\u0026\u0026|\\|\\||\\?|:|=|\\+=|-=|\\*=|%=|\u003c\u003c=|\u003e\u003e=|\u003e\u003e\u003e=|\u0026=|\\|=|\\^=|/|/=|\n \\Wnew|\\Wdelete|\\Wvoid|\\Wtypeof|\\Winstanceof|\\Win|\\Wdo|\\Wreturn|\\Wcase|\\Wthrow|\\Wyield|\n ^new|^delete|^void|^typeof|^instanceof|^in|^do|^return|^case|^throw|^yield|^\n )\\s*\n (/)\n (?!/|\\*|$)","end":"(/)([gimy]*)","patterns":[{"include":"source.js.regexp"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.js"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}}}]},"literal-string":{"patterns":[{"name":"string.quoted.js","begin":"([\"'])","end":"(\\1)|(\\n)","patterns":[{"include":"#string-content"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"invalid.illegal.newline.js"}}}]},"literal-switch":{"patterns":[{"name":"meta.switch.js","begin":"(?\u003c!\\.)\\b(switch)\\b","end":"\\}","patterns":[{"include":"#comments"},{"include":"#round-brackets"},{"begin":"\\{","end":"(?=})","patterns":[{"begin":"(?\u003c!\\.)\\b(case|default)\\b","end":"(?=:)","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.switch.js"}}},{"include":"$self"}],"beginCaptures":{"0":{"name":"meta.brace.curly.begin.js"}}}],"beginCaptures":{"1":{"name":"keyword.control.switch.js"}},"endCaptures":{"0":{"name":"meta.brace.curly.end.js"}}}]},"literal-template-string":{"begin":"`","end":"`","patterns":[{"include":"#string-content"},{"name":"constant.character.escape.js","match":"\\\\`"},{"begin":"\\${","end":"}","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.other.substitution.begin.js"}},"endCaptures":{"0":{"name":"keyword.other.substitution.end.js"}}},{"name":"string.interpolated.js","match":"."}],"captures":{"0":{"name":"keyword.other.template.end.js"}},"beginCaptures":{"0":{"name":"keyword.other.template.begin.js"}}},"literal-variable":{"patterns":[{"name":"variable.other.constant.js","match":"_*?[A-Z][_$\\dA-Z]*\\b"},{"name":"meta.property.class.js","match":"\\b([A-Z][$\\w]*)\\s*(\\.)([_$a-zA-Z][$\\w]*)","captures":{"1":{"name":"variable.other.class.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"variable.other.property.static.js"}}},{"name":"variable.other.object.js","match":"(?\u003c!\\.)([_$a-zA-Z][$\\w]*)\\s*(?=[\\[\\.])","captures":{"1":{"name":"variable.other.object.js"}}},{"name":"meta.property.object.js","match":"(?\u003c=\\.)\\s*([_$a-zA-Z][$\\w]*)","captures":{"1":{"name":"variable.other.property.js"}}},{"name":"variable.other.readwrite.js","match":"[_$a-zA-Z][$\\w]*"}]},"merge-conflits":{"patterns":[{"match":"^([\u003c]{7})\\s(.+)$","captures":{"1":{"name":"invalid.illegal.conflict-marker.merge-into.js"},"2":{"name":"invalid.illegal.string.js"}}},{"match":"^([=|]{7})$","captures":{"1":{"name":"invalid.illegal.conflict-marker.separator.js"}}},{"match":"^([\u003e]{7})\\s(.+)$","captures":{"1":{"name":"invalid.illegal.conflict-marker.other-commit.js"},"2":{"name":"invalid.illegal.string.js"}}}]},"round-brackets":{"patterns":[{"name":"meta.group.braces.round.js","begin":"\\(","end":"\\)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"meta.brace.round.begin.js"}},"endCaptures":{"0":{"name":"meta.brace.round.end.js"}}}]},"square-brackets":{"patterns":[{"name":"meta.group.braces.square.js","begin":"\\[","end":"\\]","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"meta.brace.square.begin.js"}},"endCaptures":{"0":{"name":"meta.brace.square.end.js"}}}]},"string-content":{"patterns":[{"name":"constant.character.escape.newline.js","match":"\\\\\\s*\\n"},{"name":"constant.character.escape.js","match":"\\\\([1-7][0-7]{0,2}|[0-7]{2,3}|[bfnrtv0'\"\\\\]|x[[:xdigit:]]{2}|u\\{[[:xdigit:]]+\\}|u[[:xdigit:]]{4})"}]},"styled-components":{"patterns":[{"name":"meta.styled-components.js","contentName":"source.css.embedded.js","begin":"(?\u003c!\\.)\\b(injectGlobal|keyframes)\\s*(`)","end":"`","patterns":[{"include":"source.js.css"}],"beginCaptures":{"1":{"name":"variable.function.tagged-template.js"},"2":{"name":"punctuation.definition.string.template.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.string.template.end.js"}}},{"name":"meta.styled-components.js","contentName":"source.css.embedded.js","begin":"(?\u003c!\\.)\\b(styled)(\\.)([_$a-zA-Z][$\\w]*)\\s*(`)","end":"`","patterns":[{"include":"source.js.css"}],"beginCaptures":{"1":{"name":"variable.other.object.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"variable.function.tagged-template.js"},"4":{"name":"punctuation.definition.string.template.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.string.template.end.js"}}},{"name":"meta.styled-components.js","begin":"(?\u003c!\\.)\\b(styled)\\s*(?=(\\((?\u003e(?\u003e[^()]+)|\\g\u003c-1\u003e)*\\))\\s*`)","end":"(?\u003c=`)","patterns":[{"name":"meta.function-call.with-arguments.js meta.group.js","begin":"\\(","end":"\\)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.js"}}},{"contentName":"source.css.embedded.js","begin":"`","end":"`","patterns":[{"include":"source.js.css"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.template.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.string.template.end.js"}}}],"captures":{"1":{"name":"meta.function-call.with-arguments.js entity.name.function.js"}}}]},"support-class":{"patterns":[{"name":"support.class.builtin.js","match":"(?\u003c!\\.)\\b(Array|ArrayBuffer|Boolean|DataView|Date|Float32Array|Float64Array|Function|Infinity|Int16Array|Int32Array|Int8Array|JSON|Map|Math|NaN|Number|Object|Promise|Proxy|Reflect|RegExp|Set|String|Symbol|System|TypeError|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|WeakMap|WeakSet)\\b"},{"name":"support.class.error.js","match":"(?\u003c!\\.)\\b((?\u003eEval|Range|Reference|Syntax|Type|URI)?Error)\\b"},{"name":"support.class.node.js","match":"\\b(?\u003eBuffer)\\b"}]},"support-other":{"patterns":[{"name":"support.function.builtin.js","match":"(?\u003c!\\.)\\b(constructor|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|hasOwnProperty|isFinite|isNaN|isPrototypeOf|parseFloat|parseInt|propertyIsEnumerable|toLocaleString|toString|unescape|valueOf)\\b"},{"name":"support.function.node.js","match":"(?\u003c!\\.)\\b(clearImmediate|clearInterval|clearTimeout|require|setImmediate|setInterval|setTimeout)\\b"},{"name":"support.type.object.dom.js","match":"(?\u003c!\\.)\\b(?\u003edocument|window)\\b"},{"name":"support.type.object.node.js","match":"(?\u003c!\\.)\\b(?\u003eglobal|GLOBAL|root|__dirname|__filename)\\b"},{"match":"(?\u003c!\\.)\\b(console)(?:(\\.)(assert|count|dir|error|group|groupCollapsed|groupEnd|info|log|profile|profileEnd|table|time|timeEnd|trace|warn))?\\b","captures":{"1":{"name":"support.type.object.console.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"support.function.console.js"}}},{"match":"(?\u003c!\\.)\\b(process)(?:(\\.)(?:(arch|argv|config|env|execArgv|execPath|exitCode|mainModule|pid|platform|stderr|stdin|stdout|title|version|versions)|(abort|chdir|cwd|exit|getgid|getgroups|getuid|hrtime|initgroups|kill|memoryUsage|nextTick|setgid|setgroups|setuid|umask|uptime)))?\\b","captures":{"1":{"name":"support.type.object.process.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"support.type.object.process.js"},"4":{"name":"support.function.process.js"}}},{"match":"(?\u003c!\\.)\\b(exports|module)(?:(\\.)(children|exports|filename|id|loaded|parent))?\\b","captures":{"1":{"name":"support.type.object.module.js"},"2":{"name":"keyword.operator.accessor.js"},"3":{"name":"support.type.object.module.js"}}},{"name":"meta.tag.mustache.js","begin":"{{","end":"}}"}]}}}