github-linguist 7.11.1 → 7.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/linguist/lex.linguist_yy.c +619 -363
- data/ext/linguist/lex.linguist_yy.h +425 -59
- data/ext/linguist/linguist.c +5 -35
- data/ext/linguist/linguist.h +0 -18
- data/ext/linguist/tokenizer.l +61 -36
- data/grammars/annotation.liquidhaskell.haskell.json +1 -1835
- data/grammars/config.xcompose.json +1 -80
- data/grammars/documentation.markdown.injection.haxe.json +1 -22
- data/grammars/etc.json +1 -987
- data/grammars/file.lasso.json +1 -702
- data/grammars/hidden.manref.json +1 -29
- data/grammars/hidden.regexp.injection-shell.json +1 -28
- data/grammars/hint.haskell.json +1 -1762
- data/grammars/hint.message.haskell.json +1 -1786
- data/grammars/hint.type.haskell.json +1 -1759
- data/grammars/injections.etc.json +1 -659
- data/grammars/inline.prisma.json +1 -55
- data/grammars/markdown.hack.codeblock.json +1 -20
- data/grammars/markdown.haxe.codeblock.json +1 -26
- data/grammars/markdown.hxml.codeblock.json +1 -26
- data/grammars/markdown.plantuml.codeblock.json +1 -26
- data/grammars/objdump.x86asm.json +1 -69
- data/grammars/source.4dm.json +1 -1156
- data/grammars/source.SASLog.json +1 -18
- data/grammars/source.abap.json +1 -335
- data/grammars/source.abl.json +1 -734
- data/grammars/source.abnf.json +1 -294
- data/grammars/source.actionscript.3.json +1 -1538
- data/grammars/source.acucobol.json +1 -13
- data/grammars/source.ada.json +1 -133
- data/grammars/source.afm.json +1 -1207
- data/grammars/source.agc.json +1 -87
- data/grammars/source.agda.json +1 -72
- data/grammars/source.ahk.json +1 -195
- data/grammars/source.al.json +1 -130
- data/grammars/source.alloy.json +1 -40
- data/grammars/source.ampl.json +1 -151
- data/grammars/source.angelscript.json +1 -186
- data/grammars/source.antlr.json +1 -295
- data/grammars/source.apache-config.json +1 -346
- data/grammars/source.apache-config.mod_perl.json +1 -65
- data/grammars/source.apl.json +1 -1427
- data/grammars/source.applescript.json +1 -1384
- data/grammars/source.asl.json +1 -56
- data/grammars/source.asn.json +1 -55
- data/grammars/source.asp.json +1 -151
- data/grammars/source.aspectj.json +1 -960
- data/grammars/source.assembly.json +1 -116
- data/grammars/source.ats.json +1 -164
- data/grammars/source.autoit.json +1 -167
- data/grammars/source.avro.json +1 -381
- data/grammars/source.awk.json +1 -384
- data/grammars/source.ballerina.json +1 -1785
- data/grammars/source.batchfile.json +1 -732
- data/grammars/source.bdf.json +1 -425
- data/grammars/source.befunge.json +1 -34
- data/grammars/source.bf.json +1 -30
- data/grammars/source.blitzmax.json +1 -905
- data/grammars/source.bnf.json +1 -191
- data/grammars/source.boo.json +1 -448
- data/grammars/source.brightauthorproject.json +1 -24
- data/grammars/source.brightscript.json +1 -148
- data/grammars/source.bsl.json +1 -451
- data/grammars/source.bsv.json +1 -277
- data/grammars/source.c++.json +1 -436
- data/grammars/source.c++.qt.json +1 -29
- data/grammars/source.c.ec.json +1 -33
- data/grammars/source.c.json +1 -712
- data/grammars/source.c.nwscript.json +1 -0
- data/grammars/source.c.platform.json +1 -1115
- data/grammars/source.c2hs.json +1 -24
- data/grammars/source.cabal.json +1 -63
- data/grammars/source.cache.cmake.json +1 -70
- data/grammars/source.cake.json +1 -13
- data/grammars/source.camlp4.ocaml.json +1 -60
- data/grammars/source.capnp.json +1 -88
- data/grammars/source.ceylon.json +1 -93
- data/grammars/source.cfscript.cfc.json +1 -162
- data/grammars/source.cfscript.json +1 -737
- data/grammars/source.changelogs.rpm-spec.json +1 -91
- data/grammars/source.chapel.json +1 -265
- data/grammars/source.cirru.json +1 -61
- data/grammars/source.clarion.json +1 -146
- data/grammars/source.clean.json +1 -222
- data/grammars/source.click.json +1 -107
- data/grammars/source.clips.json +1 -67
- data/grammars/source.clojure.json +1 -429
- data/grammars/source.cm.json +1 -49
- data/grammars/source.cmake.json +1 -173
- data/grammars/source.cobol.json +1 -485
- data/grammars/source.coffee.json +1 -1310
- data/grammars/source.cool.json +1 -96
- data/grammars/source.coq.json +1 -58
- data/grammars/source.crystal.json +1 -2694
- data/grammars/source.cs.json +1 -4323
- data/grammars/source.csound-document.json +1 -175
- data/grammars/source.csound-score.json +1 -191
- data/grammars/source.csound.json +1 -824
- data/grammars/source.css.json +1 -1859
- data/grammars/source.css.less.json +1 -536
- data/grammars/source.css.mss.json +1 -249
- data/grammars/source.css.postcss.sugarss.json +1 -260
- data/grammars/source.css.scss.json +1 -1873
- data/grammars/source.csx.json +1 -13
- data/grammars/source.cuda-c++.json +1 -103
- data/grammars/source.curlrc.json +1 -984
- data/grammars/source.cwl.json +1 -103
- data/grammars/source.cython.json +1 -1912
- data/grammars/source.d.json +1 -741
- data/grammars/source.dart.json +1 -433
- data/grammars/source.data-weave.json +1 -1580
- data/grammars/source.desktop.json +1 -86
- data/grammars/source.diff.json +1 -153
- data/grammars/source.dircolors.json +1 -137
- data/grammars/source.direct-x.json +1 -135
- data/grammars/source.disasm.json +1 -30
- data/grammars/source.ditroff.desc.json +1 -411
- data/grammars/source.ditroff.json +1 -1280
- data/grammars/source.dm.json +1 -628
- data/grammars/source.dmf.json +1 -96
- data/grammars/source.dockerfile.json +1 -88
- data/grammars/source.dosbox-conf.json +1 -97
- data/grammars/source.dot.json +1 -117
- data/grammars/source.dylan.json +1 -212
- data/grammars/source.ebnf.json +1 -240
- data/grammars/source.editorconfig.json +1 -365
- data/grammars/source.eiffel.json +1 -133
- data/grammars/source.elixir.json +1 -965
- data/grammars/source.elm.json +1 -375
- data/grammars/source.emacs.lisp.json +1 -1301
- data/grammars/source.erlang.json +1 -1647
- data/grammars/source.essl.json +1 -37
- data/grammars/source.factor.json +1 -252
- data/grammars/source.fan.json +1 -341
- data/grammars/source.fancy.json +1 -245
- data/grammars/source.faust.json +1 -119
- data/grammars/source.figctrl.json +1 -252
- data/grammars/source.figfont.json +1 -121
- data/grammars/source.firestore.json +1 -289
- data/grammars/source.fish.json +1 -190
- data/grammars/source.fontdir.json +1 -99
- data/grammars/source.fontforge.json +1 -355
- data/grammars/source.forth.json +1 -84
- data/grammars/source.fortran.json +1 -464
- data/grammars/source.fortran.modern.json +1 -200
- data/grammars/source.fsharp.fsi.json +1 -9
- data/grammars/source.fsharp.fsl.json +1 -9
- data/grammars/source.fsharp.fsx.json +1 -13
- data/grammars/source.fsharp.json +1 -452
- data/grammars/source.fstar.json +1 -439
- data/grammars/source.futhark.json +1 -167
- data/grammars/source.gap.json +1 -163
- data/grammars/source.gcode.json +1 -176
- data/grammars/source.gdb.json +1 -160
- data/grammars/source.gdb.session.json +1 -70
- data/grammars/source.gdbregs.json +1 -14
- data/grammars/source.gdscript.json +1 -491
- data/grammars/source.gedcom.json +1 -196
- data/grammars/source.generic-db.json +1 -41
- data/grammars/source.gerber.json +1 -321
- data/grammars/source.gf.json +1 -51
- data/grammars/source.gfm.blade.json +1 -15
- data/grammars/source.gfm.json +1 -1913
- data/grammars/source.gitattributes.json +1 -111
- data/grammars/source.gitconfig.json +1 -450
- data/grammars/source.gitignore.json +1 -140
- data/grammars/source.glsl.json +1 -139
- data/grammars/source.gn.json +1 -345
- data/grammars/source.gnuplot.json +1 -260
- data/grammars/source.go.json +1 -540
- data/grammars/source.golo.json +1 -177
- data/grammars/source.gosu.2.json +1 -153
- data/grammars/source.grace.json +1 -675
- data/grammars/source.graphql.json +1 -978
- data/grammars/source.gremlin.json +1 -200
- data/grammars/source.groovy.gradle.json +1 -69
- data/grammars/source.groovy.json +1 -1374
- data/grammars/source.hack.json +1 -2595
- data/grammars/source.haproxy-config.json +1 -152
- data/grammars/source.harbour.json +1 -388
- data/grammars/source.haskell.json +1 -1760
- data/grammars/source.hc.json +1 -709
- data/grammars/source.hgignore.json +1 -34
- data/grammars/source.hlsl.json +1 -211
- data/grammars/source.hosts.json +1 -40
- data/grammars/source.hql.json +1 -492
- data/grammars/source.hsc2hs.json +1 -9
- data/grammars/source.hsig.json +1 -1760
- data/grammars/source.httpspec.json +1 -283
- data/grammars/source.hx.argument.json +1 -80
- data/grammars/source.hx.json +1 -2428
- data/grammars/source.hx.type.json +1 -8
- data/grammars/source.hxml.json +1 -59
- data/grammars/source.hy.json +1 -429
- data/grammars/source.ideal.json +1 -356
- data/grammars/source.idl-dlm.json +1 -105
- data/grammars/source.idl.json +1 -246
- data/grammars/source.idris.json +1 -523
- data/grammars/source.igor.json +1 -369
- data/grammars/source.inform7.json +1 -183
- data/grammars/source.ini.json +1 -107
- data/grammars/source.ini.npmrc.json +1 -311
- data/grammars/source.inno.json +1 -133
- data/grammars/source.inputrc.json +1 -500
- data/grammars/source.io.json +1 -156
- data/grammars/source.ioke.json +1 -266
- data/grammars/source.isabelle.root.json +1 -64
- data/grammars/source.isabelle.theory.json +1 -102
- data/grammars/source.j.json +1 -260
- data/grammars/source.jasmin.json +1 -294
- data/grammars/source.java-properties.json +1 -87
- data/grammars/source.java.json +1 -1020
- data/grammars/source.jcl.json +1 -46
- data/grammars/source.jflex.json +1 -484
- data/grammars/source.jison.json +1 -711
- data/grammars/source.jisonlex-injection.json +1 -10
- data/grammars/source.jisonlex.json +1 -434
- data/grammars/source.jolie.json +1 -132
- data/grammars/source.jq.json +1 -211
- data/grammars/source.js.css.json +1 -328
- data/grammars/source.js.json +1 -1897
- data/grammars/source.js.jsx.json +1 -2488
- data/grammars/source.js.objj.json +1 -419
- data/grammars/source.js.regexp.json +1 -152
- data/grammars/source.js.regexp.replacement.json +1 -26
- data/grammars/source.jsdoc.json +1 -460
- data/grammars/source.json.json +1 -139
- data/grammars/source.jsonnet.json +1 -197
- data/grammars/source.julia.console.json +1 -51
- data/grammars/source.julia.json +1 -991
- data/grammars/source.kotlin.json +1 -704
- data/grammars/source.lark.json +1 -0
- data/grammars/source.lbnf.json +1 -0
- data/grammars/source.lcov.json +1 -398
- data/grammars/source.lean.json +1 -226
- data/grammars/source.lean.markdown.json +1 -2598
- data/grammars/source.lex.json +1 -232
- data/grammars/source.lex.regexp.json +1 -269
- data/grammars/source.lid.json +1 -19
- data/grammars/source.lilypond.json +1 -869
- data/grammars/source.lisp.json +1 -101
- data/grammars/source.litcoffee.json +1 -654
- data/grammars/source.livescript.json +1 -603
- data/grammars/source.llvm.json +1 -61
- data/grammars/source.logos.json +1 -24
- data/grammars/source.logtalk.json +1 -310
- data/grammars/source.loomscript.json +1 -208
- data/grammars/source.lsl.json +1 -241
- data/grammars/source.ltspice.symbol.json +1 -294
- data/grammars/source.lua.json +1 -275
- data/grammars/source.m2.json +1 -125
- data/grammars/source.m4.json +1 -229
- data/grammars/source.m68k.json +1 -412
- data/grammars/source.mailmap.json +1 -28
- data/grammars/source.makefile.json +1 -470
- data/grammars/source.makegen.json +1 -9
- data/grammars/source.man-conf.json +1 -153
- data/grammars/source.mask.json +1 -816
- data/grammars/source.mata.json +1 -125
- data/grammars/source.mathematica.json +1 -416
- data/grammars/source.matlab.json +1 -1096
- data/grammars/source.maxscript.json +1 -465
- data/grammars/source.mcfunction-snapshot.json +1 -24480
- data/grammars/source.mcfunction.json +1 -1354
- data/grammars/source.mercury.json +1 -246
- data/grammars/source.meson.json +1 -165
- data/grammars/source.meta-info.json +1 -146
- data/grammars/source.ml.json +1 -285
- data/grammars/source.mlir.json +1 -109
- data/grammars/source.modelica.json +1 -142
- data/grammars/source.modula-3.json +1 -88
- data/grammars/source.modula2.json +1 -94
- data/grammars/source.monkey.json +1 -694
- data/grammars/source.moonscript.json +1 -144
- data/grammars/source.mql5.json +1 -187
- data/grammars/source.msl.json +1 -755
- data/grammars/source.mupad.json +1 -131
- data/grammars/source.nanorc.json +1 -333
- data/grammars/source.nasl.json +1 -155
- data/grammars/source.ncl.json +1 -53
- data/grammars/source.ne.json +1 -105
- data/grammars/source.nemerle.json +1 -132
- data/grammars/source.neon.json +1 -381
- data/grammars/source.nesc.json +1 -21
- data/grammars/source.netlinx.erb.json +1 -34
- data/grammars/source.netlinx.json +1 -704
- data/grammars/source.nextflow-groovy.json +1 -1359
- data/grammars/source.nextflow.json +1 -94
- data/grammars/source.nginx.json +1 -815
- data/grammars/source.nim.comment.json +1 -82
- data/grammars/source.nim.json +1 -1083
- data/grammars/source.nim_filter.json +1 -113
- data/grammars/source.nimcfg.json +1 -103
- data/grammars/source.ninja.json +1 -248
- data/grammars/source.nit.json +1 -234
- data/grammars/source.nix.json +1 -1196
- data/grammars/source.nsis.json +1 -152
- data/grammars/source.nu.json +1 -516
- data/grammars/source.nut.json +1 -262
- data/grammars/source.objc++.json +1 -12
- data/grammars/source.objc.json +1 -910
- data/grammars/source.objc.platform.json +1 -842
- data/grammars/source.objectscript.json +1 -309
- data/grammars/source.objectscript_class.json +1 -674
- data/grammars/source.objectscript_csp.json +1 -19
- data/grammars/source.objectscript_macros.json +1 -226
- data/grammars/source.ocaml.json +1 -1418
- data/grammars/source.ocamllex.json +1 -298
- data/grammars/source.ocamlyacc.json +1 -339
- data/grammars/source.odin-ehr.json +1 -806
- data/grammars/source.odin.json +1 -402
- data/grammars/source.ooc.json +1 -685
- data/grammars/source.opa.json +1 -196
- data/grammars/source.opal.json +1 -410
- data/grammars/source.opalsysdefs.json +1 -66
- data/grammars/source.openbsd-pkg.contents.json +1 -128
- data/grammars/source.opencobol.json +1 -62
- data/grammars/source.opentype.json +1 -448
- data/grammars/source.opts.json +1 -108
- data/grammars/source.ox.json +1 -89
- data/grammars/source.oz.json +1 -77
- data/grammars/source.p4.json +1 -122
- data/grammars/source.paket.dependencies.json +1 -0
- data/grammars/source.paket.lock.json +1 -0
- data/grammars/source.pan.json +1 -706
- data/grammars/source.papyrus.skyrim.json +1 -1272
- data/grammars/source.parrot.pir.json +1 -145
- data/grammars/source.pascal.json +1 -143
- data/grammars/source.pawn.json +1 -1194
- data/grammars/source.pcb.board.json +1 -285
- data/grammars/source.pcb.schematic.json +1 -424
- data/grammars/source.pcb.sexp.json +1 -232
- data/grammars/source.pep8.json +1 -118
- data/grammars/source.perl.6.json +1 -309
- data/grammars/source.perl.json +1 -2519
- data/grammars/source.php.zephir.json +1 -353
- data/grammars/source.pic.json +1 -908
- data/grammars/source.pig_latin.json +1 -168
- data/grammars/source.pike.json +1 -49
- data/grammars/source.plist.json +1 -336
- data/grammars/source.po.json +1 -222
- data/grammars/source.pogoscript.json +1 -79
- data/grammars/source.pony.json +1 -245
- data/grammars/source.postcss.json +1 -370
- data/grammars/source.postscript.json +1 -477
- data/grammars/source.pov-ray sdl.json +1 -82
- data/grammars/source.powershell.json +1 -981
- data/grammars/source.prisma.json +1 -435
- data/grammars/source.processing.json +1 -872
- data/grammars/source.prolog.eclipse.json +1 -201
- data/grammars/source.prolog.json +1 -286
- data/grammars/source.protobuf.json +1 -471
- data/grammars/source.puppet.json +1 -433
- data/grammars/source.purescript.json +1 -861
- data/grammars/source.pyjade.json +1 -996
- data/grammars/source.python.django.json +1 -29
- data/grammars/source.python.json +1 -5292
- data/grammars/source.python.salt.json +1 -9
- data/grammars/source.q.json +1 -215
- data/grammars/source.q_output.json +1 -348
- data/grammars/source.qasm.json +1 -66
- data/grammars/source.ql.json +1 -1408
- data/grammars/source.qmake.json +1 -210
- data/grammars/source.qml.json +1 -174
- data/grammars/source.qsharp.json +1 -120
- data/grammars/source.quake.json +1 -44
- data/grammars/source.quoting.raku.json +1 -0
- data/grammars/source.r.json +1 -194
- data/grammars/source.racket.json +1 -98
- data/grammars/source.raku.json +1 -0
- data/grammars/source.rascal.json +1 -283
- data/grammars/source.reason.hover.type.json +1 -14
- data/grammars/source.reason.json +1 -3382
- data/grammars/source.rebol.json +1 -637
- data/grammars/source.red.json +1 -644
- data/grammars/source.reg.json +1 -159
- data/grammars/source.regexp.extended.json +1 -558
- data/grammars/source.regexp.json +1 -1434
- data/grammars/source.regexp.python.json +1 -490
- data/grammars/source.regexp.raku.json +1 -0
- data/grammars/source.regexp.spin.json +1 -179
- data/grammars/source.rego.json +1 -124
- data/grammars/source.renpy.json +1 -1948
- data/grammars/source.rescript.json +1 -0
- data/grammars/source.rexx.json +1 -52
- data/grammars/source.ring.json +1 -247
- data/grammars/source.rpm-spec.json +1 -765
- data/grammars/source.ruby.gemfile.json +1 -24
- data/grammars/source.ruby.json +1 -2605
- data/grammars/source.ruby.rspec.cucumber.steps.json +1 -261
- data/grammars/source.rust.json +1 -629
- data/grammars/source.sas.json +1 -286
- data/grammars/source.sass.json +1 -1089
- data/grammars/source.sassdoc.json +1 -346
- data/grammars/source.scad.json +1 -145
- data/grammars/source.scala.json +1 -1121
- data/grammars/source.scaml.json +1 -451
- data/grammars/source.scheme.json +1 -353
- data/grammars/source.scilab.json +1 -96
- data/grammars/source.sdbl.json +1 -90
- data/grammars/source.sed.json +1 -1520
- data/grammars/source.shaderlab.json +1 -198
- data/grammars/source.shell.json +1 -1272
- data/grammars/source.shen.json +1 -143
- data/grammars/source.sieve.json +1 -383
- data/grammars/source.slice.json +1 -2755
- data/grammars/source.smali.json +1 -1610
- data/grammars/source.smalltalk.json +1 -187
- data/grammars/source.smpl.json +1 -314
- data/grammars/source.smt.json +1 -158
- data/grammars/source.solidity.json +1 -189
- data/grammars/source.sourcepawn.json +1 -651
- data/grammars/source.sparql.json +1 -18
- data/grammars/source.spin.json +1 -916
- data/grammars/source.sqf.json +1 -111
- data/grammars/source.sql.json +1 -459
- data/grammars/source.ssh-config.json +1 -97
- data/grammars/source.stan.json +1 -388
- data/grammars/source.stata.json +1 -197
- data/grammars/source.strings.json +1 -49
- data/grammars/source.stylus.json +1 -1018
- data/grammars/source.supercollider.json +1 -93
- data/grammars/source.svelte.json +1 -827
- data/grammars/source.swift.json +1 -3134
- data/grammars/source.sy.json +1 -2954
- data/grammars/source.systemverilog.json +1 -1036
- data/grammars/source.tags.json +1 -266
- data/grammars/source.tcl.json +1 -260
- data/grammars/source.tea.json +1 -174
- data/grammars/source.terra.json +1 -138
- data/grammars/source.terraform.json +1 -694
- data/grammars/source.thrift.json +1 -698
- data/grammars/source.tl.json +1 -259
- data/grammars/source.tla.json +1 -140
- data/grammars/source.tnsaudit.json +1 -256
- data/grammars/source.toc.json +1 -52
- data/grammars/source.toml.json +1 -426
- data/grammars/source.ts.json +1 -5581
- data/grammars/source.tsql.json +1 -507
- data/grammars/source.tsx.json +1 -5834
- data/grammars/source.turing.json +1 -1553
- data/grammars/source.turtle.json +1 -489
- data/grammars/source.txl.json +1 -48
- data/grammars/source.ucd.nameslist.json +1 -444
- data/grammars/source.ucd.unidata.json +1 -570
- data/grammars/source.ucfconstraints.json +1 -67
- data/grammars/source.ur.json +1 -31
- data/grammars/source.v.json +1 -1010
- data/grammars/source.vala.json +1 -800
- data/grammars/source.varnish.vcl.json +1 -331
- data/grammars/source.vbnet.json +1 -239
- data/grammars/source.verilog.json +1 -296
- data/grammars/source.vhdl.json +1 -1374
- data/grammars/source.vim-snippet.json +1 -645
- data/grammars/source.viml.json +1 -1197
- data/grammars/source.vtt.json +1 -702
- data/grammars/source.vyper.json +1 -213
- data/grammars/source.wavefront.mtl.json +1 -1190
- data/grammars/source.wavefront.obj.json +1 -1341
- data/grammars/source.wdl.json +1 -220
- data/grammars/source.webassembly.json +1 -349
- data/grammars/source.webidl.json +1 -807
- data/grammars/source.wgetrc.json +1 -1640
- data/grammars/source.wollok.json +1 -100
- data/grammars/source.wsd.json +1 -781
- data/grammars/source.x10.json +1 -64
- data/grammars/source.x86.json +1 -299
- data/grammars/source.x86asm.json +1 -42
- data/grammars/source.xc.json +1 -371
- data/grammars/source.xlfd.json +1 -462
- data/grammars/source.xojo.json +1 -85
- data/grammars/source.xq.json +1 -230
- data/grammars/source.xtend.json +1 -724
- data/grammars/source.yacc.json +1 -626
- data/grammars/source.yaml.json +1 -443
- data/grammars/source.yaml.salt.json +1 -345
- data/grammars/source.yang.json +1 -78
- data/grammars/source.yara.json +1 -99
- data/grammars/source.yasnippet.json +1 -377
- data/grammars/source.zap.json +1 -260
- data/grammars/source.zeek.json +1 -412
- data/grammars/source.zenscript.json +1 -282
- data/grammars/source.zig.json +1 -547
- data/grammars/source.zil.json +1 -750
- data/grammars/text.bibtex.json +1 -246
- data/grammars/text.cfml.basic.json +1 -735
- data/grammars/text.conllu.json +1 -45
- data/grammars/text.dfy.dafny.json +1 -188
- data/grammars/text.elixir.json +1 -52
- data/grammars/text.eml.basic.json +1 -296
- data/grammars/text.error-list.json +1 -53
- data/grammars/text.find-refs.json +1 -926
- data/grammars/text.gherkin.feature.json +1 -127
- data/grammars/text.haml.json +1 -518
- data/grammars/text.hamlc.json +1 -219
- data/grammars/text.html.asciidoc.json +1 -478
- data/grammars/text.html.asdoc.json +1 -529
- data/grammars/text.html.asp.json +1 -53
- data/grammars/text.html.basic.json +1 -908
- data/grammars/text.html.cfm.json +1 -802
- data/grammars/text.html.creole.json +1 -317
- data/grammars/text.html.cshtml.json +1 -356
- data/grammars/text.html.django.json +1 -63
- data/grammars/text.html.ecr.json +1 -48
- data/grammars/text.html.elixir.json +1 -21
- data/grammars/text.html.erb.json +1 -150
- data/grammars/text.html.erlang.yaws.json +1 -67
- data/grammars/text.html.factor.json +1 -19
- data/grammars/text.html.ftl.json +1 -76
- data/grammars/text.html.handlebars.json +1 -845
- data/grammars/text.html.javadoc.json +1 -426
- data/grammars/text.html.js.json +1 -24
- data/grammars/text.html.jsp.json +1 -1196
- data/grammars/text.html.liquid.json +1 -25
- data/grammars/text.html.mako.json +1 -726
- data/grammars/text.html.markdown.source.gfm.apib.json +1 -1298
- data/grammars/text.html.markdown.source.gfm.mson.json +1 -1156
- data/grammars/text.html.mediawiki.elm-build-output.json +1 -97
- data/grammars/text.html.mediawiki.elm-documentation.json +1 -17
- data/grammars/text.html.mediawiki.json +1 -946
- data/grammars/text.html.php.blade.json +1 -3833
- data/grammars/text.html.php.json +1 -2507
- data/grammars/text.html.riot.json +1 -788
- data/grammars/text.html.slash.json +1 -307
- data/grammars/text.html.smarty.json +1 -232
- data/grammars/text.html.soy.json +1 -606
- data/grammars/text.html.ssp.json +1 -43
- data/grammars/text.html.tcl.json +1 -37
- data/grammars/text.html.twig.json +1 -1344
- data/grammars/text.html.vue.json +1 -963
- data/grammars/text.idl-idldoc.json +1 -10
- data/grammars/text.jade.json +1 -963
- data/grammars/text.junit-test-report.json +1 -89
- data/grammars/text.log.latex.json +1 -84
- data/grammars/text.marko.json +1 -1662
- data/grammars/text.muse.json +1 -1471
- data/grammars/text.openbsd-pkg.desc.json +1 -78
- data/grammars/text.plain.json +1 -18
- data/grammars/text.python.console.json +1 -21
- data/grammars/text.python.traceback.json +1 -43
- data/grammars/text.rdoc.json +1 -44
- data/grammars/text.restructuredtext.clean.json +1 -24
- data/grammars/text.restructuredtext.json +1 -1765
- data/grammars/text.robot.json +1 -63
- data/grammars/text.roff.json +1 -6927
- data/grammars/text.rtf.json +1 -148
- data/grammars/text.runoff.json +1 -308
- data/grammars/text.sfd.json +1 -292
- data/grammars/text.shell-session.json +1 -29
- data/grammars/text.slim.json +1 -527
- data/grammars/text.srt.json +1 -166
- data/grammars/text.tex.json +1 -264
- data/grammars/text.tex.latex.beamer.json +1 -57
- data/grammars/text.tex.latex.haskell.json +1 -1826
- data/grammars/text.tex.latex.json +1 -1003
- data/grammars/text.tex.latex.memoir.json +1 -129
- data/grammars/text.tex.latex.rd.json +1 -111
- data/grammars/text.texinfo.json +1 -1525
- data/grammars/text.vim-help.json +1 -383
- data/grammars/text.xml.ant.json +1 -195
- data/grammars/text.xml.flex-config.json +1 -2628
- data/grammars/text.xml.genshi.json +1 -28
- data/grammars/text.xml.json +1 -351
- data/grammars/text.xml.plist.json +1 -664
- data/grammars/text.xml.pom.json +1 -769
- data/grammars/text.xml.svg.json +1 -562
- data/grammars/text.xml.xsl.json +1 -88
- data/grammars/text.zone_file.json +1 -67
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generic.yml +17 -0
- data/lib/linguist/heuristics.yml +37 -17
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +41 -2
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/strategy/extension.rb +13 -5
- metadata +12 -6
- data/ext/linguist/strndup.c +0 -10
- data/grammars/source.perl6fe.json +0 -2769
- data/grammars/source.quoting.perl6fe.json +0 -2369
- data/grammars/source.regexp.perl6fe.json +0 -244
@@ -1,89 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "JUnit Test Report",
|
3
|
-
"scopeName": "text.junit-test-report",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "meta.testsuite.name.junit-test-report",
|
7
|
-
"match": "(Testsuite:) (.+)$\\n",
|
8
|
-
"captures": {
|
9
|
-
"1": {
|
10
|
-
"name": "meta.testsuite.label.junit-test-report"
|
11
|
-
},
|
12
|
-
"2": {
|
13
|
-
"name": "entity.name.testsuite.junit-test-report"
|
14
|
-
}
|
15
|
-
}
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"name": "meta.testcase.name.junit-test-report",
|
19
|
-
"match": "(Testcase:) (.+) took ([\\d\\.]+) sec$\\n",
|
20
|
-
"captures": {
|
21
|
-
"1": {
|
22
|
-
"name": "meta.testcase.label.junit-test-report"
|
23
|
-
},
|
24
|
-
"2": {
|
25
|
-
"name": "entity.name.testcase.junit-test-report"
|
26
|
-
}
|
27
|
-
}
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"name": "meta.stackframe.junit-test-report",
|
31
|
-
"begin": "at\\s+(?=.+?\\(.+?\\)$)",
|
32
|
-
"end": "$\\n",
|
33
|
-
"patterns": [
|
34
|
-
{
|
35
|
-
"name": "meta.stackframe.method.junit-test-report",
|
36
|
-
"match": "(?\u003c=\\.)[^\\.]+?(?=\\()"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"match": "\\((.+)(:)(.+)\\)$",
|
40
|
-
"captures": {
|
41
|
-
"1": {
|
42
|
-
"name": "meta.stackframe.source.junit-test-report"
|
43
|
-
},
|
44
|
-
"3": {
|
45
|
-
"name": "meta.stackframe.source.line.junit-test-report"
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
]
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"name": "meta.section.output.junit-test-report",
|
53
|
-
"begin": "------------- Standard Output ---------------$\\n",
|
54
|
-
"end": "------------- ---------------- ---------------$\\n",
|
55
|
-
"patterns": [
|
56
|
-
{
|
57
|
-
"name": "meta.output.junit-test-report",
|
58
|
-
"contentName": "meta.output.content.junit-test-report",
|
59
|
-
"begin": "--Output from (.+?)--$\\n",
|
60
|
-
"end": "(?=--Output from|------------- ---------------- ---------------)",
|
61
|
-
"beginCaptures": {
|
62
|
-
"1": {
|
63
|
-
"name": "entity.name.testcase.junit-test-report"
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}
|
67
|
-
]
|
68
|
-
},
|
69
|
-
{
|
70
|
-
"name": "meta.section.error.junit-test-report",
|
71
|
-
"contentName": "meta.error.junit-test-report",
|
72
|
-
"begin": "------------- Standard Error -----------------$\\n",
|
73
|
-
"end": "------------- ---------------- ---------------$\\n",
|
74
|
-
"patterns": [
|
75
|
-
{
|
76
|
-
"name": "meta.error.junit-test-report",
|
77
|
-
"contentName": "meta.error.content.junit-test-report",
|
78
|
-
"begin": "--Output from (.+?)--$\\n",
|
79
|
-
"end": "(?=--Output from|------------- ---------------- ---------------)",
|
80
|
-
"beginCaptures": {
|
81
|
-
"1": {
|
82
|
-
"name": "entity.name.testcase.junit-test-report"
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
]
|
87
|
-
}
|
88
|
-
]
|
89
|
-
}
|
1
|
+
{"name":"JUnit Test Report","scopeName":"text.junit-test-report","patterns":[{"name":"meta.testsuite.name.junit-test-report","match":"(Testsuite:) (.+)$\\n","captures":{"1":{"name":"meta.testsuite.label.junit-test-report"},"2":{"name":"entity.name.testsuite.junit-test-report"}}},{"name":"meta.testcase.name.junit-test-report","match":"(Testcase:) (.+) took ([\\d\\.]+) sec$\\n","captures":{"1":{"name":"meta.testcase.label.junit-test-report"},"2":{"name":"entity.name.testcase.junit-test-report"}}},{"name":"meta.stackframe.junit-test-report","begin":"at\\s+(?=.+?\\(.+?\\)$)","end":"$\\n","patterns":[{"name":"meta.stackframe.method.junit-test-report","match":"(?\u003c=\\.)[^\\.]+?(?=\\()"},{"match":"\\((.+)(:)(.+)\\)$","captures":{"1":{"name":"meta.stackframe.source.junit-test-report"},"3":{"name":"meta.stackframe.source.line.junit-test-report"}}}]},{"name":"meta.section.output.junit-test-report","begin":"------------- Standard Output ---------------$\\n","end":"------------- ---------------- ---------------$\\n","patterns":[{"name":"meta.output.junit-test-report","contentName":"meta.output.content.junit-test-report","begin":"--Output from (.+?)--$\\n","end":"(?=--Output from|------------- ---------------- ---------------)","beginCaptures":{"1":{"name":"entity.name.testcase.junit-test-report"}}}]},{"name":"meta.section.error.junit-test-report","contentName":"meta.error.junit-test-report","begin":"------------- Standard Error -----------------$\\n","end":"------------- ---------------- ---------------$\\n","patterns":[{"name":"meta.error.junit-test-report","contentName":"meta.error.content.junit-test-report","begin":"--Output from (.+?)--$\\n","end":"(?=--Output from|------------- ---------------- ---------------)","beginCaptures":{"1":{"name":"entity.name.testcase.junit-test-report"}}}]}]}
|
@@ -1,84 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "LaTeX Log",
|
3
|
-
"scopeName": "text.log.latex",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "invalid.deprecated",
|
7
|
-
"match": ".*Warning:"
|
8
|
-
},
|
9
|
-
{
|
10
|
-
"name": "invalid.deprecated",
|
11
|
-
"match": "[^:]*:\\d*:.*"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"name": "invalid.illegal",
|
15
|
-
"match": ".*Error|^!.*"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"name": "entity.name.function",
|
19
|
-
"match": ".*\\.sty"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"name": "entity.name.type.class",
|
23
|
-
"match": ".*\\.cls"
|
24
|
-
},
|
25
|
-
{
|
26
|
-
"name": "entity.name.tag.configuration",
|
27
|
-
"match": ".*\\.cfg"
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"name": "entity.name.tag.definition",
|
31
|
-
"match": ".*\\.def"
|
32
|
-
},
|
33
|
-
{
|
34
|
-
"name": "comment.block.documentation",
|
35
|
-
"match": ".*Info.*"
|
36
|
-
},
|
37
|
-
{
|
38
|
-
"name": "meta.log.latex.fixme",
|
39
|
-
"match": ".*FiXme:"
|
40
|
-
},
|
41
|
-
{
|
42
|
-
"name": "meta.log.latex.hyphenation",
|
43
|
-
"begin": "(Overfull|Underfull)",
|
44
|
-
"end": "(\\[\\]\\n)",
|
45
|
-
"patterns": [
|
46
|
-
{
|
47
|
-
"name": "variable.parameter.hyphenation.latex2",
|
48
|
-
"match": "[0-9]+\\-\\-[0-9]+"
|
49
|
-
}
|
50
|
-
],
|
51
|
-
"captures": {
|
52
|
-
"1": {
|
53
|
-
"name": "keyword.control.hyphenation.latex"
|
54
|
-
}
|
55
|
-
}
|
56
|
-
},
|
57
|
-
{
|
58
|
-
"name": "string.unquoted.other.filename.log.latex",
|
59
|
-
"begin": "(\u003c)",
|
60
|
-
"end": "(\u003e)",
|
61
|
-
"patterns": [
|
62
|
-
{
|
63
|
-
"name": "support.function.with-arg.latex",
|
64
|
-
"match": "(.*/.*\\.pdf)",
|
65
|
-
"captures": {
|
66
|
-
"1": {
|
67
|
-
"name": "entity.name.function.filename.latex"
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
71
|
-
],
|
72
|
-
"beginCaptures": {
|
73
|
-
"0": {
|
74
|
-
"name": "punctuation.definition.string.begin.log.latex"
|
75
|
-
}
|
76
|
-
},
|
77
|
-
"endCaptures": {
|
78
|
-
"0": {
|
79
|
-
"name": "punctuation.definition.string.end.log.latex"
|
80
|
-
}
|
81
|
-
}
|
82
|
-
}
|
83
|
-
]
|
84
|
-
}
|
1
|
+
{"name":"LaTeX Log","scopeName":"text.log.latex","patterns":[{"name":"invalid.deprecated","match":".*Warning:"},{"name":"invalid.deprecated","match":"[^:]*:\\d*:.*"},{"name":"invalid.illegal","match":".*Error|^!.*"},{"name":"entity.name.function","match":".*\\.sty"},{"name":"entity.name.type.class","match":".*\\.cls"},{"name":"entity.name.tag.configuration","match":".*\\.cfg"},{"name":"entity.name.tag.definition","match":".*\\.def"},{"name":"comment.block.documentation","match":".*Info.*"},{"name":"meta.log.latex.fixme","match":".*FiXme:"},{"name":"meta.log.latex.hyphenation","begin":"(Overfull|Underfull)","end":"(\\[\\]\\n)","patterns":[{"name":"variable.parameter.hyphenation.latex2","match":"[0-9]+\\-\\-[0-9]+"}],"captures":{"1":{"name":"keyword.control.hyphenation.latex"}}},{"name":"string.unquoted.other.filename.log.latex","begin":"(\u003c)","end":"(\u003e)","patterns":[{"name":"support.function.with-arg.latex","match":"(.*/.*\\.pdf)","captures":{"1":{"name":"entity.name.function.filename.latex"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.log.latex"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.log.latex"}}}]}
|
data/grammars/text.marko.json
CHANGED
@@ -1,1662 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "Marko",
|
3
|
-
"scopeName": "text.marko",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#scriptlet"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"include": "#special-js-tags"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"include": "#js-code-block"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"include": "#component-style"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"include": "#comment-concise-line"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"include": "#comment-concise-block"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"include": "#comment-html"
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"include": "#comment-html-tag"
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"include": "#html-block-concise"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"include": "#html-line-concise"
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"include": "#cdata"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"include": "#doctype"
|
40
|
-
},
|
41
|
-
{
|
42
|
-
"include": "#tag-script-concise"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"include": "#tag-style-concise"
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"include": "#tag-concise"
|
49
|
-
},
|
50
|
-
{
|
51
|
-
"include": "#tag-html"
|
52
|
-
},
|
53
|
-
{
|
54
|
-
"include": "#placeholder-patterns"
|
55
|
-
}
|
56
|
-
],
|
57
|
-
"repository": {
|
58
|
-
"attr-assignment-concise": {
|
59
|
-
"begin": "(?:\\s+|[,])(?:(key)|([a-zA-Z][a-zA-Z]*)|([_a-zA-Z0-9][a-zA-Z0-9:_.-]*))\\s*([=])\\s*",
|
60
|
-
"end": "(?=([,;]|\\s|$))",
|
61
|
-
"patterns": [
|
62
|
-
{
|
63
|
-
"include": "#expression"
|
64
|
-
}
|
65
|
-
],
|
66
|
-
"beginCaptures": {
|
67
|
-
"1": {
|
68
|
-
"name": "support.function.marko-attribute"
|
69
|
-
},
|
70
|
-
"2": {
|
71
|
-
"name": "entity.other.attribute-name.html"
|
72
|
-
},
|
73
|
-
"3": {
|
74
|
-
"name": "entity.other.attribute-name.html"
|
75
|
-
},
|
76
|
-
"4": {
|
77
|
-
"name": "punctuation.separator.key-value.html"
|
78
|
-
}
|
79
|
-
},
|
80
|
-
"applyEndPatternLast": true
|
81
|
-
},
|
82
|
-
"attr-assignment-html": {
|
83
|
-
"begin": "(?:\\s+|[,])(?:(key)|([a-zA-Z][a-zA-Z]*)|([_a-zA-Z0-9][a-zA-Z0-9:_.-]*))\\s*([=])\\s*",
|
84
|
-
"end": "(?=[,;]|\\s|/\u003e|\u003e)",
|
85
|
-
"patterns": [
|
86
|
-
{
|
87
|
-
"include": "#expression-no-gt"
|
88
|
-
}
|
89
|
-
],
|
90
|
-
"beginCaptures": {
|
91
|
-
"1": {
|
92
|
-
"name": "support.function.marko-attribute"
|
93
|
-
},
|
94
|
-
"2": {
|
95
|
-
"name": "entity.other.attribute-name.html"
|
96
|
-
},
|
97
|
-
"3": {
|
98
|
-
"name": "entity.other.attribute-name.html"
|
99
|
-
},
|
100
|
-
"4": {
|
101
|
-
"name": "punctuation.separator.key-value.html"
|
102
|
-
}
|
103
|
-
},
|
104
|
-
"applyEndPatternLast": true
|
105
|
-
},
|
106
|
-
"attr-js-block": {
|
107
|
-
"begin": "\\s\\{",
|
108
|
-
"end": "\\}",
|
109
|
-
"patterns": [
|
110
|
-
{
|
111
|
-
"include": "#js"
|
112
|
-
}
|
113
|
-
],
|
114
|
-
"beginCaptures": {
|
115
|
-
"0": {
|
116
|
-
"name": "punctuation.section.scope.begin.js"
|
117
|
-
}
|
118
|
-
},
|
119
|
-
"endCaptures": {
|
120
|
-
"0": {
|
121
|
-
"name": "punctuation.section.scope.end.js"
|
122
|
-
}
|
123
|
-
},
|
124
|
-
"applyEndPatternLast": true
|
125
|
-
},
|
126
|
-
"attr-no-value": {
|
127
|
-
"match": "\\s+(?:([a-zA-Z][a-zA-Z]*)|(data-[a-zA-Z0-9-]*)|([a-zA-Z0-9][a-zA-Z0-9:_.-]+))(?=\\s|/\u003e|\u003e|$)",
|
128
|
-
"captures": {
|
129
|
-
"1": {
|
130
|
-
"name": "entity.other.attribute-name.html"
|
131
|
-
},
|
132
|
-
"2": {
|
133
|
-
"name": "entity.other.attribute-name.html"
|
134
|
-
},
|
135
|
-
"3": {
|
136
|
-
"name": "entity.other.attribute-name.html"
|
137
|
-
}
|
138
|
-
}
|
139
|
-
},
|
140
|
-
"attr-semicolon": {
|
141
|
-
"begin": "([;])",
|
142
|
-
"end": "(?=\\n)",
|
143
|
-
"patterns": [
|
144
|
-
{
|
145
|
-
"include": "#comment-line"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"include": "#comment-block"
|
149
|
-
}
|
150
|
-
],
|
151
|
-
"beginCaptures": {
|
152
|
-
"1": {
|
153
|
-
"name": "punctuation.terminator.statement.js"
|
154
|
-
}
|
155
|
-
},
|
156
|
-
"applyEndPatternLast": true
|
157
|
-
},
|
158
|
-
"attr-special": {
|
159
|
-
"match": "\\s+(else)\\b",
|
160
|
-
"captures": {
|
161
|
-
"1": {
|
162
|
-
"name": "support.function.marko-attribute"
|
163
|
-
}
|
164
|
-
}
|
165
|
-
},
|
166
|
-
"attr-spread-concise": {
|
167
|
-
"begin": "(?:\\s+|[,])(\\.\\.\\.)\\s*",
|
168
|
-
"end": "(?=([,;]|\\s|$))",
|
169
|
-
"patterns": [
|
170
|
-
{
|
171
|
-
"include": "#expression"
|
172
|
-
}
|
173
|
-
],
|
174
|
-
"beginCaptures": {
|
175
|
-
"5": {
|
176
|
-
"name": "punctuation.separator.key-value.html"
|
177
|
-
}
|
178
|
-
},
|
179
|
-
"applyEndPatternLast": true
|
180
|
-
},
|
181
|
-
"attr-spread-html": {
|
182
|
-
"begin": "(?:\\s+|[,])(\\.\\.\\.)\\s*",
|
183
|
-
"end": "(?=[,;]|\\s|/\u003e|\u003e)",
|
184
|
-
"patterns": [
|
185
|
-
{
|
186
|
-
"include": "#expression-no-gt"
|
187
|
-
}
|
188
|
-
],
|
189
|
-
"beginCaptures": {
|
190
|
-
"1": {
|
191
|
-
"name": "punctuation.separator.key-value.html"
|
192
|
-
}
|
193
|
-
},
|
194
|
-
"applyEndPatternLast": true
|
195
|
-
},
|
196
|
-
"attr-stuff-concise": {
|
197
|
-
"patterns": [
|
198
|
-
{
|
199
|
-
"include": "#comment-line"
|
200
|
-
},
|
201
|
-
{
|
202
|
-
"include": "#comment-block"
|
203
|
-
},
|
204
|
-
{
|
205
|
-
"begin": "\\s[\\[]",
|
206
|
-
"end": "[\\]]",
|
207
|
-
"patterns": [
|
208
|
-
{
|
209
|
-
"include": "#attr-stuff-concise"
|
210
|
-
}
|
211
|
-
]
|
212
|
-
},
|
213
|
-
{
|
214
|
-
"begin": "[,]\\s*$",
|
215
|
-
"end": "(?=\\s)"
|
216
|
-
},
|
217
|
-
{
|
218
|
-
"include": "#attr-with-arg"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"include": "#attr-assignment-concise"
|
222
|
-
},
|
223
|
-
{
|
224
|
-
"include": "#attr-spread-concise"
|
225
|
-
},
|
226
|
-
{
|
227
|
-
"include": "#attr-no-value"
|
228
|
-
},
|
229
|
-
{
|
230
|
-
"include": "#placeholder"
|
231
|
-
},
|
232
|
-
{
|
233
|
-
"include": "#attr-js-block"
|
234
|
-
},
|
235
|
-
{
|
236
|
-
"include": "#expression"
|
237
|
-
},
|
238
|
-
{
|
239
|
-
"include": "#attr-semicolon"
|
240
|
-
}
|
241
|
-
]
|
242
|
-
},
|
243
|
-
"attr-stuff-html": {
|
244
|
-
"patterns": [
|
245
|
-
{
|
246
|
-
"include": "#comment-block"
|
247
|
-
},
|
248
|
-
{
|
249
|
-
"include": "#attr-special"
|
250
|
-
},
|
251
|
-
{
|
252
|
-
"include": "#attr-with-arg"
|
253
|
-
},
|
254
|
-
{
|
255
|
-
"include": "#attr-assignment-html"
|
256
|
-
},
|
257
|
-
{
|
258
|
-
"include": "#attr-spread-html"
|
259
|
-
},
|
260
|
-
{
|
261
|
-
"include": "#attr-no-value"
|
262
|
-
},
|
263
|
-
{
|
264
|
-
"include": "#placeholder"
|
265
|
-
},
|
266
|
-
{
|
267
|
-
"include": "#attr-js-block"
|
268
|
-
},
|
269
|
-
{
|
270
|
-
"include": "#expression-no-gt"
|
271
|
-
},
|
272
|
-
{
|
273
|
-
"include": "#attr-semicolon"
|
274
|
-
}
|
275
|
-
]
|
276
|
-
},
|
277
|
-
"attr-with-arg": {
|
278
|
-
"begin": "\\s+([_a-zA-Z0-9][a-zA-Z0-9:_.-]+)(\\()",
|
279
|
-
"end": "\\)",
|
280
|
-
"patterns": [
|
281
|
-
{
|
282
|
-
"include": "#expression"
|
283
|
-
}
|
284
|
-
],
|
285
|
-
"beginCaptures": {
|
286
|
-
"1": {
|
287
|
-
"name": "support.function.marko-attribute"
|
288
|
-
},
|
289
|
-
"2": {
|
290
|
-
"name": "meta.brace.round.js"
|
291
|
-
}
|
292
|
-
},
|
293
|
-
"endCaptures": {
|
294
|
-
"1": {
|
295
|
-
"name": "meta.brace.round.js"
|
296
|
-
}
|
297
|
-
},
|
298
|
-
"applyEndPatternLast": true
|
299
|
-
},
|
300
|
-
"cdata": {
|
301
|
-
"name": "string.unquoted.cdata.xml",
|
302
|
-
"begin": "\u003c!\\[CDATA\\[",
|
303
|
-
"end": "]]\u003e",
|
304
|
-
"beginCaptures": {
|
305
|
-
"0": {
|
306
|
-
"name": "punctuation.definition.string.begin.xml"
|
307
|
-
}
|
308
|
-
},
|
309
|
-
"endCaptures": {
|
310
|
-
"0": {
|
311
|
-
"name": "punctuation.definition.string.end.xml"
|
312
|
-
}
|
313
|
-
}
|
314
|
-
},
|
315
|
-
"comment-block": {
|
316
|
-
"name": "comment.block.js",
|
317
|
-
"begin": "/\\*",
|
318
|
-
"end": "\\*/",
|
319
|
-
"beginCaptures": {
|
320
|
-
"0": {
|
321
|
-
"name": "punctuation.definition.comment.begin.js"
|
322
|
-
}
|
323
|
-
},
|
324
|
-
"endCaptures": {
|
325
|
-
"0": {
|
326
|
-
"name": "punctuation.definition.comment.end.js"
|
327
|
-
}
|
328
|
-
}
|
329
|
-
},
|
330
|
-
"comment-concise-block": {
|
331
|
-
"name": "comment.block.js",
|
332
|
-
"begin": "^(\\s*)/\\*",
|
333
|
-
"end": "\\*/.*",
|
334
|
-
"beginCaptures": {
|
335
|
-
"0": {
|
336
|
-
"name": "punctuation.definition.comment.begin.js"
|
337
|
-
}
|
338
|
-
},
|
339
|
-
"endCaptures": {
|
340
|
-
"0": {
|
341
|
-
"name": "punctuation.definition.comment.end.js"
|
342
|
-
}
|
343
|
-
}
|
344
|
-
},
|
345
|
-
"comment-concise-line": {
|
346
|
-
"name": "comment.line.double-slash.marko",
|
347
|
-
"begin": "^(\\s*)//",
|
348
|
-
"end": "$"
|
349
|
-
},
|
350
|
-
"comment-html": {
|
351
|
-
"name": "comment.block.html",
|
352
|
-
"begin": "\\s*\u003c!--",
|
353
|
-
"end": "--\u003e",
|
354
|
-
"captures": {
|
355
|
-
"0": {
|
356
|
-
"name": "punctuation.definition.comment.html"
|
357
|
-
}
|
358
|
-
}
|
359
|
-
},
|
360
|
-
"comment-html-tag": {
|
361
|
-
"name": "comment.block.html",
|
362
|
-
"begin": "\\s*\u003chtml-comment\u003e",
|
363
|
-
"end": "\u003c/html-comment\u003e",
|
364
|
-
"captures": {
|
365
|
-
"0": {
|
366
|
-
"name": "punctuation.definition.comment.html"
|
367
|
-
}
|
368
|
-
}
|
369
|
-
},
|
370
|
-
"comment-line": {
|
371
|
-
"name": "comment.line.double-slash.js",
|
372
|
-
"begin": "(//)",
|
373
|
-
"end": "(?=\\n)",
|
374
|
-
"beginCaptures": {
|
375
|
-
"1": {
|
376
|
-
"name": "punctuation.definition.comment.js"
|
377
|
-
}
|
378
|
-
}
|
379
|
-
},
|
380
|
-
"component-style": {
|
381
|
-
"patterns": [
|
382
|
-
{
|
383
|
-
"include": "#component-style-less"
|
384
|
-
},
|
385
|
-
{
|
386
|
-
"include": "#component-style-css"
|
387
|
-
}
|
388
|
-
]
|
389
|
-
},
|
390
|
-
"component-style-css": {
|
391
|
-
"begin": "^(style)(?:\\.([a-z]+))?\\s+(\\{)",
|
392
|
-
"end": "\\}",
|
393
|
-
"patterns": [
|
394
|
-
{
|
395
|
-
"include": "source.css"
|
396
|
-
}
|
397
|
-
],
|
398
|
-
"beginCaptures": {
|
399
|
-
"1": {
|
400
|
-
"name": "storage.type.marko.css"
|
401
|
-
},
|
402
|
-
"2": {
|
403
|
-
"name": "storage.modifier.marko.less"
|
404
|
-
},
|
405
|
-
"3": {
|
406
|
-
"name": "punctuation.section.scope.begin.css"
|
407
|
-
}
|
408
|
-
},
|
409
|
-
"endCaptures": {
|
410
|
-
"0": {
|
411
|
-
"name": "punctuation.section.scope.end.css"
|
412
|
-
}
|
413
|
-
},
|
414
|
-
"applyEndPatternLast": true
|
415
|
-
},
|
416
|
-
"component-style-less": {
|
417
|
-
"begin": "^(style)\\.(less)\\s+(\\{)",
|
418
|
-
"end": "\\}",
|
419
|
-
"patterns": [
|
420
|
-
{
|
421
|
-
"include": "source.css.less"
|
422
|
-
}
|
423
|
-
],
|
424
|
-
"beginCaptures": {
|
425
|
-
"1": {
|
426
|
-
"name": "storage.type.marko.less"
|
427
|
-
},
|
428
|
-
"2": {
|
429
|
-
"name": "storage.modifier.marko.less"
|
430
|
-
},
|
431
|
-
"3": {
|
432
|
-
"name": "punctuation.section.scope.begin.less"
|
433
|
-
}
|
434
|
-
},
|
435
|
-
"endCaptures": {
|
436
|
-
"0": {
|
437
|
-
"name": "punctuation.section.scope.end.less"
|
438
|
-
}
|
439
|
-
},
|
440
|
-
"applyEndPatternLast": true
|
441
|
-
},
|
442
|
-
"doctype": {
|
443
|
-
"name": "meta.tag.sgml.html",
|
444
|
-
"begin": "\u003c!",
|
445
|
-
"end": "\u003e",
|
446
|
-
"patterns": [
|
447
|
-
{
|
448
|
-
"name": "meta.tag.sgml.doctype.html",
|
449
|
-
"begin": "(?i:DOCTYPE)",
|
450
|
-
"end": "(?=\u003e)",
|
451
|
-
"patterns": [
|
452
|
-
{
|
453
|
-
"name": "string.quoted.double.doctype.identifiers-and-DTDs.html",
|
454
|
-
"match": "\"[^\"\u003e]*\""
|
455
|
-
}
|
456
|
-
],
|
457
|
-
"captures": {
|
458
|
-
"1": {
|
459
|
-
"name": "entity.name.tag.doctype.html"
|
460
|
-
}
|
461
|
-
}
|
462
|
-
}
|
463
|
-
],
|
464
|
-
"captures": {
|
465
|
-
"0": {
|
466
|
-
"name": "punctuation.definition.marko-tag.html"
|
467
|
-
}
|
468
|
-
}
|
469
|
-
},
|
470
|
-
"expression": {
|
471
|
-
"patterns": [
|
472
|
-
{
|
473
|
-
"include": "#expression-common"
|
474
|
-
},
|
475
|
-
{
|
476
|
-
"include": "#expression-operator-gt"
|
477
|
-
}
|
478
|
-
]
|
479
|
-
},
|
480
|
-
"expression-common": {
|
481
|
-
"patterns": [
|
482
|
-
{
|
483
|
-
"include": "#expression-string-single"
|
484
|
-
},
|
485
|
-
{
|
486
|
-
"include": "#expression-string-double"
|
487
|
-
},
|
488
|
-
{
|
489
|
-
"include": "#expression-string-template"
|
490
|
-
},
|
491
|
-
{
|
492
|
-
"include": "#expression-group-parens"
|
493
|
-
},
|
494
|
-
{
|
495
|
-
"include": "#expression-group-brackets"
|
496
|
-
},
|
497
|
-
{
|
498
|
-
"include": "#expression-group-braces"
|
499
|
-
},
|
500
|
-
{
|
501
|
-
"include": "#expression-constant"
|
502
|
-
},
|
503
|
-
{
|
504
|
-
"include": "#expression-hex"
|
505
|
-
},
|
506
|
-
{
|
507
|
-
"include": "#expression-numeric"
|
508
|
-
},
|
509
|
-
{
|
510
|
-
"include": "#expression-operator-unary"
|
511
|
-
},
|
512
|
-
{
|
513
|
-
"include": "#expression-operator-binary"
|
514
|
-
},
|
515
|
-
{
|
516
|
-
"include": "#expression-operator-special"
|
517
|
-
},
|
518
|
-
{
|
519
|
-
"match": "[.]([\\p{L}\\p{Nl}$_][\\p{L}\\p{Nl}$\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}\\x{200C}\\x{200D}]*)\\b"
|
520
|
-
},
|
521
|
-
{
|
522
|
-
"match": "\\b(out)[.](global)\\b",
|
523
|
-
"captures": {
|
524
|
-
"1": {
|
525
|
-
"name": "entity.name.type"
|
526
|
-
},
|
527
|
-
"2": {
|
528
|
-
"name": "entity.name.type"
|
529
|
-
}
|
530
|
-
}
|
531
|
-
},
|
532
|
-
{
|
533
|
-
"match": "\\b(this)[.](input|state)\\b",
|
534
|
-
"captures": {
|
535
|
-
"1": {
|
536
|
-
"name": "variable.language.js"
|
537
|
-
},
|
538
|
-
"2": {
|
539
|
-
"name": "entity.name.type"
|
540
|
-
}
|
541
|
-
}
|
542
|
-
},
|
543
|
-
{
|
544
|
-
"name": "entity.name.type",
|
545
|
-
"match": "\\b(input|state|component|JSON|out)\\b"
|
546
|
-
},
|
547
|
-
{
|
548
|
-
"name": "storage.type.var.js",
|
549
|
-
"match": "\\b(let|var|const)\\b"
|
550
|
-
},
|
551
|
-
{
|
552
|
-
"match": "\\b(require)[.](resolve)\\b",
|
553
|
-
"captures": {
|
554
|
-
"1": {
|
555
|
-
"name": "entity.name.type"
|
556
|
-
},
|
557
|
-
"2": {
|
558
|
-
"name": "entity.name.type"
|
559
|
-
}
|
560
|
-
}
|
561
|
-
},
|
562
|
-
{
|
563
|
-
"name": "entity.name.type",
|
564
|
-
"match": "\\b(console|JSON|event|window|setTimeout|setInterval|require)\\b"
|
565
|
-
},
|
566
|
-
{
|
567
|
-
"name": "variable.language.js",
|
568
|
-
"match": "\\b(this|arguments)\\b"
|
569
|
-
},
|
570
|
-
{
|
571
|
-
"include": "#expression-special-class"
|
572
|
-
}
|
573
|
-
]
|
574
|
-
},
|
575
|
-
"expression-constant": {
|
576
|
-
"match": "(true)|(false)|(Infinity)|(NaN)|(null)|(undefined)",
|
577
|
-
"captures": {
|
578
|
-
"1": {
|
579
|
-
"name": "constant.language.boolean.true.js"
|
580
|
-
},
|
581
|
-
"2": {
|
582
|
-
"name": "constant.language.boolean.false.js"
|
583
|
-
},
|
584
|
-
"3": {
|
585
|
-
"name": "constant.language.infinity.js"
|
586
|
-
},
|
587
|
-
"4": {
|
588
|
-
"name": "constant.language.nan.js"
|
589
|
-
},
|
590
|
-
"5": {
|
591
|
-
"name": "constant.language.null.js"
|
592
|
-
},
|
593
|
-
"6": {
|
594
|
-
"name": "constant.language.undefined.js"
|
595
|
-
}
|
596
|
-
}
|
597
|
-
},
|
598
|
-
"expression-group-braces": {
|
599
|
-
"begin": "\\{",
|
600
|
-
"end": "\\}",
|
601
|
-
"patterns": [
|
602
|
-
{
|
603
|
-
"include": "#expression"
|
604
|
-
}
|
605
|
-
],
|
606
|
-
"beginCaptures": {
|
607
|
-
"0": {
|
608
|
-
"name": "punctuation.section.scope.begin.js"
|
609
|
-
}
|
610
|
-
},
|
611
|
-
"endCaptures": {
|
612
|
-
"0": {
|
613
|
-
"name": "punctuation.section.scope.end.js"
|
614
|
-
}
|
615
|
-
},
|
616
|
-
"applyEndPatternLast": true
|
617
|
-
},
|
618
|
-
"expression-group-brackets": {
|
619
|
-
"begin": "\\[",
|
620
|
-
"end": "\\]",
|
621
|
-
"patterns": [
|
622
|
-
{
|
623
|
-
"include": "#expression"
|
624
|
-
}
|
625
|
-
],
|
626
|
-
"beginCaptures": {
|
627
|
-
"0": {
|
628
|
-
"name": "meta.brace.square.js"
|
629
|
-
}
|
630
|
-
},
|
631
|
-
"endCaptures": {
|
632
|
-
"0": {
|
633
|
-
"name": "meta.brace.square.js"
|
634
|
-
}
|
635
|
-
},
|
636
|
-
"applyEndPatternLast": true
|
637
|
-
},
|
638
|
-
"expression-group-parens": {
|
639
|
-
"begin": "\\(",
|
640
|
-
"end": "\\)",
|
641
|
-
"patterns": [
|
642
|
-
{
|
643
|
-
"include": "#expression"
|
644
|
-
}
|
645
|
-
],
|
646
|
-
"beginCaptures": {
|
647
|
-
"0": {
|
648
|
-
"name": "meta.brace.round.js"
|
649
|
-
}
|
650
|
-
},
|
651
|
-
"endCaptures": {
|
652
|
-
"0": {
|
653
|
-
"name": "meta.brace.round.js"
|
654
|
-
}
|
655
|
-
},
|
656
|
-
"applyEndPatternLast": true
|
657
|
-
},
|
658
|
-
"expression-hex": {
|
659
|
-
"name": "constant.numeric.hex.js",
|
660
|
-
"match": "\\b0[xX][0-9A-Fa-f]+\\b"
|
661
|
-
},
|
662
|
-
"expression-no-gt": {
|
663
|
-
"patterns": [
|
664
|
-
{
|
665
|
-
"include": "#expression-common"
|
666
|
-
}
|
667
|
-
]
|
668
|
-
},
|
669
|
-
"expression-numeric": {
|
670
|
-
"name": "constant.numeric.js",
|
671
|
-
"match": "(?x)\n\t\t\t\t(?\u003c!\\w)\t\t\t\t\t\t\t\t\t# Ensure word boundry\n\t\t\t\t(?\u003e\n\t\t\t\t\t(\n\t\t\t\t\t\t(0|[1-9][0-9]*)(\\.[0-9]*)?\t\t# 0 or 1 or 1. or 1.0\n\t\t\t\t\t | \\.[0-9]+\t\t\t\t\t\t# .1\n\t\t\t\t\t)\n\t\t\t\t\t([eE][+-]?[0-9]+)?\t\t\t\t\t# Exponent\n\t\t\t\t)\n\t\t\t\t(?!\\w)\t\t\t\t\t\t\t\t\t# Ensure word boundry\n\t\t\t"
|
672
|
-
},
|
673
|
-
"expression-operator-binary": {
|
674
|
-
"match": "(\\s+|\\b)(===|==|!==|!=|\u003c=|\u003c\u003c|\u0026\u0026|\\|\\||\u003c|\\+=|-=|\\*=|/=|%=|[=+*/%|\u0026~^:])(\\s+|\\b)",
|
675
|
-
"captures": {
|
676
|
-
"2": {
|
677
|
-
"name": "keyword.operator.js"
|
678
|
-
}
|
679
|
-
}
|
680
|
-
},
|
681
|
-
"expression-operator-gt": {
|
682
|
-
"match": "(\\s+|\\b)(\u003e=|\u003e\u003e|\u003e)(\\s+|\\b)",
|
683
|
-
"captures": {
|
684
|
-
"2": {
|
685
|
-
"name": "keyword.operator.js"
|
686
|
-
}
|
687
|
-
}
|
688
|
-
},
|
689
|
-
"expression-operator-special": {
|
690
|
-
"name": "keyword",
|
691
|
-
"match": "(?\u003c!\\.|\\$)\\b(delete|in|instanceof|new|typeof\\s*|void|with|from|to|step)\\b(?!\\$)"
|
692
|
-
},
|
693
|
-
"expression-operator-unary": {
|
694
|
-
"name": "keyword.operator.js",
|
695
|
-
"match": "\\b(!|\\+\\+)\\b|\\b\\-\\-(?\u003c!\\s)"
|
696
|
-
},
|
697
|
-
"expression-special-class": {
|
698
|
-
"name": "support.class.js",
|
699
|
-
"match": "(?\u003c!\\.|\\$)\\b(Array|Boolean|Date|Error|EvalError|Function|Number|Object|RangeError|ReferenceError|RegExp|String|SyntaxError|TypeError|URIError)\\b(?!\\$)"
|
700
|
-
},
|
701
|
-
"expression-string-double": {
|
702
|
-
"name": "string.quoted.double.js",
|
703
|
-
"begin": "\"",
|
704
|
-
"end": "\"",
|
705
|
-
"patterns": [
|
706
|
-
{
|
707
|
-
"name": "constant.character.escape.js",
|
708
|
-
"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]?|.)"
|
709
|
-
}
|
710
|
-
],
|
711
|
-
"beginCaptures": {
|
712
|
-
"0": {
|
713
|
-
"name": "punctuation.definition.string.begin.js"
|
714
|
-
}
|
715
|
-
},
|
716
|
-
"endCaptures": {
|
717
|
-
"0": {
|
718
|
-
"name": "punctuation.definition.string.end.js"
|
719
|
-
}
|
720
|
-
}
|
721
|
-
},
|
722
|
-
"expression-string-escapes": {
|
723
|
-
"patterns": [
|
724
|
-
{
|
725
|
-
"name": "constant.character.escape.js",
|
726
|
-
"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]?|.)"
|
727
|
-
}
|
728
|
-
]
|
729
|
-
},
|
730
|
-
"expression-string-single": {
|
731
|
-
"name": "string.quoted.single.js",
|
732
|
-
"begin": "'",
|
733
|
-
"end": "'",
|
734
|
-
"patterns": [
|
735
|
-
{
|
736
|
-
"include": "#expression-string-escapes"
|
737
|
-
},
|
738
|
-
{
|
739
|
-
"include": "#placeholder-patterns"
|
740
|
-
}
|
741
|
-
],
|
742
|
-
"beginCaptures": {
|
743
|
-
"0": {
|
744
|
-
"name": "punctuation.definition.string.begin.js"
|
745
|
-
}
|
746
|
-
},
|
747
|
-
"endCaptures": {
|
748
|
-
"0": {
|
749
|
-
"name": "punctuation.definition.string.end.js"
|
750
|
-
}
|
751
|
-
}
|
752
|
-
},
|
753
|
-
"expression-string-template": {
|
754
|
-
"name": "string.quoted.other.template.js",
|
755
|
-
"begin": "`",
|
756
|
-
"end": "`",
|
757
|
-
"patterns": [
|
758
|
-
{
|
759
|
-
"include": "#expression-string-escapes"
|
760
|
-
},
|
761
|
-
{
|
762
|
-
"name": "meta.embedded.line.js",
|
763
|
-
"contentName": "source.js",
|
764
|
-
"begin": "\\$\\{",
|
765
|
-
"end": "(\\})",
|
766
|
-
"patterns": [
|
767
|
-
{
|
768
|
-
"include": "#expression"
|
769
|
-
}
|
770
|
-
],
|
771
|
-
"beginCaptures": {
|
772
|
-
"0": {
|
773
|
-
"name": "punctuation.section.embedded.begin.js"
|
774
|
-
}
|
775
|
-
},
|
776
|
-
"endCaptures": {
|
777
|
-
"0": {
|
778
|
-
"name": "punctuation.section.embedded.end.js"
|
779
|
-
},
|
780
|
-
"1": {
|
781
|
-
"name": "source.js"
|
782
|
-
}
|
783
|
-
}
|
784
|
-
}
|
785
|
-
],
|
786
|
-
"beginCaptures": {
|
787
|
-
"0": {
|
788
|
-
"name": "punctuation.definition.string.begin.js"
|
789
|
-
}
|
790
|
-
},
|
791
|
-
"endCaptures": {
|
792
|
-
"0": {
|
793
|
-
"name": "punctuation.definition.string.end.js"
|
794
|
-
}
|
795
|
-
}
|
796
|
-
},
|
797
|
-
"expression-ternary-if": {
|
798
|
-
"name": "meta.ternary-if.js",
|
799
|
-
"begin": "\\?",
|
800
|
-
"end": ":",
|
801
|
-
"patterns": [
|
802
|
-
{
|
803
|
-
"include": "$self"
|
804
|
-
}
|
805
|
-
]
|
806
|
-
},
|
807
|
-
"html-block-concise": {
|
808
|
-
"name": "meta.section.marko-html-block",
|
809
|
-
"begin": "(\\s*)(-[-]+)\\n",
|
810
|
-
"end": "^(\\1\\2|(?!(\\1)))",
|
811
|
-
"patterns": [
|
812
|
-
{
|
813
|
-
"include": "#cdata"
|
814
|
-
},
|
815
|
-
{
|
816
|
-
"include": "#comment-html"
|
817
|
-
},
|
818
|
-
{
|
819
|
-
"include": "#comment-html-tag"
|
820
|
-
},
|
821
|
-
{
|
822
|
-
"include": "#tag-html"
|
823
|
-
},
|
824
|
-
{
|
825
|
-
"include": "#js-code-line"
|
826
|
-
},
|
827
|
-
{
|
828
|
-
"include": "#js-code-block"
|
829
|
-
},
|
830
|
-
{
|
831
|
-
"include": "#placeholder-patterns"
|
832
|
-
}
|
833
|
-
],
|
834
|
-
"captures": {
|
835
|
-
"2": {
|
836
|
-
"name": "keyword.operator.marko"
|
837
|
-
}
|
838
|
-
}
|
839
|
-
},
|
840
|
-
"html-line-block-concise": {
|
841
|
-
"begin": "\\s*([-][-]+)\\n",
|
842
|
-
"end": "(?!\\2)|(\\2\\1)",
|
843
|
-
"patterns": [
|
844
|
-
{
|
845
|
-
"include": "#cdata"
|
846
|
-
},
|
847
|
-
{
|
848
|
-
"include": "#comment-html"
|
849
|
-
},
|
850
|
-
{
|
851
|
-
"include": "#comment-html-tag"
|
852
|
-
},
|
853
|
-
{
|
854
|
-
"include": "#tag-html"
|
855
|
-
},
|
856
|
-
{
|
857
|
-
"include": "#placeholder-patterns"
|
858
|
-
}
|
859
|
-
],
|
860
|
-
"beginCaptures": {
|
861
|
-
"1": {
|
862
|
-
"name": "keyword.operator.marko.blah"
|
863
|
-
}
|
864
|
-
},
|
865
|
-
"applyEndPatternLast": true
|
866
|
-
},
|
867
|
-
"html-line-concise": {
|
868
|
-
"begin": "\\s*([-][-]+)",
|
869
|
-
"end": "(?=\\n)",
|
870
|
-
"patterns": [
|
871
|
-
{
|
872
|
-
"include": "#cdata"
|
873
|
-
},
|
874
|
-
{
|
875
|
-
"include": "#comment-html"
|
876
|
-
},
|
877
|
-
{
|
878
|
-
"include": "#comment-html-tag"
|
879
|
-
},
|
880
|
-
{
|
881
|
-
"include": "#tag-html"
|
882
|
-
},
|
883
|
-
{
|
884
|
-
"include": "#placeholder-patterns"
|
885
|
-
}
|
886
|
-
],
|
887
|
-
"beginCaptures": {
|
888
|
-
"1": {
|
889
|
-
"name": "keyword.operator.marko"
|
890
|
-
}
|
891
|
-
}
|
892
|
-
},
|
893
|
-
"js": {
|
894
|
-
"patterns": [
|
895
|
-
{
|
896
|
-
"include": "#comment-line"
|
897
|
-
},
|
898
|
-
{
|
899
|
-
"include": "#comment-block"
|
900
|
-
},
|
901
|
-
{
|
902
|
-
"begin": "\\{",
|
903
|
-
"end": "\\}",
|
904
|
-
"patterns": [
|
905
|
-
{
|
906
|
-
"include": "#js"
|
907
|
-
}
|
908
|
-
],
|
909
|
-
"beginCaptures": {
|
910
|
-
"0": {
|
911
|
-
"name": "punctuation.section.scope.begin.js"
|
912
|
-
}
|
913
|
-
},
|
914
|
-
"endCaptures": {
|
915
|
-
"0": {
|
916
|
-
"name": "punctuation.section.scope.end.js"
|
917
|
-
}
|
918
|
-
},
|
919
|
-
"applyEndPatternLast": true
|
920
|
-
},
|
921
|
-
{
|
922
|
-
"begin": "\\(",
|
923
|
-
"end": "\\)",
|
924
|
-
"patterns": [
|
925
|
-
{
|
926
|
-
"include": "#js"
|
927
|
-
}
|
928
|
-
],
|
929
|
-
"beginCaptures": {
|
930
|
-
"0": {
|
931
|
-
"name": "punctuation.section.scope.begin.js"
|
932
|
-
}
|
933
|
-
},
|
934
|
-
"endCaptures": {
|
935
|
-
"0": {
|
936
|
-
"name": "punctuation.section.scope.end.js"
|
937
|
-
}
|
938
|
-
},
|
939
|
-
"applyEndPatternLast": true
|
940
|
-
},
|
941
|
-
{
|
942
|
-
"begin": "\\[",
|
943
|
-
"end": "\\]",
|
944
|
-
"patterns": [
|
945
|
-
{
|
946
|
-
"include": "#js"
|
947
|
-
}
|
948
|
-
],
|
949
|
-
"beginCaptures": {
|
950
|
-
"0": {
|
951
|
-
"name": "punctuation.section.scope.begin.js"
|
952
|
-
}
|
953
|
-
},
|
954
|
-
"endCaptures": {
|
955
|
-
"0": {
|
956
|
-
"name": "punctuation.section.scope.end.js"
|
957
|
-
}
|
958
|
-
},
|
959
|
-
"applyEndPatternLast": true
|
960
|
-
},
|
961
|
-
{
|
962
|
-
"match": "[.]([\\p{L}\\p{Nl}$_][\\p{L}\\p{Nl}$\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}\\x{200C}\\x{200D}]*)\\b"
|
963
|
-
},
|
964
|
-
{
|
965
|
-
"include": "#expression"
|
966
|
-
},
|
967
|
-
{
|
968
|
-
"name": "keyword.control.js",
|
969
|
-
"match": "\\b(break|case|catch|continue|default|do|else|export|finally|for|if|return|switch|throw|try|while|with|import|from|await|async)\\b"
|
970
|
-
},
|
971
|
-
{
|
972
|
-
"name": "storage.type.function.arrow.js",
|
973
|
-
"match": "(\\s+|\\b)(\\=\\\u003e)(\\s+|\\b)"
|
974
|
-
},
|
975
|
-
{
|
976
|
-
"name": "punctuation.terminator.statement.js",
|
977
|
-
"match": "\\;"
|
978
|
-
},
|
979
|
-
{
|
980
|
-
"name": "storage.type.function.js",
|
981
|
-
"match": "\\b(function)\\b"
|
982
|
-
},
|
983
|
-
{
|
984
|
-
"name": "entity.name.type.class.js",
|
985
|
-
"match": "\\b(class)\\b"
|
986
|
-
},
|
987
|
-
{
|
988
|
-
"name": "entity.other.inherited-class.js",
|
989
|
-
"match": "\\bextends\\b"
|
990
|
-
},
|
991
|
-
{
|
992
|
-
"name": "meta.method.js",
|
993
|
-
"begin": "([\\p{L}\\p{Nl}$_][\\p{L}\\p{Nl}$\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}\\x{200C}\\x{200D}]*)\\s*(\\()(?=(?:[^\\(\\)]*)?\\)\\s*\\{)",
|
994
|
-
"end": "\\)",
|
995
|
-
"beginCaptures": {
|
996
|
-
"1": {
|
997
|
-
"name": "entity.name.function.js"
|
998
|
-
},
|
999
|
-
"2": {
|
1000
|
-
"name": "punctuation.definition.parameters.begin.js"
|
1001
|
-
}
|
1002
|
-
},
|
1003
|
-
"endCaptures": {
|
1004
|
-
"0": {
|
1005
|
-
"name": "punctuation.definition.parameters.END.js"
|
1006
|
-
}
|
1007
|
-
}
|
1008
|
-
}
|
1009
|
-
]
|
1010
|
-
},
|
1011
|
-
"js-code-block": {
|
1012
|
-
"contentName": "source.js.embedded",
|
1013
|
-
"begin": "^\\s*([$])\\s",
|
1014
|
-
"end": "(?=\\n)",
|
1015
|
-
"patterns": [
|
1016
|
-
{
|
1017
|
-
"include": "#js"
|
1018
|
-
}
|
1019
|
-
],
|
1020
|
-
"beginCaptures": {
|
1021
|
-
"1": {
|
1022
|
-
"name": "storage.modifier.embedded.js"
|
1023
|
-
}
|
1024
|
-
},
|
1025
|
-
"applyEndPatternLast": true
|
1026
|
-
},
|
1027
|
-
"open-tag-end": {
|
1028
|
-
"begin": "(\u003e)",
|
1029
|
-
"end": "(?=\u003c/)",
|
1030
|
-
"patterns": [
|
1031
|
-
{
|
1032
|
-
"include": "#cdata"
|
1033
|
-
},
|
1034
|
-
{
|
1035
|
-
"include": "#comment-html"
|
1036
|
-
},
|
1037
|
-
{
|
1038
|
-
"include": "#comment-html-tag"
|
1039
|
-
},
|
1040
|
-
{
|
1041
|
-
"include": "#scriptlet"
|
1042
|
-
},
|
1043
|
-
{
|
1044
|
-
"include": "#tag-html"
|
1045
|
-
},
|
1046
|
-
{
|
1047
|
-
"include": "#js-code-block"
|
1048
|
-
},
|
1049
|
-
{
|
1050
|
-
"include": "#placeholder-patterns"
|
1051
|
-
}
|
1052
|
-
],
|
1053
|
-
"beginCaptures": {
|
1054
|
-
"1": {
|
1055
|
-
"name": "punctuation.definition.tag.end.open.html"
|
1056
|
-
}
|
1057
|
-
}
|
1058
|
-
},
|
1059
|
-
"open-tag-end-script": {
|
1060
|
-
"begin": "(\u003e)",
|
1061
|
-
"end": "(?=\u003c/)",
|
1062
|
-
"patterns": [
|
1063
|
-
{
|
1064
|
-
"include": "#placeholder-patterns"
|
1065
|
-
},
|
1066
|
-
{
|
1067
|
-
"include": "#js"
|
1068
|
-
}
|
1069
|
-
],
|
1070
|
-
"beginCaptures": {
|
1071
|
-
"1": {
|
1072
|
-
"name": "punctuation.definition.tag.end.open.html"
|
1073
|
-
}
|
1074
|
-
}
|
1075
|
-
},
|
1076
|
-
"open-tag-end-style": {
|
1077
|
-
"begin": "(\u003e)",
|
1078
|
-
"end": "(?=\u003c/)",
|
1079
|
-
"patterns": [
|
1080
|
-
{
|
1081
|
-
"include": "#placeholder-patterns"
|
1082
|
-
},
|
1083
|
-
{
|
1084
|
-
"include": "source.css"
|
1085
|
-
}
|
1086
|
-
],
|
1087
|
-
"beginCaptures": {
|
1088
|
-
"1": {
|
1089
|
-
"name": "punctuation.definition.tag.end.open.html"
|
1090
|
-
}
|
1091
|
-
}
|
1092
|
-
},
|
1093
|
-
"placeholder": {
|
1094
|
-
"name": "meta.section.marko-placeholder",
|
1095
|
-
"begin": "[$][!]?\\{",
|
1096
|
-
"end": "\\}",
|
1097
|
-
"patterns": [
|
1098
|
-
{
|
1099
|
-
"include": "#expression"
|
1100
|
-
}
|
1101
|
-
],
|
1102
|
-
"captures": {
|
1103
|
-
"0": {
|
1104
|
-
"name": "keyword.operator.marko"
|
1105
|
-
}
|
1106
|
-
},
|
1107
|
-
"applyEndPatternLast": true
|
1108
|
-
},
|
1109
|
-
"placeholder-escaped": {
|
1110
|
-
"match": "\\\\[$][!]?[{]"
|
1111
|
-
},
|
1112
|
-
"placeholder-escaped-escaped": {
|
1113
|
-
"match": "\\\\\\\\(?=[$][!]?[{])"
|
1114
|
-
},
|
1115
|
-
"placeholder-patterns": {
|
1116
|
-
"patterns": [
|
1117
|
-
{
|
1118
|
-
"include": "#placeholder-escaped-escaped"
|
1119
|
-
},
|
1120
|
-
{
|
1121
|
-
"include": "#placeholder-escaped"
|
1122
|
-
},
|
1123
|
-
{
|
1124
|
-
"include": "#placeholder"
|
1125
|
-
}
|
1126
|
-
]
|
1127
|
-
},
|
1128
|
-
"scriptlet": {
|
1129
|
-
"begin": "\u003c%",
|
1130
|
-
"end": "%\u003e",
|
1131
|
-
"patterns": [
|
1132
|
-
{
|
1133
|
-
"include": "#js"
|
1134
|
-
}
|
1135
|
-
],
|
1136
|
-
"captures": {
|
1137
|
-
"0": {
|
1138
|
-
"name": "keyword.operator.scriptlet.marko"
|
1139
|
-
}
|
1140
|
-
},
|
1141
|
-
"applyEndPatternLast": true
|
1142
|
-
},
|
1143
|
-
"special-js-tags": {
|
1144
|
-
"contentName": "source.js.embedded",
|
1145
|
-
"begin": "^\\s*(?:(class)|(static)|(import))\\s",
|
1146
|
-
"end": "(?=\\n)",
|
1147
|
-
"patterns": [
|
1148
|
-
{
|
1149
|
-
"include": "#js"
|
1150
|
-
}
|
1151
|
-
],
|
1152
|
-
"beginCaptures": {
|
1153
|
-
"1": {
|
1154
|
-
"name": "storage.type.class.js"
|
1155
|
-
},
|
1156
|
-
"2": {
|
1157
|
-
"name": "storage.modifier.marko"
|
1158
|
-
},
|
1159
|
-
"3": {
|
1160
|
-
"name": "storage.modifier.marko"
|
1161
|
-
}
|
1162
|
-
},
|
1163
|
-
"applyEndPatternLast": true
|
1164
|
-
},
|
1165
|
-
"tag-concise": {
|
1166
|
-
"patterns": [
|
1167
|
-
{
|
1168
|
-
"include": "#tag-name-custom-concise"
|
1169
|
-
},
|
1170
|
-
{
|
1171
|
-
"include": "#tag-name-dynamic-concise"
|
1172
|
-
},
|
1173
|
-
{
|
1174
|
-
"include": "#tag-name-concise"
|
1175
|
-
}
|
1176
|
-
]
|
1177
|
-
},
|
1178
|
-
"tag-html": {
|
1179
|
-
"patterns": [
|
1180
|
-
{
|
1181
|
-
"include": "#tag-name-open-tag-only-html"
|
1182
|
-
},
|
1183
|
-
{
|
1184
|
-
"include": "#tag-name-script-html"
|
1185
|
-
},
|
1186
|
-
{
|
1187
|
-
"include": "#tag-name-style-html"
|
1188
|
-
},
|
1189
|
-
{
|
1190
|
-
"include": "#tag-name-shorthand-no-tag-name-html"
|
1191
|
-
},
|
1192
|
-
{
|
1193
|
-
"include": "#tag-name-shorthand-html"
|
1194
|
-
},
|
1195
|
-
{
|
1196
|
-
"include": "#tag-name-custom-html"
|
1197
|
-
},
|
1198
|
-
{
|
1199
|
-
"include": "#tag-name-dynamic-html"
|
1200
|
-
},
|
1201
|
-
{
|
1202
|
-
"include": "#tag-name-html"
|
1203
|
-
}
|
1204
|
-
]
|
1205
|
-
},
|
1206
|
-
"tag-name-concise": {
|
1207
|
-
"begin": "^\\s*(([a-zA-Z0-9_-]+)([.#][a-zA-Z0-9_.#-]*)?)(?=(\\s+(?![=])|$|\\(|\\|))",
|
1208
|
-
"end": "(?=\\n)",
|
1209
|
-
"patterns": [
|
1210
|
-
{
|
1211
|
-
"include": "#tag-params"
|
1212
|
-
},
|
1213
|
-
{
|
1214
|
-
"include": "#html-line-block-concise"
|
1215
|
-
},
|
1216
|
-
{
|
1217
|
-
"include": "#html-line-concise"
|
1218
|
-
},
|
1219
|
-
{
|
1220
|
-
"include": "#attr-stuff-concise"
|
1221
|
-
}
|
1222
|
-
],
|
1223
|
-
"beginCaptures": {
|
1224
|
-
"1": {
|
1225
|
-
"name": "entity.name.tag.concise"
|
1226
|
-
},
|
1227
|
-
"3": {
|
1228
|
-
"name": "entity.other.attribute-name.shorthand"
|
1229
|
-
}
|
1230
|
-
},
|
1231
|
-
"applyEndPatternLast": true
|
1232
|
-
},
|
1233
|
-
"tag-name-custom-concise": {
|
1234
|
-
"begin": "^\\s*(for|if|unless|while|else-if|else|var|assign|macro|invoke|include|await|[a-zA-Z0-9_]+([:])[a-zA-Z0-9_:-]*|[@][a-zA-Z0-9_-]+)(?=(\\s+(?![=])|$|[(]|\\|))",
|
1235
|
-
"end": "(?=\\n)",
|
1236
|
-
"patterns": [
|
1237
|
-
{
|
1238
|
-
"include": "#tag-params"
|
1239
|
-
},
|
1240
|
-
{
|
1241
|
-
"include": "#html-line-concise"
|
1242
|
-
},
|
1243
|
-
{
|
1244
|
-
"include": "#attr-stuff-concise"
|
1245
|
-
}
|
1246
|
-
],
|
1247
|
-
"beginCaptures": {
|
1248
|
-
"1": {
|
1249
|
-
"name": "support.function.marko-tag.concise"
|
1250
|
-
}
|
1251
|
-
},
|
1252
|
-
"applyEndPatternLast": true
|
1253
|
-
},
|
1254
|
-
"tag-name-custom-html": {
|
1255
|
-
"begin": "(\u003c)(for|if|unless|while|else-if|else|var|assign|macro|invoke|include|await|[a-zA-Z0-9_]+[:][a-zA-Z0-9\\-_:]*|[@][a-zA-Z0-9_-]+)(?=(\u003e|/\u003e|\\s|\\(|\\|))",
|
1256
|
-
"end": "(\u003c/)(\\2)?(\u003e)|(/\u003e)",
|
1257
|
-
"patterns": [
|
1258
|
-
{
|
1259
|
-
"include": "#tag-params"
|
1260
|
-
},
|
1261
|
-
{
|
1262
|
-
"include": "#attr-stuff-html"
|
1263
|
-
},
|
1264
|
-
{
|
1265
|
-
"include": "#open-tag-end"
|
1266
|
-
}
|
1267
|
-
],
|
1268
|
-
"beginCaptures": {
|
1269
|
-
"1": {
|
1270
|
-
"name": "punctuation.definition.tag.begin.open.html"
|
1271
|
-
},
|
1272
|
-
"2": {
|
1273
|
-
"name": "support.function.marko-tag.open.html"
|
1274
|
-
}
|
1275
|
-
},
|
1276
|
-
"endCaptures": {
|
1277
|
-
"1": {
|
1278
|
-
"name": "punctuation.definition.tag.begin.close.html"
|
1279
|
-
},
|
1280
|
-
"2": {
|
1281
|
-
"name": "support.function.marko-tag.close.html"
|
1282
|
-
},
|
1283
|
-
"3": {
|
1284
|
-
"name": "punctuation.definition.tag.end.close.html"
|
1285
|
-
},
|
1286
|
-
"4": {
|
1287
|
-
"name": "punctuation.definition.tag.end.self-close.html"
|
1288
|
-
}
|
1289
|
-
}
|
1290
|
-
},
|
1291
|
-
"tag-name-dynamic-concise": {
|
1292
|
-
"begin": "^\\s*(?=\\$\\{.*\\})",
|
1293
|
-
"end": "(?=\\n)",
|
1294
|
-
"patterns": [
|
1295
|
-
{
|
1296
|
-
"include": "#placeholder"
|
1297
|
-
},
|
1298
|
-
{
|
1299
|
-
"include": "#tag-params"
|
1300
|
-
},
|
1301
|
-
{
|
1302
|
-
"include": "#html-line-concise"
|
1303
|
-
},
|
1304
|
-
{
|
1305
|
-
"include": "#attr-stuff-concise"
|
1306
|
-
}
|
1307
|
-
],
|
1308
|
-
"applyEndPatternLast": true
|
1309
|
-
},
|
1310
|
-
"tag-name-dynamic-html": {
|
1311
|
-
"begin": "(\u003c)(?=\\$\\{.*\\})",
|
1312
|
-
"end": "(\u003c/)(\\2)?(\u003e)|(/\u003e)",
|
1313
|
-
"patterns": [
|
1314
|
-
{
|
1315
|
-
"include": "#placeholder"
|
1316
|
-
},
|
1317
|
-
{
|
1318
|
-
"include": "#tag-params"
|
1319
|
-
},
|
1320
|
-
{
|
1321
|
-
"include": "#attr-stuff-html"
|
1322
|
-
},
|
1323
|
-
{
|
1324
|
-
"include": "#open-tag-end"
|
1325
|
-
}
|
1326
|
-
],
|
1327
|
-
"beginCaptures": {
|
1328
|
-
"1": {
|
1329
|
-
"name": "punctuation.definition.tag.begin.open.html"
|
1330
|
-
}
|
1331
|
-
},
|
1332
|
-
"endCaptures": {
|
1333
|
-
"1": {
|
1334
|
-
"name": "punctuation.definition.tag.begin.close.html"
|
1335
|
-
},
|
1336
|
-
"2": {
|
1337
|
-
"name": "support.function.marko-tag.close.html"
|
1338
|
-
},
|
1339
|
-
"3": {
|
1340
|
-
"name": "punctuation.definition.tag.end.close.html"
|
1341
|
-
},
|
1342
|
-
"4": {
|
1343
|
-
"name": "punctuation.definition.tag.end.self-close.html"
|
1344
|
-
}
|
1345
|
-
}
|
1346
|
-
},
|
1347
|
-
"tag-name-html": {
|
1348
|
-
"begin": "(\u003c)([a-zA-Z0-9-]+)(?=(\u003e|/\u003e|\\s|\\(|\\|))",
|
1349
|
-
"end": "(\u003c/)(\\2)?(\u003e)|(/\u003e)",
|
1350
|
-
"patterns": [
|
1351
|
-
{
|
1352
|
-
"include": "#tag-params"
|
1353
|
-
},
|
1354
|
-
{
|
1355
|
-
"include": "#attr-stuff-html"
|
1356
|
-
},
|
1357
|
-
{
|
1358
|
-
"include": "#open-tag-end"
|
1359
|
-
}
|
1360
|
-
],
|
1361
|
-
"beginCaptures": {
|
1362
|
-
"1": {
|
1363
|
-
"name": "punctuation.definition.tag.begin.open.html"
|
1364
|
-
},
|
1365
|
-
"2": {
|
1366
|
-
"name": "entity.name.tag.open.html"
|
1367
|
-
}
|
1368
|
-
},
|
1369
|
-
"endCaptures": {
|
1370
|
-
"1": {
|
1371
|
-
"name": "punctuation.definition.tag.begin.close.html"
|
1372
|
-
},
|
1373
|
-
"2": {
|
1374
|
-
"name": "entity.name.tag.close.html"
|
1375
|
-
},
|
1376
|
-
"3": {
|
1377
|
-
"name": "punctuation.definition.tag.end.close.html"
|
1378
|
-
},
|
1379
|
-
"4": {
|
1380
|
-
"name": "punctuation.definition.tag.end.self-close.html"
|
1381
|
-
}
|
1382
|
-
}
|
1383
|
-
},
|
1384
|
-
"tag-name-open-tag-only-html": {
|
1385
|
-
"begin": "(\u003c)(base|br|col|hr|embed|img|input|keygen|link|meta|param|source|track|wbr|lasso-img)(?=(\u003e|/\u003e|\\s|\\(|\\|))",
|
1386
|
-
"end": "(\u003e|/\u003e)",
|
1387
|
-
"patterns": [
|
1388
|
-
{
|
1389
|
-
"include": "#tag-params"
|
1390
|
-
},
|
1391
|
-
{
|
1392
|
-
"include": "#attr-stuff-html"
|
1393
|
-
}
|
1394
|
-
],
|
1395
|
-
"beginCaptures": {
|
1396
|
-
"1": {
|
1397
|
-
"name": "punctuation.definition.tag.begin.open.html"
|
1398
|
-
},
|
1399
|
-
"2": {
|
1400
|
-
"name": "entity.name.tag.open.html"
|
1401
|
-
}
|
1402
|
-
},
|
1403
|
-
"endCaptures": {
|
1404
|
-
"1": {
|
1405
|
-
"name": "punctuation.definition.tag.end.self-close.html"
|
1406
|
-
}
|
1407
|
-
}
|
1408
|
-
},
|
1409
|
-
"tag-name-script-html": {
|
1410
|
-
"begin": "(\u003c)(script)(?=(\u003e|/\u003e|\\s|\\(|\\|))",
|
1411
|
-
"end": "(\u003c/)(script)?(\u003e)|/\u003e",
|
1412
|
-
"patterns": [
|
1413
|
-
{
|
1414
|
-
"include": "#tag-params"
|
1415
|
-
},
|
1416
|
-
{
|
1417
|
-
"include": "#attr-stuff-html"
|
1418
|
-
},
|
1419
|
-
{
|
1420
|
-
"include": "#open-tag-end-script"
|
1421
|
-
}
|
1422
|
-
],
|
1423
|
-
"beginCaptures": {
|
1424
|
-
"1": {
|
1425
|
-
"name": "punctuation.definition.tag.begin.open.html"
|
1426
|
-
},
|
1427
|
-
"2": {
|
1428
|
-
"name": "entity.name.tag.script.open.html"
|
1429
|
-
}
|
1430
|
-
},
|
1431
|
-
"endCaptures": {
|
1432
|
-
"1": {
|
1433
|
-
"name": "punctuation.definition.tag.begin.close.html"
|
1434
|
-
},
|
1435
|
-
"2": {
|
1436
|
-
"name": "entity.name.tag.script.close.html"
|
1437
|
-
},
|
1438
|
-
"3": {
|
1439
|
-
"name": "punctuation.definition.tag.end.close.html"
|
1440
|
-
},
|
1441
|
-
"4": {
|
1442
|
-
"name": "punctuation.definition.tag.end.self-close.html"
|
1443
|
-
}
|
1444
|
-
}
|
1445
|
-
},
|
1446
|
-
"tag-name-shorthand-html": {
|
1447
|
-
"begin": "(\u003c)(([a-zA-Z0-9_-]+)([#.][a-zA-Z0-9_#.:-]+))(?=(\u003e|/\u003e|\\s+(?![=])|\\(|\\|))",
|
1448
|
-
"end": "(\u003c/)((\\3)(\\4)?)?(\u003e)|(/\u003e)",
|
1449
|
-
"patterns": [
|
1450
|
-
{
|
1451
|
-
"include": "#tag-params"
|
1452
|
-
},
|
1453
|
-
{
|
1454
|
-
"include": "#attr-stuff-html"
|
1455
|
-
},
|
1456
|
-
{
|
1457
|
-
"include": "#open-tag-end"
|
1458
|
-
}
|
1459
|
-
],
|
1460
|
-
"beginCaptures": {
|
1461
|
-
"1": {
|
1462
|
-
"name": "punctuation.definition.tag.begin.open.html"
|
1463
|
-
},
|
1464
|
-
"3": {
|
1465
|
-
"name": "entity.name.tag.open.html"
|
1466
|
-
},
|
1467
|
-
"4": {
|
1468
|
-
"name": "entity.other.attribute-name.shorthand"
|
1469
|
-
}
|
1470
|
-
},
|
1471
|
-
"endCaptures": {
|
1472
|
-
"1": {
|
1473
|
-
"name": "punctuation.definition.tag.begin.close.html"
|
1474
|
-
},
|
1475
|
-
"3": {
|
1476
|
-
"name": "entity.name.tag.close.html"
|
1477
|
-
},
|
1478
|
-
"4": {
|
1479
|
-
"name": "entity.other.attribute-name.shorthand"
|
1480
|
-
},
|
1481
|
-
"5": {
|
1482
|
-
"name": "punctuation.definition.tag.end.close.html"
|
1483
|
-
},
|
1484
|
-
"6": {
|
1485
|
-
"name": "punctuation.definition.tag.end.self-close.html"
|
1486
|
-
}
|
1487
|
-
}
|
1488
|
-
},
|
1489
|
-
"tag-name-shorthand-no-tag-name-html": {
|
1490
|
-
"begin": "(\u003c)([#.][a-zA-Z0-9_#.:-]+)(?=(\u003e|/\u003e|\\s|\\(|\\|))",
|
1491
|
-
"end": "(\u003c/)(\\2|div)(\u003e)|(/\u003e)",
|
1492
|
-
"patterns": [
|
1493
|
-
{
|
1494
|
-
"include": "#tag-params"
|
1495
|
-
},
|
1496
|
-
{
|
1497
|
-
"include": "#attr-stuff-html"
|
1498
|
-
},
|
1499
|
-
{
|
1500
|
-
"include": "#open-tag-end"
|
1501
|
-
}
|
1502
|
-
],
|
1503
|
-
"beginCaptures": {
|
1504
|
-
"1": {
|
1505
|
-
"name": "punctuation.definition.tag.begin.open.html"
|
1506
|
-
},
|
1507
|
-
"2": {
|
1508
|
-
"name": "entity.other.attribute-name.shorthand"
|
1509
|
-
}
|
1510
|
-
},
|
1511
|
-
"endCaptures": {
|
1512
|
-
"1": {
|
1513
|
-
"name": "punctuation.definition.tag.begin.close.html"
|
1514
|
-
},
|
1515
|
-
"2": {
|
1516
|
-
"name": "entity.name.tag.close.html"
|
1517
|
-
},
|
1518
|
-
"3": {
|
1519
|
-
"name": "punctuation.definition.tag.end.close.html"
|
1520
|
-
},
|
1521
|
-
"4": {
|
1522
|
-
"name": "punctuation.definition.tag.end.self-close.html"
|
1523
|
-
}
|
1524
|
-
}
|
1525
|
-
},
|
1526
|
-
"tag-name-style-html": {
|
1527
|
-
"begin": "(\u003c)(style)(?=(\u003e|/\u003e|\\s|\\(|\\|))",
|
1528
|
-
"end": "(\u003c/)(style)?(\u003e)|(/\u003e)",
|
1529
|
-
"patterns": [
|
1530
|
-
{
|
1531
|
-
"include": "#tag-params"
|
1532
|
-
},
|
1533
|
-
{
|
1534
|
-
"include": "#attr-stuff-html"
|
1535
|
-
},
|
1536
|
-
{
|
1537
|
-
"include": "#open-tag-end-style"
|
1538
|
-
}
|
1539
|
-
],
|
1540
|
-
"beginCaptures": {
|
1541
|
-
"1": {
|
1542
|
-
"name": "punctuation.definition.tag.begin.open.html"
|
1543
|
-
},
|
1544
|
-
"2": {
|
1545
|
-
"name": "entity.name.tag.style.open.html"
|
1546
|
-
}
|
1547
|
-
},
|
1548
|
-
"endCaptures": {
|
1549
|
-
"1": {
|
1550
|
-
"name": "punctuation.definition.tag.begin.close.html"
|
1551
|
-
},
|
1552
|
-
"2": {
|
1553
|
-
"name": "entity.name.tag.style.close.html"
|
1554
|
-
},
|
1555
|
-
"3": {
|
1556
|
-
"name": "punctuation.definition.tag.end.close.html"
|
1557
|
-
},
|
1558
|
-
"4": {
|
1559
|
-
"name": "punctuation.definition.tag.end.self-close.html"
|
1560
|
-
}
|
1561
|
-
}
|
1562
|
-
},
|
1563
|
-
"tag-params": {
|
1564
|
-
"begin": "\\|",
|
1565
|
-
"end": "\\|",
|
1566
|
-
"patterns": [
|
1567
|
-
{
|
1568
|
-
"include": "#expression"
|
1569
|
-
}
|
1570
|
-
],
|
1571
|
-
"beginCaptures": {
|
1572
|
-
"0": {
|
1573
|
-
"name": "meta.pipe.js"
|
1574
|
-
}
|
1575
|
-
},
|
1576
|
-
"endCaptures": {
|
1577
|
-
"0": {
|
1578
|
-
"name": "meta.pipe.js"
|
1579
|
-
}
|
1580
|
-
}
|
1581
|
-
},
|
1582
|
-
"tag-script-body-block": {
|
1583
|
-
"begin": "(\\s*-[-]+)",
|
1584
|
-
"end": "(\\1)[.]*$",
|
1585
|
-
"patterns": [
|
1586
|
-
{
|
1587
|
-
"include": "#js"
|
1588
|
-
}
|
1589
|
-
]
|
1590
|
-
},
|
1591
|
-
"tag-script-body-line": {
|
1592
|
-
"begin": "\\s+-[-]+\\s",
|
1593
|
-
"end": "(?=\\n)",
|
1594
|
-
"patterns": [
|
1595
|
-
{
|
1596
|
-
"include": "#js"
|
1597
|
-
}
|
1598
|
-
]
|
1599
|
-
},
|
1600
|
-
"tag-script-concise": {
|
1601
|
-
"begin": "^(\\s*)(script)(?=(\\s|$|\\())",
|
1602
|
-
"end": "^(?!(\\1\\s)|\\s*$)",
|
1603
|
-
"patterns": [
|
1604
|
-
{
|
1605
|
-
"include": "#attr-stuff-concise"
|
1606
|
-
},
|
1607
|
-
{
|
1608
|
-
"include": "#tag-script-body-line"
|
1609
|
-
},
|
1610
|
-
{
|
1611
|
-
"include": "#tag-script-body-block"
|
1612
|
-
}
|
1613
|
-
],
|
1614
|
-
"beginCaptures": {
|
1615
|
-
"2": {
|
1616
|
-
"name": "entity.name.tag.script.marko.concise"
|
1617
|
-
}
|
1618
|
-
},
|
1619
|
-
"applyEndPatternLast": true
|
1620
|
-
},
|
1621
|
-
"tag-style-body-block": {
|
1622
|
-
"begin": "(\\s*[-][-]+)",
|
1623
|
-
"end": "(\\1)[.]*$",
|
1624
|
-
"patterns": [
|
1625
|
-
{
|
1626
|
-
"include": "source.css"
|
1627
|
-
}
|
1628
|
-
]
|
1629
|
-
},
|
1630
|
-
"tag-style-body-line": {
|
1631
|
-
"begin": "\\s[-][-]+\\s",
|
1632
|
-
"end": "(?=\\n)",
|
1633
|
-
"patterns": [
|
1634
|
-
{
|
1635
|
-
"include": "source.css"
|
1636
|
-
}
|
1637
|
-
]
|
1638
|
-
},
|
1639
|
-
"tag-style-concise": {
|
1640
|
-
"name": "meta.tag.other.style",
|
1641
|
-
"begin": "^(\\s*)(style)(?=(\\s|$|\\())",
|
1642
|
-
"end": "^(?!(\\1\\s)|\\s*$)",
|
1643
|
-
"patterns": [
|
1644
|
-
{
|
1645
|
-
"include": "#attr-stuff-concise"
|
1646
|
-
},
|
1647
|
-
{
|
1648
|
-
"include": "#tag-style-body-line"
|
1649
|
-
},
|
1650
|
-
{
|
1651
|
-
"include": "#tag-style-body-block"
|
1652
|
-
}
|
1653
|
-
],
|
1654
|
-
"beginCaptures": {
|
1655
|
-
"2": {
|
1656
|
-
"name": "entity.name.tag.style.marko.concise"
|
1657
|
-
}
|
1658
|
-
},
|
1659
|
-
"applyEndPatternLast": true
|
1660
|
-
}
|
1661
|
-
}
|
1662
|
-
}
|
1
|
+
{"name":"Marko","scopeName":"text.marko","patterns":[{"include":"#scriptlet"},{"include":"#special-js-tags"},{"include":"#js-code-block"},{"include":"#component-style"},{"include":"#comment-concise-line"},{"include":"#comment-concise-block"},{"include":"#comment-html"},{"include":"#comment-html-tag"},{"include":"#html-block-concise"},{"include":"#html-line-concise"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#tag-script-concise"},{"include":"#tag-style-concise"},{"include":"#tag-concise"},{"include":"#tag-html"},{"include":"#placeholder-patterns"}],"repository":{"attr-assignment-concise":{"begin":"(?:\\s+|[,])(?:(key)|([a-zA-Z][a-zA-Z]*)|([_a-zA-Z0-9][a-zA-Z0-9:_.-]*))\\s*([=])\\s*","end":"(?=([,;]|\\s|$))","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"support.function.marko-attribute"},"2":{"name":"entity.other.attribute-name.html"},"3":{"name":"entity.other.attribute-name.html"},"4":{"name":"punctuation.separator.key-value.html"}},"applyEndPatternLast":true},"attr-assignment-html":{"begin":"(?:\\s+|[,])(?:(key)|([a-zA-Z][a-zA-Z]*)|([_a-zA-Z0-9][a-zA-Z0-9:_.-]*))\\s*([=])\\s*","end":"(?=[,;]|\\s|/\u003e|\u003e)","patterns":[{"include":"#expression-no-gt"}],"beginCaptures":{"1":{"name":"support.function.marko-attribute"},"2":{"name":"entity.other.attribute-name.html"},"3":{"name":"entity.other.attribute-name.html"},"4":{"name":"punctuation.separator.key-value.html"}},"applyEndPatternLast":true},"attr-js-block":{"begin":"\\s\\{","end":"\\}","patterns":[{"include":"#js"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.js"}},"applyEndPatternLast":true},"attr-no-value":{"match":"\\s+(?:([a-zA-Z][a-zA-Z]*)|(data-[a-zA-Z0-9-]*)|([a-zA-Z0-9][a-zA-Z0-9:_.-]+))(?=\\s|/\u003e|\u003e|$)","captures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"entity.other.attribute-name.html"},"3":{"name":"entity.other.attribute-name.html"}}},"attr-semicolon":{"begin":"([;])","end":"(?=\\n)","patterns":[{"include":"#comment-line"},{"include":"#comment-block"}],"beginCaptures":{"1":{"name":"punctuation.terminator.statement.js"}},"applyEndPatternLast":true},"attr-special":{"match":"\\s+(else)\\b","captures":{"1":{"name":"support.function.marko-attribute"}}},"attr-spread-concise":{"begin":"(?:\\s+|[,])(\\.\\.\\.)\\s*","end":"(?=([,;]|\\s|$))","patterns":[{"include":"#expression"}],"beginCaptures":{"5":{"name":"punctuation.separator.key-value.html"}},"applyEndPatternLast":true},"attr-spread-html":{"begin":"(?:\\s+|[,])(\\.\\.\\.)\\s*","end":"(?=[,;]|\\s|/\u003e|\u003e)","patterns":[{"include":"#expression-no-gt"}],"beginCaptures":{"1":{"name":"punctuation.separator.key-value.html"}},"applyEndPatternLast":true},"attr-stuff-concise":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"begin":"\\s[\\[]","end":"[\\]]","patterns":[{"include":"#attr-stuff-concise"}]},{"begin":"[,]\\s*$","end":"(?=\\s)"},{"include":"#attr-with-arg"},{"include":"#attr-assignment-concise"},{"include":"#attr-spread-concise"},{"include":"#attr-no-value"},{"include":"#placeholder"},{"include":"#attr-js-block"},{"include":"#expression"},{"include":"#attr-semicolon"}]},"attr-stuff-html":{"patterns":[{"include":"#comment-block"},{"include":"#attr-special"},{"include":"#attr-with-arg"},{"include":"#attr-assignment-html"},{"include":"#attr-spread-html"},{"include":"#attr-no-value"},{"include":"#placeholder"},{"include":"#attr-js-block"},{"include":"#expression-no-gt"},{"include":"#attr-semicolon"}]},"attr-with-arg":{"begin":"\\s+([_a-zA-Z0-9][a-zA-Z0-9:_.-]+)(\\()","end":"\\)","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"support.function.marko-attribute"},"2":{"name":"meta.brace.round.js"}},"endCaptures":{"1":{"name":"meta.brace.round.js"}},"applyEndPatternLast":true},"cdata":{"name":"string.unquoted.cdata.xml","begin":"\u003c!\\[CDATA\\[","end":"]]\u003e","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}}},"comment-block":{"name":"comment.block.js","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}}},"comment-concise-block":{"name":"comment.block.js","begin":"^(\\s*)/\\*","end":"\\*/.*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}}},"comment-concise-line":{"name":"comment.line.double-slash.marko","begin":"^(\\s*)//","end":"$"},"comment-html":{"name":"comment.block.html","begin":"\\s*\u003c!--","end":"--\u003e","captures":{"0":{"name":"punctuation.definition.comment.html"}}},"comment-html-tag":{"name":"comment.block.html","begin":"\\s*\u003chtml-comment\u003e","end":"\u003c/html-comment\u003e","captures":{"0":{"name":"punctuation.definition.comment.html"}}},"comment-line":{"name":"comment.line.double-slash.js","begin":"(//)","end":"(?=\\n)","beginCaptures":{"1":{"name":"punctuation.definition.comment.js"}}},"component-style":{"patterns":[{"include":"#component-style-less"},{"include":"#component-style-css"}]},"component-style-css":{"begin":"^(style)(?:\\.([a-z]+))?\\s+(\\{)","end":"\\}","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"storage.type.marko.css"},"2":{"name":"storage.modifier.marko.less"},"3":{"name":"punctuation.section.scope.begin.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.css"}},"applyEndPatternLast":true},"component-style-less":{"begin":"^(style)\\.(less)\\s+(\\{)","end":"\\}","patterns":[{"include":"source.css.less"}],"beginCaptures":{"1":{"name":"storage.type.marko.less"},"2":{"name":"storage.modifier.marko.less"},"3":{"name":"punctuation.section.scope.begin.less"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.less"}},"applyEndPatternLast":true},"doctype":{"name":"meta.tag.sgml.html","begin":"\u003c!","end":"\u003e","patterns":[{"name":"meta.tag.sgml.doctype.html","begin":"(?i:DOCTYPE)","end":"(?=\u003e)","patterns":[{"name":"string.quoted.double.doctype.identifiers-and-DTDs.html","match":"\"[^\"\u003e]*\""}],"captures":{"1":{"name":"entity.name.tag.doctype.html"}}}],"captures":{"0":{"name":"punctuation.definition.marko-tag.html"}}},"expression":{"patterns":[{"include":"#expression-common"},{"include":"#expression-operator-gt"}]},"expression-common":{"patterns":[{"include":"#expression-string-single"},{"include":"#expression-string-double"},{"include":"#expression-string-template"},{"include":"#expression-group-parens"},{"include":"#expression-group-brackets"},{"include":"#expression-group-braces"},{"include":"#expression-constant"},{"include":"#expression-hex"},{"include":"#expression-numeric"},{"include":"#expression-operator-unary"},{"include":"#expression-operator-binary"},{"include":"#expression-operator-special"},{"match":"[.]([\\p{L}\\p{Nl}$_][\\p{L}\\p{Nl}$\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}\\x{200C}\\x{200D}]*)\\b"},{"match":"\\b(out)[.](global)\\b","captures":{"1":{"name":"entity.name.type"},"2":{"name":"entity.name.type"}}},{"match":"\\b(this)[.](input|state)\\b","captures":{"1":{"name":"variable.language.js"},"2":{"name":"entity.name.type"}}},{"name":"entity.name.type","match":"\\b(input|state|component|JSON|out)\\b"},{"name":"storage.type.var.js","match":"\\b(let|var|const)\\b"},{"match":"\\b(require)[.](resolve)\\b","captures":{"1":{"name":"entity.name.type"},"2":{"name":"entity.name.type"}}},{"name":"entity.name.type","match":"\\b(console|JSON|event|window|setTimeout|setInterval|require)\\b"},{"name":"variable.language.js","match":"\\b(this|arguments)\\b"},{"include":"#expression-special-class"}]},"expression-constant":{"match":"(true)|(false)|(Infinity)|(NaN)|(null)|(undefined)","captures":{"1":{"name":"constant.language.boolean.true.js"},"2":{"name":"constant.language.boolean.false.js"},"3":{"name":"constant.language.infinity.js"},"4":{"name":"constant.language.nan.js"},"5":{"name":"constant.language.null.js"},"6":{"name":"constant.language.undefined.js"}}},"expression-group-braces":{"begin":"\\{","end":"\\}","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.js"}},"applyEndPatternLast":true},"expression-group-brackets":{"begin":"\\[","end":"\\]","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"meta.brace.square.js"}},"endCaptures":{"0":{"name":"meta.brace.square.js"}},"applyEndPatternLast":true},"expression-group-parens":{"begin":"\\(","end":"\\)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"meta.brace.round.js"}},"endCaptures":{"0":{"name":"meta.brace.round.js"}},"applyEndPatternLast":true},"expression-hex":{"name":"constant.numeric.hex.js","match":"\\b0[xX][0-9A-Fa-f]+\\b"},"expression-no-gt":{"patterns":[{"include":"#expression-common"}]},"expression-numeric":{"name":"constant.numeric.js","match":"(?x)\n\t\t\t\t(?\u003c!\\w)\t\t\t\t\t\t\t\t\t# Ensure word boundry\n\t\t\t\t(?\u003e\n\t\t\t\t\t(\n\t\t\t\t\t\t(0|[1-9][0-9]*)(\\.[0-9]*)?\t\t# 0 or 1 or 1. or 1.0\n\t\t\t\t\t | \\.[0-9]+\t\t\t\t\t\t# .1\n\t\t\t\t\t)\n\t\t\t\t\t([eE][+-]?[0-9]+)?\t\t\t\t\t# Exponent\n\t\t\t\t)\n\t\t\t\t(?!\\w)\t\t\t\t\t\t\t\t\t# Ensure word boundry\n\t\t\t"},"expression-operator-binary":{"match":"(\\s+|\\b)(===|==|!==|!=|\u003c=|\u003c\u003c|\u0026\u0026|\\|\\||\u003c|\\+=|-=|\\*=|/=|%=|[=+*/%|\u0026~^:])(\\s+|\\b)","captures":{"2":{"name":"keyword.operator.js"}}},"expression-operator-gt":{"match":"(\\s+|\\b)(\u003e=|\u003e\u003e|\u003e)(\\s+|\\b)","captures":{"2":{"name":"keyword.operator.js"}}},"expression-operator-special":{"name":"keyword","match":"(?\u003c!\\.|\\$)\\b(delete|in|instanceof|new|typeof\\s*|void|with|from|to|step)\\b(?!\\$)"},"expression-operator-unary":{"name":"keyword.operator.js","match":"\\b(!|\\+\\+)\\b|\\b\\-\\-(?\u003c!\\s)"},"expression-special-class":{"name":"support.class.js","match":"(?\u003c!\\.|\\$)\\b(Array|Boolean|Date|Error|EvalError|Function|Number|Object|RangeError|ReferenceError|RegExp|String|SyntaxError|TypeError|URIError)\\b(?!\\$)"},"expression-string-double":{"name":"string.quoted.double.js","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.js","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]?|.)"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.js"}}},"expression-string-escapes":{"patterns":[{"name":"constant.character.escape.js","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]?|.)"}]},"expression-string-single":{"name":"string.quoted.single.js","begin":"'","end":"'","patterns":[{"include":"#expression-string-escapes"},{"include":"#placeholder-patterns"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.js"}}},"expression-string-template":{"name":"string.quoted.other.template.js","begin":"`","end":"`","patterns":[{"include":"#expression-string-escapes"},{"name":"meta.embedded.line.js","contentName":"source.js","begin":"\\$\\{","end":"(\\})","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.js"},"1":{"name":"source.js"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.js"}}},"expression-ternary-if":{"name":"meta.ternary-if.js","begin":"\\?","end":":","patterns":[{"include":"$self"}]},"html-block-concise":{"name":"meta.section.marko-html-block","begin":"(\\s*)(-[-]+)\\n","end":"^(\\1\\2|(?!(\\1)))","patterns":[{"include":"#cdata"},{"include":"#comment-html"},{"include":"#comment-html-tag"},{"include":"#tag-html"},{"include":"#js-code-line"},{"include":"#js-code-block"},{"include":"#placeholder-patterns"}],"captures":{"2":{"name":"keyword.operator.marko"}}},"html-line-block-concise":{"begin":"\\s*([-][-]+)\\n","end":"(?!\\2)|(\\2\\1)","patterns":[{"include":"#cdata"},{"include":"#comment-html"},{"include":"#comment-html-tag"},{"include":"#tag-html"},{"include":"#placeholder-patterns"}],"beginCaptures":{"1":{"name":"keyword.operator.marko.blah"}},"applyEndPatternLast":true},"html-line-concise":{"begin":"\\s*([-][-]+)","end":"(?=\\n)","patterns":[{"include":"#cdata"},{"include":"#comment-html"},{"include":"#comment-html-tag"},{"include":"#tag-html"},{"include":"#placeholder-patterns"}],"beginCaptures":{"1":{"name":"keyword.operator.marko"}}},"js":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"begin":"\\{","end":"\\}","patterns":[{"include":"#js"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.js"}},"applyEndPatternLast":true},{"begin":"\\(","end":"\\)","patterns":[{"include":"#js"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.js"}},"applyEndPatternLast":true},{"begin":"\\[","end":"\\]","patterns":[{"include":"#js"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.js"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.js"}},"applyEndPatternLast":true},{"match":"[.]([\\p{L}\\p{Nl}$_][\\p{L}\\p{Nl}$\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}\\x{200C}\\x{200D}]*)\\b"},{"include":"#expression"},{"name":"keyword.control.js","match":"\\b(break|case|catch|continue|default|do|else|export|finally|for|if|return|switch|throw|try|while|with|import|from|await|async)\\b"},{"name":"storage.type.function.arrow.js","match":"(\\s+|\\b)(\\=\\\u003e)(\\s+|\\b)"},{"name":"punctuation.terminator.statement.js","match":"\\;"},{"name":"storage.type.function.js","match":"\\b(function)\\b"},{"name":"entity.name.type.class.js","match":"\\b(class)\\b"},{"name":"entity.other.inherited-class.js","match":"\\bextends\\b"},{"name":"meta.method.js","begin":"([\\p{L}\\p{Nl}$_][\\p{L}\\p{Nl}$\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}\\x{200C}\\x{200D}]*)\\s*(\\()(?=(?:[^\\(\\)]*)?\\)\\s*\\{)","end":"\\)","beginCaptures":{"1":{"name":"entity.name.function.js"},"2":{"name":"punctuation.definition.parameters.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.END.js"}}}]},"js-code-block":{"contentName":"source.js.embedded","begin":"^\\s*([$])\\s","end":"(?=\\n)","patterns":[{"include":"#js"}],"beginCaptures":{"1":{"name":"storage.modifier.embedded.js"}},"applyEndPatternLast":true},"open-tag-end":{"begin":"(\u003e)","end":"(?=\u003c/)","patterns":[{"include":"#cdata"},{"include":"#comment-html"},{"include":"#comment-html-tag"},{"include":"#scriptlet"},{"include":"#tag-html"},{"include":"#js-code-block"},{"include":"#placeholder-patterns"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.open.html"}}},"open-tag-end-script":{"begin":"(\u003e)","end":"(?=\u003c/)","patterns":[{"include":"#placeholder-patterns"},{"include":"#js"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.open.html"}}},"open-tag-end-style":{"begin":"(\u003e)","end":"(?=\u003c/)","patterns":[{"include":"#placeholder-patterns"},{"include":"source.css"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.open.html"}}},"placeholder":{"name":"meta.section.marko-placeholder","begin":"[$][!]?\\{","end":"\\}","patterns":[{"include":"#expression"}],"captures":{"0":{"name":"keyword.operator.marko"}},"applyEndPatternLast":true},"placeholder-escaped":{"match":"\\\\[$][!]?[{]"},"placeholder-escaped-escaped":{"match":"\\\\\\\\(?=[$][!]?[{])"},"placeholder-patterns":{"patterns":[{"include":"#placeholder-escaped-escaped"},{"include":"#placeholder-escaped"},{"include":"#placeholder"}]},"scriptlet":{"begin":"\u003c%","end":"%\u003e","patterns":[{"include":"#js"}],"captures":{"0":{"name":"keyword.operator.scriptlet.marko"}},"applyEndPatternLast":true},"special-js-tags":{"contentName":"source.js.embedded","begin":"^\\s*(?:(class)|(static)|(import))\\s","end":"(?=\\n)","patterns":[{"include":"#js"}],"beginCaptures":{"1":{"name":"storage.type.class.js"},"2":{"name":"storage.modifier.marko"},"3":{"name":"storage.modifier.marko"}},"applyEndPatternLast":true},"tag-concise":{"patterns":[{"include":"#tag-name-custom-concise"},{"include":"#tag-name-dynamic-concise"},{"include":"#tag-name-concise"}]},"tag-html":{"patterns":[{"include":"#tag-name-open-tag-only-html"},{"include":"#tag-name-script-html"},{"include":"#tag-name-style-html"},{"include":"#tag-name-shorthand-no-tag-name-html"},{"include":"#tag-name-shorthand-html"},{"include":"#tag-name-custom-html"},{"include":"#tag-name-dynamic-html"},{"include":"#tag-name-html"}]},"tag-name-concise":{"begin":"^\\s*(([a-zA-Z0-9_-]+)([.#][a-zA-Z0-9_.#-]*)?)(?=(\\s+(?![=])|$|\\(|\\|))","end":"(?=\\n)","patterns":[{"include":"#tag-params"},{"include":"#html-line-block-concise"},{"include":"#html-line-concise"},{"include":"#attr-stuff-concise"}],"beginCaptures":{"1":{"name":"entity.name.tag.concise"},"3":{"name":"entity.other.attribute-name.shorthand"}},"applyEndPatternLast":true},"tag-name-custom-concise":{"begin":"^\\s*(for|if|unless|while|else-if|else|var|assign|macro|invoke|include|await|[a-zA-Z0-9_]+([:])[a-zA-Z0-9_:-]*|[@][a-zA-Z0-9_-]+)(?=(\\s+(?![=])|$|[(]|\\|))","end":"(?=\\n)","patterns":[{"include":"#tag-params"},{"include":"#html-line-concise"},{"include":"#attr-stuff-concise"}],"beginCaptures":{"1":{"name":"support.function.marko-tag.concise"}},"applyEndPatternLast":true},"tag-name-custom-html":{"begin":"(\u003c)(for|if|unless|while|else-if|else|var|assign|macro|invoke|include|await|[a-zA-Z0-9_]+[:][a-zA-Z0-9\\-_:]*|[@][a-zA-Z0-9_-]+)(?=(\u003e|/\u003e|\\s|\\(|\\|))","end":"(\u003c/)(\\2)?(\u003e)|(/\u003e)","patterns":[{"include":"#tag-params"},{"include":"#attr-stuff-html"},{"include":"#open-tag-end"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.open.html"},"2":{"name":"support.function.marko-tag.open.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.close.html"},"2":{"name":"support.function.marko-tag.close.html"},"3":{"name":"punctuation.definition.tag.end.close.html"},"4":{"name":"punctuation.definition.tag.end.self-close.html"}}},"tag-name-dynamic-concise":{"begin":"^\\s*(?=\\$\\{.*\\})","end":"(?=\\n)","patterns":[{"include":"#placeholder"},{"include":"#tag-params"},{"include":"#html-line-concise"},{"include":"#attr-stuff-concise"}],"applyEndPatternLast":true},"tag-name-dynamic-html":{"begin":"(\u003c)(?=\\$\\{.*\\})","end":"(\u003c/)(\\2)?(\u003e)|(/\u003e)","patterns":[{"include":"#placeholder"},{"include":"#tag-params"},{"include":"#attr-stuff-html"},{"include":"#open-tag-end"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.open.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.close.html"},"2":{"name":"support.function.marko-tag.close.html"},"3":{"name":"punctuation.definition.tag.end.close.html"},"4":{"name":"punctuation.definition.tag.end.self-close.html"}}},"tag-name-html":{"begin":"(\u003c)([a-zA-Z0-9-]+)(?=(\u003e|/\u003e|\\s|\\(|\\|))","end":"(\u003c/)(\\2)?(\u003e)|(/\u003e)","patterns":[{"include":"#tag-params"},{"include":"#attr-stuff-html"},{"include":"#open-tag-end"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.open.html"},"2":{"name":"entity.name.tag.open.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.close.html"},"2":{"name":"entity.name.tag.close.html"},"3":{"name":"punctuation.definition.tag.end.close.html"},"4":{"name":"punctuation.definition.tag.end.self-close.html"}}},"tag-name-open-tag-only-html":{"begin":"(\u003c)(base|br|col|hr|embed|img|input|keygen|link|meta|param|source|track|wbr|lasso-img)(?=(\u003e|/\u003e|\\s|\\(|\\|))","end":"(\u003e|/\u003e)","patterns":[{"include":"#tag-params"},{"include":"#attr-stuff-html"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.open.html"},"2":{"name":"entity.name.tag.open.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.self-close.html"}}},"tag-name-script-html":{"begin":"(\u003c)(script)(?=(\u003e|/\u003e|\\s|\\(|\\|))","end":"(\u003c/)(script)?(\u003e)|/\u003e","patterns":[{"include":"#tag-params"},{"include":"#attr-stuff-html"},{"include":"#open-tag-end-script"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.open.html"},"2":{"name":"entity.name.tag.script.open.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.close.html"},"2":{"name":"entity.name.tag.script.close.html"},"3":{"name":"punctuation.definition.tag.end.close.html"},"4":{"name":"punctuation.definition.tag.end.self-close.html"}}},"tag-name-shorthand-html":{"begin":"(\u003c)(([a-zA-Z0-9_-]+)([#.][a-zA-Z0-9_#.:-]+))(?=(\u003e|/\u003e|\\s+(?![=])|\\(|\\|))","end":"(\u003c/)((\\3)(\\4)?)?(\u003e)|(/\u003e)","patterns":[{"include":"#tag-params"},{"include":"#attr-stuff-html"},{"include":"#open-tag-end"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.open.html"},"3":{"name":"entity.name.tag.open.html"},"4":{"name":"entity.other.attribute-name.shorthand"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.close.html"},"3":{"name":"entity.name.tag.close.html"},"4":{"name":"entity.other.attribute-name.shorthand"},"5":{"name":"punctuation.definition.tag.end.close.html"},"6":{"name":"punctuation.definition.tag.end.self-close.html"}}},"tag-name-shorthand-no-tag-name-html":{"begin":"(\u003c)([#.][a-zA-Z0-9_#.:-]+)(?=(\u003e|/\u003e|\\s|\\(|\\|))","end":"(\u003c/)(\\2|div)(\u003e)|(/\u003e)","patterns":[{"include":"#tag-params"},{"include":"#attr-stuff-html"},{"include":"#open-tag-end"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.open.html"},"2":{"name":"entity.other.attribute-name.shorthand"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.close.html"},"2":{"name":"entity.name.tag.close.html"},"3":{"name":"punctuation.definition.tag.end.close.html"},"4":{"name":"punctuation.definition.tag.end.self-close.html"}}},"tag-name-style-html":{"begin":"(\u003c)(style)(?=(\u003e|/\u003e|\\s|\\(|\\|))","end":"(\u003c/)(style)?(\u003e)|(/\u003e)","patterns":[{"include":"#tag-params"},{"include":"#attr-stuff-html"},{"include":"#open-tag-end-style"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.open.html"},"2":{"name":"entity.name.tag.style.open.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.close.html"},"2":{"name":"entity.name.tag.style.close.html"},"3":{"name":"punctuation.definition.tag.end.close.html"},"4":{"name":"punctuation.definition.tag.end.self-close.html"}}},"tag-params":{"begin":"\\|","end":"\\|","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"meta.pipe.js"}},"endCaptures":{"0":{"name":"meta.pipe.js"}}},"tag-script-body-block":{"begin":"(\\s*-[-]+)","end":"(\\1)[.]*$","patterns":[{"include":"#js"}]},"tag-script-body-line":{"begin":"\\s+-[-]+\\s","end":"(?=\\n)","patterns":[{"include":"#js"}]},"tag-script-concise":{"begin":"^(\\s*)(script)(?=(\\s|$|\\())","end":"^(?!(\\1\\s)|\\s*$)","patterns":[{"include":"#attr-stuff-concise"},{"include":"#tag-script-body-line"},{"include":"#tag-script-body-block"}],"beginCaptures":{"2":{"name":"entity.name.tag.script.marko.concise"}},"applyEndPatternLast":true},"tag-style-body-block":{"begin":"(\\s*[-][-]+)","end":"(\\1)[.]*$","patterns":[{"include":"source.css"}]},"tag-style-body-line":{"begin":"\\s[-][-]+\\s","end":"(?=\\n)","patterns":[{"include":"source.css"}]},"tag-style-concise":{"name":"meta.tag.other.style","begin":"^(\\s*)(style)(?=(\\s|$|\\())","end":"^(?!(\\1\\s)|\\s*$)","patterns":[{"include":"#attr-stuff-concise"},{"include":"#tag-style-body-line"},{"include":"#tag-style-body-block"}],"beginCaptures":{"2":{"name":"entity.name.tag.style.marko.concise"}},"applyEndPatternLast":true}}}
|