github-linguist 5.3.3 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +5 -2
- data/ext/linguist/linguist.c +18 -7
- data/grammars/annotation.liquidhaskell.haskell.json +969 -862
- data/grammars/config.xcompose.json +22 -25
- data/grammars/file.lasso.json +296 -309
- data/grammars/hint.haskell.json +867 -766
- data/grammars/hint.message.haskell.json +867 -766
- data/grammars/hint.type.haskell.json +867 -766
- data/grammars/objdump.x86asm.json +20 -24
- data/grammars/source.Kotlin.json +220 -225
- data/grammars/source.LS.json +36 -55
- data/grammars/source.MCPOST.json +24 -38
- data/grammars/source.MOD.json +26 -41
- data/grammars/source.SASLog.json +9 -16
- data/grammars/source.abap.json +48 -56
- data/grammars/source.abl.json +8 -14
- data/grammars/source.abnf.json +88 -98
- data/grammars/source.actionscript.3.json +398 -429
- data/grammars/source.acucobol.json +5 -8
- data/grammars/source.ada.json +46 -53
- data/grammars/source.afm.json +548 -554
- data/grammars/source.agc.json +34 -37
- data/grammars/source.agda.json +79 -91
- data/grammars/source.ahk.json +62 -66
- data/grammars/source.alloy.json +16 -20
- data/grammars/source.ampl.json +41 -47
- data/grammars/source.angelscript.json +71 -80
- data/grammars/source.antlr.json +131 -136
- data/grammars/source.apache-config.json +93 -99
- data/grammars/source.apache-config.mod_perl.json +19 -24
- data/grammars/source.apl.json +1038 -1029
- data/grammars/source.applescript.json +501 -523
- data/grammars/source.apt.json +9 -16
- data/grammars/source.asn.json +27 -31
- data/grammars/source.asp.json +61 -67
- data/grammars/source.aspectj.json +385 -391
- data/grammars/source.assembly.json +49 -55
- data/grammars/source.ats.json +45 -121
- data/grammars/source.autoit.json +64 -69
- data/grammars/source.awk.json +172 -176
- data/grammars/source.ballerina.json +48 -395
- data/grammars/source.batchfile.json +269 -269
- data/grammars/source.befunge.json +17 -21
- data/grammars/source.bf.json +5 -11
- data/grammars/source.bison.json +10 -14
- data/grammars/source.blitzmax.json +300 -305
- data/grammars/source.boo.json +189 -193
- data/grammars/source.brightauthorproject.json +8 -13
- data/grammars/source.brightscript.json +37 -47
- data/grammars/source.bro.json +134 -140
- data/grammars/source.bsl.json +152 -193
- data/grammars/source.bsv.json +96 -102
- data/grammars/source.c++.json +176 -193
- data/grammars/source.c++.qt.json +13 -21
- data/grammars/source.c.ec.json +15 -21
- data/grammars/source.c.json +237 -251
- data/grammars/source.c.platform.json +153 -159
- data/grammars/source.c2hs.json +3 -6
- data/grammars/source.cabal.json +17 -20
- data/grammars/source.cache.cmake.json +18 -23
- data/grammars/source.cake.json +4 -7
- data/grammars/source.camlp4.ocaml.json +24 -27
- data/grammars/source.capnp.json +33 -38
- data/grammars/source.ceylon.json +44 -50
- data/grammars/source.cfscript.cfc.json +78 -86
- data/grammars/source.cfscript.json +513 -520
- data/grammars/source.changelogs.rpm-spec.json +8 -16
- data/grammars/source.chapel.json +109 -87
- data/grammars/source.cirru.json +25 -30
- data/grammars/source.clarion.json +41 -54
- data/grammars/source.clean.json +90 -95
- data/grammars/source.click.json +25 -28
- data/grammars/source.clips.json +10 -23
- data/grammars/source.clojure.json +151 -168
- data/grammars/source.cm.json +14 -19
- data/grammars/source.cmake.json +53 -61
- data/grammars/source.cobol.json +165 -180
- data/grammars/source.coffee.json +454 -462
- data/grammars/source.cool.json +36 -43
- data/grammars/source.coq.json +17 -21
- data/grammars/source.crystal.json +889 -983
- data/grammars/source.cs.json +739 -740
- data/grammars/source.csound-document.json +69 -73
- data/grammars/source.csound-score.json +52 -55
- data/grammars/source.csound.json +167 -171
- data/grammars/source.css.json +683 -688
- data/grammars/source.css.less.json +211 -511
- data/grammars/source.css.mss.json +94 -101
- data/grammars/source.css.postcss.sugarss.json +260 -0
- data/grammars/source.csx.json +4 -7
- data/grammars/source.cuda-c++.json +47 -81
- data/grammars/source.cwl.json +103 -0
- data/grammars/source.cython.json +536 -582
- data/grammars/source.d.json +243 -252
- data/grammars/source.dart.json +161 -166
- data/grammars/source.data-weave.json +901 -905
- data/grammars/source.desktop.json +29 -33
- data/grammars/source.diff.json +43 -52
- data/grammars/source.disasm.json +15 -16
- data/grammars/source.ditroff.desc.json +73 -84
- data/grammars/source.ditroff.json +60 -61
- data/grammars/source.dm.json +202 -213
- data/grammars/source.dmf.json +44 -47
- data/grammars/source.dockerfile.json +29 -34
- data/grammars/source.dot.json +46 -55
- data/grammars/source.dylan.json +63 -68
- data/grammars/source.ebnf.json +55 -62
- data/grammars/source.eiffel.json +57 -62
- data/grammars/source.elixir.json +321 -366
- data/grammars/source.emacs.lisp.json +458 -249
- data/grammars/source.erazor.json +49 -57
- data/grammars/source.erlang.json +508 -515
- data/grammars/source.essl.json +17 -30
- data/grammars/source.factor.json +85 -91
- data/grammars/source.fan.json +92 -96
- data/grammars/source.fancy.json +93 -118
- data/grammars/source.fish.json +74 -98
- data/grammars/source.fontforge.json +142 -146
- data/grammars/source.forth.json +42 -57
- data/grammars/source.fortran.json +193 -231
- data/grammars/source.fortran.modern.json +77 -103
- data/grammars/source.fsharp.fsi.json +1 -6
- data/grammars/source.fsharp.fsl.json +1 -6
- data/grammars/source.fsharp.fsx.json +1 -6
- data/grammars/source.fsharp.json +148 -153
- data/grammars/source.gap.json +60 -70
- data/grammars/source.gcode.json +9 -16
- data/grammars/source.gdb.json +63 -79
- data/grammars/source.gdb.session.json +27 -28
- data/grammars/source.gdbregs.json +7 -8
- data/grammars/source.gdscript.json +92 -96
- data/grammars/source.gerber.json +38 -56
- data/grammars/source.gfm.json +447 -462
- data/grammars/source.glsl.json +58 -83
- data/grammars/source.gn.json +188 -193
- data/grammars/source.gnuplot.json +104 -120
- data/grammars/source.go.json +169 -181
- data/grammars/source.golo.json +82 -87
- data/grammars/source.gosu.2.json +58 -68
- data/grammars/source.grace.json +266 -270
- data/grammars/source.graphql.json +586 -596
- data/grammars/source.groovy.gradle.json +18 -22
- data/grammars/source.groovy.json +422 -433
- data/grammars/source.harbour.json +129 -173
- data/grammars/source.haskell.json +871 -772
- data/grammars/source.haxe.2.json +402 -413
- data/grammars/source.hlsl.json +6 -16
- data/grammars/source.hsc2hs.json +1 -4
- data/grammars/source.hsig.json +871 -770
- data/grammars/source.hss.1.json +122 -144
- data/grammars/source.httpspec.json +119 -123
- data/grammars/source.hxml.json +8 -15
- data/grammars/source.ideal.json +125 -125
- data/grammars/source.idl-dlm.json +25 -32
- data/grammars/source.idl.json +59 -80
- data/grammars/source.idris.json +171 -185
- data/grammars/source.inform7.json +117 -121
- data/grammars/source.ini.json +37 -43
- data/grammars/source.io.json +65 -73
- data/grammars/source.ioke.json +72 -78
- data/grammars/source.isabelle.root.json +26 -30
- data/grammars/source.isabelle.theory.json +46 -50
- data/grammars/source.j.json +18 -21
- data/grammars/source.jasmin.json +45 -50
- data/grammars/source.java-properties.json +31 -41
- data/grammars/source.java.json +333 -342
- data/grammars/source.jcl.json +15 -18
- data/grammars/source.jflex.json +166 -172
- data/grammars/source.jison.json +331 -334
- data/grammars/source.jisonlex-injection.json +1 -2
- data/grammars/source.jisonlex.json +148 -151
- data/grammars/source.jolie.json +37 -43
- data/grammars/source.jq.json +80 -87
- data/grammars/source.js.json +798 -818
- data/grammars/source.js.jsx.json +2115 -2225
- data/grammars/source.js.objj.json +167 -172
- data/grammars/source.js.regexp.json +50 -50
- data/grammars/source.js.regexp.replacement.json +7 -7
- data/grammars/source.jsdoc.json +94 -94
- data/grammars/source.json.json +61 -71
- data/grammars/source.julia.console.json +5 -6
- data/grammars/source.julia.json +237 -234
- data/grammars/source.lean.json +55 -67
- data/grammars/source.lid.json +6 -10
- data/grammars/source.lilypond.json +181 -195
- data/grammars/source.lisp.json +40 -50
- data/grammars/source.litcoffee.json +169 -183
- data/grammars/source.livescript.json +207 -220
- data/grammars/source.llvm.json +28 -38
- data/grammars/source.logos.json +7 -14
- data/grammars/source.logtalk.json +136 -141
- data/grammars/source.loomscript.json +77 -83
- data/grammars/source.lsl.json +90 -106
- data/grammars/source.lua.json +100 -109
- data/grammars/source.makefile.json +181 -188
- data/grammars/source.makegen.json +3 -7
- data/grammars/source.mask.json +260 -265
- data/grammars/source.mata.json +38 -46
- data/grammars/source.mathematica.json +155 -167
- data/grammars/source.matlab.json +407 -684
- data/grammars/source.maxscript.json +293 -281
- data/grammars/source.mercury.json +179 -184
- data/grammars/source.meson.json +52 -58
- data/grammars/source.meta-info.json +64 -74
- data/grammars/source.ml.json +107 -113
- data/grammars/source.modelica.json +51 -59
- data/grammars/source.modula2.json +33 -42
- data/grammars/source.monkey.json +234 -241
- data/grammars/source.moonscript.json +51 -56
- data/grammars/source.mql5.json +74 -101
- data/grammars/source.mupad.json +30 -72
- data/grammars/source.ncl.json +1 -14
- data/grammars/source.ne.json +39 -42
- data/grammars/source.nemerle.json +58 -63
- data/grammars/source.nesc.json +9 -15
- data/grammars/source.netlinx.erb.json +13 -25
- data/grammars/source.netlinx.json +231 -292
- data/grammars/source.nextflow-groovy.json +1360 -0
- data/grammars/source.nextflow.json +74 -0
- data/grammars/source.nginx.json +274 -287
- data/grammars/source.nim.json +442 -483
- data/grammars/source.nim_filter.json +6 -26
- data/grammars/source.nimcfg.json +38 -51
- data/grammars/source.ninja.json +64 -70
- data/grammars/source.nit.json +60 -64
- data/grammars/source.nix.json +269 -273
- data/grammars/source.nmml.json +31 -37
- data/grammars/source.nsis.json +66 -72
- data/grammars/source.nu.json +129 -139
- data/grammars/source.nut.json +129 -133
- data/grammars/source.objc++.json +3 -10
- data/grammars/source.objc.json +303 -314
- data/grammars/source.objc.platform.json +145 -151
- data/grammars/source.ocaml.json +506 -514
- data/grammars/source.ocamllex.json +108 -115
- data/grammars/source.ocamlyacc.json +116 -123
- data/grammars/source.ooc.json +148 -155
- data/grammars/source.opa.json +39 -49
- data/grammars/source.opal.json +84 -89
- data/grammars/source.opalsysdefs.json +9 -13
- data/grammars/source.opencobol.json +22 -25
- data/grammars/source.opentype.json +148 -152
- data/grammars/source.ox.json +36 -44
- data/grammars/source.oz.json +31 -38
- data/grammars/source.p4.json +49 -59
- data/grammars/source.pan.json +273 -278
- data/grammars/source.papyrus.skyrim.json +705 -781
- data/grammars/source.parrot.pir.json +59 -65
- data/grammars/source.pascal.json +54 -61
- data/grammars/source.pawn.json +835 -849
- data/grammars/source.pcb.board.json +153 -158
- data/grammars/source.pcb.schematic.json +134 -138
- data/grammars/source.pcb.sexp.json +64 -74
- data/grammars/source.pep8.json +28 -32
- data/grammars/source.perl.6.json +83 -92
- data/grammars/source.perl.json +711 -737
- data/grammars/source.perl6fe.json +1204 -1218
- data/grammars/source.php.zephir.json +80 -89
- data/grammars/source.pic.json +137 -142
- data/grammars/source.pig_latin.json +76 -80
- data/grammars/source.pike.json +23 -36
- data/grammars/source.po.json +74 -84
- data/grammars/source.pogoscript.json +23 -29
- data/grammars/source.pony.json +98 -108
- data/grammars/source.postcss.json +370 -0
- data/grammars/source.postscript.json +88 -97
- data/grammars/source.pov-ray sdl.json +36 -42
- data/grammars/source.powershell.json +175 -197
- data/grammars/source.processing.json +236 -249
- data/grammars/source.prolog.eclipse.json +33 -38
- data/grammars/source.prolog.json +66 -72
- data/grammars/source.protobuf.json +88 -94
- data/grammars/source.puppet.json +144 -151
- data/grammars/source.purescript.json +268 -289
- data/grammars/source.pyjade.json +256 -281
- data/grammars/source.python.django.json +13 -18
- data/grammars/source.python.json +3319 -3367
- data/grammars/source.python.salt.json +3 -7
- data/grammars/source.qmake.json +83 -90
- data/grammars/source.qml.json +57 -78
- data/grammars/source.quoting.perl6fe.json +666 -669
- data/grammars/source.r.json +75 -84
- data/grammars/source.racket.json +17 -38
- data/grammars/source.rascal.json +77 -80
- data/grammars/source.reason.hover.type.json +1 -1
- data/grammars/source.reason.json +1025 -1080
- data/grammars/source.rebol.json +167 -177
- data/grammars/source.red.json +169 -177
- data/grammars/source.regexp.babel.json +74 -77
- data/grammars/source.regexp.extended.json +4 -5
- data/grammars/source.regexp.json +260 -264
- data/grammars/source.regexp.perl6fe.json +108 -111
- data/grammars/source.regexp.python.json +210 -215
- data/grammars/source.regexp.spin.json +63 -72
- data/grammars/source.renpy.json +617 -687
- data/grammars/source.rexx.json +25 -32
- data/grammars/source.ring.json +84 -114
- data/grammars/source.rpm-spec.json +392 -401
- data/grammars/source.ruby.gemfile.json +9 -12
- data/grammars/source.ruby.json +862 -952
- data/grammars/source.ruby.rspec.cucumber.steps.json +90 -103
- data/grammars/source.rust.json +223 -281
- data/grammars/source.sas.json +88 -105
- data/grammars/source.sass.json +100 -108
- data/grammars/source.sbt.json +16 -23
- data/grammars/source.scad.json +60 -67
- data/grammars/source.scala.json +215 -228
- data/grammars/source.scaml.json +120 -135
- data/grammars/source.scheme.json +119 -136
- data/grammars/source.scilab.json +40 -47
- data/grammars/source.scss.json +369 -403
- data/grammars/source.sdbl.json +14 -25
- data/grammars/source.shaderlab.json +24 -27
- data/grammars/source.shell.json +409 -440
- data/grammars/source.shen.json +75 -94
- data/grammars/source.smali.json +232 -293
- data/grammars/source.smalltalk.json +60 -75
- data/grammars/source.smt.json +67 -82
- data/grammars/source.solidity.json +35 -54
- data/grammars/source.sp.json +40 -45
- data/grammars/source.sparql.json +3 -8
- data/grammars/source.spin.json +277 -297
- data/grammars/source.sqf.json +34 -44
- data/grammars/source.sql.json +142 -156
- data/grammars/source.stan.json +201 -160
- data/grammars/source.stata.json +57 -68
- data/grammars/source.strings.json +26 -30
- data/grammars/source.stylus.json +558 -565
- data/grammars/source.supercollider.json +33 -40
- data/grammars/source.swift.json +999 -1077
- data/grammars/source.systemverilog.json +351 -365
- data/grammars/source.tcl.json +77 -94
- data/grammars/source.tea.json +61 -67
- data/grammars/source.terra.json +25 -32
- data/grammars/source.terraform.json +68 -88
- data/grammars/source.thrift.json +300 -306
- data/grammars/source.tl.json +112 -117
- data/grammars/source.tla.json +65 -69
- data/grammars/source.toc.json +21 -25
- data/grammars/source.toml.json +117 -122
- data/grammars/source.ts.json +2838 -2774
- data/grammars/source.tsx.json +180 -184
- data/grammars/source.turing.json +970 -974
- data/grammars/source.turtle.json +124 -140
- data/grammars/source.txl.json +23 -37
- data/grammars/source.ucfconstraints.json +16 -21
- data/grammars/source.ur.json +15 -27
- data/grammars/source.vala.json +221 -235
- data/grammars/source.varnish.vcl.json +117 -129
- data/grammars/source.vbnet.json +69 -106
- data/grammars/source.verilog.json +101 -107
- data/grammars/source.vhdl.json +437 -445
- data/grammars/source.viml.json +540 -550
- data/grammars/source.wavefront.mtl.json +274 -277
- data/grammars/source.wavefront.obj.json +781 -784
- data/grammars/source.wdl.json +66 -46
- data/grammars/source.webassembly.json +97 -102
- data/grammars/source.webidl.json +311 -326
- data/grammars/source.x10.json +28 -32
- data/grammars/source.x86asm.json +21 -26
- data/grammars/source.xc.json +164 -172
- data/grammars/source.xq.json +81 -92
- data/grammars/source.xtend.json +199 -208
- data/grammars/source.yaml-ext.json +118 -124
- data/grammars/source.yaml.json +155 -174
- data/grammars/source.yaml.salt.json +113 -116
- data/grammars/source.yang.json +10 -13
- data/grammars/source.yara.json +98 -0
- data/grammars/text.bibtex.json +95 -100
- data/grammars/text.cfml.basic.json +403 -404
- data/grammars/text.elixir.json +18 -23
- data/grammars/text.error-list.json +15 -16
- data/grammars/text.find-refs.json +487 -488
- data/grammars/text.gherkin.feature.json +45 -53
- data/grammars/text.haml.json +176 -189
- data/grammars/text.hamlc.json +82 -88
- data/grammars/text.html.abl.json +16 -21
- data/grammars/text.html.asciidoc.json +139 -153
- data/grammars/text.html.asdoc.json +145 -155
- data/grammars/text.html.asp.json +23 -28
- data/grammars/text.html.basic.json +323 -338
- data/grammars/text.html.cfm.json +316 -325
- data/grammars/text.html.creole.json +177 -189
- data/grammars/text.html.django.json +27 -33
- data/grammars/text.html.ecr.json +21 -25
- data/grammars/text.html.elixir.json +3 -9
- data/grammars/text.html.erb.json +81 -85
- data/grammars/text.html.erlang.yaws.json +24 -29
- data/grammars/text.html.factor.json +5 -11
- data/grammars/text.html.ftl.json +16 -25
- data/grammars/text.html.handlebars.json +579 -598
- data/grammars/text.html.javadoc.json +426 -0
- data/grammars/text.html.js.json +11 -17
- data/grammars/text.html.jsp.json +377 -384
- data/grammars/text.html.liquid.json +8 -18
- data/grammars/text.html.mako.json +257 -275
- data/grammars/text.html.markdown.source.gfm.apib.json +419 -427
- data/grammars/text.html.markdown.source.gfm.mson.json +405 -414
- data/grammars/text.html.mediawiki.json +318 -344
- data/grammars/text.html.php.blade.json +2134 -2140
- data/grammars/text.html.php.json +980 -1013
- data/grammars/text.html.slash.json +101 -107
- data/grammars/text.html.smarty.json +75 -83
- data/grammars/text.html.soy.json +250 -253
- data/grammars/text.html.ssp.json +18 -24
- data/grammars/text.html.tcl.json +17 -24
- data/grammars/text.html.twig.json +712 -718
- data/grammars/text.idl-idldoc.json +5 -9
- data/grammars/text.jade.json +213 -235
- data/grammars/text.junit-test-report.json +25 -28
- data/grammars/text.log.latex.json +44 -46
- data/grammars/text.marko.json +370 -401
- data/grammars/text.python.console.json +3 -7
- data/grammars/text.python.traceback.json +2 -5
- data/grammars/text.rdoc.json +15 -19
- data/grammars/text.restructuredtext.clean.json +8 -11
- data/grammars/text.restructuredtext.json +886 -873
- data/grammars/text.robot.json +26 -36
- data/grammars/text.roff.json +2852 -2915
- data/grammars/text.runoff.json +56 -69
- data/grammars/text.sfd.json +151 -155
- data/grammars/text.shell-session.json +5 -8
- data/grammars/text.slim.json +184 -210
- data/grammars/text.srt.json +54 -57
- data/grammars/text.tex.json +98 -105
- data/grammars/text.tex.latex.beamer.json +14 -20
- data/grammars/text.tex.latex.haskell.json +883 -782
- data/grammars/text.tex.latex.json +281 -291
- data/grammars/text.tex.latex.memoir.json +39 -46
- data/grammars/text.tex.latex.rd.json +32 -38
- data/grammars/text.xml.ant.json +62 -69
- data/grammars/text.xml.flex-config.json +1009 -1013
- data/grammars/text.xml.genshi.json +10 -16
- data/grammars/text.xml.json +117 -130
- data/grammars/text.xml.pom.json +235 -240
- data/grammars/text.xml.xsl.json +31 -37
- data/grammars/text.zone_file.json +24 -29
- data/lib/linguist/blob.rb +10 -1
- data/lib/linguist/blob_helper.rb +4 -1
- data/lib/linguist/file_blob.rb +5 -0
- data/lib/linguist/generated.rb +16 -0
- data/lib/linguist/heuristics.rb +23 -11
- data/lib/linguist/language.rb +3 -6
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +74 -12
- data/lib/linguist/lazy_blob.rb +15 -1
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1666 -3381
- data/lib/linguist/shebang.rb +2 -0
- data/lib/linguist/strategy/modeline.rb +2 -0
- data/lib/linguist/vendor.yml +5 -6
- data/lib/linguist/version.rb +1 -1
- metadata +12 -11
- data/grammars/source.elm.json +0 -381
- data/grammars/source.nant-build.json +0 -86
- data/grammars/source.octave.json +0 -451
- data/grammars/text.html.mediawiki.elm-build-output.json +0 -111
- data/grammars/text.html.mediawiki.elm-documentation.json +0 -22
- data/grammars/text.html.vue.json +0 -936
data/grammars/source.jq.json
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
{
|
2
|
-
"scopeName": "source.jq",
|
3
|
-
"fileTypes": [
|
4
|
-
"jq"
|
5
|
-
],
|
6
|
-
"firstLineMatch": "^\\bjsoniq\\s+version\\b.*",
|
7
|
-
"foldingStartMarker": "^\\s*(<[^!?%/](?!.+?(/>|</.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))|(declare|.*\\{\\s*(//.*)?$)",
|
8
|
-
"foldingStopMarker": "^\\s*(</[^>]+>|[/%]>|-->)\\s*$|(.*\\}\\s*;?\\s*|.*;)",
|
9
2
|
"name": "JSONiq",
|
3
|
+
"scopeName": "source.jq",
|
10
4
|
"patterns": [
|
11
5
|
{
|
12
6
|
"begin": "^(?=xquery\\s+version\\s+)",
|
@@ -18,14 +12,14 @@
|
|
18
12
|
]
|
19
13
|
},
|
20
14
|
{
|
15
|
+
"name": "constant.jsoniq",
|
21
16
|
"begin": "\\(#",
|
22
|
-
"end": "#\\)"
|
23
|
-
"name": "constant.jsoniq"
|
17
|
+
"end": "#\\)"
|
24
18
|
},
|
25
19
|
{
|
20
|
+
"name": "comment.doc.jsoniq",
|
26
21
|
"begin": "\\(:~",
|
27
22
|
"end": ":\\)",
|
28
|
-
"name": "comment.doc.jsoniq",
|
29
23
|
"patterns": [
|
30
24
|
{
|
31
25
|
"name": "constant.language.jsoniq",
|
@@ -46,70 +40,69 @@
|
|
46
40
|
"include": "#CharRef"
|
47
41
|
},
|
48
42
|
{
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
43
|
+
"name": "comment.jsoniq",
|
44
|
+
"begin": "\u003c\\?",
|
45
|
+
"end": "\\?\u003e"
|
52
46
|
},
|
53
47
|
{
|
48
|
+
"name": "comment.jsoniq",
|
54
49
|
"begin": "\\(:",
|
55
|
-
"end": ":\\)"
|
56
|
-
"name": "comment.jsoniq"
|
50
|
+
"end": ":\\)"
|
57
51
|
},
|
58
52
|
{
|
53
|
+
"name": "string.jsoniq",
|
59
54
|
"begin": "\"",
|
60
55
|
"end": "\"",
|
61
|
-
"name": "string.jsoniq",
|
62
56
|
"patterns": [
|
63
57
|
{
|
64
|
-
"
|
65
|
-
"
|
58
|
+
"name": "constant.character.escape.jsoniq",
|
59
|
+
"match": "(?x: # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4} # and four hex digits\n )\n )"
|
66
60
|
},
|
67
61
|
{
|
68
|
-
"
|
69
|
-
"
|
62
|
+
"name": "invalid.illegal.unrecognized-string-escape.jsoniq",
|
63
|
+
"match": "\\\\."
|
70
64
|
}
|
71
65
|
]
|
72
66
|
},
|
73
67
|
{
|
74
|
-
"
|
75
|
-
"
|
68
|
+
"name": "meta.declaration.annotation.jsoniq",
|
69
|
+
"match": "%([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*)"
|
76
70
|
},
|
77
71
|
{
|
78
|
-
"
|
79
|
-
"
|
72
|
+
"name": "support.type.jsoniq",
|
73
|
+
"match": "@(\\* | ([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*))"
|
80
74
|
},
|
81
75
|
{
|
82
|
-
"
|
83
|
-
"
|
76
|
+
"name": "meta.definition.variable.name.jsoniq",
|
77
|
+
"match": "\\$([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)"
|
84
78
|
},
|
85
79
|
{
|
86
|
-
"
|
87
|
-
"
|
80
|
+
"name": "constant.numeric.jsoniq",
|
81
|
+
"match": "\\b(\\.[0-9]+|[0-9]+(\\.[0-9]*)?)[Ee][+#x002D]?[0-9]+\\b"
|
88
82
|
},
|
89
83
|
{
|
90
|
-
"
|
91
|
-
"
|
84
|
+
"name": "constant.numeric.jsoniq",
|
85
|
+
"match": "\\b(\\.[0-9]+|[0-9]+\\.[0-9]*)\\b"
|
92
86
|
},
|
93
87
|
{
|
94
|
-
"
|
95
|
-
"
|
88
|
+
"name": "constant.numeric.jsoniq",
|
89
|
+
"match": "\\b[0-9]+\\b"
|
96
90
|
},
|
97
91
|
{
|
98
|
-
"
|
99
|
-
"
|
92
|
+
"name": "keyword.jsoniq",
|
93
|
+
"match": "\\b(NaN|after|allowing|ancestor|ancestor-or-self|and|append|array|as|ascending|at|attribute|base-uri|before|boundary-space|break|by|case|cast|castable|catch|child|collation|comment|constraint|construction|contains|context|continue|copy|copy-namespaces|count|decimal-format|decimal-separator|declare|default|delete|descendant|descendant-or-self|descending|digit|div|document|document-node|element|else|empty|empty-sequence|encoding|end|eq|every|except|exit|external|false|first|following|following-sibling|for|from|ft-option|function|ge|greatest|group|grouping-separator|gt|idiv|if|import|in|index|infinity|insert|instance|integrity|intersect|into|is|item|json|json-item|jsoniq|last|lax|le|least|let|loop|lt|minus-sign|mod|modify|module|namespace|namespace-node|ne|next|node|nodes|not|null|object|of|only|option|or|order|ordered|ordering|paragraphs|parent|pattern-separator|per-mille|percent|preceding|preceding-sibling|previous|processing-instruction|rename|replace|return|returning|revalidation|satisfies|schema|schema-attribute|schema-element|score|select|self|sentences|sliding|some|stable|start|strict|switch|text|then|times|to|treat|true|try|tumbling|type|typeswitch|union|unordered|updating|validate|value|variable|version|when|where|while|window|with|words|xquery|zero-digit)(?!(:|\\-))\\b"
|
100
94
|
},
|
101
95
|
{
|
102
|
-
"
|
103
|
-
"match": "([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)(?=\\s*\\()"
|
104
|
-
"name": "support.function.jsoniq"
|
96
|
+
"name": "support.function.jsoniq",
|
97
|
+
"match": "([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)(?=\\s*\\()"
|
105
98
|
},
|
106
99
|
{
|
107
|
-
"
|
108
|
-
"
|
100
|
+
"name": "lparen.jsoniq",
|
101
|
+
"match": "\\("
|
109
102
|
},
|
110
103
|
{
|
111
|
-
"
|
112
|
-
"
|
104
|
+
"name": "rparent.jsoniq",
|
105
|
+
"match": "\\)"
|
113
106
|
},
|
114
107
|
{
|
115
108
|
"include": "#OpenTag"
|
@@ -119,27 +112,50 @@
|
|
119
112
|
}
|
120
113
|
],
|
121
114
|
"repository": {
|
115
|
+
"CDATA": {
|
116
|
+
"name": "constant.language.jsoniq",
|
117
|
+
"begin": "\u003c!\\[CDATA\\[",
|
118
|
+
"end": "\\]\\]\u003e"
|
119
|
+
},
|
120
|
+
"CharRef": {
|
121
|
+
"name": "constant.language.escape.jsoniq",
|
122
|
+
"match": "\u0026#([0-9]+|x[0-9A-Fa-f]+);"
|
123
|
+
},
|
124
|
+
"CloseTag": {
|
125
|
+
"name": "punctuation.definition.tag.jsoniq",
|
126
|
+
"match": "\u003c\\/([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)\\s*\u003e"
|
127
|
+
},
|
128
|
+
"EnclosedExpr": {
|
129
|
+
"name": "source.jq",
|
130
|
+
"begin": "{",
|
131
|
+
"end": "}",
|
132
|
+
"patterns": [
|
133
|
+
{
|
134
|
+
"include": "$self"
|
135
|
+
}
|
136
|
+
]
|
137
|
+
},
|
122
138
|
"OpenTag": {
|
123
|
-
"begin": "<([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)",
|
124
|
-
"end": "(\\/>|>)",
|
125
139
|
"name": "punctuation.definition.tag.jsoniq",
|
140
|
+
"begin": "\u003c([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)",
|
141
|
+
"end": "(\\/\u003e|\u003e)",
|
126
142
|
"patterns": [
|
127
143
|
{
|
128
|
-
"
|
129
|
-
"
|
144
|
+
"name": "entity.other.attribute-name.jsoniq",
|
145
|
+
"match": "([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)"
|
130
146
|
},
|
131
147
|
{
|
132
|
-
"
|
133
|
-
"
|
148
|
+
"name": "source.jq",
|
149
|
+
"match": "="
|
134
150
|
},
|
135
151
|
{
|
152
|
+
"name": "string.jsoniq",
|
136
153
|
"begin": "'",
|
137
154
|
"end": "'(?!')",
|
138
|
-
"name": "string.jsoniq",
|
139
155
|
"patterns": [
|
140
156
|
{
|
141
|
-
"
|
142
|
-
"
|
157
|
+
"name": "constant.jsoniq",
|
158
|
+
"match": "''"
|
143
159
|
},
|
144
160
|
{
|
145
161
|
"include": "#PredefinedEntityRef"
|
@@ -148,8 +164,8 @@
|
|
148
164
|
"include": "#CharRef"
|
149
165
|
},
|
150
166
|
{
|
151
|
-
"
|
152
|
-
"
|
167
|
+
"name": "constant.jsoniq",
|
168
|
+
"match": "({{|}})"
|
153
169
|
},
|
154
170
|
{
|
155
171
|
"include": "#EnclosedExpr"
|
@@ -157,13 +173,13 @@
|
|
157
173
|
]
|
158
174
|
},
|
159
175
|
{
|
176
|
+
"name": "string.jsoniq",
|
160
177
|
"begin": "\"",
|
161
178
|
"end": "\"(?!\")",
|
162
|
-
"name": "string.jsoniq",
|
163
179
|
"patterns": [
|
164
180
|
{
|
165
|
-
"
|
166
|
-
"
|
181
|
+
"name": "constant.jsoniq",
|
182
|
+
"match": "\"\""
|
167
183
|
},
|
168
184
|
{
|
169
185
|
"include": "#PredefinedEntityRef"
|
@@ -172,8 +188,8 @@
|
|
172
188
|
"include": "#CharRef"
|
173
189
|
},
|
174
190
|
{
|
175
|
-
"
|
176
|
-
"
|
191
|
+
"name": "string.jsoniq",
|
192
|
+
"match": "({{|}})"
|
177
193
|
},
|
178
194
|
{
|
179
195
|
"include": "#EnclosedExpr"
|
@@ -182,37 +198,14 @@
|
|
182
198
|
}
|
183
199
|
]
|
184
200
|
},
|
185
|
-
"CloseTag": {
|
186
|
-
"match": "<\\/([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)\\s*>",
|
187
|
-
"name": "punctuation.definition.tag.jsoniq"
|
188
|
-
},
|
189
|
-
"XMLComment": {
|
190
|
-
"begin": "<!--",
|
191
|
-
"end": "-->",
|
192
|
-
"name": "comment.jsoniq"
|
193
|
-
},
|
194
|
-
"CDATA": {
|
195
|
-
"begin": "<!\\[CDATA\\[",
|
196
|
-
"end": "\\]\\]>",
|
197
|
-
"name": "constant.language.jsoniq"
|
198
|
-
},
|
199
201
|
"PredefinedEntityRef": {
|
200
|
-
"
|
201
|
-
"
|
202
|
+
"name": "constant.language.escape.jsoniq",
|
203
|
+
"match": "\u0026(lt|gt|amp|quot|apos);"
|
202
204
|
},
|
203
|
-
"
|
204
|
-
"
|
205
|
-
"
|
206
|
-
|
207
|
-
"EnclosedExpr": {
|
208
|
-
"begin": "{",
|
209
|
-
"end": "}",
|
210
|
-
"name": "source.jq",
|
211
|
-
"patterns": [
|
212
|
-
{
|
213
|
-
"include": "$self"
|
214
|
-
}
|
215
|
-
]
|
205
|
+
"XMLComment": {
|
206
|
+
"name": "comment.jsoniq",
|
207
|
+
"begin": "\u003c!--",
|
208
|
+
"end": "--\u003e"
|
216
209
|
}
|
217
210
|
}
|
218
|
-
}
|
211
|
+
}
|
data/grammars/source.js.json
CHANGED
@@ -1,50 +1,15 @@
|
|
1
1
|
{
|
2
|
-
"scopeName": "source.js",
|
3
|
-
"fileTypes": [
|
4
|
-
"js",
|
5
|
-
"_js",
|
6
|
-
"es",
|
7
|
-
"es6",
|
8
|
-
"gs",
|
9
|
-
"htc",
|
10
|
-
"jscad",
|
11
|
-
"jslib",
|
12
|
-
"jsm",
|
13
|
-
"json5",
|
14
|
-
"jspre",
|
15
|
-
"mjs",
|
16
|
-
"pac",
|
17
|
-
"pjs",
|
18
|
-
"sjs",
|
19
|
-
"xsjs",
|
20
|
-
"xsjslib"
|
21
|
-
],
|
22
|
-
"firstLineMatch": "(?x)\n# Hashbang\n^\\#!.*(?:\\s|\\/|(?<=!)\\b)\n (?:node|iojs|JavaScript)\n(?:$|\\s)\n|\n# Modeline\n(?i:\n # Emacs\n -\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)\n (?:js|javascript)\n (?=[\\s;]|(?<![-*])-\\*-).*?-\\*-\n |\n # Vim\n (?:(?:\\s|^)vi(?:m[<=>]?\\d+|m)?|\\sex)(?=:(?=\\s*set?\\s[^\\n:]+:)|:(?!\\s*set?\\s))(?:(?:\\s|\\s*:\\s*)\\w*(?:\\s*=(?:[^\\n\\\\\\s]|\\\\.)*)?)*[\\s:](?:filetype|ft|syntax)\\s*=\n javascript\n (?=\\s|:|$)\n)",
|
23
2
|
"name": "JavaScript",
|
3
|
+
"scopeName": "source.js",
|
24
4
|
"patterns": [
|
25
5
|
{
|
26
|
-
"begin": "(?<!\\.)\\b(import)(?!\\s*[:(])\\b",
|
27
|
-
"beginCaptures": {
|
28
|
-
"1": {
|
29
|
-
"name": "keyword.control.js"
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"end": "(?=;|$)",
|
33
6
|
"name": "meta.import.js",
|
7
|
+
"begin": "(?\u003c!\\.)\\b(import)(?!\\s*[:(])\\b",
|
8
|
+
"end": "(?=;|$)",
|
34
9
|
"patterns": [
|
35
10
|
{
|
36
11
|
"begin": "{",
|
37
|
-
"beginCaptures": {
|
38
|
-
"0": {
|
39
|
-
"name": "punctuation.definition.modules.begin.js"
|
40
|
-
}
|
41
|
-
},
|
42
12
|
"end": "}",
|
43
|
-
"endCaptures": {
|
44
|
-
"0": {
|
45
|
-
"name": "punctuation.definition.modules.end.js"
|
46
|
-
}
|
47
|
-
},
|
48
13
|
"patterns": [
|
49
14
|
{
|
50
15
|
"match": "(?x)\n(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)\n\\s*\n(\\b as \\b)\n\\s*\n(?: (\\b default \\b | \\*) | \\b([a-zA-Z_$][\\w$]*)\\b)",
|
@@ -67,17 +32,27 @@
|
|
67
32
|
}
|
68
33
|
},
|
69
34
|
{
|
70
|
-
"
|
71
|
-
"
|
35
|
+
"name": "meta.delimiter.object.comma.js",
|
36
|
+
"match": ","
|
72
37
|
},
|
73
38
|
{
|
74
39
|
"include": "#comments"
|
75
40
|
},
|
76
41
|
{
|
77
|
-
"
|
78
|
-
"
|
42
|
+
"name": "variable.other.module.js",
|
43
|
+
"match": "\\b([a-zA-Z_$][\\w$]*)\\b"
|
79
44
|
}
|
80
|
-
]
|
45
|
+
],
|
46
|
+
"beginCaptures": {
|
47
|
+
"0": {
|
48
|
+
"name": "punctuation.definition.modules.begin.js"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"endCaptures": {
|
52
|
+
"0": {
|
53
|
+
"name": "punctuation.definition.modules.end.js"
|
54
|
+
}
|
55
|
+
}
|
81
56
|
},
|
82
57
|
{
|
83
58
|
"match": "(?x)\n(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)\n\\s*\n(\\b as \\b)\n\\s*\n(?: (\\b default \\b | \\*) | \\b([a-zA-Z_$][\\w$]*)\\b)",
|
@@ -103,12 +78,12 @@
|
|
103
78
|
}
|
104
79
|
},
|
105
80
|
{
|
106
|
-
"
|
107
|
-
"
|
81
|
+
"name": "variable.language.import-all.js",
|
82
|
+
"match": "\\*"
|
108
83
|
},
|
109
84
|
{
|
110
|
-
"
|
111
|
-
"
|
85
|
+
"name": "variable.language.default.js",
|
86
|
+
"match": "\\b(default)\\b"
|
112
87
|
},
|
113
88
|
{
|
114
89
|
"include": "#strings"
|
@@ -117,18 +92,23 @@
|
|
117
92
|
"include": "#comments"
|
118
93
|
},
|
119
94
|
{
|
120
|
-
"
|
121
|
-
"
|
95
|
+
"name": "keyword.control.js",
|
96
|
+
"match": "\\b(from)\\b"
|
122
97
|
},
|
123
98
|
{
|
124
|
-
"
|
125
|
-
"
|
99
|
+
"name": "variable.other.module.js",
|
100
|
+
"match": "\\b([a-zA-Z_$][\\w$]*)\\b(?=.*\\bfrom\\b)"
|
126
101
|
},
|
127
102
|
{
|
128
|
-
"
|
129
|
-
"
|
103
|
+
"name": "meta.delimiter.object.comma.js",
|
104
|
+
"match": ","
|
130
105
|
}
|
131
|
-
]
|
106
|
+
],
|
107
|
+
"beginCaptures": {
|
108
|
+
"1": {
|
109
|
+
"name": "keyword.control.js"
|
110
|
+
}
|
111
|
+
}
|
132
112
|
},
|
133
113
|
{
|
134
114
|
"match": "(?x)\n\\b(export)\\b\\s*\n\\b(default)\\b\\s*\n\\b((?!\\b(?:function|class|let|var|const)\\b)[a-zA-Z_$][\\w$]*)?\\b",
|
@@ -148,31 +128,16 @@
|
|
148
128
|
}
|
149
129
|
},
|
150
130
|
{
|
151
|
-
"begin": "(?<!\\.)\\b(export)(?!\\s*[:(])\\b",
|
152
|
-
"beginCaptures": {
|
153
|
-
"1": {
|
154
|
-
"name": "keyword.control.js"
|
155
|
-
}
|
156
|
-
},
|
157
|
-
"end": "(?=;|\\bfunction\\b|\\bclass\\b|\\blet\\b|\\bvar\\b|\\bconst\\b|$)",
|
158
131
|
"name": "meta.export.js",
|
132
|
+
"begin": "(?\u003c!\\.)\\b(export)(?!\\s*[:(])\\b",
|
133
|
+
"end": "(?=;|\\bfunction\\b|\\bclass\\b|\\blet\\b|\\bvar\\b|\\bconst\\b|$)",
|
159
134
|
"patterns": [
|
160
135
|
{
|
161
136
|
"include": "#numbers"
|
162
137
|
},
|
163
138
|
{
|
164
139
|
"begin": "{(?=.*\\bfrom\\b)",
|
165
|
-
"beginCaptures": {
|
166
|
-
"0": {
|
167
|
-
"name": "punctuation.definition.modules.begin.js"
|
168
|
-
}
|
169
|
-
},
|
170
140
|
"end": "}",
|
171
|
-
"endCaptures": {
|
172
|
-
"0": {
|
173
|
-
"name": "punctuation.definition.modules.end.js"
|
174
|
-
}
|
175
|
-
},
|
176
141
|
"patterns": [
|
177
142
|
{
|
178
143
|
"match": "(?x)\n(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)\n\\s*\n(\\b as \\b)\n\\s*\n(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)",
|
@@ -198,33 +163,34 @@
|
|
198
163
|
}
|
199
164
|
},
|
200
165
|
{
|
201
|
-
"
|
202
|
-
"
|
166
|
+
"name": "meta.delimiter.object.comma.js",
|
167
|
+
"match": ","
|
203
168
|
},
|
204
169
|
{
|
205
170
|
"include": "#comments"
|
206
171
|
},
|
207
172
|
{
|
208
|
-
"
|
209
|
-
"
|
173
|
+
"name": "variable.other.module.js",
|
174
|
+
"match": "\\b([a-zA-Z_$][\\w$]*)\\b"
|
210
175
|
}
|
211
|
-
]
|
212
|
-
},
|
213
|
-
{
|
214
|
-
"begin": "(?![a-zA-Z_$0-9]){",
|
176
|
+
],
|
215
177
|
"beginCaptures": {
|
216
178
|
"0": {
|
217
179
|
"name": "punctuation.definition.modules.begin.js"
|
218
180
|
}
|
219
181
|
},
|
220
|
-
"end": "}",
|
221
182
|
"endCaptures": {
|
222
183
|
"0": {
|
223
184
|
"name": "punctuation.definition.modules.end.js"
|
224
185
|
}
|
225
|
-
}
|
186
|
+
}
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"begin": "(?![a-zA-Z_$0-9]){",
|
190
|
+
"end": "}",
|
226
191
|
"patterns": [
|
227
192
|
{
|
193
|
+
"match": "(?x)\n(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)\n\\s*\n(\\b as \\b)\n\\s*\n(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)",
|
228
194
|
"captures": {
|
229
195
|
"1": {
|
230
196
|
"name": "invalid.illegal.js"
|
@@ -244,29 +210,38 @@
|
|
244
210
|
"6": {
|
245
211
|
"name": "variable.other.module-alias.js"
|
246
212
|
}
|
247
|
-
}
|
248
|
-
"match": "(?x)\n(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)\n\\s*\n(\\b as \\b)\n\\s*\n(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)"
|
213
|
+
}
|
249
214
|
},
|
250
215
|
{
|
251
216
|
"include": "#comments"
|
252
217
|
},
|
253
218
|
{
|
254
|
-
"
|
255
|
-
"
|
219
|
+
"name": "meta.delimiter.object.comma.js",
|
220
|
+
"match": ","
|
256
221
|
},
|
257
222
|
{
|
258
|
-
"
|
259
|
-
"
|
223
|
+
"name": "variable.other.module.js",
|
224
|
+
"match": "\\b([a-zA-Z_$][\\w$]*)\\b"
|
260
225
|
}
|
261
|
-
]
|
226
|
+
],
|
227
|
+
"beginCaptures": {
|
228
|
+
"0": {
|
229
|
+
"name": "punctuation.definition.modules.begin.js"
|
230
|
+
}
|
231
|
+
},
|
232
|
+
"endCaptures": {
|
233
|
+
"0": {
|
234
|
+
"name": "punctuation.definition.modules.end.js"
|
235
|
+
}
|
236
|
+
}
|
262
237
|
},
|
263
238
|
{
|
264
|
-
"
|
265
|
-
"
|
239
|
+
"name": "variable.language.import-all.js",
|
240
|
+
"match": "\\*(?=.*\\bfrom\\b)"
|
266
241
|
},
|
267
242
|
{
|
268
|
-
"
|
269
|
-
"
|
243
|
+
"name": "variable.language.default.js",
|
244
|
+
"match": "\\b(default)\\b"
|
270
245
|
},
|
271
246
|
{
|
272
247
|
"include": "#strings"
|
@@ -275,29 +250,34 @@
|
|
275
250
|
"include": "#comments"
|
276
251
|
},
|
277
252
|
{
|
278
|
-
"
|
279
|
-
"
|
253
|
+
"name": "keyword.control.js",
|
254
|
+
"match": "\\b(from)\\b"
|
280
255
|
},
|
281
256
|
{
|
282
|
-
"
|
283
|
-
"
|
257
|
+
"name": "variable.other.module.js",
|
258
|
+
"match": "\\b([a-zA-Z_$][\\w$]*)\\b"
|
284
259
|
},
|
285
260
|
{
|
286
|
-
"
|
287
|
-
"
|
261
|
+
"name": "meta.delimiter.object.comma.js",
|
262
|
+
"match": ","
|
288
263
|
},
|
289
264
|
{
|
290
265
|
"include": "#operators"
|
291
266
|
}
|
292
|
-
]
|
267
|
+
],
|
268
|
+
"beginCaptures": {
|
269
|
+
"1": {
|
270
|
+
"name": "keyword.control.js"
|
271
|
+
}
|
272
|
+
}
|
293
273
|
},
|
294
274
|
{
|
295
|
-
"
|
296
|
-
"
|
275
|
+
"name": "variable.language.js",
|
276
|
+
"match": "(?:(?\u003c=\\.{3})|(?\u003c!\\.)\\b)(?\u003c!\\$)(super|this|arguments)(?!\\s*:|\\$)\\b"
|
297
277
|
},
|
298
278
|
{
|
299
279
|
"begin": "(?=(\\basync\\b\\s*)?\\bfunction\\b(?!\\s*:))",
|
300
|
-
"end": "(
|
280
|
+
"end": "(?\u003c=})",
|
301
281
|
"patterns": [
|
302
282
|
{
|
303
283
|
"include": "#comments"
|
@@ -306,9 +286,9 @@
|
|
306
286
|
"include": "#function_body"
|
307
287
|
},
|
308
288
|
{
|
309
|
-
"begin": "\\G",
|
310
|
-
"end": "(?<=\\))",
|
311
289
|
"name": "meta.function.js",
|
290
|
+
"begin": "\\G",
|
291
|
+
"end": "(?\u003c=\\))",
|
312
292
|
"patterns": [
|
313
293
|
{
|
314
294
|
"include": "#function_innards"
|
@@ -319,7 +299,7 @@
|
|
319
299
|
},
|
320
300
|
{
|
321
301
|
"begin": "(?=(\\.)?[a-zA-Z_$][\\w$]*\\s*=\\s*(\\basync\\b\\s*)?\\bfunction\\b)",
|
322
|
-
"end": "(
|
302
|
+
"end": "(?\u003c=})",
|
323
303
|
"patterns": [
|
324
304
|
{
|
325
305
|
"include": "#comments"
|
@@ -328,9 +308,9 @@
|
|
328
308
|
"include": "#function_body"
|
329
309
|
},
|
330
310
|
{
|
331
|
-
"begin": "\\G",
|
332
|
-
"end": "(?!\\G)(?<=\\))",
|
333
311
|
"name": "meta.function.js",
|
312
|
+
"begin": "\\G",
|
313
|
+
"end": "(?!\\G)(?\u003c=\\))",
|
334
314
|
"patterns": [
|
335
315
|
{
|
336
316
|
"match": "(\\.)?([a-zA-Z_$][\\w$]*)\\s*(=)\\s*",
|
@@ -355,7 +335,7 @@
|
|
355
335
|
},
|
356
336
|
{
|
357
337
|
"begin": "(?=\\b[a-zA-Z_$][\\w$]*\\s*:\\s*(\\basync\\b\\s*)?\\bfunction\\b)",
|
358
|
-
"end": "(
|
338
|
+
"end": "(?\u003c=})",
|
359
339
|
"patterns": [
|
360
340
|
{
|
361
341
|
"include": "#comments"
|
@@ -364,9 +344,9 @@
|
|
364
344
|
"include": "#function_body"
|
365
345
|
},
|
366
346
|
{
|
367
|
-
"begin": "\\G",
|
368
|
-
"end": "(?<=\\))",
|
369
347
|
"name": "meta.function.json.js",
|
348
|
+
"begin": "\\G",
|
349
|
+
"end": "(?\u003c=\\))",
|
370
350
|
"patterns": [
|
371
351
|
{
|
372
352
|
"match": "\\b([a-zA-Z_$][\\w$]*)\\s*(:)\\s*",
|
@@ -388,7 +368,7 @@
|
|
388
368
|
},
|
389
369
|
{
|
390
370
|
"begin": "(?=(('[^']*?')|(\"[^\"]*?\"))\\s*:\\s*(\\basync\\b\\s*)?\\bfunction\\b)",
|
391
|
-
"end": "(
|
371
|
+
"end": "(?\u003c=})",
|
392
372
|
"patterns": [
|
393
373
|
{
|
394
374
|
"include": "#comments"
|
@@ -397,9 +377,9 @@
|
|
397
377
|
"include": "#function_body"
|
398
378
|
},
|
399
379
|
{
|
400
|
-
"begin": "\\G",
|
401
|
-
"end": "(?<=\\))",
|
402
380
|
"name": "meta.function.json.js",
|
381
|
+
"begin": "\\G",
|
382
|
+
"end": "(?\u003c=\\))",
|
403
383
|
"patterns": [
|
404
384
|
{
|
405
385
|
"match": "(?:((')([^']*?)('))|((\")([^\"]*?)(\")))\\s*(:)",
|
@@ -442,7 +422,7 @@
|
|
442
422
|
},
|
443
423
|
{
|
444
424
|
"begin": "(?=\\bconstructor\\b\\s*)",
|
445
|
-
"end": "(
|
425
|
+
"end": "(?\u003c=})",
|
446
426
|
"patterns": [
|
447
427
|
{
|
448
428
|
"include": "#comments"
|
@@ -451,13 +431,13 @@
|
|
451
431
|
"include": "#function_body"
|
452
432
|
},
|
453
433
|
{
|
454
|
-
"begin": "\\G",
|
455
|
-
"end": "(?<=\\))",
|
456
434
|
"name": "meta.function.js",
|
435
|
+
"begin": "\\G",
|
436
|
+
"end": "(?\u003c=\\))",
|
457
437
|
"patterns": [
|
458
438
|
{
|
459
|
-
"
|
460
|
-
"
|
439
|
+
"name": "entity.name.function.constructor.js",
|
440
|
+
"match": "\\b(constructor)\\s*"
|
461
441
|
},
|
462
442
|
{
|
463
443
|
"include": "#function_innards"
|
@@ -468,7 +448,7 @@
|
|
468
448
|
},
|
469
449
|
{
|
470
450
|
"begin": "(?x)\n(?=\n (?!\n (break|case|catch|continue|do|else|finally|for|function|if|\n return|switch|throw|try|while|with)\n [\\s\\(]\n )\n (\n \\b(get|set) # Property getter/setter: get foo(){}\n (?:\\s+|(?=\\[)) # Followed by whitespace or square bracket\n )?+\n ( # Method name\n \\b[a-zA-Z_$][\\w$]* # Fixed name\n |\n \\[ # Computed property key\n [^\\[\\]]++ # Contains at least one non-brace character\n \\]\n )\n \\s*\\(\\s* # Start of arguments list\n (\n \"[^\"]*\" | # Double-quoted string\n '[^']*' | # Single-quoted string\n [^\"()'] # Any non-bracket or non-quote\n )*\n \\)\\s* # End of arguments\n { # Beginning of body\n)",
|
471
|
-
"end": "(
|
451
|
+
"end": "(?\u003c=})",
|
472
452
|
"patterns": [
|
473
453
|
{
|
474
454
|
"include": "#comments"
|
@@ -477,11 +457,12 @@
|
|
477
457
|
"include": "#function_body"
|
478
458
|
},
|
479
459
|
{
|
480
|
-
"begin": "\\G",
|
481
|
-
"end": "(?<=\\))",
|
482
460
|
"name": "meta.function.method.definition.js",
|
461
|
+
"begin": "\\G",
|
462
|
+
"end": "(?\u003c=\\))",
|
483
463
|
"patterns": [
|
484
464
|
{
|
465
|
+
"name": "meta.computed-key.js",
|
485
466
|
"match": "(\\[)(.+)(\\])(?=\\s*\\()",
|
486
467
|
"captures": {
|
487
468
|
"1": {
|
@@ -493,24 +474,23 @@
|
|
493
474
|
"include": "$self"
|
494
475
|
},
|
495
476
|
{
|
496
|
-
"
|
497
|
-
"
|
477
|
+
"name": "variable.parameter.property.js",
|
478
|
+
"match": "[a-zA-Z_$][\\w$]*"
|
498
479
|
}
|
499
480
|
]
|
500
481
|
},
|
501
482
|
"3": {
|
502
483
|
"name": "punctuation.definition.computed-key.end.bracket.square.js"
|
503
484
|
}
|
504
|
-
}
|
505
|
-
"name": "meta.computed-key.js"
|
485
|
+
}
|
506
486
|
},
|
507
487
|
{
|
508
|
-
"
|
509
|
-
"
|
488
|
+
"name": "keyword.operator.$1ter.js",
|
489
|
+
"match": "\\b(get|set)(?=\\s*\\[.+\\]\\s*\\(|\\s+[^\\s\\[(]+\\s*\\()"
|
510
490
|
},
|
511
491
|
{
|
512
|
-
"
|
513
|
-
"
|
492
|
+
"name": "entity.name.function.js",
|
493
|
+
"match": "\\b([a-zA-Z_$][\\w$]*)"
|
514
494
|
},
|
515
495
|
{
|
516
496
|
"include": "#function_params"
|
@@ -520,8 +500,8 @@
|
|
520
500
|
]
|
521
501
|
},
|
522
502
|
{
|
523
|
-
"begin": "(?x)\n(?=\n (
|
524
|
-
"end": "(?x)\n(
|
503
|
+
"begin": "(?x)\n(?=\n (?\u003c![A-Za-z0-9])\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s*=\u003e\n)",
|
504
|
+
"end": "(?x)\n(?\u003c=})|\n((?!\n \\s*{|\n \\G\\(|\n \\G[\\w$]+|\n \\s*/\\*|\\s*//\n)(?=\\s*\\S))",
|
525
505
|
"patterns": [
|
526
506
|
{
|
527
507
|
"include": "#comments"
|
@@ -530,9 +510,9 @@
|
|
530
510
|
"include": "#function_body"
|
531
511
|
},
|
532
512
|
{
|
533
|
-
"begin": "\\G",
|
534
|
-
"end": "(?<=(=>))",
|
535
513
|
"name": "meta.function.arrow.js",
|
514
|
+
"begin": "\\G",
|
515
|
+
"end": "(?\u003c=(=\u003e))",
|
536
516
|
"patterns": [
|
537
517
|
{
|
538
518
|
"include": "#arrow_function_innards"
|
@@ -542,8 +522,8 @@
|
|
542
522
|
]
|
543
523
|
},
|
544
524
|
{
|
545
|
-
"begin": "(?x)\n(?=\n (\\.)?[a-zA-Z_$][\\w$]*\n \\s*(=)\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s
|
546
|
-
"end": "(?x)\n(
|
525
|
+
"begin": "(?x)\n(?=\n (\\.)?[a-zA-Z_$][\\w$]*\n \\s*(=)\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s*=\u003e\n)",
|
526
|
+
"end": "(?x)\n(?\u003c=})|\n((?!\n \\s*{|\n \\G(\\.)?[a-zA-Z_$][\\w$]*\\s*(=)\\s*\\(|\n \\G(\\.)?[a-zA-Z_$][\\w$]*\\s*(=)\\s*[\\w$]+|\n \\s*/\\*|\\s*//\n)(?=\\s*\\S))",
|
547
527
|
"patterns": [
|
548
528
|
{
|
549
529
|
"include": "#comments"
|
@@ -552,9 +532,9 @@
|
|
552
532
|
"include": "#function_body"
|
553
533
|
},
|
554
534
|
{
|
555
|
-
"begin": "\\G",
|
556
|
-
"end": "(?<=(=>))",
|
557
535
|
"name": "meta.function.arrow.js",
|
536
|
+
"begin": "\\G",
|
537
|
+
"end": "(?\u003c=(=\u003e))",
|
558
538
|
"patterns": [
|
559
539
|
{
|
560
540
|
"match": "\\G(\\.)?([a-zA-Z_$][\\w$]*)\\s*(=)",
|
@@ -578,8 +558,8 @@
|
|
578
558
|
]
|
579
559
|
},
|
580
560
|
{
|
581
|
-
"begin": "(?x)\n(?=\n \\b[a-zA-Z_$][\\w$]*\n \\s*:\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s
|
582
|
-
"end": "(?x)\n(
|
561
|
+
"begin": "(?x)\n(?=\n \\b[a-zA-Z_$][\\w$]*\n \\s*:\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s*=\u003e\n)",
|
562
|
+
"end": "(?x)\n(?\u003c=})|\n((?!\n \\s*{|\n \\G[\\w$]+\\s*:|\n \\s*/\\*|\\s*//\n)(?=\\s*\\S))",
|
583
563
|
"patterns": [
|
584
564
|
{
|
585
565
|
"include": "#comments"
|
@@ -588,9 +568,9 @@
|
|
588
568
|
"include": "#function_body"
|
589
569
|
},
|
590
570
|
{
|
591
|
-
"begin": "\\G",
|
592
|
-
"end": "(?<=(=>))",
|
593
571
|
"name": "meta.function.arrow.json.js",
|
572
|
+
"begin": "\\G",
|
573
|
+
"end": "(?\u003c=(=\u003e))",
|
594
574
|
"patterns": [
|
595
575
|
{
|
596
576
|
"match": "\\b([a-zA-Z_$][\\w$]*)\\s*(:)\\s*",
|
@@ -611,8 +591,8 @@
|
|
611
591
|
]
|
612
592
|
},
|
613
593
|
{
|
614
|
-
"begin": "(?x)\n(?=\n (('[^']*?')|(\"[^\"]*?\"))\n \\s*:\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s
|
615
|
-
"end": "(?x)\n(
|
594
|
+
"begin": "(?x)\n(?=\n (('[^']*?')|(\"[^\"]*?\"))\n \\s*:\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s*=\u003e\n)",
|
595
|
+
"end": "(?x)\n(?\u003c=})|\n((?!\n \\G(('[^']*?')|(\"[^\"]*?\"))|\n \\s*{|\n \\s*/\\*|\\s*//\n)(?=\\s*\\S))",
|
616
596
|
"patterns": [
|
617
597
|
{
|
618
598
|
"include": "#comments"
|
@@ -621,9 +601,9 @@
|
|
621
601
|
"include": "#function_body"
|
622
602
|
},
|
623
603
|
{
|
624
|
-
"begin": "\\G",
|
625
|
-
"end": "(?<=(=>))",
|
626
604
|
"name": "meta.function.arrow.json.js",
|
605
|
+
"begin": "\\G",
|
606
|
+
"end": "(?\u003c=(=\u003e))",
|
627
607
|
"patterns": [
|
628
608
|
{
|
629
609
|
"match": "(?:((')([^']*?)('))|((\")([^\"]*?)(\")))\\s*(:)",
|
@@ -665,7 +645,7 @@
|
|
665
645
|
]
|
666
646
|
},
|
667
647
|
{
|
668
|
-
"match": "(
|
648
|
+
"match": "(=\u003e)",
|
669
649
|
"captures": {
|
670
650
|
"0": {
|
671
651
|
"name": "meta.function.arrow.js"
|
@@ -676,6 +656,7 @@
|
|
676
656
|
}
|
677
657
|
},
|
678
658
|
{
|
659
|
+
"name": "meta.class.js",
|
679
660
|
"match": "(?x)\n\\b(class)\n(?:\n (?:\\s+(extends)\\s+([a-zA-Z_$][\\w$]*))\n |\n (?:\n (?:\\s+([a-zA-Z_$][\\w$]*))\n (?:\\s+(extends)\\s+([a-zA-Z_$][\\w$]*))?\n )\n)",
|
680
661
|
"captures": {
|
681
662
|
"1": {
|
@@ -696,12 +677,11 @@
|
|
696
677
|
"6": {
|
697
678
|
"name": "entity.other.inherited-class.js"
|
698
679
|
}
|
699
|
-
}
|
700
|
-
"name": "meta.class.js"
|
680
|
+
}
|
701
681
|
},
|
702
682
|
{
|
703
|
-
"match": "(new)\\s+([\\w$]+[\\w.$]*)",
|
704
683
|
"name": "meta.class.instance.constructor.js",
|
684
|
+
"match": "(new)\\s+([\\w$]+[\\w.$]*)",
|
705
685
|
"captures": {
|
706
686
|
"1": {
|
707
687
|
"name": "keyword.operator.new.js"
|
@@ -710,27 +690,29 @@
|
|
710
690
|
"name": "entity.name.type.instance.js",
|
711
691
|
"patterns": [
|
712
692
|
{
|
713
|
-
"
|
714
|
-
"
|
693
|
+
"name": "meta.delimiter.property.period.js",
|
694
|
+
"match": "\\."
|
715
695
|
}
|
716
696
|
]
|
717
697
|
}
|
718
698
|
}
|
719
699
|
},
|
720
700
|
{
|
721
|
-
"begin": "(
|
722
|
-
"
|
723
|
-
"0": {
|
724
|
-
"name": "entity.name.type.object.console.js"
|
725
|
-
}
|
726
|
-
},
|
727
|
-
"end": "(?x)\n(?<=\\)) | (?=\n (?! (\\s*//)|(\\s*/\\*)|(\\s*(\\.)\\s*\n (assert|clear|debug|error|info|log|profile|profileEnd|time|timeEnd|warn)\n \\s*\\(\n )) \\s*\\S\n)",
|
701
|
+
"begin": "(?\u003c![\\w$])console(?![\\w$]|\\s*:)",
|
702
|
+
"end": "(?x)\n(?\u003c=\\)) | (?=\n (?! (\\s*//)|(\\s*/\\*)|(\\s*(\\.)\\s*\n (assert|clear|debug|error|info|log|profile|profileEnd|time|timeEnd|warn)\n \\s*\\(\n )) \\s*\\S\n)",
|
728
703
|
"patterns": [
|
729
704
|
{
|
730
705
|
"include": "#comments"
|
731
706
|
},
|
732
707
|
{
|
708
|
+
"name": "meta.method-call.js",
|
733
709
|
"begin": "\\s*(\\.)\\s*(\\w+)\\s*(?=\\()",
|
710
|
+
"end": "(?\u003c=\\))",
|
711
|
+
"patterns": [
|
712
|
+
{
|
713
|
+
"include": "#arguments"
|
714
|
+
}
|
715
|
+
],
|
734
716
|
"beginCaptures": {
|
735
717
|
"1": {
|
736
718
|
"name": "meta.delimiter.method.period.js"
|
@@ -738,31 +720,31 @@
|
|
738
720
|
"2": {
|
739
721
|
"name": "support.function.console.js"
|
740
722
|
}
|
741
|
-
}
|
742
|
-
"end": "(?<=\\))",
|
743
|
-
"name": "meta.method-call.js",
|
744
|
-
"patterns": [
|
745
|
-
{
|
746
|
-
"include": "#arguments"
|
747
|
-
}
|
748
|
-
]
|
723
|
+
}
|
749
724
|
}
|
750
|
-
]
|
751
|
-
},
|
752
|
-
{
|
753
|
-
"begin": "(?<![\\w$])Math(?![\\w$]|\\s*:)",
|
725
|
+
],
|
754
726
|
"beginCaptures": {
|
755
727
|
"0": {
|
756
|
-
"name": "
|
728
|
+
"name": "entity.name.type.object.console.js"
|
757
729
|
}
|
758
|
-
}
|
759
|
-
|
730
|
+
}
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"begin": "(?\u003c![\\w$])Math(?![\\w$]|\\s*:)",
|
734
|
+
"end": "(?x)\n(?\u003c=E|LN10|LN2|LOG10E|LOG2E|PI|SQRT1_2|SQRT2|\\)\n) | (?=\n (?! (\\s*//)|(\\s*/\\*)|(\\s*\\.\\s* (\n ((abs|acos|acosh|asin|asinh|atan|atan2|atanh|cbrt|ceil|clz32|cos|cosh|exp|\n expm1|floor|fround|hypot|imul|log|log10|log1p|log2|max|min|pow|random|\n round|sign|sin|sinh|sqrt|tan|tanh|trunc)\\s*\\(\n ) | (E|LN10|LN2|LOG10E|LOG2E|PI|SQRT1_2|SQRT2)(?!\\s*[\\w$(]))\n )) \\s*\\S\n)",
|
760
735
|
"patterns": [
|
761
736
|
{
|
762
737
|
"include": "#comments"
|
763
738
|
},
|
764
739
|
{
|
740
|
+
"name": "meta.method-call.js",
|
765
741
|
"begin": "\\s*(\\.)\\s*(\\w+)\\s*(?=\\()",
|
742
|
+
"end": "(?\u003c=\\))",
|
743
|
+
"patterns": [
|
744
|
+
{
|
745
|
+
"include": "#arguments"
|
746
|
+
}
|
747
|
+
],
|
766
748
|
"beginCaptures": {
|
767
749
|
"1": {
|
768
750
|
"name": "meta.delimiter.method.period.js"
|
@@ -770,14 +752,7 @@
|
|
770
752
|
"2": {
|
771
753
|
"name": "support.function.math.js"
|
772
754
|
}
|
773
|
-
}
|
774
|
-
"end": "(?<=\\))",
|
775
|
-
"name": "meta.method-call.js",
|
776
|
-
"patterns": [
|
777
|
-
{
|
778
|
-
"include": "#arguments"
|
779
|
-
}
|
780
|
-
]
|
755
|
+
}
|
781
756
|
},
|
782
757
|
{
|
783
758
|
"match": "\\s*(\\.)\\s*(\\w+)\\b",
|
@@ -790,7 +765,12 @@
|
|
790
765
|
}
|
791
766
|
}
|
792
767
|
}
|
793
|
-
]
|
768
|
+
],
|
769
|
+
"beginCaptures": {
|
770
|
+
"0": {
|
771
|
+
"name": "support.class.math.js"
|
772
|
+
}
|
773
|
+
}
|
794
774
|
},
|
795
775
|
{
|
796
776
|
"include": "#strings"
|
@@ -799,7 +779,8 @@
|
|
799
779
|
"include": "#comments"
|
800
780
|
},
|
801
781
|
{
|
802
|
-
"
|
782
|
+
"name": "comment.block.html.js",
|
783
|
+
"match": "(\u003c!--|--\u003e)",
|
803
784
|
"captures": {
|
804
785
|
"0": {
|
805
786
|
"name": "punctuation.definition.comment.html.js"
|
@@ -807,40 +788,23 @@
|
|
807
788
|
"2": {
|
808
789
|
"name": "punctuation.definition.comment.html.js"
|
809
790
|
}
|
810
|
-
}
|
811
|
-
"name": "comment.block.html.js"
|
791
|
+
}
|
812
792
|
},
|
813
793
|
{
|
814
|
-
"
|
815
|
-
"
|
794
|
+
"name": "storage.type.js",
|
795
|
+
"match": "(?\u003c!\\.)\\b(class|enum|function|interface)(?!\\s*:)\\b"
|
816
796
|
},
|
817
797
|
{
|
818
|
-
"
|
819
|
-
"
|
798
|
+
"name": "storage.modifier.js",
|
799
|
+
"match": "(?\u003c!\\.)\\b(async|export|extends|implements|private|protected|public|static)(?!\\s*:)\\b"
|
820
800
|
},
|
821
801
|
{
|
822
|
-
"
|
823
|
-
"
|
802
|
+
"name": "storage.type.var.js",
|
803
|
+
"match": "(?\u003c!\\.)\\b(let|var)(?!\\s*:)\\b"
|
824
804
|
},
|
825
805
|
{
|
826
|
-
"begin": "(
|
827
|
-
"
|
828
|
-
"1": {
|
829
|
-
"name": "storage.type.const.js"
|
830
|
-
}
|
831
|
-
},
|
832
|
-
"end": "(\\bof\\b|\\bin\\b)|(;)|(=)|(?<![,{])\\n",
|
833
|
-
"endCaptures": {
|
834
|
-
"1": {
|
835
|
-
"name": "keyword.operator.$1.js"
|
836
|
-
},
|
837
|
-
"2": {
|
838
|
-
"name": "punctuation.terminator.statement.js"
|
839
|
-
},
|
840
|
-
"3": {
|
841
|
-
"name": "keyword.operator.assignment.js"
|
842
|
-
}
|
843
|
-
},
|
806
|
+
"begin": "(?\u003c!\\.)\\b(const)(?!\\s*:)\\b",
|
807
|
+
"end": "(\\bof\\b|\\bin\\b)|(;)|(=)|(?\u003c![,{])\\n",
|
844
808
|
"patterns": [
|
845
809
|
{
|
846
810
|
"match": "([$_a-zA-Z][$_a-zA-Z0-9]*)\\s*(:)\\s*([$_a-zA-Z][$_a-zA-Z0-9]*)?",
|
@@ -862,32 +826,49 @@
|
|
862
826
|
}
|
863
827
|
},
|
864
828
|
{
|
865
|
-
"
|
866
|
-
"
|
829
|
+
"name": "keyword.operator.spread.js",
|
830
|
+
"match": "\\.\\.\\."
|
867
831
|
},
|
868
832
|
{
|
869
|
-
"
|
870
|
-
"
|
833
|
+
"name": "meta.delimiter.object.comma.js",
|
834
|
+
"match": ","
|
871
835
|
},
|
872
836
|
{
|
873
|
-
"
|
874
|
-
"
|
837
|
+
"name": "meta.brace.round.js",
|
838
|
+
"match": "\\(|\\)"
|
875
839
|
},
|
876
840
|
{
|
877
|
-
"
|
878
|
-
"
|
841
|
+
"name": "meta.brace.curly.js",
|
842
|
+
"match": "{|}"
|
879
843
|
},
|
880
844
|
{
|
881
|
-
"
|
882
|
-
"
|
845
|
+
"name": "meta.brace.square.js",
|
846
|
+
"match": "\\[|\\]"
|
883
847
|
},
|
884
848
|
{
|
885
849
|
"include": "#comments"
|
886
850
|
}
|
887
|
-
]
|
851
|
+
],
|
852
|
+
"beginCaptures": {
|
853
|
+
"1": {
|
854
|
+
"name": "storage.type.const.js"
|
855
|
+
}
|
856
|
+
},
|
857
|
+
"endCaptures": {
|
858
|
+
"1": {
|
859
|
+
"name": "keyword.operator.$1.js"
|
860
|
+
},
|
861
|
+
"2": {
|
862
|
+
"name": "punctuation.terminator.statement.js"
|
863
|
+
},
|
864
|
+
"3": {
|
865
|
+
"name": "keyword.operator.assignment.js"
|
866
|
+
}
|
867
|
+
}
|
888
868
|
},
|
889
869
|
{
|
890
|
-
"
|
870
|
+
"name": "meta.control.yield.js",
|
871
|
+
"match": "(?\u003c!\\.)\\b(yield)(?!\\s*:)\\b(?:\\s*(\\*))?",
|
891
872
|
"captures": {
|
892
873
|
"1": {
|
893
874
|
"name": "keyword.control.js"
|
@@ -895,43 +876,42 @@
|
|
895
876
|
"2": {
|
896
877
|
"name": "storage.modifier.js"
|
897
878
|
}
|
898
|
-
}
|
899
|
-
"name": "meta.control.yield.js"
|
879
|
+
}
|
900
880
|
},
|
901
881
|
{
|
902
|
-
"
|
903
|
-
"
|
882
|
+
"name": "keyword.control.js",
|
883
|
+
"match": "(?:(?\u003c=\\.{3})|(?\u003c!\\.))\\b(await)(?!\\s*:)\\b"
|
904
884
|
},
|
905
885
|
{
|
906
|
-
"
|
907
|
-
"
|
886
|
+
"name": "keyword.control.js",
|
887
|
+
"match": "(?\u003c!\\.)\\b(break|catch|continue|do|else|finally|for|if|import|package|return|throw|try|while|with)(?!\\s*:)\\b"
|
908
888
|
},
|
909
889
|
{
|
910
890
|
"include": "#switch_statement"
|
911
891
|
},
|
912
892
|
{
|
913
|
-
"
|
914
|
-
"
|
893
|
+
"name": "keyword.operator.$1.js",
|
894
|
+
"match": "(?\u003c!\\.)\\b(delete|in|of|instanceof|new|typeof|void)(?!\\s*:)\\b"
|
915
895
|
},
|
916
896
|
{
|
917
|
-
"
|
918
|
-
"
|
897
|
+
"name": "keyword.operator.spread.js",
|
898
|
+
"match": "\\.\\.\\."
|
919
899
|
},
|
920
900
|
{
|
921
|
-
"
|
922
|
-
"
|
901
|
+
"name": "constant.language.boolean.$1.js",
|
902
|
+
"match": "(?\u003c!\\.)\\b(true|false)(?!\\s*:)\\b"
|
923
903
|
},
|
924
904
|
{
|
925
|
-
"
|
926
|
-
"
|
905
|
+
"name": "constant.language.null.js",
|
906
|
+
"match": "(?\u003c!\\.)\\b(null)(?!\\s*:)\\b"
|
927
907
|
},
|
928
908
|
{
|
929
|
-
"
|
930
|
-
"
|
909
|
+
"name": "keyword.other.debugger.js",
|
910
|
+
"match": "(?\u003c!\\.)\\b(debugger)(?!\\s*:)\\b"
|
931
911
|
},
|
932
912
|
{
|
933
|
-
"
|
934
|
-
"
|
913
|
+
"name": "support.class.js",
|
914
|
+
"match": "(?x) (?\u003c!\\$) \\b\n(Array|ArrayBuffer|Atomics|Boolean|DataView|Date|Error|EvalError|Float32Array|Float64Array|Function|Generator\n|GeneratorFunction|Int16Array|Int32Array|Int8Array|InternalError|Intl|JSON|Map|Number|Object|Promise|Proxy\n|RangeError|ReferenceError|Reflect|RegExp|Set|SharedArrayBuffer|SIMD|String|Symbol|SyntaxError|TypeError\n|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|URIError|WeakMap|WeakSet)\n\\b"
|
935
915
|
},
|
936
916
|
{
|
937
917
|
"match": "(?x) (\\.) \\s* (?:\n (constructor|length|prototype) |\n (EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\n)\\b",
|
@@ -948,7 +928,7 @@
|
|
948
928
|
}
|
949
929
|
},
|
950
930
|
{
|
951
|
-
"match": "(?x) (
|
931
|
+
"match": "(?x) (?\u003c!\\$) \\b (?:\n (document|event|navigator|performance|screen|window)\n |\n (AnalyserNode|ArrayBufferView|Attr|AudioBuffer|AudioBufferSourceNode|AudioContext|AudioDestinationNode|AudioListener\n |AudioNode|AudioParam|BatteryManager|BeforeUnloadEvent|BiquadFilterNode|Blob|BufferSource|ByteString|CSS|CSSConditionRule\n |CSSCounterStyleRule|CSSGroupingRule|CSSMatrix|CSSMediaRule|CSSPageRule|CSSPrimitiveValue|CSSRule|CSSRuleList|CSSStyleDeclaration\n |CSSStyleRule|CSSStyleSheet|CSSSupportsRule|CSSValue|CSSValueList|CanvasGradient|CanvasImageSource|CanvasPattern\n |CanvasRenderingContext2D|ChannelMergerNode|ChannelSplitterNode|CharacterData|ChromeWorker|CloseEvent|Comment|CompositionEvent\n |Console|ConvolverNode|Coordinates|Credential|CredentialsContainer|Crypto|CryptoKey|CustomEvent|DOMError|DOMException\n |DOMHighResTimeStamp|DOMImplementation|DOMString|DOMStringList|DOMStringMap|DOMTimeStamp|DOMTokenList|DataTransfer\n |DataTransferItem|DataTransferItemList|DedicatedWorkerGlobalScope|DelayNode|DeviceProximityEvent|DirectoryEntry\n |DirectoryEntrySync|DirectoryReader|DirectoryReaderSync|Document|DocumentFragment|DocumentTouch|DocumentType|DragEvent\n |DynamicsCompressorNode|Element|Entry|EntrySync|ErrorEvent|Event|EventListener|EventSource|EventTarget|FederatedCredential\n |FetchEvent|File|FileEntry|FileEntrySync|FileException|FileList|FileReader|FileReaderSync|FileSystem|FileSystemSync\n |FontFace|FormData|GainNode|Gamepad|GamepadButton|GamepadEvent|Geolocation|GlobalEventHandlers|HTMLAnchorElement\n |HTMLAreaElement|HTMLAudioElement|HTMLBRElement|HTMLBaseElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement\n |HTMLCollection|HTMLContentElement|HTMLDListElement|HTMLDataElement|HTMLDataListElement|HTMLDialogElement|HTMLDivElement\n |HTMLDocument|HTMLElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFormControlsCollection|HTMLFormElement\n |HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLInputElement\n |HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMediaElement\n |HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement\n |HTMLOptionsCollection|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement\n |HTMLQuoteElement|HTMLScriptElement|HTMLSelectElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement\n |HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement\n |HTMLTableRowElement|HTMLTableSectionElement|HTMLTextAreaElement|HTMLTimeElement|HTMLTitleElement|HTMLTrackElement\n |HTMLUListElement|HTMLUnknownElement|HTMLVideoElement|HashChangeEvent|History|IDBCursor|IDBCursorWithValue|IDBDatabase\n |IDBEnvironment|IDBFactory|IDBIndex|IDBKeyRange|IDBMutableFile|IDBObjectStore|IDBOpenDBRequest|IDBRequest|IDBTransaction\n |IDBVersionChangeEvent|IIRFilterNode|IdentityManager|ImageBitmap|ImageBitmapFactories|ImageData|Index|InputDeviceCapabilities\n |InputEvent|InstallEvent|InstallTrigger|KeyboardEvent|LinkStyle|LocalFileSystem|LocalFileSystemSync|Location|MIDIAccess\n |MIDIConnectionEvent|MIDIInput|MIDIInputMap|MIDIOutputMap|MediaElementAudioSourceNode|MediaError|MediaKeyMessageEvent\n |MediaKeySession|MediaKeyStatusMap|MediaKeySystemAccess|MediaKeySystemConfiguration|MediaKeys|MediaRecorder|MediaStream\n |MediaStreamAudioDestinationNode|MediaStreamAudioSourceNode|MessageChannel|MessageEvent|MessagePort|MouseEvent\n |MutationObserver|MutationRecord|NamedNodeMap|Navigator|NavigatorConcurrentHardware|NavigatorGeolocation|NavigatorID\n |NavigatorLanguage|NavigatorOnLine|Node|NodeFilter|NodeIterator|NodeList|NonDocumentTypeChildNode|Notification\n |OfflineAudioCompletionEvent|OfflineAudioContext|OscillatorNode|PageTransitionEvent|PannerNode|ParentNode|PasswordCredential\n |Path2D|PaymentAddress|PaymentRequest|PaymentResponse|Performance|PerformanceEntry|PerformanceFrameTiming|PerformanceMark\n |PerformanceMeasure|PerformanceNavigation|PerformanceNavigationTiming|PerformanceObserver|PerformanceObserverEntryList\n |PerformanceResourceTiming|PerformanceTiming|PeriodicSyncEvent|PeriodicWave|Plugin|Point|PointerEvent|PopStateEvent\n |PortCollection|Position|PositionError|PositionOptions|PresentationConnectionClosedEvent|PresentationConnectionList\n |PresentationReceiver|ProcessingInstruction|ProgressEvent|PromiseRejectionEvent|PushEvent|PushRegistrationManager\n |RTCCertificate|RTCConfiguration|RTCPeerConnection|RTCSessionDescriptionCallback|RTCStatsReport|RadioNodeList|RandomSource\n |Range|ReadableByteStream|RenderingContext|SVGAElement|SVGAngle|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement\n |SVGAnimateTransformElement|SVGAnimatedAngle|SVGAnimatedBoolean|SVGAnimatedEnumeration|SVGAnimatedInteger|SVGAnimatedLength\n |SVGAnimatedLengthList|SVGAnimatedNumber|SVGAnimatedNumberList|SVGAnimatedPoints|SVGAnimatedPreserveAspectRatio\n |SVGAnimatedRect|SVGAnimatedString|SVGAnimatedTransformList|SVGAnimationElement|SVGCircleElement|SVGClipPathElement\n |SVGCursorElement|SVGDefsElement|SVGDescElement|SVGElement|SVGEllipseElement|SVGEvent|SVGFilterElement|SVGFontElement\n |SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement\n |SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGradientElement|SVGHKernElement|SVGImageElement|SVGLength\n |SVGLengthList|SVGLineElement|SVGLinearGradientElement|SVGMPathElement|SVGMaskElement|SVGMatrix|SVGMissingGlyphElement\n |SVGNumber|SVGNumberList|SVGPathElement|SVGPatternElement|SVGPoint|SVGPolygonElement|SVGPolylineElement|SVGPreserveAspectRatio\n |SVGRadialGradientElement|SVGRect|SVGRectElement|SVGSVGElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGStringList\n |SVGStylable|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTRefElement|SVGTSpanElement|SVGTests|SVGTextElement\n |SVGTextPositioningElement|SVGTitleElement|SVGTransform|SVGTransformList|SVGTransformable|SVGUseElement|SVGVKernElement\n |SVGViewElement|ServiceWorker|ServiceWorkerContainer|ServiceWorkerGlobalScope|ServiceWorkerRegistration|ServiceWorkerState\n |ShadowRoot|SharedWorker|SharedWorkerGlobalScope|SourceBufferList|StereoPannerNode|Storage|StorageEvent|StyleSheet\n |StyleSheetList|SubtleCrypto|SyncEvent|Text|TextMetrics|TimeEvent|TimeRanges|Touch|TouchEvent|TouchList|Transferable\n |TreeWalker|UIEvent|USVString|VRDisplayCapabilities|ValidityState|WaveShaperNode|WebGL|WebGLActiveInfo|WebGLBuffer\n |WebGLContextEvent|WebGLFramebuffer|WebGLProgram|WebGLRenderbuffer|WebGLRenderingContext|WebGLShader|WebGLShaderPrecisionFormat\n |WebGLTexture|WebGLTimerQueryEXT|WebGLTransformFeedback|WebGLUniformLocation|WebGLVertexArrayObject|WebGLVertexArrayObjectOES\n |WebSocket|WebSockets|WebVTT|WheelEvent|Window|WindowBase64|WindowEventHandlers|WindowTimers|Worker|WorkerGlobalScope\n |WorkerLocation|WorkerNavigator|XMLHttpRequest|XMLHttpRequestEventTarget|XMLSerializer|XPathExpression|XPathResult\n |XSLTProcessor)\n)\\b",
|
952
932
|
"captures": {
|
953
933
|
"1": {
|
954
934
|
"name": "support.variable.dom.js"
|
@@ -973,54 +953,54 @@
|
|
973
953
|
}
|
974
954
|
},
|
975
955
|
{
|
976
|
-
"
|
977
|
-
"
|
956
|
+
"name": "support.variable.js",
|
957
|
+
"match": "(?\u003c!\\.)\\b(module|exports|__filename|__dirname|global|process)(?!\\s*:)\\b"
|
978
958
|
},
|
979
959
|
{
|
980
|
-
"
|
981
|
-
"
|
960
|
+
"name": "constant.language.js",
|
961
|
+
"match": "\\b(Infinity|NaN|undefined)\\b"
|
982
962
|
},
|
983
963
|
{
|
984
|
-
"
|
964
|
+
"name": "string.regexp.js",
|
965
|
+
"begin": "(?\u003c=[\\[=(?:+,!]|^|return|=\u003e|\u0026\u0026|\\|\\|)\\s*(/)(?![/*+?])(?=.*/)",
|
966
|
+
"end": "(/)[gimuy]*",
|
967
|
+
"patterns": [
|
968
|
+
{
|
969
|
+
"include": "source.js.regexp"
|
970
|
+
}
|
971
|
+
],
|
985
972
|
"beginCaptures": {
|
986
973
|
"1": {
|
987
974
|
"name": "punctuation.definition.string.begin.js"
|
988
975
|
}
|
989
976
|
},
|
990
|
-
"end": "(/)[gimuy]*",
|
991
977
|
"endCaptures": {
|
992
978
|
"1": {
|
993
979
|
"name": "punctuation.definition.string.end.js"
|
994
980
|
}
|
995
|
-
}
|
996
|
-
"name": "string.regexp.js",
|
997
|
-
"patterns": [
|
998
|
-
{
|
999
|
-
"include": "source.js.regexp"
|
1000
|
-
}
|
1001
|
-
]
|
981
|
+
}
|
1002
982
|
},
|
1003
983
|
{
|
1004
984
|
"begin": "\\?",
|
985
|
+
"end": ":",
|
986
|
+
"patterns": [
|
987
|
+
{
|
988
|
+
"include": "#prevent_object_keys_matching"
|
989
|
+
},
|
990
|
+
{
|
991
|
+
"include": "$self"
|
992
|
+
}
|
993
|
+
],
|
1005
994
|
"beginCaptures": {
|
1006
995
|
"0": {
|
1007
996
|
"name": "keyword.operator.ternary.js"
|
1008
997
|
}
|
1009
998
|
},
|
1010
|
-
"end": ":",
|
1011
999
|
"endCaptures": {
|
1012
1000
|
"0": {
|
1013
1001
|
"name": "keyword.operator.ternary.js"
|
1014
1002
|
}
|
1015
|
-
}
|
1016
|
-
"patterns": [
|
1017
|
-
{
|
1018
|
-
"include": "#prevent_object_keys_matching"
|
1019
|
-
},
|
1020
|
-
{
|
1021
|
-
"include": "$self"
|
1022
|
-
}
|
1023
|
-
]
|
1003
|
+
}
|
1024
1004
|
},
|
1025
1005
|
{
|
1026
1006
|
"include": "#operators"
|
@@ -1041,24 +1021,24 @@
|
|
1041
1021
|
"include": "#properties"
|
1042
1022
|
},
|
1043
1023
|
{
|
1044
|
-
"
|
1045
|
-
"
|
1024
|
+
"name": "constant.other.js",
|
1025
|
+
"match": "((?\u003c!\\.|[\\w$])(?![_\\$]+[^A-Z0-9_$])\\$*\\b(?:[A-Z_$][A-Z0-9_$]*)\\b\\$*)"
|
1046
1026
|
},
|
1047
1027
|
{
|
1048
|
-
"
|
1049
|
-
"
|
1028
|
+
"name": "invalid.illegal.identifier.js",
|
1029
|
+
"match": "(?\u003c!\\$)\\b[0-9]+[\\w$]*"
|
1050
1030
|
},
|
1051
1031
|
{
|
1052
|
-
"
|
1053
|
-
"
|
1032
|
+
"name": "punctuation.terminator.statement.js",
|
1033
|
+
"match": "\\;"
|
1054
1034
|
},
|
1055
1035
|
{
|
1056
|
-
"
|
1057
|
-
"
|
1036
|
+
"name": "meta.delimiter.object.comma.js",
|
1037
|
+
"match": ","
|
1058
1038
|
},
|
1059
1039
|
{
|
1060
|
-
"
|
1061
|
-
"
|
1040
|
+
"name": "meta.delimiter.method.period.js",
|
1041
|
+
"match": "\\."
|
1062
1042
|
},
|
1063
1043
|
{
|
1064
1044
|
"match": "({)(})",
|
@@ -1073,410 +1053,167 @@
|
|
1073
1053
|
},
|
1074
1054
|
{
|
1075
1055
|
"begin": "{",
|
1056
|
+
"end": "}",
|
1057
|
+
"patterns": [
|
1058
|
+
{
|
1059
|
+
"include": "$self"
|
1060
|
+
}
|
1061
|
+
],
|
1076
1062
|
"beginCaptures": {
|
1077
1063
|
"0": {
|
1078
1064
|
"name": "meta.brace.curly.js"
|
1079
1065
|
}
|
1080
1066
|
},
|
1081
|
-
"end": "}",
|
1082
1067
|
"endCaptures": {
|
1083
1068
|
"0": {
|
1084
1069
|
"name": "meta.brace.curly.js"
|
1085
1070
|
}
|
1086
|
-
}
|
1071
|
+
}
|
1072
|
+
},
|
1073
|
+
{
|
1074
|
+
"begin": "\\(",
|
1075
|
+
"end": "\\)",
|
1087
1076
|
"patterns": [
|
1088
1077
|
{
|
1089
1078
|
"include": "$self"
|
1090
1079
|
}
|
1091
|
-
]
|
1092
|
-
},
|
1093
|
-
{
|
1094
|
-
"begin": "\\(",
|
1080
|
+
],
|
1095
1081
|
"beginCaptures": {
|
1096
1082
|
"0": {
|
1097
1083
|
"name": "meta.brace.round.js"
|
1098
1084
|
}
|
1099
1085
|
},
|
1100
|
-
"end": "\\)",
|
1101
1086
|
"endCaptures": {
|
1102
1087
|
"0": {
|
1103
1088
|
"name": "meta.brace.round.js"
|
1104
1089
|
}
|
1105
|
-
}
|
1106
|
-
"patterns": [
|
1107
|
-
{
|
1108
|
-
"include": "$self"
|
1109
|
-
}
|
1110
|
-
]
|
1090
|
+
}
|
1111
1091
|
},
|
1112
1092
|
{
|
1113
|
-
"
|
1114
|
-
"
|
1093
|
+
"name": "meta.brace.square.js",
|
1094
|
+
"match": "\\[|\\]"
|
1115
1095
|
},
|
1116
1096
|
{
|
1117
|
-
"
|
1118
|
-
"
|
1097
|
+
"name": "comment.line.shebang.js",
|
1098
|
+
"match": "\\A#!.*$"
|
1119
1099
|
}
|
1120
1100
|
],
|
1121
1101
|
"repository": {
|
1122
|
-
"
|
1102
|
+
"arguments": {
|
1123
1103
|
"patterns": [
|
1124
1104
|
{
|
1125
|
-
"
|
1126
|
-
"
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
"
|
1134
|
-
"name": "constant.numeric.octal.js"
|
1135
|
-
},
|
1136
|
-
{
|
1137
|
-
"match": "(?x)\n(?<!\\$)(?:\n (?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # 1.1E+3\n (?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)| # 1.E+3\n (?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # .1E+3\n (?:\\b[0-9]+[eE][+-]?[0-9]+\\b)| # 1E+3\n (?:\\b[0-9]+(\\.)[0-9]+\\b)| # 1.1\n (?:\\b[0-9]+(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9]+\\b)| # .1\n (?:\\b[0-9]+\\b(?!\\.)) # 1\n)(?!\\$)",
|
1138
|
-
"captures": {
|
1105
|
+
"name": "meta.arguments.js",
|
1106
|
+
"begin": "\\(",
|
1107
|
+
"end": "\\)",
|
1108
|
+
"patterns": [
|
1109
|
+
{
|
1110
|
+
"include": "$self"
|
1111
|
+
}
|
1112
|
+
],
|
1113
|
+
"beginCaptures": {
|
1139
1114
|
"0": {
|
1140
|
-
"name": "
|
1141
|
-
}
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
"name": "meta.delimiter.decimal.period.js"
|
1147
|
-
},
|
1148
|
-
"3": {
|
1149
|
-
"name": "meta.delimiter.decimal.period.js"
|
1150
|
-
},
|
1151
|
-
"4": {
|
1152
|
-
"name": "meta.delimiter.decimal.period.js"
|
1153
|
-
},
|
1154
|
-
"5": {
|
1155
|
-
"name": "meta.delimiter.decimal.period.js"
|
1156
|
-
},
|
1157
|
-
"6": {
|
1158
|
-
"name": "meta.delimiter.decimal.period.js"
|
1115
|
+
"name": "punctuation.definition.arguments.begin.bracket.round.js"
|
1116
|
+
}
|
1117
|
+
},
|
1118
|
+
"endCaptures": {
|
1119
|
+
"0": {
|
1120
|
+
"name": "punctuation.definition.arguments.end.bracket.round.js"
|
1159
1121
|
}
|
1160
1122
|
}
|
1161
1123
|
}
|
1162
1124
|
]
|
1163
1125
|
},
|
1164
|
-
"
|
1126
|
+
"arrow_function_innards": {
|
1165
1127
|
"patterns": [
|
1166
1128
|
{
|
1167
|
-
"
|
1168
|
-
"
|
1169
|
-
},
|
1170
|
-
{
|
1171
|
-
"match": "&=|\\^=|<<=|>>=|>>>=|\\|=",
|
1172
|
-
"name": "keyword.operator.assignment.compound.bitwise.js"
|
1173
|
-
},
|
1174
|
-
{
|
1175
|
-
"match": "<<|>>>|>>",
|
1176
|
-
"name": "keyword.operator.bitwise.shift.js"
|
1177
|
-
},
|
1178
|
-
{
|
1179
|
-
"match": "!==|!=|<=|>=|===|==|<|>",
|
1180
|
-
"name": "keyword.operator.comparison.js"
|
1181
|
-
},
|
1182
|
-
{
|
1183
|
-
"match": "&&|!!|!|\\|\\|",
|
1184
|
-
"name": "keyword.operator.logical.js"
|
1185
|
-
},
|
1186
|
-
{
|
1187
|
-
"match": "&|\\||\\^|~",
|
1188
|
-
"name": "keyword.operator.bitwise.js"
|
1129
|
+
"name": "storage.type.function.arrow.js",
|
1130
|
+
"match": "=\u003e"
|
1189
1131
|
},
|
1190
1132
|
{
|
1191
|
-
"
|
1192
|
-
"name": "keyword.operator.assignment.js"
|
1193
|
-
},
|
1194
|
-
{
|
1195
|
-
"match": "--",
|
1196
|
-
"name": "keyword.operator.decrement.js"
|
1197
|
-
},
|
1198
|
-
{
|
1199
|
-
"match": "\\+\\+",
|
1200
|
-
"name": "keyword.operator.increment.js"
|
1133
|
+
"include": "#function_params"
|
1201
1134
|
},
|
1202
1135
|
{
|
1203
|
-
"match": "
|
1204
|
-
"
|
1205
|
-
}
|
1206
|
-
]
|
1207
|
-
},
|
1208
|
-
"strings": {
|
1209
|
-
"patterns": [
|
1210
|
-
{
|
1211
|
-
"begin": "'",
|
1212
|
-
"beginCaptures": {
|
1213
|
-
"0": {
|
1214
|
-
"name": "punctuation.definition.string.begin.js"
|
1215
|
-
}
|
1216
|
-
},
|
1217
|
-
"end": "'",
|
1218
|
-
"endCaptures": {
|
1136
|
+
"match": "([a-zA-Z_$][\\w$]*)(?=\\s*=\u003e)",
|
1137
|
+
"captures": {
|
1219
1138
|
"0": {
|
1220
|
-
"name": "
|
1221
|
-
}
|
1222
|
-
},
|
1223
|
-
"name": "string.quoted.single.js",
|
1224
|
-
"patterns": [
|
1225
|
-
{
|
1226
|
-
"include": "#string_escapes"
|
1139
|
+
"name": "meta.parameters.js"
|
1227
1140
|
},
|
1228
|
-
{
|
1229
|
-
"
|
1230
|
-
"name": "invalid.illegal.string.js"
|
1141
|
+
"1": {
|
1142
|
+
"name": "variable.parameter.function.js"
|
1231
1143
|
}
|
1232
|
-
|
1144
|
+
}
|
1233
1145
|
},
|
1234
1146
|
{
|
1235
|
-
"
|
1236
|
-
"
|
1237
|
-
"0": {
|
1238
|
-
"name": "punctuation.definition.string.begin.js"
|
1239
|
-
}
|
1240
|
-
},
|
1241
|
-
"end": "\"",
|
1242
|
-
"endCaptures": {
|
1147
|
+
"match": "(\\d[\\w$]*)",
|
1148
|
+
"captures": {
|
1243
1149
|
"0": {
|
1244
|
-
"name": "
|
1245
|
-
}
|
1246
|
-
},
|
1247
|
-
"name": "string.quoted.double.js",
|
1248
|
-
"patterns": [
|
1249
|
-
{
|
1250
|
-
"include": "#string_escapes"
|
1150
|
+
"name": "meta.parameters.js"
|
1251
1151
|
},
|
1252
|
-
{
|
1253
|
-
"
|
1254
|
-
"name": "invalid.illegal.string.js"
|
1152
|
+
"1": {
|
1153
|
+
"name": "invalid.illegal.identifier.js"
|
1255
1154
|
}
|
1256
|
-
|
1257
|
-
}
|
1155
|
+
}
|
1156
|
+
}
|
1157
|
+
]
|
1158
|
+
},
|
1159
|
+
"comments": {
|
1160
|
+
"patterns": [
|
1258
1161
|
{
|
1259
|
-
"
|
1260
|
-
"
|
1162
|
+
"name": "comment.block.empty.js",
|
1163
|
+
"match": "(/\\*)(\\*/)",
|
1164
|
+
"captures": {
|
1261
1165
|
"1": {
|
1262
|
-
"name": "
|
1263
|
-
},
|
1264
|
-
"4": {
|
1265
|
-
"name": "punctuation.definition.string.begin.js"
|
1266
|
-
}
|
1267
|
-
},
|
1268
|
-
"end": "`",
|
1269
|
-
"endCaptures": {
|
1270
|
-
"0": {
|
1271
|
-
"name": "punctuation.definition.string.end.js"
|
1272
|
-
}
|
1273
|
-
},
|
1274
|
-
"name": "string.quoted.template.html.js",
|
1275
|
-
"patterns": [
|
1276
|
-
{
|
1277
|
-
"include": "#string_escapes"
|
1278
|
-
},
|
1279
|
-
{
|
1280
|
-
"include": "#interpolated_js"
|
1166
|
+
"name": "punctuation.definition.comment.begin.js"
|
1281
1167
|
},
|
1282
|
-
{
|
1283
|
-
"
|
1168
|
+
"2": {
|
1169
|
+
"name": "punctuation.definition.comment.end.js"
|
1284
1170
|
}
|
1285
|
-
|
1171
|
+
}
|
1286
1172
|
},
|
1287
1173
|
{
|
1288
|
-
"
|
1289
|
-
"
|
1290
|
-
|
1291
|
-
"name": "keyword.operator.assignment.js"
|
1292
|
-
}
|
1293
|
-
},
|
1294
|
-
"end": "(?<=`)",
|
1295
|
-
"endCaptures": {
|
1296
|
-
"0": {
|
1297
|
-
"name": "punctuation.definition.string.end.js"
|
1298
|
-
}
|
1299
|
-
},
|
1300
|
-
"contentName": "string.quoted.template.html.js",
|
1174
|
+
"name": "comment.block.documentation.js",
|
1175
|
+
"begin": "/\\*\\*",
|
1176
|
+
"end": "\\*/",
|
1301
1177
|
"patterns": [
|
1302
1178
|
{
|
1303
|
-
"
|
1304
|
-
"beginCaptures": {
|
1305
|
-
"0": {
|
1306
|
-
"name": "punctuation.definition.string.begin.js"
|
1307
|
-
}
|
1308
|
-
},
|
1309
|
-
"end": "`",
|
1310
|
-
"endCaptures": {
|
1311
|
-
"0": {
|
1312
|
-
"name": "punctuation.definition.string.end.js"
|
1313
|
-
}
|
1314
|
-
},
|
1315
|
-
"patterns": [
|
1316
|
-
{
|
1317
|
-
"include": "#string_escapes"
|
1318
|
-
},
|
1319
|
-
{
|
1320
|
-
"include": "#interpolated_js"
|
1321
|
-
},
|
1322
|
-
{
|
1323
|
-
"include": "text.html.basic"
|
1324
|
-
}
|
1325
|
-
]
|
1179
|
+
"include": "source.jsdoc"
|
1326
1180
|
}
|
1327
|
-
]
|
1328
|
-
},
|
1329
|
-
{
|
1330
|
-
"begin": "(Relay\\.QL)\\s*(`)",
|
1181
|
+
],
|
1331
1182
|
"beginCaptures": {
|
1332
|
-
"1": {
|
1333
|
-
"name": "entity.name.function.js"
|
1334
|
-
},
|
1335
|
-
"2": {
|
1336
|
-
"name": "punctuation.definition.string.begin.js"
|
1337
|
-
}
|
1338
|
-
},
|
1339
|
-
"end": "`",
|
1340
|
-
"endCaptures": {
|
1341
1183
|
"0": {
|
1342
|
-
"name": "punctuation.definition.
|
1343
|
-
}
|
1344
|
-
},
|
1345
|
-
"name": "string.quoted.template.graphql.js",
|
1346
|
-
"patterns": [
|
1347
|
-
{
|
1348
|
-
"include": "#string_escapes"
|
1349
|
-
},
|
1350
|
-
{
|
1351
|
-
"include": "#interpolated_js"
|
1352
|
-
},
|
1353
|
-
{
|
1354
|
-
"include": "source.graphql"
|
1355
|
-
}
|
1356
|
-
]
|
1357
|
-
},
|
1358
|
-
{
|
1359
|
-
"begin": "(sql|SQL|Sql)\\s*(`)",
|
1360
|
-
"beginCaptures": {
|
1361
|
-
"1": {
|
1362
|
-
"name": "entity.name.function.js"
|
1363
|
-
},
|
1364
|
-
"2": {
|
1365
|
-
"name": "punctuation.definition.string.begin.js"
|
1184
|
+
"name": "punctuation.definition.comment.begin.js"
|
1366
1185
|
}
|
1367
1186
|
},
|
1368
|
-
"end": "`",
|
1369
1187
|
"endCaptures": {
|
1370
1188
|
"0": {
|
1371
|
-
"name": "punctuation.definition.
|
1372
|
-
}
|
1373
|
-
},
|
1374
|
-
"name": "string.quoted.template.sql.js",
|
1375
|
-
"patterns": [
|
1376
|
-
{
|
1377
|
-
"include": "#string_escapes"
|
1378
|
-
},
|
1379
|
-
{
|
1380
|
-
"include": "#interpolated_js"
|
1381
|
-
},
|
1382
|
-
{
|
1383
|
-
"include": "source.sql"
|
1189
|
+
"name": "punctuation.definition.comment.end.js"
|
1384
1190
|
}
|
1385
|
-
|
1191
|
+
}
|
1386
1192
|
},
|
1387
1193
|
{
|
1388
|
-
"
|
1194
|
+
"name": "comment.block.js",
|
1195
|
+
"begin": "/\\*",
|
1196
|
+
"end": "\\*/",
|
1389
1197
|
"beginCaptures": {
|
1390
1198
|
"0": {
|
1391
|
-
"name": "punctuation.definition.
|
1199
|
+
"name": "punctuation.definition.comment.begin.js"
|
1392
1200
|
}
|
1393
1201
|
},
|
1394
|
-
"end": "`",
|
1395
1202
|
"endCaptures": {
|
1396
1203
|
"0": {
|
1397
|
-
"name": "punctuation.definition.
|
1398
|
-
}
|
1399
|
-
},
|
1400
|
-
"name": "string.quoted.template.js",
|
1401
|
-
"patterns": [
|
1402
|
-
{
|
1403
|
-
"include": "#string_escapes"
|
1404
|
-
},
|
1405
|
-
{
|
1406
|
-
"include": "#interpolated_js"
|
1407
|
-
}
|
1408
|
-
]
|
1409
|
-
}
|
1410
|
-
]
|
1411
|
-
},
|
1412
|
-
"string_escapes": {
|
1413
|
-
"patterns": [
|
1414
|
-
{
|
1415
|
-
"match": "\\\\u(?![A-Fa-f0-9]{4}|{[A-Fa-f0-9]+})[^'\"]*",
|
1416
|
-
"name": "invalid.illegal.unicode-escape.js"
|
1417
|
-
},
|
1418
|
-
{
|
1419
|
-
"match": "\\\\u(?:[A-Fa-f0-9]{4}|({)([A-Fa-f0-9]+)(}))",
|
1420
|
-
"name": "constant.character.escape.js",
|
1421
|
-
"captures": {
|
1422
|
-
"1": {
|
1423
|
-
"name": "punctuation.definition.unicode-escape.begin.bracket.curly.js"
|
1424
|
-
},
|
1425
|
-
"2": {
|
1426
|
-
"patterns": [
|
1427
|
-
{
|
1428
|
-
"match": "[A-Fa-f\\d]{7,}|(?!10)[A-Fa-f\\d]{6}",
|
1429
|
-
"name": "invalid.illegal.unicode-escape.js"
|
1430
|
-
}
|
1431
|
-
]
|
1432
|
-
},
|
1433
|
-
"3": {
|
1434
|
-
"name": "punctuation.definition.unicode-escape.end.bracket.curly.js"
|
1204
|
+
"name": "punctuation.definition.comment.end.js"
|
1435
1205
|
}
|
1436
1206
|
}
|
1437
1207
|
},
|
1438
1208
|
{
|
1439
|
-
"
|
1440
|
-
"
|
1441
|
-
|
1442
|
-
]
|
1443
|
-
},
|
1444
|
-
"function_params": {
|
1445
|
-
"patterns": [
|
1446
|
-
{
|
1447
|
-
"begin": "\\(",
|
1209
|
+
"name": "comment.line.double-slash.js",
|
1210
|
+
"begin": "//",
|
1211
|
+
"end": "$",
|
1448
1212
|
"beginCaptures": {
|
1449
1213
|
"0": {
|
1450
|
-
"name": "punctuation.definition.
|
1451
|
-
}
|
1452
|
-
},
|
1453
|
-
"end": "\\)",
|
1454
|
-
"endCaptures": {
|
1455
|
-
"0": {
|
1456
|
-
"name": "punctuation.definition.parameters.end.bracket.round.js"
|
1457
|
-
}
|
1458
|
-
},
|
1459
|
-
"name": "meta.parameters.js",
|
1460
|
-
"patterns": [
|
1461
|
-
{
|
1462
|
-
"match": "(\\.\\.\\.)([a-zA-Z_$][\\w$]*)",
|
1463
|
-
"captures": {
|
1464
|
-
"1": {
|
1465
|
-
"name": "keyword.operator.spread.js"
|
1466
|
-
},
|
1467
|
-
"2": {
|
1468
|
-
"name": "variable.parameter.rest.function.js"
|
1469
|
-
}
|
1470
|
-
}
|
1471
|
-
},
|
1472
|
-
{
|
1473
|
-
"include": "$self"
|
1474
|
-
},
|
1475
|
-
{
|
1476
|
-
"match": "[a-zA-Z_$][\\w$]*",
|
1477
|
-
"name": "variable.parameter.function.js"
|
1214
|
+
"name": "punctuation.definition.comment.js"
|
1478
1215
|
}
|
1479
|
-
|
1216
|
+
}
|
1480
1217
|
}
|
1481
1218
|
]
|
1482
1219
|
},
|
@@ -1484,22 +1221,54 @@
|
|
1484
1221
|
"patterns": [
|
1485
1222
|
{
|
1486
1223
|
"begin": "{",
|
1224
|
+
"end": "}",
|
1225
|
+
"patterns": [
|
1226
|
+
{
|
1227
|
+
"include": "$self"
|
1228
|
+
}
|
1229
|
+
],
|
1487
1230
|
"beginCaptures": {
|
1488
1231
|
"0": {
|
1489
1232
|
"name": "punctuation.definition.function.body.begin.bracket.curly.js"
|
1490
1233
|
}
|
1491
1234
|
},
|
1492
|
-
"end": "}",
|
1493
1235
|
"endCaptures": {
|
1494
1236
|
"0": {
|
1495
1237
|
"name": "punctuation.definition.function.body.end.bracket.curly.js"
|
1496
1238
|
}
|
1497
|
-
}
|
1239
|
+
}
|
1240
|
+
}
|
1241
|
+
]
|
1242
|
+
},
|
1243
|
+
"function_calls": {
|
1244
|
+
"patterns": [
|
1245
|
+
{
|
1246
|
+
"name": "meta.function-call.js",
|
1247
|
+
"begin": "([\\w$]+)\\s*(?=\\()",
|
1248
|
+
"end": "(?\u003c=\\))",
|
1498
1249
|
"patterns": [
|
1499
1250
|
{
|
1500
|
-
"include": "
|
1251
|
+
"include": "#arguments"
|
1501
1252
|
}
|
1502
|
-
]
|
1253
|
+
],
|
1254
|
+
"beginCaptures": {
|
1255
|
+
"1": {
|
1256
|
+
"patterns": [
|
1257
|
+
{
|
1258
|
+
"name": "support.function.js",
|
1259
|
+
"match": "(?x)\n\\b(isNaN|isFinite|eval|uneval|parseInt|parseFloat|decodeURI|\ndecodeURIComponent|encodeURI|encodeURIComponent|escape|unescape|\nrequire|set(Interval|Timeout)|clear(Interval|Timeout))\\b"
|
1260
|
+
},
|
1261
|
+
{
|
1262
|
+
"name": "entity.name.function.js",
|
1263
|
+
"match": "[a-zA-Z_$][\\w$]*"
|
1264
|
+
},
|
1265
|
+
{
|
1266
|
+
"name": "invalid.illegal.identifier.js",
|
1267
|
+
"match": "\\d[\\w$]*"
|
1268
|
+
}
|
1269
|
+
]
|
1270
|
+
}
|
1271
|
+
}
|
1503
1272
|
}
|
1504
1273
|
]
|
1505
1274
|
},
|
@@ -1520,78 +1289,105 @@
|
|
1520
1289
|
}
|
1521
1290
|
},
|
1522
1291
|
{
|
1523
|
-
"
|
1524
|
-
"
|
1525
|
-
},
|
1526
|
-
{
|
1527
|
-
"include": "#function_params"
|
1292
|
+
"name": "entity.name.function.js",
|
1293
|
+
"match": "[a-zA-Z_$][\\w$]*(?=\\s*\\()"
|
1528
1294
|
},
|
1529
1295
|
{
|
1530
|
-
"include": "#
|
1531
|
-
}
|
1532
|
-
|
1533
|
-
|
1534
|
-
"arrow_function_innards": {
|
1535
|
-
"patterns": [
|
1536
|
-
{
|
1537
|
-
"match": "=>",
|
1538
|
-
"name": "storage.type.function.arrow.js"
|
1539
|
-
},
|
1540
|
-
{
|
1541
|
-
"include": "#function_params"
|
1542
|
-
},
|
1543
|
-
{
|
1544
|
-
"match": "([a-zA-Z_$][\\w$]*)(?=\\s*=>)",
|
1545
|
-
"captures": {
|
1546
|
-
"0": {
|
1547
|
-
"name": "meta.parameters.js"
|
1548
|
-
},
|
1549
|
-
"1": {
|
1550
|
-
"name": "variable.parameter.function.js"
|
1551
|
-
}
|
1552
|
-
}
|
1553
|
-
},
|
1554
|
-
{
|
1555
|
-
"match": "(\\d[\\w$]*)",
|
1556
|
-
"captures": {
|
1557
|
-
"0": {
|
1558
|
-
"name": "meta.parameters.js"
|
1559
|
-
},
|
1560
|
-
"1": {
|
1561
|
-
"name": "invalid.illegal.identifier.js"
|
1562
|
-
}
|
1563
|
-
}
|
1296
|
+
"include": "#function_params"
|
1297
|
+
},
|
1298
|
+
{
|
1299
|
+
"include": "#comments"
|
1564
1300
|
}
|
1565
1301
|
]
|
1566
1302
|
},
|
1567
|
-
"
|
1303
|
+
"function_params": {
|
1568
1304
|
"patterns": [
|
1569
1305
|
{
|
1306
|
+
"name": "meta.parameters.js",
|
1570
1307
|
"begin": "\\(",
|
1308
|
+
"end": "\\)",
|
1309
|
+
"patterns": [
|
1310
|
+
{
|
1311
|
+
"match": "(\\.\\.\\.)([a-zA-Z_$][\\w$]*)",
|
1312
|
+
"captures": {
|
1313
|
+
"1": {
|
1314
|
+
"name": "keyword.operator.spread.js"
|
1315
|
+
},
|
1316
|
+
"2": {
|
1317
|
+
"name": "variable.parameter.rest.function.js"
|
1318
|
+
}
|
1319
|
+
}
|
1320
|
+
},
|
1321
|
+
{
|
1322
|
+
"include": "$self"
|
1323
|
+
},
|
1324
|
+
{
|
1325
|
+
"name": "variable.parameter.function.js",
|
1326
|
+
"match": "[a-zA-Z_$][\\w$]*"
|
1327
|
+
}
|
1328
|
+
],
|
1571
1329
|
"beginCaptures": {
|
1572
1330
|
"0": {
|
1573
|
-
"name": "punctuation.definition.
|
1331
|
+
"name": "punctuation.definition.parameters.begin.bracket.round.js"
|
1574
1332
|
}
|
1575
1333
|
},
|
1576
|
-
"end": "\\)",
|
1577
1334
|
"endCaptures": {
|
1578
1335
|
"0": {
|
1579
|
-
"name": "punctuation.definition.
|
1336
|
+
"name": "punctuation.definition.parameters.end.bracket.round.js"
|
1580
1337
|
}
|
1581
|
-
}
|
1582
|
-
|
1338
|
+
}
|
1339
|
+
}
|
1340
|
+
]
|
1341
|
+
},
|
1342
|
+
"interpolated_js": {
|
1343
|
+
"patterns": [
|
1344
|
+
{
|
1345
|
+
"name": "source.js.embedded.source",
|
1346
|
+
"begin": "\\${",
|
1347
|
+
"end": "}",
|
1583
1348
|
"patterns": [
|
1349
|
+
{
|
1350
|
+
"begin": "{",
|
1351
|
+
"end": "}",
|
1352
|
+
"patterns": [
|
1353
|
+
{
|
1354
|
+
"include": "$self"
|
1355
|
+
}
|
1356
|
+
],
|
1357
|
+
"beginCaptures": {
|
1358
|
+
"0": {
|
1359
|
+
"name": "meta.brace.curly.js"
|
1360
|
+
}
|
1361
|
+
},
|
1362
|
+
"endCaptures": {
|
1363
|
+
"0": {
|
1364
|
+
"name": "meta.brace.curly.js"
|
1365
|
+
}
|
1366
|
+
}
|
1367
|
+
},
|
1584
1368
|
{
|
1585
1369
|
"include": "$self"
|
1586
1370
|
}
|
1587
|
-
]
|
1371
|
+
],
|
1372
|
+
"captures": {
|
1373
|
+
"0": {
|
1374
|
+
"name": "punctuation.section.embedded.js"
|
1375
|
+
}
|
1376
|
+
}
|
1588
1377
|
}
|
1589
1378
|
]
|
1590
1379
|
},
|
1591
1380
|
"method_calls": {
|
1592
1381
|
"patterns": [
|
1593
1382
|
{
|
1383
|
+
"name": "meta.method-call.js",
|
1594
1384
|
"begin": "(\\.)\\s*([\\w$]+)\\s*(?=\\()",
|
1385
|
+
"end": "(?\u003c=\\))",
|
1386
|
+
"patterns": [
|
1387
|
+
{
|
1388
|
+
"include": "#arguments"
|
1389
|
+
}
|
1390
|
+
],
|
1595
1391
|
"beginCaptures": {
|
1596
1392
|
"1": {
|
1597
1393
|
"name": "meta.delimiter.method.period.js"
|
@@ -1599,79 +1395,142 @@
|
|
1599
1395
|
"2": {
|
1600
1396
|
"patterns": [
|
1601
1397
|
{
|
1602
|
-
"
|
1603
|
-
"
|
1398
|
+
"name": "support.function.event-handler.js",
|
1399
|
+
"match": "(?x)\n\\bon(Rowsinserted|Rowsdelete|Rowenter|Rowexit|Resize|Resizestart|Resizeend|Reset|\nReadystatechange|Mouseout|Mouseover|Mousedown|Mouseup|Mousemove|\nBefore(cut|deactivate|unload|update|paste|print|editfocus|activate)|\nBlur|Scrolltop|Submit|Select|Selectstart|Selectionchange|Hover|Help|\nChange|Contextmenu|Controlselect|Cut|Cellchange|Clock|Close|Deactivate|\nDatasetchanged|Datasetcomplete|Dataavailable|Drop|Drag|Dragstart|Dragover|\nDragdrop|Dragenter|Dragend|Dragleave|Dblclick|Unload|Paste|Propertychange|Error|\nErrorupdate|Keydown|Keyup|Keypress|Focus|Load|Activate|Afterupdate|Afterprint|Abort)\\b"
|
1604
1400
|
},
|
1605
1401
|
{
|
1606
|
-
"
|
1607
|
-
"
|
1402
|
+
"name": "support.function.js",
|
1403
|
+
"match": "(?x)\n\\b(shift|showModelessDialog|showModalDialog|showHelp|scroll|scrollX|scrollByPages|\nscrollByLines|scrollY|scrollTo|stop|strike|sizeToContent|sidebar|signText|sort|\nsup|sub|substr|substring|splice|split|send|set(Milliseconds|Seconds|Minutes|Hours|\nMonth|Year|FullYear|Date|UTC(Milliseconds|Seconds|Minutes|Hours|Month|FullYear|Date)|\nTime|Hotkeys|Cursor|ZOptions|Active|Resizable|RequestHeader)|search|slice|\nsavePreferences|small|home|handleEvent|navigate|char|charCodeAt|charAt|concat|\ncontextual|confirm|compile|clear|captureEvents|call|createStyleSheet|createPopup|\ncreateEventObject|to(GMTString|UTCString|String|Source|UpperCase|LowerCase|LocaleString)|\ntest|taint|taintEnabled|indexOf|italics|disableExternalCapture|dump|detachEvent|unshift|\nuntaint|unwatch|updateCommands|join|javaEnabled|pop|push|plugins.refresh|paddings|parse|stringify|\nprint|prompt|preference|enableExternalCapture|exec|execScript|valueOf|UTC|find|file|\nfileModifiedDate|fileSize|fileCreatedDate|fileUpdatedDate|fixed|fontsize|fontcolor|\nforward|fromCharCode|watch|link|load|lastIndexOf|anchor|attachEvent|atob|apply|alert|\nabort|routeEvents|resize|resizeBy|resizeTo|recalc|returnValue|replace|reverse|reload|\nreleaseCapture|releaseEvents|go|get(Milliseconds|Seconds|Minutes|Hours|Month|Day|Year|FullYear|\nTime|Date|TimezoneOffset|UTC(Milliseconds|Seconds|Minutes|Hours|Day|Month|FullYear|Date)|\nAttention|Selection|ResponseHeader|AllResponseHeaders)|moveBy|moveBelow|moveTo|\nmoveToAbsolute|moveAbove|mergeAttributes|match|margins|btoa|big|bold|borderWidths|blink|back)\\b"
|
1608
1404
|
},
|
1609
1405
|
{
|
1610
|
-
"
|
1611
|
-
"
|
1406
|
+
"name": "support.function.dom.js",
|
1407
|
+
"match": "(?x)\n\\b(acceptNode|add|addEventListener|addTextTrack|adoptNode|after|animate|append|\nappendChild|appendData|before|blur|canPlayType|captureStream|\ncaretPositionFromPoint|caretRangeFromPoint|checkValidity|clear|click|\ncloneContents|cloneNode|cloneRange|close|closest|collapse|\ncompareBoundaryPoints|compareDocumentPosition|comparePoint|contains|\nconvertPointFromNode|convertQuadFromNode|convertRectFromNode|createAttribute|\ncreateAttributeNS|createCaption|createCDATASection|createComment|\ncreateContextualFragment|createDocument|createDocumentFragment|\ncreateDocumentType|createElement|createElementNS|createEntityReference|\ncreateEvent|createExpression|createHTMLDocument|createNodeIterator|\ncreateNSResolver|createProcessingInstruction|createRange|createShadowRoot|\ncreateTBody|createTextNode|createTFoot|createTHead|createTreeWalker|delete|\ndeleteCaption|deleteCell|deleteContents|deleteData|deleteRow|deleteTFoot|\ndeleteTHead|detach|disconnect|dispatchEvent|elementFromPoint|elementsFromPoint|\nenableStyleSheetsForSet|entries|evaluate|execCommand|exitFullscreen|\nexitPointerLock|expand|extractContents|fastSeek|firstChild|focus|forEach|get|\ngetAll|getAnimations|getAttribute|getAttributeNames|getAttributeNode|\ngetAttributeNodeNS|getAttributeNS|getBoundingClientRect|getBoxQuads|\ngetClientRects|getContext|getDestinationInsertionPoints|getElementById|\ngetElementsByClassName|getElementsByName|getElementsByTagName|\ngetElementsByTagNameNS|getItem|getNamedItem|getSelection|getStartDate|\ngetVideoPlaybackQuality|has|hasAttribute|hasAttributeNS|hasAttributes|\nhasChildNodes|hasFeature|hasFocus|importNode|initEvent|insertAdjacentElement|\ninsertAdjacentHTML|insertAdjacentText|insertBefore|insertCell|insertData|\ninsertNode|insertRow|intersectsNode|isDefaultNamespace|isEqualNode|\nisPointInRange|isSameNode|item|key|keys|lastChild|load|lookupNamespaceURI|\nlookupPrefix|matches|move|moveAttribute|moveAttributeNode|moveChild|\nmoveNamedItem|namedItem|nextNode|nextSibling|normalize|observe|open|\nparentNode|pause|play|postMessage|prepend|preventDefault|previousNode|\npreviousSibling|probablySupportsContext|queryCommandEnabled|\nqueryCommandIndeterm|queryCommandState|queryCommandSupported|queryCommandValue|\nquerySelector|querySelectorAll|registerContentHandler|registerElement|\nregisterProtocolHandler|releaseCapture|releaseEvents|remove|removeAttribute|\nremoveAttributeNode|removeAttributeNS|removeChild|removeEventListener|\nremoveItem|replace|replaceChild|replaceData|replaceWith|reportValidity|\nrequestFullscreen|requestPointerLock|reset|scroll|scrollBy|scrollIntoView|\nscrollTo|seekToNextFrame|select|selectNode|selectNodeContents|set|setAttribute|\nsetAttributeNode|setAttributeNodeNS|setAttributeNS|setCapture|\nsetCustomValidity|setEnd|setEndAfter|setEndBefore|setItem|setNamedItem|\nsetRangeText|setSelectionRange|setSinkId|setStart|setStartAfter|setStartBefore|\nslice|splitText|stepDown|stepUp|stopImmediatePropagation|stopPropagation|\nsubmit|substringData|supports|surroundContents|takeRecords|terminate|toBlob|\ntoDataURL|toggle|toString|values|write|writeln)\\b"
|
1612
1408
|
},
|
1613
1409
|
{
|
1614
|
-
"
|
1615
|
-
"
|
1410
|
+
"name": "entity.name.function.js",
|
1411
|
+
"match": "[a-zA-Z_$][\\w$]*"
|
1616
1412
|
},
|
1617
1413
|
{
|
1618
|
-
"
|
1619
|
-
"
|
1414
|
+
"name": "invalid.illegal.identifier.js",
|
1415
|
+
"match": "\\d[\\w$]*"
|
1620
1416
|
}
|
1621
1417
|
]
|
1622
1418
|
}
|
1623
|
-
}
|
1624
|
-
"end": "(?<=\\))",
|
1625
|
-
"name": "meta.method-call.js",
|
1626
|
-
"patterns": [
|
1627
|
-
{
|
1628
|
-
"include": "#arguments"
|
1629
|
-
}
|
1630
|
-
]
|
1419
|
+
}
|
1631
1420
|
}
|
1632
1421
|
]
|
1633
1422
|
},
|
1634
|
-
"
|
1423
|
+
"numbers": {
|
1635
1424
|
"patterns": [
|
1636
1425
|
{
|
1637
|
-
"
|
1638
|
-
"
|
1426
|
+
"name": "constant.numeric.hex.js",
|
1427
|
+
"match": "\\b(?\u003c!\\$)0(x|X)[0-9a-fA-F]+\\b(?!\\$)"
|
1428
|
+
},
|
1429
|
+
{
|
1430
|
+
"name": "constant.numeric.binary.js",
|
1431
|
+
"match": "\\b(?\u003c!\\$)0(b|B)[01]+\\b(?!\\$)"
|
1432
|
+
},
|
1433
|
+
{
|
1434
|
+
"name": "constant.numeric.octal.js",
|
1435
|
+
"match": "\\b(?\u003c!\\$)0(o|O)?[0-7]+\\b(?!\\$)"
|
1436
|
+
},
|
1437
|
+
{
|
1438
|
+
"match": "(?x)\n(?\u003c!\\$)(?:\n (?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # 1.1E+3\n (?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)| # 1.E+3\n (?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # .1E+3\n (?:\\b[0-9]+[eE][+-]?[0-9]+\\b)| # 1E+3\n (?:\\b[0-9]+(\\.)[0-9]+\\b)| # 1.1\n (?:\\b[0-9]+(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9]+\\b)| # .1\n (?:\\b[0-9]+\\b(?!\\.)) # 1\n)(?!\\$)",
|
1439
|
+
"captures": {
|
1440
|
+
"0": {
|
1441
|
+
"name": "constant.numeric.decimal.js"
|
1442
|
+
},
|
1639
1443
|
"1": {
|
1640
|
-
"
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
"end": "(?<=\\))",
|
1657
|
-
"name": "meta.function-call.js",
|
1658
|
-
"patterns": [
|
1659
|
-
{
|
1660
|
-
"include": "#arguments"
|
1444
|
+
"name": "meta.delimiter.decimal.period.js"
|
1445
|
+
},
|
1446
|
+
"2": {
|
1447
|
+
"name": "meta.delimiter.decimal.period.js"
|
1448
|
+
},
|
1449
|
+
"3": {
|
1450
|
+
"name": "meta.delimiter.decimal.period.js"
|
1451
|
+
},
|
1452
|
+
"4": {
|
1453
|
+
"name": "meta.delimiter.decimal.period.js"
|
1454
|
+
},
|
1455
|
+
"5": {
|
1456
|
+
"name": "meta.delimiter.decimal.period.js"
|
1457
|
+
},
|
1458
|
+
"6": {
|
1459
|
+
"name": "meta.delimiter.decimal.period.js"
|
1661
1460
|
}
|
1662
|
-
|
1461
|
+
}
|
1663
1462
|
}
|
1664
1463
|
]
|
1665
1464
|
},
|
1666
1465
|
"objects": {
|
1667
1466
|
"patterns": [
|
1668
1467
|
{
|
1669
|
-
"
|
1670
|
-
"
|
1468
|
+
"name": "constant.other.object.js",
|
1469
|
+
"match": "[A-Z][A-Z0-9_$]*(?=\\s*\\.\\s*[a-zA-Z_$]\\w*)"
|
1470
|
+
},
|
1471
|
+
{
|
1472
|
+
"name": "variable.other.object.js",
|
1473
|
+
"match": "[a-zA-Z_$][\\w$]*(?=\\s*\\.\\s*[a-zA-Z_$]\\w*)"
|
1474
|
+
}
|
1475
|
+
]
|
1476
|
+
},
|
1477
|
+
"operators": {
|
1478
|
+
"patterns": [
|
1479
|
+
{
|
1480
|
+
"name": "keyword.operator.assignment.compound.js",
|
1481
|
+
"match": "%=|\\+=|-=|\\*=|(?\u003c!\\()/="
|
1482
|
+
},
|
1483
|
+
{
|
1484
|
+
"name": "keyword.operator.assignment.compound.bitwise.js",
|
1485
|
+
"match": "\u0026=|\\^=|\u003c\u003c=|\u003e\u003e=|\u003e\u003e\u003e=|\\|="
|
1486
|
+
},
|
1487
|
+
{
|
1488
|
+
"name": "keyword.operator.bitwise.shift.js",
|
1489
|
+
"match": "\u003c\u003c|\u003e\u003e\u003e|\u003e\u003e"
|
1490
|
+
},
|
1491
|
+
{
|
1492
|
+
"name": "keyword.operator.comparison.js",
|
1493
|
+
"match": "!==|!=|\u003c=|\u003e=|===|==|\u003c|\u003e"
|
1494
|
+
},
|
1495
|
+
{
|
1496
|
+
"name": "keyword.operator.logical.js",
|
1497
|
+
"match": "\u0026\u0026|!!|!|\\|\\|"
|
1498
|
+
},
|
1499
|
+
{
|
1500
|
+
"name": "keyword.operator.bitwise.js",
|
1501
|
+
"match": "\u0026|\\||\\^|~"
|
1502
|
+
},
|
1503
|
+
{
|
1504
|
+
"name": "keyword.operator.assignment.js",
|
1505
|
+
"match": "=|:"
|
1506
|
+
},
|
1507
|
+
{
|
1508
|
+
"name": "keyword.operator.decrement.js",
|
1509
|
+
"match": "--"
|
1510
|
+
},
|
1511
|
+
{
|
1512
|
+
"name": "keyword.operator.increment.js",
|
1513
|
+
"match": "\\+\\+"
|
1671
1514
|
},
|
1672
1515
|
{
|
1673
|
-
"
|
1674
|
-
"
|
1516
|
+
"name": "keyword.operator.js",
|
1517
|
+
"match": "%|\\*|/|-|\\+"
|
1518
|
+
}
|
1519
|
+
]
|
1520
|
+
},
|
1521
|
+
"prevent_object_keys_matching": {
|
1522
|
+
"patterns": [
|
1523
|
+
{
|
1524
|
+
"match": "(\\w+)(?=\\s*:)",
|
1525
|
+
"captures": {
|
1526
|
+
"1": {
|
1527
|
+
"patterns": [
|
1528
|
+
{
|
1529
|
+
"include": "$self"
|
1530
|
+
}
|
1531
|
+
]
|
1532
|
+
}
|
1533
|
+
}
|
1675
1534
|
}
|
1676
1535
|
]
|
1677
1536
|
},
|
@@ -1711,194 +1570,316 @@
|
|
1711
1570
|
}
|
1712
1571
|
},
|
1713
1572
|
{
|
1714
|
-
"match": "(\\.)\\s*(\\$*[a-zA-Z_$][\\w$]*)",
|
1715
|
-
"captures": {
|
1716
|
-
"1": {
|
1717
|
-
"name": "meta.delimiter.property.period.js"
|
1573
|
+
"match": "(\\.)\\s*(\\$*[a-zA-Z_$][\\w$]*)",
|
1574
|
+
"captures": {
|
1575
|
+
"1": {
|
1576
|
+
"name": "meta.delimiter.property.period.js"
|
1577
|
+
},
|
1578
|
+
"2": {
|
1579
|
+
"name": "variable.other.property.js"
|
1580
|
+
}
|
1581
|
+
}
|
1582
|
+
},
|
1583
|
+
{
|
1584
|
+
"match": "(\\.)\\s*([0-9][\\w$]*)",
|
1585
|
+
"captures": {
|
1586
|
+
"1": {
|
1587
|
+
"name": "meta.delimiter.property.period.js"
|
1588
|
+
},
|
1589
|
+
"2": {
|
1590
|
+
"name": "invalid.illegal.identifier.js"
|
1591
|
+
}
|
1592
|
+
}
|
1593
|
+
}
|
1594
|
+
]
|
1595
|
+
},
|
1596
|
+
"string_escapes": {
|
1597
|
+
"patterns": [
|
1598
|
+
{
|
1599
|
+
"name": "invalid.illegal.unicode-escape.js",
|
1600
|
+
"match": "\\\\u(?![A-Fa-f0-9]{4}|{[A-Fa-f0-9]+})[^'\"]*"
|
1601
|
+
},
|
1602
|
+
{
|
1603
|
+
"name": "constant.character.escape.js",
|
1604
|
+
"match": "\\\\u(?:[A-Fa-f0-9]{4}|({)([A-Fa-f0-9]+)(}))",
|
1605
|
+
"captures": {
|
1606
|
+
"1": {
|
1607
|
+
"name": "punctuation.definition.unicode-escape.begin.bracket.curly.js"
|
1608
|
+
},
|
1609
|
+
"2": {
|
1610
|
+
"patterns": [
|
1611
|
+
{
|
1612
|
+
"name": "invalid.illegal.unicode-escape.js",
|
1613
|
+
"match": "[A-Fa-f\\d]{7,}|(?!10)[A-Fa-f\\d]{6}"
|
1614
|
+
}
|
1615
|
+
]
|
1616
|
+
},
|
1617
|
+
"3": {
|
1618
|
+
"name": "punctuation.definition.unicode-escape.end.bracket.curly.js"
|
1619
|
+
}
|
1620
|
+
}
|
1621
|
+
},
|
1622
|
+
{
|
1623
|
+
"name": "constant.character.escape.js",
|
1624
|
+
"match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"
|
1625
|
+
}
|
1626
|
+
]
|
1627
|
+
},
|
1628
|
+
"strings": {
|
1629
|
+
"patterns": [
|
1630
|
+
{
|
1631
|
+
"name": "string.quoted.single.js",
|
1632
|
+
"begin": "'",
|
1633
|
+
"end": "'",
|
1634
|
+
"patterns": [
|
1635
|
+
{
|
1636
|
+
"include": "#string_escapes"
|
1637
|
+
},
|
1638
|
+
{
|
1639
|
+
"name": "invalid.illegal.string.js",
|
1640
|
+
"match": "[^']*[^\\n\\r'\\\\]$"
|
1641
|
+
}
|
1642
|
+
],
|
1643
|
+
"beginCaptures": {
|
1644
|
+
"0": {
|
1645
|
+
"name": "punctuation.definition.string.begin.js"
|
1646
|
+
}
|
1647
|
+
},
|
1648
|
+
"endCaptures": {
|
1649
|
+
"0": {
|
1650
|
+
"name": "punctuation.definition.string.end.js"
|
1651
|
+
}
|
1652
|
+
}
|
1653
|
+
},
|
1654
|
+
{
|
1655
|
+
"name": "string.quoted.double.js",
|
1656
|
+
"begin": "\"",
|
1657
|
+
"end": "\"",
|
1658
|
+
"patterns": [
|
1659
|
+
{
|
1660
|
+
"include": "#string_escapes"
|
1661
|
+
},
|
1662
|
+
{
|
1663
|
+
"name": "invalid.illegal.string.js",
|
1664
|
+
"match": "[^\"]*[^\\n\\r\"\\\\]$"
|
1665
|
+
}
|
1666
|
+
],
|
1667
|
+
"beginCaptures": {
|
1668
|
+
"0": {
|
1669
|
+
"name": "punctuation.definition.string.begin.js"
|
1670
|
+
}
|
1671
|
+
},
|
1672
|
+
"endCaptures": {
|
1673
|
+
"0": {
|
1674
|
+
"name": "punctuation.definition.string.end.js"
|
1675
|
+
}
|
1676
|
+
}
|
1677
|
+
},
|
1678
|
+
{
|
1679
|
+
"name": "string.quoted.template.html.js",
|
1680
|
+
"begin": "((\\w+)?(html|HTML|Html))\\s*(`)",
|
1681
|
+
"end": "`",
|
1682
|
+
"patterns": [
|
1683
|
+
{
|
1684
|
+
"include": "#string_escapes"
|
1718
1685
|
},
|
1719
|
-
|
1720
|
-
"
|
1686
|
+
{
|
1687
|
+
"include": "#interpolated_js"
|
1688
|
+
},
|
1689
|
+
{
|
1690
|
+
"include": "text.html.basic"
|
1721
1691
|
}
|
1722
|
-
|
1723
|
-
|
1724
|
-
{
|
1725
|
-
"match": "(\\.)\\s*([0-9][\\w$]*)",
|
1726
|
-
"captures": {
|
1692
|
+
],
|
1693
|
+
"beginCaptures": {
|
1727
1694
|
"1": {
|
1728
|
-
"name": "
|
1695
|
+
"name": "entity.name.function.js"
|
1729
1696
|
},
|
1730
|
-
"
|
1731
|
-
"name": "
|
1697
|
+
"4": {
|
1698
|
+
"name": "punctuation.definition.string.begin.js"
|
1732
1699
|
}
|
1733
|
-
}
|
1734
|
-
|
1735
|
-
]
|
1736
|
-
},
|
1737
|
-
"interpolated_js": {
|
1738
|
-
"patterns": [
|
1739
|
-
{
|
1740
|
-
"begin": "\\${",
|
1741
|
-
"captures": {
|
1700
|
+
},
|
1701
|
+
"endCaptures": {
|
1742
1702
|
"0": {
|
1743
|
-
"name": "punctuation.
|
1703
|
+
"name": "punctuation.definition.string.end.js"
|
1744
1704
|
}
|
1745
|
-
}
|
1746
|
-
|
1747
|
-
|
1705
|
+
}
|
1706
|
+
},
|
1707
|
+
{
|
1708
|
+
"contentName": "string.quoted.template.html.js",
|
1709
|
+
"begin": "(?\u003c=innerHTML)\\s*(\\+?=)\\s*(?=`)",
|
1710
|
+
"end": "(?\u003c=`)",
|
1748
1711
|
"patterns": [
|
1749
1712
|
{
|
1750
|
-
"begin": "
|
1713
|
+
"begin": "`",
|
1714
|
+
"end": "`",
|
1715
|
+
"patterns": [
|
1716
|
+
{
|
1717
|
+
"include": "#string_escapes"
|
1718
|
+
},
|
1719
|
+
{
|
1720
|
+
"include": "#interpolated_js"
|
1721
|
+
},
|
1722
|
+
{
|
1723
|
+
"include": "text.html.basic"
|
1724
|
+
}
|
1725
|
+
],
|
1751
1726
|
"beginCaptures": {
|
1752
1727
|
"0": {
|
1753
|
-
"name": "
|
1728
|
+
"name": "punctuation.definition.string.begin.js"
|
1754
1729
|
}
|
1755
1730
|
},
|
1756
|
-
"end": "}",
|
1757
1731
|
"endCaptures": {
|
1758
1732
|
"0": {
|
1759
|
-
"name": "
|
1760
|
-
}
|
1761
|
-
},
|
1762
|
-
"patterns": [
|
1763
|
-
{
|
1764
|
-
"include": "$self"
|
1733
|
+
"name": "punctuation.definition.string.end.js"
|
1765
1734
|
}
|
1766
|
-
|
1767
|
-
},
|
1768
|
-
{
|
1769
|
-
"include": "$self"
|
1735
|
+
}
|
1770
1736
|
}
|
1771
|
-
]
|
1772
|
-
|
1773
|
-
]
|
1774
|
-
},
|
1775
|
-
"comments": {
|
1776
|
-
"patterns": [
|
1777
|
-
{
|
1778
|
-
"captures": {
|
1737
|
+
],
|
1738
|
+
"beginCaptures": {
|
1779
1739
|
"1": {
|
1780
|
-
"name": "
|
1781
|
-
},
|
1782
|
-
"2": {
|
1783
|
-
"name": "punctuation.definition.comment.end.js"
|
1740
|
+
"name": "keyword.operator.assignment.js"
|
1784
1741
|
}
|
1785
1742
|
},
|
1786
|
-
"
|
1787
|
-
|
1743
|
+
"endCaptures": {
|
1744
|
+
"0": {
|
1745
|
+
"name": "punctuation.definition.string.end.js"
|
1746
|
+
}
|
1747
|
+
}
|
1788
1748
|
},
|
1789
1749
|
{
|
1790
|
-
"
|
1750
|
+
"name": "string.quoted.template.graphql.js",
|
1751
|
+
"begin": "(Relay\\.QL)\\s*(`)",
|
1752
|
+
"end": "`",
|
1753
|
+
"patterns": [
|
1754
|
+
{
|
1755
|
+
"include": "#string_escapes"
|
1756
|
+
},
|
1757
|
+
{
|
1758
|
+
"include": "#interpolated_js"
|
1759
|
+
},
|
1760
|
+
{
|
1761
|
+
"include": "source.graphql"
|
1762
|
+
}
|
1763
|
+
],
|
1791
1764
|
"beginCaptures": {
|
1792
|
-
"
|
1793
|
-
"name": "
|
1765
|
+
"1": {
|
1766
|
+
"name": "entity.name.function.js"
|
1767
|
+
},
|
1768
|
+
"2": {
|
1769
|
+
"name": "punctuation.definition.string.begin.js"
|
1794
1770
|
}
|
1795
1771
|
},
|
1796
|
-
"end": "\\*/",
|
1797
1772
|
"endCaptures": {
|
1798
1773
|
"0": {
|
1799
|
-
"name": "punctuation.definition.
|
1774
|
+
"name": "punctuation.definition.string.end.js"
|
1800
1775
|
}
|
1801
|
-
}
|
1802
|
-
|
1776
|
+
}
|
1777
|
+
},
|
1778
|
+
{
|
1779
|
+
"name": "string.quoted.template.sql.js",
|
1780
|
+
"begin": "(sql|SQL|Sql)\\s*(`)",
|
1781
|
+
"end": "`",
|
1803
1782
|
"patterns": [
|
1804
1783
|
{
|
1805
|
-
"include": "
|
1784
|
+
"include": "#string_escapes"
|
1785
|
+
},
|
1786
|
+
{
|
1787
|
+
"include": "#interpolated_js"
|
1788
|
+
},
|
1789
|
+
{
|
1790
|
+
"include": "source.sql"
|
1806
1791
|
}
|
1807
|
-
]
|
1808
|
-
},
|
1809
|
-
{
|
1810
|
-
"begin": "/\\*",
|
1792
|
+
],
|
1811
1793
|
"beginCaptures": {
|
1812
|
-
"
|
1813
|
-
"name": "
|
1794
|
+
"1": {
|
1795
|
+
"name": "entity.name.function.js"
|
1796
|
+
},
|
1797
|
+
"2": {
|
1798
|
+
"name": "punctuation.definition.string.begin.js"
|
1814
1799
|
}
|
1815
1800
|
},
|
1816
|
-
"end": "\\*/",
|
1817
1801
|
"endCaptures": {
|
1818
1802
|
"0": {
|
1819
|
-
"name": "punctuation.definition.
|
1803
|
+
"name": "punctuation.definition.string.end.js"
|
1820
1804
|
}
|
1821
|
-
}
|
1822
|
-
"name": "comment.block.js"
|
1805
|
+
}
|
1823
1806
|
},
|
1824
1807
|
{
|
1825
|
-
"
|
1808
|
+
"name": "string.quoted.template.js",
|
1809
|
+
"begin": "`",
|
1810
|
+
"end": "`",
|
1811
|
+
"patterns": [
|
1812
|
+
{
|
1813
|
+
"include": "#string_escapes"
|
1814
|
+
},
|
1815
|
+
{
|
1816
|
+
"include": "#interpolated_js"
|
1817
|
+
}
|
1818
|
+
],
|
1826
1819
|
"beginCaptures": {
|
1827
1820
|
"0": {
|
1828
|
-
"name": "punctuation.definition.
|
1821
|
+
"name": "punctuation.definition.string.begin.js"
|
1829
1822
|
}
|
1830
1823
|
},
|
1831
|
-
"
|
1832
|
-
|
1824
|
+
"endCaptures": {
|
1825
|
+
"0": {
|
1826
|
+
"name": "punctuation.definition.string.end.js"
|
1827
|
+
}
|
1828
|
+
}
|
1833
1829
|
}
|
1834
1830
|
]
|
1835
1831
|
},
|
1836
1832
|
"switch_statement": {
|
1837
1833
|
"patterns": [
|
1838
1834
|
{
|
1835
|
+
"name": "meta.switch-statement.js",
|
1839
1836
|
"begin": "\\bswitch\\b",
|
1840
|
-
"beginCaptures": {
|
1841
|
-
"0": {
|
1842
|
-
"name": "keyword.control.switch.js"
|
1843
|
-
}
|
1844
|
-
},
|
1845
1837
|
"end": "}",
|
1846
|
-
"endCaptures": {
|
1847
|
-
"0": {
|
1848
|
-
"name": "punctuation.definition.section.switch-block.end.bracket.curly.js"
|
1849
|
-
}
|
1850
|
-
},
|
1851
|
-
"name": "meta.switch-statement.js",
|
1852
1838
|
"patterns": [
|
1853
1839
|
{
|
1854
1840
|
"begin": "\\(",
|
1841
|
+
"end": "\\)",
|
1842
|
+
"patterns": [
|
1843
|
+
{
|
1844
|
+
"include": "$self"
|
1845
|
+
}
|
1846
|
+
],
|
1855
1847
|
"beginCaptures": {
|
1856
1848
|
"0": {
|
1857
1849
|
"name": "punctuation.definition.switch-expression.begin.bracket.round.js"
|
1858
1850
|
}
|
1859
1851
|
},
|
1860
|
-
"end": "\\)",
|
1861
1852
|
"endCaptures": {
|
1862
1853
|
"0": {
|
1863
1854
|
"name": "punctuation.definition.switch-expression.end.bracket.round.js"
|
1864
1855
|
}
|
1865
|
-
}
|
1866
|
-
"patterns": [
|
1867
|
-
{
|
1868
|
-
"include": "$self"
|
1869
|
-
}
|
1870
|
-
]
|
1856
|
+
}
|
1871
1857
|
},
|
1872
1858
|
{
|
1873
1859
|
"begin": "{",
|
1874
|
-
"beginCaptures": {
|
1875
|
-
"0": {
|
1876
|
-
"name": "punctuation.definition.section.switch-block.begin.bracket.curly.js"
|
1877
|
-
}
|
1878
|
-
},
|
1879
1860
|
"end": "(?=})",
|
1880
1861
|
"patterns": [
|
1881
1862
|
{
|
1882
1863
|
"begin": "\\bcase\\b",
|
1864
|
+
"end": ":",
|
1865
|
+
"patterns": [
|
1866
|
+
{
|
1867
|
+
"include": "#prevent_object_keys_matching"
|
1868
|
+
},
|
1869
|
+
{
|
1870
|
+
"include": "$self"
|
1871
|
+
}
|
1872
|
+
],
|
1883
1873
|
"beginCaptures": {
|
1884
1874
|
"0": {
|
1885
1875
|
"name": "keyword.control.case.js"
|
1886
1876
|
}
|
1887
1877
|
},
|
1888
|
-
"end": ":",
|
1889
1878
|
"endCaptures": {
|
1890
1879
|
"0": {
|
1891
1880
|
"name": "punctuation.definition.section.case-statement.js"
|
1892
1881
|
}
|
1893
|
-
}
|
1894
|
-
"patterns": [
|
1895
|
-
{
|
1896
|
-
"include": "#prevent_object_keys_matching"
|
1897
|
-
},
|
1898
|
-
{
|
1899
|
-
"include": "$self"
|
1900
|
-
}
|
1901
|
-
]
|
1882
|
+
}
|
1902
1883
|
},
|
1903
1884
|
{
|
1904
1885
|
"match": "(?:^\\s*)?\\b(default)\\b\\s*(:)",
|
@@ -1914,27 +1895,26 @@
|
|
1914
1895
|
{
|
1915
1896
|
"include": "$self"
|
1916
1897
|
}
|
1917
|
-
]
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
]
|
1922
|
-
},
|
1923
|
-
"prevent_object_keys_matching": {
|
1924
|
-
"patterns": [
|
1925
|
-
{
|
1926
|
-
"match": "(\\w+)(?=\\s*:)",
|
1927
|
-
"captures": {
|
1928
|
-
"1": {
|
1929
|
-
"patterns": [
|
1930
|
-
{
|
1931
|
-
"include": "$self"
|
1898
|
+
],
|
1899
|
+
"beginCaptures": {
|
1900
|
+
"0": {
|
1901
|
+
"name": "punctuation.definition.section.switch-block.begin.bracket.curly.js"
|
1932
1902
|
}
|
1933
|
-
|
1903
|
+
}
|
1904
|
+
}
|
1905
|
+
],
|
1906
|
+
"beginCaptures": {
|
1907
|
+
"0": {
|
1908
|
+
"name": "keyword.control.switch.js"
|
1909
|
+
}
|
1910
|
+
},
|
1911
|
+
"endCaptures": {
|
1912
|
+
"0": {
|
1913
|
+
"name": "punctuation.definition.section.switch-block.end.bracket.curly.js"
|
1934
1914
|
}
|
1935
1915
|
}
|
1936
1916
|
}
|
1937
1917
|
]
|
1938
1918
|
}
|
1939
1919
|
}
|
1940
|
-
}
|
1920
|
+
}
|