github-linguist 7.11.1 → 7.14.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 +1123 -623
- data/ext/linguist/lex.linguist_yy.h +433 -66
- data/ext/linguist/linguist.c +5 -35
- data/ext/linguist/linguist.h +0 -18
- data/ext/linguist/tokenizer.l +83 -65
- 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.lean.codeblock.json +1 -0
- 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.abapcds.json +1 -0
- 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.basic.json +1 -0
- 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.bicep.json +1 -0
- data/grammars/source.blitzmax.json +1 -905
- data/grammars/source.bnf.json +1 -191
- data/grammars/source.boo.json +1 -448
- data/grammars/source.boogie.json +1 -0
- 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.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.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.fontinfo.json +1 -0
- 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.gemfile-lock.json +1 -0
- 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.json +1 -1897
- 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.jsoniq.json +1 -0
- 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.kusto.json +1 -0
- 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.nunjucks.json +1 -0
- 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.record-jar.json +1 -0
- data/grammars/source.red.json +1 -644
- data/grammars/source.redirects.json +1 -0
- 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.posix.json +1 -0
- 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.singularity.json +1 -0
- 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.solution.json +1 -0
- 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.stdbez.json +1 -0
- data/grammars/source.string-template.json +1 -0
- 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.browserslist.json +1 -0
- data/grammars/text.cfml.basic.json +1 -735
- data/grammars/text.checksums.json +1 -0
- data/grammars/text.codeowners.json +1 -0
- 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.nunjucks.json +1 -0
- 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.robots-txt.json +1 -0
- 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/classifier.rb +9 -5
- data/lib/linguist/generated.rb +10 -0
- data/lib/linguist/generic.yml +18 -0
- data/lib/linguist/heuristics.yml +77 -20
- data/lib/linguist/language.rb +7 -17
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +271 -49
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/samples.rb +2 -2
- data/lib/linguist/strategy/extension.rb +13 -5
- data/lib/linguist/strategy/modeline.rb +64 -32
- data/lib/linguist/vendor.yml +1 -1
- metadata +37 -13
- data/ext/linguist/strndup.c +0 -10
- data/grammars/source.cake.json +0 -13
- data/grammars/source.csx.json +0 -13
- data/grammars/source.js.css.json +0 -328
- data/grammars/source.js.jsx.json +0 -2488
- data/grammars/source.perl6fe.json +0 -2769
- data/grammars/source.quoting.perl6fe.json +0 -2369
- data/grammars/source.regexp.perl6fe.json +0 -244
data/grammars/source.dart.json
CHANGED
@@ -1,433 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "Dart",
|
3
|
-
"scopeName": "source.dart",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "meta.preprocessor.script.dart",
|
7
|
-
"match": "^(#!.*)$"
|
8
|
-
},
|
9
|
-
{
|
10
|
-
"name": "meta.declaration.dart",
|
11
|
-
"begin": "^\\w*\\b(library|import|part of|part|export)\\b",
|
12
|
-
"end": ";",
|
13
|
-
"patterns": [
|
14
|
-
{
|
15
|
-
"include": "#strings"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"include": "#comments"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"name": "keyword.other.import.dart",
|
22
|
-
"match": "\\b(as|show|hide)\\b"
|
23
|
-
}
|
24
|
-
],
|
25
|
-
"beginCaptures": {
|
26
|
-
"0": {
|
27
|
-
"name": "keyword.other.import.dart"
|
28
|
-
}
|
29
|
-
},
|
30
|
-
"endCaptures": {
|
31
|
-
"0": {
|
32
|
-
"name": "punctuation.terminator.dart"
|
33
|
-
}
|
34
|
-
}
|
35
|
-
},
|
36
|
-
{
|
37
|
-
"include": "#comments"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"include": "#punctuation"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"include": "#annotations"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"include": "#keywords"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
"include": "#constants-and-special-vars"
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"include": "#strings"
|
53
|
-
}
|
54
|
-
],
|
55
|
-
"repository": {
|
56
|
-
"annotations": {
|
57
|
-
"patterns": [
|
58
|
-
{
|
59
|
-
"name": "storage.type.annotation.dart",
|
60
|
-
"match": "@[a-zA-Z]+"
|
61
|
-
}
|
62
|
-
]
|
63
|
-
},
|
64
|
-
"comments": {
|
65
|
-
"patterns": [
|
66
|
-
{
|
67
|
-
"name": "comment.block.empty.dart",
|
68
|
-
"match": "/\\*\\*/",
|
69
|
-
"captures": {
|
70
|
-
"0": {
|
71
|
-
"name": "punctuation.definition.comment.dart"
|
72
|
-
}
|
73
|
-
}
|
74
|
-
},
|
75
|
-
{
|
76
|
-
"include": "#comments-doc-oldschool"
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"include": "#comments-doc"
|
80
|
-
},
|
81
|
-
{
|
82
|
-
"include": "#comments-inline"
|
83
|
-
}
|
84
|
-
]
|
85
|
-
},
|
86
|
-
"comments-block": {
|
87
|
-
"patterns": [
|
88
|
-
{
|
89
|
-
"name": "comment.block.dart",
|
90
|
-
"begin": "/\\*",
|
91
|
-
"end": "\\*/",
|
92
|
-
"patterns": [
|
93
|
-
{
|
94
|
-
"include": "#comments-block"
|
95
|
-
}
|
96
|
-
]
|
97
|
-
}
|
98
|
-
]
|
99
|
-
},
|
100
|
-
"comments-doc": {
|
101
|
-
"patterns": [
|
102
|
-
{
|
103
|
-
"name": "comment.block.documentation.dart",
|
104
|
-
"begin": "///",
|
105
|
-
"while": "^\\s*///",
|
106
|
-
"patterns": [
|
107
|
-
{
|
108
|
-
"include": "#dartdoc"
|
109
|
-
}
|
110
|
-
]
|
111
|
-
}
|
112
|
-
]
|
113
|
-
},
|
114
|
-
"comments-doc-oldschool": {
|
115
|
-
"patterns": [
|
116
|
-
{
|
117
|
-
"name": "comment.block.documentation.dart",
|
118
|
-
"begin": "/\\*\\*",
|
119
|
-
"end": "\\*/",
|
120
|
-
"patterns": [
|
121
|
-
{
|
122
|
-
"include": "#comments-doc-oldschool"
|
123
|
-
},
|
124
|
-
{
|
125
|
-
"include": "#comments-block"
|
126
|
-
},
|
127
|
-
{
|
128
|
-
"include": "#dartdoc"
|
129
|
-
}
|
130
|
-
]
|
131
|
-
}
|
132
|
-
]
|
133
|
-
},
|
134
|
-
"comments-inline": {
|
135
|
-
"patterns": [
|
136
|
-
{
|
137
|
-
"include": "#comments-block"
|
138
|
-
},
|
139
|
-
{
|
140
|
-
"match": "((//).*)$",
|
141
|
-
"captures": {
|
142
|
-
"1": {
|
143
|
-
"name": "comment.line.double-slash.dart"
|
144
|
-
}
|
145
|
-
}
|
146
|
-
}
|
147
|
-
]
|
148
|
-
},
|
149
|
-
"constants-and-special-vars": {
|
150
|
-
"patterns": [
|
151
|
-
{
|
152
|
-
"name": "constant.language.dart",
|
153
|
-
"match": "(?\u003c!\\$)\\b(true|false|null)\\b(?!\\$)"
|
154
|
-
},
|
155
|
-
{
|
156
|
-
"name": "variable.language.dart",
|
157
|
-
"match": "(?\u003c!\\$)\\b(this|super)\\b(?!\\$)"
|
158
|
-
},
|
159
|
-
{
|
160
|
-
"name": "constant.numeric.dart",
|
161
|
-
"match": "(?\u003c!\\$)\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b(?!\\$)"
|
162
|
-
},
|
163
|
-
{
|
164
|
-
"name": "support.class.dart",
|
165
|
-
"match": "(?\u003c![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*|bool\\b|num\\b|int\\b|double\\b|dynamic\\b)"
|
166
|
-
},
|
167
|
-
{
|
168
|
-
"match": "([_$]*[a-z][a-zA-Z0-9_$]*)(\u003c|\\(|\\s+=\u003e)",
|
169
|
-
"captures": {
|
170
|
-
"1": {
|
171
|
-
"name": "entity.name.function.dart"
|
172
|
-
}
|
173
|
-
}
|
174
|
-
}
|
175
|
-
]
|
176
|
-
},
|
177
|
-
"dartdoc": {
|
178
|
-
"patterns": [
|
179
|
-
{
|
180
|
-
"match": "(\\[.*?\\])",
|
181
|
-
"captures": {
|
182
|
-
"0": {
|
183
|
-
"name": "variable.name.source.dart"
|
184
|
-
}
|
185
|
-
}
|
186
|
-
},
|
187
|
-
{
|
188
|
-
"match": "^ {4,}(?![ \\*]).*",
|
189
|
-
"captures": {
|
190
|
-
"0": {
|
191
|
-
"name": "variable.name.source.dart"
|
192
|
-
}
|
193
|
-
}
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"contentName": "variable.other.source.dart",
|
197
|
-
"begin": "```.*?$",
|
198
|
-
"end": "```"
|
199
|
-
},
|
200
|
-
{
|
201
|
-
"match": "(`.*?`)",
|
202
|
-
"captures": {
|
203
|
-
"0": {
|
204
|
-
"name": "variable.other.source.dart"
|
205
|
-
}
|
206
|
-
}
|
207
|
-
},
|
208
|
-
{
|
209
|
-
"match": "(`.*?`)",
|
210
|
-
"captures": {
|
211
|
-
"0": {
|
212
|
-
"name": "variable.other.source.dart"
|
213
|
-
}
|
214
|
-
}
|
215
|
-
},
|
216
|
-
{
|
217
|
-
"match": "(\\* (( ).*))$",
|
218
|
-
"captures": {
|
219
|
-
"2": {
|
220
|
-
"name": "variable.other.source.dart"
|
221
|
-
}
|
222
|
-
}
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"match": "(\\* .*)$"
|
226
|
-
}
|
227
|
-
]
|
228
|
-
},
|
229
|
-
"keywords": {
|
230
|
-
"patterns": [
|
231
|
-
{
|
232
|
-
"name": "keyword.cast.dart",
|
233
|
-
"match": "(?\u003c!\\$)\\bas\\b(?!\\$)"
|
234
|
-
},
|
235
|
-
{
|
236
|
-
"name": "keyword.control.catch-exception.dart",
|
237
|
-
"match": "(?\u003c!\\$)\\b(try|on|catch|finally|throw|rethrow)\\b(?!\\$)"
|
238
|
-
},
|
239
|
-
{
|
240
|
-
"name": "keyword.control.dart",
|
241
|
-
"match": "(?\u003c!\\$)\\b(break|case|continue|default|do|else|for|if|in|return|switch|while)\\b(?!\\$)"
|
242
|
-
},
|
243
|
-
{
|
244
|
-
"name": "keyword.control.dart",
|
245
|
-
"match": "(?\u003c!\\$)\\b(sync(\\*)?|async(\\*)?|await|yield(\\*)?)\\b(?!\\$)"
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"name": "keyword.control.dart",
|
249
|
-
"match": "(?\u003c!\\$)\\bassert\\b(?!\\$)"
|
250
|
-
},
|
251
|
-
{
|
252
|
-
"name": "keyword.control.new.dart",
|
253
|
-
"match": "(?\u003c!\\$)\\b(new)\\b(?!\\$)"
|
254
|
-
},
|
255
|
-
{
|
256
|
-
"name": "keyword.declaration.dart",
|
257
|
-
"match": "(?\u003c!\\$)\\b(abstract|class|enum|extends|extension|external|factory|implements|get|mixin|native|operator|set|typedef|with|covariant)\\b(?!\\$)"
|
258
|
-
},
|
259
|
-
{
|
260
|
-
"name": "keyword.operator.dart",
|
261
|
-
"match": "(?\u003c!\\$)\\b(is\\!?)\\b(?!\\$)"
|
262
|
-
},
|
263
|
-
{
|
264
|
-
"name": "keyword.operator.ternary.dart",
|
265
|
-
"match": "\\?|:"
|
266
|
-
},
|
267
|
-
{
|
268
|
-
"name": "keyword.operator.bitwise.dart",
|
269
|
-
"match": "(\u003c\u003c|\u003e\u003e\u003e?|~|\\^|\\||\u0026)"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"name": "keyword.operator.assignment.bitwise.dart",
|
273
|
-
"match": "((\u0026|\\^|\\||\u003c\u003c|\u003e\u003e\u003e?)=)"
|
274
|
-
},
|
275
|
-
{
|
276
|
-
"name": "keyword.operator.closure.dart",
|
277
|
-
"match": "(=\u003e)"
|
278
|
-
},
|
279
|
-
{
|
280
|
-
"name": "keyword.operator.comparison.dart",
|
281
|
-
"match": "(==|!=|\u003c=?|\u003e=?)"
|
282
|
-
},
|
283
|
-
{
|
284
|
-
"name": "keyword.operator.assignment.arithmetic.dart",
|
285
|
-
"match": "(([+*/%-]|\\~)=)"
|
286
|
-
},
|
287
|
-
{
|
288
|
-
"name": "keyword.operator.assignment.dart",
|
289
|
-
"match": "(=)"
|
290
|
-
},
|
291
|
-
{
|
292
|
-
"name": "keyword.operator.increment-decrement.dart",
|
293
|
-
"match": "(\\-\\-|\\+\\+)"
|
294
|
-
},
|
295
|
-
{
|
296
|
-
"name": "keyword.operator.arithmetic.dart",
|
297
|
-
"match": "(\\-|\\+|\\*|\\/|\\~\\/|%)"
|
298
|
-
},
|
299
|
-
{
|
300
|
-
"name": "keyword.operator.logical.dart",
|
301
|
-
"match": "(!|\u0026\u0026|\\|\\|)"
|
302
|
-
},
|
303
|
-
{
|
304
|
-
"name": "storage.modifier.dart",
|
305
|
-
"match": "(?\u003c!\\$)\\b(static|final|const|required|late)\\b(?!\\$)"
|
306
|
-
},
|
307
|
-
{
|
308
|
-
"name": "storage.type.primitive.dart",
|
309
|
-
"match": "(?\u003c!\\$)\\b(?:void|var)\\b(?!\\$)"
|
310
|
-
}
|
311
|
-
]
|
312
|
-
},
|
313
|
-
"punctuation": {
|
314
|
-
"patterns": [
|
315
|
-
{
|
316
|
-
"name": "punctuation.comma.dart",
|
317
|
-
"match": ","
|
318
|
-
},
|
319
|
-
{
|
320
|
-
"name": "punctuation.terminator.dart",
|
321
|
-
"match": ";"
|
322
|
-
},
|
323
|
-
{
|
324
|
-
"name": "punctuation.dot.dart",
|
325
|
-
"match": "\\."
|
326
|
-
}
|
327
|
-
]
|
328
|
-
},
|
329
|
-
"string-interp": {
|
330
|
-
"patterns": [
|
331
|
-
{
|
332
|
-
"match": "\\$((\\w+)|\\{([^{}]+)\\})",
|
333
|
-
"captures": {
|
334
|
-
"2": {
|
335
|
-
"name": "variable.parameter.dart"
|
336
|
-
},
|
337
|
-
"3": {
|
338
|
-
"name": "variable.parameter.dart"
|
339
|
-
}
|
340
|
-
}
|
341
|
-
},
|
342
|
-
{
|
343
|
-
"name": "constant.character.escape.dart",
|
344
|
-
"match": "\\\\."
|
345
|
-
}
|
346
|
-
]
|
347
|
-
},
|
348
|
-
"strings": {
|
349
|
-
"patterns": [
|
350
|
-
{
|
351
|
-
"name": "string.interpolated.triple.double.dart",
|
352
|
-
"begin": "(?\u003c!r)\"\"\"",
|
353
|
-
"end": "\"\"\"(?!\")",
|
354
|
-
"patterns": [
|
355
|
-
{
|
356
|
-
"include": "#string-interp"
|
357
|
-
}
|
358
|
-
]
|
359
|
-
},
|
360
|
-
{
|
361
|
-
"name": "string.interpolated.triple.single.dart",
|
362
|
-
"begin": "(?\u003c!r)'''",
|
363
|
-
"end": "'''(?!')",
|
364
|
-
"patterns": [
|
365
|
-
{
|
366
|
-
"include": "#string-interp"
|
367
|
-
}
|
368
|
-
]
|
369
|
-
},
|
370
|
-
{
|
371
|
-
"name": "string.quoted.triple.double.dart",
|
372
|
-
"begin": "r\"\"\"",
|
373
|
-
"end": "\"\"\"(?!\")"
|
374
|
-
},
|
375
|
-
{
|
376
|
-
"name": "string.quoted.triple.single.dart",
|
377
|
-
"begin": "r'''",
|
378
|
-
"end": "'''(?!')"
|
379
|
-
},
|
380
|
-
{
|
381
|
-
"name": "string.interpolated.double.dart",
|
382
|
-
"begin": "(?\u003c!\\|r)\"",
|
383
|
-
"end": "\"",
|
384
|
-
"patterns": [
|
385
|
-
{
|
386
|
-
"name": "invalid.string.newline",
|
387
|
-
"match": "\\n"
|
388
|
-
},
|
389
|
-
{
|
390
|
-
"include": "#string-interp"
|
391
|
-
}
|
392
|
-
]
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"name": "string.quoted.double.dart",
|
396
|
-
"begin": "r\"",
|
397
|
-
"end": "\"",
|
398
|
-
"patterns": [
|
399
|
-
{
|
400
|
-
"name": "invalid.string.newline",
|
401
|
-
"match": "\\n"
|
402
|
-
}
|
403
|
-
]
|
404
|
-
},
|
405
|
-
{
|
406
|
-
"name": "string.interpolated.single.dart",
|
407
|
-
"begin": "(?\u003c!\\|r)'",
|
408
|
-
"end": "'",
|
409
|
-
"patterns": [
|
410
|
-
{
|
411
|
-
"name": "invalid.string.newline",
|
412
|
-
"match": "\\n"
|
413
|
-
},
|
414
|
-
{
|
415
|
-
"include": "#string-interp"
|
416
|
-
}
|
417
|
-
]
|
418
|
-
},
|
419
|
-
{
|
420
|
-
"name": "string.quoted.single.dart",
|
421
|
-
"begin": "r'",
|
422
|
-
"end": "'",
|
423
|
-
"patterns": [
|
424
|
-
{
|
425
|
-
"name": "invalid.string.newline",
|
426
|
-
"match": "\\n"
|
427
|
-
}
|
428
|
-
]
|
429
|
-
}
|
430
|
-
]
|
431
|
-
}
|
432
|
-
}
|
433
|
-
}
|
1
|
+
{"name":"Dart","scopeName":"source.dart","patterns":[{"name":"meta.preprocessor.script.dart","match":"^(#!.*)$"},{"name":"meta.declaration.dart","begin":"^\\w*\\b(library|import|part of|part|export)\\b","end":";","patterns":[{"include":"#strings"},{"include":"#comments"},{"name":"keyword.other.import.dart","match":"\\b(as|show|hide)\\b"}],"beginCaptures":{"0":{"name":"keyword.other.import.dart"}},"endCaptures":{"0":{"name":"punctuation.terminator.dart"}}},{"include":"#comments"},{"include":"#punctuation"},{"include":"#annotations"},{"include":"#keywords"},{"include":"#constants-and-special-vars"},{"include":"#strings"}],"repository":{"annotations":{"patterns":[{"name":"storage.type.annotation.dart","match":"@[a-zA-Z]+"}]},"comments":{"patterns":[{"name":"comment.block.empty.dart","match":"/\\*\\*/","captures":{"0":{"name":"punctuation.definition.comment.dart"}}},{"include":"#comments-doc-oldschool"},{"include":"#comments-doc"},{"include":"#comments-inline"}]},"comments-block":{"patterns":[{"name":"comment.block.dart","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments-block"}]}]},"comments-doc":{"patterns":[{"name":"comment.block.documentation.dart","begin":"///","while":"^\\s*///","patterns":[{"include":"#dartdoc"}]}]},"comments-doc-oldschool":{"patterns":[{"name":"comment.block.documentation.dart","begin":"/\\*\\*","end":"\\*/","patterns":[{"include":"#comments-doc-oldschool"},{"include":"#comments-block"},{"include":"#dartdoc"}]}]},"comments-inline":{"patterns":[{"include":"#comments-block"},{"match":"((//).*)$","captures":{"1":{"name":"comment.line.double-slash.dart"}}}]},"constants-and-special-vars":{"patterns":[{"name":"constant.language.dart","match":"(?\u003c!\\$)\\b(true|false|null)\\b(?!\\$)"},{"name":"variable.language.dart","match":"(?\u003c!\\$)\\b(this|super)\\b(?!\\$)"},{"name":"constant.numeric.dart","match":"(?\u003c!\\$)\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b(?!\\$)"},{"name":"support.class.dart","match":"(?\u003c![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*|bool\\b|num\\b|int\\b|double\\b|dynamic\\b)"},{"match":"([_$]*[a-z][a-zA-Z0-9_$]*)(\u003c|\\(|\\s+=\u003e)","captures":{"1":{"name":"entity.name.function.dart"}}}]},"dartdoc":{"patterns":[{"match":"(\\[.*?\\])","captures":{"0":{"name":"variable.name.source.dart"}}},{"match":"^ {4,}(?![ \\*]).*","captures":{"0":{"name":"variable.name.source.dart"}}},{"contentName":"variable.other.source.dart","begin":"```.*?$","end":"```"},{"match":"(`.*?`)","captures":{"0":{"name":"variable.other.source.dart"}}},{"match":"(`.*?`)","captures":{"0":{"name":"variable.other.source.dart"}}},{"match":"(\\* (( ).*))$","captures":{"2":{"name":"variable.other.source.dart"}}},{"match":"(\\* .*)$"}]},"keywords":{"patterns":[{"name":"keyword.cast.dart","match":"(?\u003c!\\$)\\bas\\b(?!\\$)"},{"name":"keyword.control.catch-exception.dart","match":"(?\u003c!\\$)\\b(try|on|catch|finally|throw|rethrow)\\b(?!\\$)"},{"name":"keyword.control.dart","match":"(?\u003c!\\$)\\b(break|case|continue|default|do|else|for|if|in|return|switch|while)\\b(?!\\$)"},{"name":"keyword.control.dart","match":"(?\u003c!\\$)\\b(sync(\\*)?|async(\\*)?|await|yield(\\*)?)\\b(?!\\$)"},{"name":"keyword.control.dart","match":"(?\u003c!\\$)\\bassert\\b(?!\\$)"},{"name":"keyword.control.new.dart","match":"(?\u003c!\\$)\\b(new)\\b(?!\\$)"},{"name":"keyword.declaration.dart","match":"(?\u003c!\\$)\\b(abstract|class|enum|extends|extension|external|factory|implements|get|mixin|native|operator|set|typedef|with|covariant)\\b(?!\\$)"},{"name":"keyword.operator.dart","match":"(?\u003c!\\$)\\b(is\\!?)\\b(?!\\$)"},{"name":"keyword.operator.ternary.dart","match":"\\?|:"},{"name":"keyword.operator.bitwise.dart","match":"(\u003c\u003c|\u003e\u003e\u003e?|~|\\^|\\||\u0026)"},{"name":"keyword.operator.assignment.bitwise.dart","match":"((\u0026|\\^|\\||\u003c\u003c|\u003e\u003e\u003e?)=)"},{"name":"keyword.operator.closure.dart","match":"(=\u003e)"},{"name":"keyword.operator.comparison.dart","match":"(==|!=|\u003c=?|\u003e=?)"},{"name":"keyword.operator.assignment.arithmetic.dart","match":"(([+*/%-]|\\~)=)"},{"name":"keyword.operator.assignment.dart","match":"(=)"},{"name":"keyword.operator.increment-decrement.dart","match":"(\\-\\-|\\+\\+)"},{"name":"keyword.operator.arithmetic.dart","match":"(\\-|\\+|\\*|\\/|\\~\\/|%)"},{"name":"keyword.operator.logical.dart","match":"(!|\u0026\u0026|\\|\\|)"},{"name":"storage.modifier.dart","match":"(?\u003c!\\$)\\b(static|final|const|required|late)\\b(?!\\$)"},{"name":"storage.type.primitive.dart","match":"(?\u003c!\\$)\\b(?:void|var)\\b(?!\\$)"}]},"punctuation":{"patterns":[{"name":"punctuation.comma.dart","match":","},{"name":"punctuation.terminator.dart","match":";"},{"name":"punctuation.dot.dart","match":"\\."}]},"string-interp":{"patterns":[{"match":"\\$((\\w+)|\\{([^{}]+)\\})","captures":{"2":{"name":"variable.parameter.dart"},"3":{"name":"variable.parameter.dart"}}},{"name":"constant.character.escape.dart","match":"\\\\."}]},"strings":{"patterns":[{"name":"string.interpolated.triple.double.dart","begin":"(?\u003c!r)\"\"\"","end":"\"\"\"(?!\")","patterns":[{"include":"#string-interp"}]},{"name":"string.interpolated.triple.single.dart","begin":"(?\u003c!r)'''","end":"'''(?!')","patterns":[{"include":"#string-interp"}]},{"name":"string.quoted.triple.double.dart","begin":"r\"\"\"","end":"\"\"\"(?!\")"},{"name":"string.quoted.triple.single.dart","begin":"r'''","end":"'''(?!')"},{"name":"string.interpolated.double.dart","begin":"(?\u003c!\\|r)\"","end":"\"","patterns":[{"name":"invalid.string.newline","match":"\\n"},{"include":"#string-interp"}]},{"name":"string.quoted.double.dart","begin":"r\"","end":"\"","patterns":[{"name":"invalid.string.newline","match":"\\n"}]},{"name":"string.interpolated.single.dart","begin":"(?\u003c!\\|r)'","end":"'","patterns":[{"name":"invalid.string.newline","match":"\\n"},{"include":"#string-interp"}]},{"name":"string.quoted.single.dart","begin":"r'","end":"'","patterns":[{"name":"invalid.string.newline","match":"\\n"}]}]}}}
|
@@ -1,1580 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "DataWeave",
|
3
|
-
"scopeName": "source.data-weave",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#comments"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"include": "#directives"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"name": "keyword.operator.body-marker.dw",
|
13
|
-
"match": "(---)"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"include": "#expressions"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"name": "invalid",
|
20
|
-
"match": "([^\\s]+)"
|
21
|
-
}
|
22
|
-
],
|
23
|
-
"repository": {
|
24
|
-
"array-literal": {
|
25
|
-
"name": "meta.array.literal.dw",
|
26
|
-
"begin": "(?\u003c!\\w|}|])(\\[)",
|
27
|
-
"end": "\\]",
|
28
|
-
"patterns": [
|
29
|
-
{
|
30
|
-
"include": "#expressions"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"include": "#punctuation-comma"
|
34
|
-
}
|
35
|
-
],
|
36
|
-
"beginCaptures": {
|
37
|
-
"0": {
|
38
|
-
"name": "meta.brace.square.dw"
|
39
|
-
}
|
40
|
-
},
|
41
|
-
"endCaptures": {
|
42
|
-
"0": {
|
43
|
-
"name": "meta.brace.square.dw"
|
44
|
-
}
|
45
|
-
}
|
46
|
-
},
|
47
|
-
"attr-literal": {
|
48
|
-
"name": "meta.attributes.dw",
|
49
|
-
"begin": "\\@\\(",
|
50
|
-
"end": "\\)",
|
51
|
-
"patterns": [
|
52
|
-
{
|
53
|
-
"include": "#object-member"
|
54
|
-
}
|
55
|
-
],
|
56
|
-
"beginCaptures": {
|
57
|
-
"0": {
|
58
|
-
"name": "keyword.operator.attributes.dw"
|
59
|
-
}
|
60
|
-
},
|
61
|
-
"endCaptures": {
|
62
|
-
"0": {
|
63
|
-
"name": "keyword.operator.attributes.dw"
|
64
|
-
}
|
65
|
-
}
|
66
|
-
},
|
67
|
-
"case-clause": {
|
68
|
-
"name": "case-clause.expr.dw",
|
69
|
-
"begin": "(?\u003c!\\.|\\$)\\b(case|else(?=\\s*-\u003e))\\b(?!\\$|\\.)",
|
70
|
-
"end": "\\-\\\u003e",
|
71
|
-
"patterns": [
|
72
|
-
{
|
73
|
-
"begin": "(?\u003c!\\.|\\$)\\b(is)\\s+",
|
74
|
-
"end": "(?=\\-\\\u003e)",
|
75
|
-
"patterns": [
|
76
|
-
{
|
77
|
-
"include": "#types"
|
78
|
-
}
|
79
|
-
],
|
80
|
-
"beginCaptures": {
|
81
|
-
"1": {
|
82
|
-
"name": "keyword.control.is.dw"
|
83
|
-
}
|
84
|
-
}
|
85
|
-
},
|
86
|
-
{
|
87
|
-
"begin": "(?\u003c!\\.|\\$)\\b(matches)\\b",
|
88
|
-
"end": "(?=\\-\\\u003e)",
|
89
|
-
"patterns": [
|
90
|
-
{
|
91
|
-
"include": "#expressions"
|
92
|
-
}
|
93
|
-
],
|
94
|
-
"beginCaptures": {
|
95
|
-
"1": {
|
96
|
-
"name": "keyword.control.matches.dw"
|
97
|
-
}
|
98
|
-
}
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"begin": "(?\u003c!\\.|\\$)\\b([A-Za-z][a-zA-Z0-9_]*)\\s*:\\s+",
|
102
|
-
"end": "(?=\\-\\\u003e)",
|
103
|
-
"patterns": [
|
104
|
-
{
|
105
|
-
"include": "#expressions"
|
106
|
-
}
|
107
|
-
],
|
108
|
-
"beginCaptures": {
|
109
|
-
"1": {
|
110
|
-
"name": "entity.name.variable.dw"
|
111
|
-
}
|
112
|
-
}
|
113
|
-
},
|
114
|
-
{
|
115
|
-
"begin": "(?\u003c!\\.|\\$)\\b([A-Za-z][a-zA-Z0-9_]*)\\s*(if|matches)\\s+",
|
116
|
-
"end": "(?=\\-\\\u003e)",
|
117
|
-
"patterns": [
|
118
|
-
{
|
119
|
-
"include": "#expressions"
|
120
|
-
}
|
121
|
-
],
|
122
|
-
"beginCaptures": {
|
123
|
-
"1": {
|
124
|
-
"name": "entity.name.variable.dw"
|
125
|
-
},
|
126
|
-
"2": {
|
127
|
-
"name": "keyword.control.if.dw"
|
128
|
-
}
|
129
|
-
}
|
130
|
-
},
|
131
|
-
{
|
132
|
-
"include": "#expressions"
|
133
|
-
}
|
134
|
-
],
|
135
|
-
"beginCaptures": {
|
136
|
-
"1": {
|
137
|
-
"name": "keyword.control.switch.dw"
|
138
|
-
}
|
139
|
-
},
|
140
|
-
"endCaptures": {
|
141
|
-
"0": {
|
142
|
-
"name": "keyword.control.switch.dw"
|
143
|
-
}
|
144
|
-
}
|
145
|
-
},
|
146
|
-
"cast": {
|
147
|
-
"begin": "(?\u003c!\\.|\\$)\\b(as|is)\\s+",
|
148
|
-
"end": "(?=$|^|[;,:})\\]\\s])",
|
149
|
-
"patterns": [
|
150
|
-
{
|
151
|
-
"include": "#types"
|
152
|
-
}
|
153
|
-
],
|
154
|
-
"beginCaptures": {
|
155
|
-
"1": {
|
156
|
-
"name": "keyword.control.as.dw"
|
157
|
-
}
|
158
|
-
}
|
159
|
-
},
|
160
|
-
"comments": {
|
161
|
-
"patterns": [
|
162
|
-
{
|
163
|
-
"name": "comment.block.dw",
|
164
|
-
"begin": "/\\*",
|
165
|
-
"end": "\\*/",
|
166
|
-
"captures": {
|
167
|
-
"0": {
|
168
|
-
"name": "punctuation.definition.comment.dw"
|
169
|
-
}
|
170
|
-
}
|
171
|
-
},
|
172
|
-
{
|
173
|
-
"match": "\\s*((//).*$\\n?)",
|
174
|
-
"captures": {
|
175
|
-
"1": {
|
176
|
-
"name": "comment.line.double-slash.dw"
|
177
|
-
},
|
178
|
-
"2": {
|
179
|
-
"name": "punctuation.definition.comment.dw"
|
180
|
-
}
|
181
|
-
}
|
182
|
-
}
|
183
|
-
]
|
184
|
-
},
|
185
|
-
"constants": {
|
186
|
-
"patterns": [
|
187
|
-
{
|
188
|
-
"name": "constant.language.dw",
|
189
|
-
"match": "\\b(true|false|null)\\b"
|
190
|
-
},
|
191
|
-
{
|
192
|
-
"name": "constant.numeric.dw",
|
193
|
-
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDd]|UL|ul)?\\b"
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"begin": "\\|",
|
197
|
-
"end": "\\|",
|
198
|
-
"patterns": [
|
199
|
-
{
|
200
|
-
"name": "constant.numeric.dw",
|
201
|
-
"match": "([0-9]+)"
|
202
|
-
},
|
203
|
-
{
|
204
|
-
"name": "constant.character.escape.dw",
|
205
|
-
"match": "([+:\\-WYMDTHSPZ\\.])"
|
206
|
-
},
|
207
|
-
{
|
208
|
-
"name": "invalid",
|
209
|
-
"match": "([^\\|])"
|
210
|
-
}
|
211
|
-
],
|
212
|
-
"beginCaptures": {
|
213
|
-
"0": {
|
214
|
-
"name": "constant.numeric.dw"
|
215
|
-
}
|
216
|
-
},
|
217
|
-
"endCaptures": {
|
218
|
-
"0": {
|
219
|
-
"name": "constant.numeric.dw"
|
220
|
-
}
|
221
|
-
}
|
222
|
-
}
|
223
|
-
]
|
224
|
-
},
|
225
|
-
"directives": {
|
226
|
-
"patterns": [
|
227
|
-
{
|
228
|
-
"include": "#dw-directive"
|
229
|
-
},
|
230
|
-
{
|
231
|
-
"include": "#import-directive"
|
232
|
-
},
|
233
|
-
{
|
234
|
-
"include": "#type-directive"
|
235
|
-
},
|
236
|
-
{
|
237
|
-
"include": "#fun-directive"
|
238
|
-
},
|
239
|
-
{
|
240
|
-
"include": "#var-directive"
|
241
|
-
},
|
242
|
-
{
|
243
|
-
"include": "#ns-directive"
|
244
|
-
},
|
245
|
-
{
|
246
|
-
"include": "#input-directive"
|
247
|
-
},
|
248
|
-
{
|
249
|
-
"include": "#output-directive"
|
250
|
-
}
|
251
|
-
]
|
252
|
-
},
|
253
|
-
"do-statement": {
|
254
|
-
"name": "do-statement.expr.dw",
|
255
|
-
"begin": "(?\u003c!\\.|\\$)\\b(do)\\s*(\\{)",
|
256
|
-
"end": "(\\})",
|
257
|
-
"patterns": [
|
258
|
-
{
|
259
|
-
"include": "#comments"
|
260
|
-
},
|
261
|
-
{
|
262
|
-
"include": "#directives"
|
263
|
-
},
|
264
|
-
{
|
265
|
-
"name": "keyword.operator.body-marker.dw",
|
266
|
-
"match": "(---)"
|
267
|
-
},
|
268
|
-
{
|
269
|
-
"include": "#expressions"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"name": "invalid",
|
273
|
-
"match": "([^\\s]+)"
|
274
|
-
}
|
275
|
-
],
|
276
|
-
"beginCaptures": {
|
277
|
-
"1": {
|
278
|
-
"name": "keyword.control.do.dw"
|
279
|
-
},
|
280
|
-
"2": {
|
281
|
-
"name": "punctuation.definitions.begin.dw"
|
282
|
-
}
|
283
|
-
},
|
284
|
-
"endCaptures": {
|
285
|
-
"1": {
|
286
|
-
"name": "punctuation.definitions.end.dw"
|
287
|
-
}
|
288
|
-
}
|
289
|
-
},
|
290
|
-
"dw-directive": {
|
291
|
-
"name": "meta.directive.version.dw",
|
292
|
-
"begin": "(?\u003c!\\.|\\$)(%dw)\\s+([0-9]\\.[0-9])(?!\\$|\\.)",
|
293
|
-
"end": "(?=\\n)",
|
294
|
-
"beginCaptures": {
|
295
|
-
"1": {
|
296
|
-
"name": "comment.dw"
|
297
|
-
},
|
298
|
-
"2": {
|
299
|
-
"name": "comment.dw"
|
300
|
-
}
|
301
|
-
}
|
302
|
-
},
|
303
|
-
"expressions": {
|
304
|
-
"name": "expression",
|
305
|
-
"patterns": [
|
306
|
-
{
|
307
|
-
"name": "keyword.other.dw",
|
308
|
-
"match": "\\b(not)\\s+"
|
309
|
-
},
|
310
|
-
{
|
311
|
-
"include": "#paren-expression"
|
312
|
-
},
|
313
|
-
{
|
314
|
-
"include": "#strings"
|
315
|
-
},
|
316
|
-
{
|
317
|
-
"include": "#constants"
|
318
|
-
},
|
319
|
-
{
|
320
|
-
"include": "#comments"
|
321
|
-
},
|
322
|
-
{
|
323
|
-
"include": "#match-statement"
|
324
|
-
},
|
325
|
-
{
|
326
|
-
"include": "#using-statement"
|
327
|
-
},
|
328
|
-
{
|
329
|
-
"include": "#do-statement"
|
330
|
-
},
|
331
|
-
{
|
332
|
-
"include": "#if-statement"
|
333
|
-
},
|
334
|
-
{
|
335
|
-
"include": "#regex"
|
336
|
-
},
|
337
|
-
{
|
338
|
-
"include": "#keywords"
|
339
|
-
},
|
340
|
-
{
|
341
|
-
"include": "#object-literal"
|
342
|
-
},
|
343
|
-
{
|
344
|
-
"include": "#array-literal"
|
345
|
-
},
|
346
|
-
{
|
347
|
-
"include": "#cast"
|
348
|
-
},
|
349
|
-
{
|
350
|
-
"include": "#object-member"
|
351
|
-
},
|
352
|
-
{
|
353
|
-
"include": "#variable-reference"
|
354
|
-
},
|
355
|
-
{
|
356
|
-
"include": "#selectors"
|
357
|
-
},
|
358
|
-
{
|
359
|
-
"include": "#directives"
|
360
|
-
},
|
361
|
-
{
|
362
|
-
"include": "#infix"
|
363
|
-
}
|
364
|
-
]
|
365
|
-
},
|
366
|
-
"fun-directive": {
|
367
|
-
"name": "meta.directive.fun.dw",
|
368
|
-
"begin": "(\\s*(fun)\\s+([a-zA-Z][a-zA-Z0-9]*))",
|
369
|
-
"end": "(=)",
|
370
|
-
"patterns": [
|
371
|
-
{
|
372
|
-
"begin": "\u003c",
|
373
|
-
"end": "\u003e",
|
374
|
-
"patterns": [
|
375
|
-
{
|
376
|
-
"include": "#generics"
|
377
|
-
}
|
378
|
-
]
|
379
|
-
},
|
380
|
-
{
|
381
|
-
"begin": "\\(",
|
382
|
-
"end": "\\)",
|
383
|
-
"patterns": [
|
384
|
-
{
|
385
|
-
"include": "#parameters"
|
386
|
-
}
|
387
|
-
]
|
388
|
-
},
|
389
|
-
{
|
390
|
-
"begin": "(:)",
|
391
|
-
"end": "(?==)",
|
392
|
-
"patterns": [
|
393
|
-
{
|
394
|
-
"include": "#types"
|
395
|
-
}
|
396
|
-
],
|
397
|
-
"beginCaptures": {
|
398
|
-
"1": {
|
399
|
-
"name": "keyword.operator.declaration.dw"
|
400
|
-
}
|
401
|
-
}
|
402
|
-
}
|
403
|
-
],
|
404
|
-
"beginCaptures": {
|
405
|
-
"2": {
|
406
|
-
"name": "storage.type.dw"
|
407
|
-
},
|
408
|
-
"3": {
|
409
|
-
"name": "entity.name.function.dw"
|
410
|
-
}
|
411
|
-
},
|
412
|
-
"endCaptures": {
|
413
|
-
"0": {
|
414
|
-
"name": "keyword.operator.assignment.dw"
|
415
|
-
}
|
416
|
-
}
|
417
|
-
},
|
418
|
-
"function_call": {
|
419
|
-
"name": "function_call",
|
420
|
-
"begin": "\\s*\\(",
|
421
|
-
"end": "\\s*\\)",
|
422
|
-
"patterns": [
|
423
|
-
{
|
424
|
-
"include": "#punctuation-comma"
|
425
|
-
},
|
426
|
-
{
|
427
|
-
"include": "#expressions"
|
428
|
-
}
|
429
|
-
]
|
430
|
-
},
|
431
|
-
"generics": {
|
432
|
-
"patterns": [
|
433
|
-
{
|
434
|
-
"begin": "(:)",
|
435
|
-
"end": "(?=,|\u003e)",
|
436
|
-
"patterns": [
|
437
|
-
{
|
438
|
-
"include": "#types"
|
439
|
-
}
|
440
|
-
],
|
441
|
-
"beginCaptures": {
|
442
|
-
"1": {
|
443
|
-
"name": "keyword.operator.declaration.dw"
|
444
|
-
}
|
445
|
-
}
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"name": "keyword.operator.extends.dw",
|
449
|
-
"match": "\u003c:"
|
450
|
-
},
|
451
|
-
{
|
452
|
-
"include": "#keywords"
|
453
|
-
},
|
454
|
-
{
|
455
|
-
"name": "entity.name.type.parameter.dw",
|
456
|
-
"match": "\\w+"
|
457
|
-
}
|
458
|
-
]
|
459
|
-
},
|
460
|
-
"if-statement": {
|
461
|
-
"name": "meta.if.dw",
|
462
|
-
"begin": "(?\u003c!\\.|\\$)\\b(if\\s*)\\(",
|
463
|
-
"end": "\\)",
|
464
|
-
"patterns": [
|
465
|
-
{
|
466
|
-
"include": "#expressions"
|
467
|
-
}
|
468
|
-
],
|
469
|
-
"beginCaptures": {
|
470
|
-
"1": {
|
471
|
-
"name": "keyword.control.if.dw"
|
472
|
-
}
|
473
|
-
}
|
474
|
-
},
|
475
|
-
"import-directive": {
|
476
|
-
"name": "meta.directive.import.dw",
|
477
|
-
"begin": "(\\s*(import)\\s+)",
|
478
|
-
"end": "(?=(fun|input|output|type|var|ns|import|%dw|private|---)\\s|$)",
|
479
|
-
"patterns": [
|
480
|
-
{
|
481
|
-
"include": "#comments"
|
482
|
-
},
|
483
|
-
{
|
484
|
-
"match": "(,)"
|
485
|
-
},
|
486
|
-
{
|
487
|
-
"match": "(\\*)"
|
488
|
-
},
|
489
|
-
{
|
490
|
-
"match": "\\b(from)\\s+",
|
491
|
-
"captures": {
|
492
|
-
"1": {
|
493
|
-
"name": "storage.type.dw"
|
494
|
-
}
|
495
|
-
}
|
496
|
-
},
|
497
|
-
{
|
498
|
-
"name": "entity.name.other.dw",
|
499
|
-
"match": "(?:[a-zA-Z][a-zA-Z0-9]*(?:::[a-zA-Z][a-zA-Z0-9]*)*)\n"
|
500
|
-
},
|
501
|
-
{
|
502
|
-
"match": "\\s+(as)\\s+([a-zA-Z][a-zA-Z0-9]*)",
|
503
|
-
"captures": {
|
504
|
-
"1": {
|
505
|
-
"name": "keyword.other.dw"
|
506
|
-
},
|
507
|
-
"2": {
|
508
|
-
"name": "entity.name.other.dw"
|
509
|
-
}
|
510
|
-
}
|
511
|
-
}
|
512
|
-
],
|
513
|
-
"beginCaptures": {
|
514
|
-
"2": {
|
515
|
-
"name": "storage.type.dw"
|
516
|
-
}
|
517
|
-
}
|
518
|
-
},
|
519
|
-
"infix": {
|
520
|
-
"name": "support.function.dw",
|
521
|
-
"match": "(?\u003c!^|,|\\[|\\(|=|\\+|\u003e|\u003c|\\-|\\*|:|\\{|case|is|else|not|as|and|or)(?\u003c=[a-zA-Z0-9_$\\}\\])\"'`|/])\\s*(?!(var|match|case|else|fun|input|output|is|as|default|ns|import|null|false|true|using|do|not|and|or)\\s)(\\+\\+|\\-\\-|[a-zA-Z][a-zA-Z_0-9]*)(\\s+|\\s*(?=[\"'/|{]))"
|
522
|
-
},
|
523
|
-
"input-directive": {
|
524
|
-
"name": "meta.directive.ns.dw",
|
525
|
-
"begin": "(?\u003c!\\.|\\$)\\b(input)\\s+([[:alpha:]][[:alnum:]]*)\\s*",
|
526
|
-
"end": "(?=\\n)",
|
527
|
-
"patterns": [
|
528
|
-
{
|
529
|
-
"begin": "(\\:\\s*)",
|
530
|
-
"end": "(\\s|\\n)",
|
531
|
-
"patterns": [
|
532
|
-
{
|
533
|
-
"include": "#types"
|
534
|
-
}
|
535
|
-
],
|
536
|
-
"beginCaptures": {
|
537
|
-
"1": {
|
538
|
-
"name": "keyword.other.dw"
|
539
|
-
}
|
540
|
-
}
|
541
|
-
},
|
542
|
-
{
|
543
|
-
"name": "string.mime.dw",
|
544
|
-
"match": "([^{\\n\\s])"
|
545
|
-
}
|
546
|
-
],
|
547
|
-
"beginCaptures": {
|
548
|
-
"1": {
|
549
|
-
"name": "storage.type.dw"
|
550
|
-
},
|
551
|
-
"2": {
|
552
|
-
"name": "entity.name.variable.dw"
|
553
|
-
}
|
554
|
-
}
|
555
|
-
},
|
556
|
-
"keywords": {
|
557
|
-
"patterns": [
|
558
|
-
{
|
559
|
-
"name": "keyword.reserved.dw",
|
560
|
-
"match": "\\b(throw|for|yield|enum|private|async)\\b"
|
561
|
-
},
|
562
|
-
{
|
563
|
-
"name": "invalid",
|
564
|
-
"match": "\\b(not)\\b"
|
565
|
-
},
|
566
|
-
{
|
567
|
-
"name": "keyword.control.dw",
|
568
|
-
"match": "\\b(if|else|while|for|do|using|unless|default)\\b"
|
569
|
-
},
|
570
|
-
{
|
571
|
-
"name": "keyword.operator.comparison.dw",
|
572
|
-
"match": "(~=|==|!=|!=|\u003c=|\u003e=|\u003c|\u003e)"
|
573
|
-
},
|
574
|
-
{
|
575
|
-
"name": "keyword.operator.assignment.dw",
|
576
|
-
"match": "(=)"
|
577
|
-
},
|
578
|
-
{
|
579
|
-
"name": "keyword.operator.declaration.dw",
|
580
|
-
"match": "(:)"
|
581
|
-
},
|
582
|
-
{
|
583
|
-
"name": "keyword.operator.arithmetic.dw",
|
584
|
-
"match": "(\\-|\\+|\\*|\\/)"
|
585
|
-
},
|
586
|
-
{
|
587
|
-
"name": "keyword.other.dw",
|
588
|
-
"match": "\\b(and|or)\\b"
|
589
|
-
}
|
590
|
-
]
|
591
|
-
},
|
592
|
-
"match-block": {
|
593
|
-
"name": "match-block.expr.dw",
|
594
|
-
"begin": "\\{",
|
595
|
-
"end": "(?=\\})",
|
596
|
-
"patterns": [
|
597
|
-
{
|
598
|
-
"include": "#case-clause"
|
599
|
-
},
|
600
|
-
{
|
601
|
-
"include": "#expressions"
|
602
|
-
}
|
603
|
-
],
|
604
|
-
"beginCaptures": {
|
605
|
-
"0": {
|
606
|
-
"name": "punctuation.definition.block.dw"
|
607
|
-
}
|
608
|
-
}
|
609
|
-
},
|
610
|
-
"match-statement": {
|
611
|
-
"name": "match-statement.expr.dw",
|
612
|
-
"begin": "(?\u003c!\\.|\\$)\\b(match)\\s*(?=\\{)",
|
613
|
-
"end": "\\}",
|
614
|
-
"patterns": [
|
615
|
-
{
|
616
|
-
"include": "#match-block"
|
617
|
-
}
|
618
|
-
],
|
619
|
-
"beginCaptures": {
|
620
|
-
"1": {
|
621
|
-
"name": "keyword.control.switch.dw"
|
622
|
-
}
|
623
|
-
},
|
624
|
-
"endCaptures": {
|
625
|
-
"1": {
|
626
|
-
"name": "punctuation.definition.block.dw"
|
627
|
-
}
|
628
|
-
}
|
629
|
-
},
|
630
|
-
"ns-directive": {
|
631
|
-
"name": "meta.directive.ns.dw",
|
632
|
-
"begin": "(?\u003c!\\.|\\$)\\b(ns)\\s+([A-Za-z][a-zA-Z0-9_]*)\\s+([^\\n]*)(?!\\$|\\.)",
|
633
|
-
"end": "(?=\\n)",
|
634
|
-
"beginCaptures": {
|
635
|
-
"1": {
|
636
|
-
"name": "storage.type.dw"
|
637
|
-
},
|
638
|
-
"2": {
|
639
|
-
"name": "entity.name.namespace.dw"
|
640
|
-
},
|
641
|
-
"3": {
|
642
|
-
"name": "meta.definition.ns.dw string.url.dw"
|
643
|
-
}
|
644
|
-
}
|
645
|
-
},
|
646
|
-
"object-key": {
|
647
|
-
"patterns": [
|
648
|
-
{
|
649
|
-
"name": "meta.object.member.dw meta.object-literal.namespace.dw",
|
650
|
-
"match": "\\b([[:alpha:]][_[:alnum:]]+#)",
|
651
|
-
"captures": {
|
652
|
-
"0": {
|
653
|
-
"name": "variable.language.dw"
|
654
|
-
}
|
655
|
-
}
|
656
|
-
},
|
657
|
-
{
|
658
|
-
"name": "meta.object.member.dw meta.object-literal.key.dw",
|
659
|
-
"begin": "(?=[\\'\\\"\\`])",
|
660
|
-
"end": "(?=@\\(|:)",
|
661
|
-
"patterns": [
|
662
|
-
{
|
663
|
-
"include": "#strings"
|
664
|
-
}
|
665
|
-
]
|
666
|
-
},
|
667
|
-
{
|
668
|
-
"name": "meta.object.member.dw",
|
669
|
-
"match": "(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(?=:|@\\()",
|
670
|
-
"end": "(?=,|\\}|\\))",
|
671
|
-
"captures": {
|
672
|
-
"1": {
|
673
|
-
"name": "meta.object-literal.key.dw"
|
674
|
-
}
|
675
|
-
}
|
676
|
-
}
|
677
|
-
]
|
678
|
-
},
|
679
|
-
"object-literal": {
|
680
|
-
"name": "meta.objectliteral.dw",
|
681
|
-
"begin": "\\{",
|
682
|
-
"end": "\\}",
|
683
|
-
"patterns": [
|
684
|
-
{
|
685
|
-
"include": "#object-member"
|
686
|
-
}
|
687
|
-
],
|
688
|
-
"beginCaptures": {
|
689
|
-
"0": {
|
690
|
-
"name": "punctuation.definition.block.dw"
|
691
|
-
}
|
692
|
-
},
|
693
|
-
"endCaptures": {
|
694
|
-
"0": {
|
695
|
-
"name": "punctuation.definition.block.dw"
|
696
|
-
}
|
697
|
-
}
|
698
|
-
},
|
699
|
-
"object-member": {
|
700
|
-
"patterns": [
|
701
|
-
{
|
702
|
-
"include": "#comments"
|
703
|
-
},
|
704
|
-
{
|
705
|
-
"include": "#paren-expression"
|
706
|
-
},
|
707
|
-
{
|
708
|
-
"begin": "\\s+if\\b",
|
709
|
-
"end": "(?=,|})",
|
710
|
-
"patterns": [
|
711
|
-
{
|
712
|
-
"include": "#expressions"
|
713
|
-
}
|
714
|
-
],
|
715
|
-
"beginCaptures": {
|
716
|
-
"0": {
|
717
|
-
"name": "keyword.control.dw"
|
718
|
-
}
|
719
|
-
}
|
720
|
-
},
|
721
|
-
{
|
722
|
-
"include": "#object-key"
|
723
|
-
},
|
724
|
-
{
|
725
|
-
"include": "#attr-literal"
|
726
|
-
},
|
727
|
-
{
|
728
|
-
"include": "#object-member-body"
|
729
|
-
},
|
730
|
-
{
|
731
|
-
"include": "#punctuation-comma"
|
732
|
-
}
|
733
|
-
]
|
734
|
-
},
|
735
|
-
"object-member-body": {
|
736
|
-
"name": "meta.object.member.dw",
|
737
|
-
"begin": ":",
|
738
|
-
"end": "(?=,|\\}|\\))",
|
739
|
-
"patterns": [
|
740
|
-
{
|
741
|
-
"include": "#expressions"
|
742
|
-
}
|
743
|
-
],
|
744
|
-
"beginCaptures": {
|
745
|
-
"0": {
|
746
|
-
"name": "meta.object-literal.key.dw punctuation.separator.key-value.dw"
|
747
|
-
}
|
748
|
-
}
|
749
|
-
},
|
750
|
-
"object-member-type": {
|
751
|
-
"patterns": [
|
752
|
-
{
|
753
|
-
"include": "#comments"
|
754
|
-
},
|
755
|
-
{
|
756
|
-
"name": "variable.language.dw",
|
757
|
-
"match": "_"
|
758
|
-
},
|
759
|
-
{
|
760
|
-
"name": "variable.language.dw",
|
761
|
-
"match": "([a-zA-Z0-9]+#)"
|
762
|
-
},
|
763
|
-
{
|
764
|
-
"name": "entity.name.type.dw",
|
765
|
-
"match": "\\(\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*\\)"
|
766
|
-
},
|
767
|
-
{
|
768
|
-
"name": "meta.object.member.dw",
|
769
|
-
"match": "([a-zA-Z][a-zA-Z0-9]*)"
|
770
|
-
},
|
771
|
-
{
|
772
|
-
"include": "#strings"
|
773
|
-
},
|
774
|
-
{
|
775
|
-
"name": "keyword.operator.optional.dw",
|
776
|
-
"match": "\\?"
|
777
|
-
},
|
778
|
-
{
|
779
|
-
"name": "keyword.operator.optional.dw",
|
780
|
-
"match": "\\*"
|
781
|
-
},
|
782
|
-
{
|
783
|
-
"begin": "(\\@\\()",
|
784
|
-
"end": "(\\))",
|
785
|
-
"patterns": [
|
786
|
-
{
|
787
|
-
"include": "#punctuation-comma"
|
788
|
-
},
|
789
|
-
{
|
790
|
-
"include": "#object-member-type"
|
791
|
-
}
|
792
|
-
],
|
793
|
-
"beginCaptures": {
|
794
|
-
"1": {
|
795
|
-
"name": "keyword.operator.attributes.dw"
|
796
|
-
}
|
797
|
-
},
|
798
|
-
"endCaptures": {
|
799
|
-
"1": {
|
800
|
-
"name": "keyword.operator.attributes.dw"
|
801
|
-
}
|
802
|
-
}
|
803
|
-
},
|
804
|
-
{
|
805
|
-
"begin": "(:)",
|
806
|
-
"end": "(?=,|}|\\)|\\|}|\\-}|\\|\\-})",
|
807
|
-
"patterns": [
|
808
|
-
{
|
809
|
-
"include": "#types"
|
810
|
-
}
|
811
|
-
],
|
812
|
-
"beginCaptures": {
|
813
|
-
"1": {
|
814
|
-
"name": "keyword.operator.declaration.dw"
|
815
|
-
}
|
816
|
-
}
|
817
|
-
},
|
818
|
-
{
|
819
|
-
"name": "invalid",
|
820
|
-
"match": "([^\\s])"
|
821
|
-
}
|
822
|
-
]
|
823
|
-
},
|
824
|
-
"output-directive": {
|
825
|
-
"name": "meta.directive.ns.dw",
|
826
|
-
"begin": "(?\u003c!\\.|\\$)\\b(output)\\s+([^\\n{\\s]*)(?!\\$|\\.)",
|
827
|
-
"end": "(?=\\n)",
|
828
|
-
"beginCaptures": {
|
829
|
-
"1": {
|
830
|
-
"name": "storage.type.dw"
|
831
|
-
},
|
832
|
-
"2": {
|
833
|
-
"name": "string.other.dw"
|
834
|
-
}
|
835
|
-
}
|
836
|
-
},
|
837
|
-
"parameters": {
|
838
|
-
"patterns": [
|
839
|
-
{
|
840
|
-
"begin": "(:)",
|
841
|
-
"end": "(?=,|\\)|=)",
|
842
|
-
"patterns": [
|
843
|
-
{
|
844
|
-
"include": "#types"
|
845
|
-
}
|
846
|
-
],
|
847
|
-
"beginCaptures": {
|
848
|
-
"1": {
|
849
|
-
"name": "keyword.operator.declaration.dw"
|
850
|
-
}
|
851
|
-
}
|
852
|
-
},
|
853
|
-
{
|
854
|
-
"begin": "(=)",
|
855
|
-
"end": "(?=,|\\))",
|
856
|
-
"patterns": [
|
857
|
-
{
|
858
|
-
"include": "#expressions"
|
859
|
-
}
|
860
|
-
],
|
861
|
-
"beginCaptures": {
|
862
|
-
"1": {
|
863
|
-
"name": "keyword.operator.declaration.dw"
|
864
|
-
}
|
865
|
-
}
|
866
|
-
},
|
867
|
-
{
|
868
|
-
"name": "variable.parameter.dw",
|
869
|
-
"match": "\\w+"
|
870
|
-
}
|
871
|
-
]
|
872
|
-
},
|
873
|
-
"paren-expression": {
|
874
|
-
"begin": "(\\()",
|
875
|
-
"end": "(\\))",
|
876
|
-
"patterns": [
|
877
|
-
{
|
878
|
-
"include": "#expressions"
|
879
|
-
}
|
880
|
-
],
|
881
|
-
"beginCaptures": {
|
882
|
-
"1": {
|
883
|
-
"name": "punctuation.expression.begin.dw"
|
884
|
-
}
|
885
|
-
},
|
886
|
-
"endCaptures": {
|
887
|
-
"1": {
|
888
|
-
"name": "punctuation.expression.end.dw"
|
889
|
-
}
|
890
|
-
}
|
891
|
-
},
|
892
|
-
"punctuation-comma": {
|
893
|
-
"name": "punctuation.separator.comma.dw",
|
894
|
-
"match": ","
|
895
|
-
},
|
896
|
-
"qstring-backtick": {
|
897
|
-
"begin": "`",
|
898
|
-
"end": "`",
|
899
|
-
"patterns": [
|
900
|
-
{
|
901
|
-
"include": "#template-substitution-element"
|
902
|
-
},
|
903
|
-
{
|
904
|
-
"include": "#template-dollar"
|
905
|
-
},
|
906
|
-
{
|
907
|
-
"include": "#string-character-escape"
|
908
|
-
},
|
909
|
-
{
|
910
|
-
"name": "string.template.dw",
|
911
|
-
"match": "([^`])"
|
912
|
-
}
|
913
|
-
],
|
914
|
-
"beginCaptures": {
|
915
|
-
"0": {
|
916
|
-
"name": "string.quoted.double.dw punctuation.definition.string.begin.dw"
|
917
|
-
}
|
918
|
-
},
|
919
|
-
"endCaptures": {
|
920
|
-
"0": {
|
921
|
-
"name": "string.quoted.double.dw punctuation.definition.string.end.dw"
|
922
|
-
}
|
923
|
-
}
|
924
|
-
},
|
925
|
-
"qstring-double": {
|
926
|
-
"begin": "\"",
|
927
|
-
"end": "\"",
|
928
|
-
"patterns": [
|
929
|
-
{
|
930
|
-
"include": "#template-substitution-element"
|
931
|
-
},
|
932
|
-
{
|
933
|
-
"include": "#template-dollar"
|
934
|
-
},
|
935
|
-
{
|
936
|
-
"include": "#string-character-escape"
|
937
|
-
},
|
938
|
-
{
|
939
|
-
"name": "string.quoted.double.dw",
|
940
|
-
"match": "([^\"])"
|
941
|
-
}
|
942
|
-
],
|
943
|
-
"beginCaptures": {
|
944
|
-
"0": {
|
945
|
-
"name": "string.quoted.double.dw punctuation.definition.string.begin.dw"
|
946
|
-
}
|
947
|
-
},
|
948
|
-
"endCaptures": {
|
949
|
-
"0": {
|
950
|
-
"name": "string.quoted.double.dw punctuation.definition.string.end.dw"
|
951
|
-
}
|
952
|
-
}
|
953
|
-
},
|
954
|
-
"qstring-single": {
|
955
|
-
"begin": "'",
|
956
|
-
"end": "(\\')|((?:[^\\\\\\n])$)",
|
957
|
-
"patterns": [
|
958
|
-
{
|
959
|
-
"include": "#template-substitution-element"
|
960
|
-
},
|
961
|
-
{
|
962
|
-
"include": "#template-dollar"
|
963
|
-
},
|
964
|
-
{
|
965
|
-
"include": "#string-character-escape"
|
966
|
-
},
|
967
|
-
{
|
968
|
-
"name": "string.quoted.single.dw",
|
969
|
-
"match": "([^'])"
|
970
|
-
}
|
971
|
-
],
|
972
|
-
"beginCaptures": {
|
973
|
-
"0": {
|
974
|
-
"name": "string.quoted.single.dw punctuation.definition.string.begin.dw"
|
975
|
-
}
|
976
|
-
},
|
977
|
-
"endCaptures": {
|
978
|
-
"1": {
|
979
|
-
"name": "string.quoted.single.dw punctuation.definition.string.end.dw"
|
980
|
-
},
|
981
|
-
"2": {
|
982
|
-
"name": "invalid.illegal.newline.dw"
|
983
|
-
}
|
984
|
-
}
|
985
|
-
},
|
986
|
-
"regex": {
|
987
|
-
"patterns": [
|
988
|
-
{
|
989
|
-
"name": "string.regexp.dw",
|
990
|
-
"begin": "(?\u003c=[=(:,\\[?+!]|replace|match|scan|matches|contains|---|case|-\u003e|and|or|\\*\\/)\\s*(\\/)(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+\\/(?![\\/*])(?!\\s*[a-zA-Z0-9_$]))",
|
991
|
-
"end": "(/)",
|
992
|
-
"patterns": [
|
993
|
-
{
|
994
|
-
"include": "#regexp"
|
995
|
-
}
|
996
|
-
],
|
997
|
-
"beginCaptures": {
|
998
|
-
"1": {
|
999
|
-
"name": "punctuation.definition.string.begin.dw"
|
1000
|
-
}
|
1001
|
-
},
|
1002
|
-
"endCaptures": {
|
1003
|
-
"1": {
|
1004
|
-
"name": "punctuation.definition.string.end.dw"
|
1005
|
-
}
|
1006
|
-
}
|
1007
|
-
},
|
1008
|
-
{
|
1009
|
-
"name": "string.regexp.dw",
|
1010
|
-
"begin": "(?\u003c![_$[:alnum:])])\\/(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+\\/(?![\\/*])(?!\\s*[a-zA-Z0-9_$]))",
|
1011
|
-
"end": "(/)",
|
1012
|
-
"patterns": [
|
1013
|
-
{
|
1014
|
-
"include": "#regexp"
|
1015
|
-
}
|
1016
|
-
],
|
1017
|
-
"beginCaptures": {
|
1018
|
-
"0": {
|
1019
|
-
"name": "punctuation.definition.string.begin.dw"
|
1020
|
-
}
|
1021
|
-
},
|
1022
|
-
"endCaptures": {
|
1023
|
-
"1": {
|
1024
|
-
"name": "punctuation.definition.string.end.dw"
|
1025
|
-
}
|
1026
|
-
}
|
1027
|
-
}
|
1028
|
-
]
|
1029
|
-
},
|
1030
|
-
"regex-character-class": {
|
1031
|
-
"patterns": [
|
1032
|
-
{
|
1033
|
-
"name": "constant.other.character-class.regexp",
|
1034
|
-
"match": "\\\\[wWsSdDtrnvf]|\\."
|
1035
|
-
},
|
1036
|
-
{
|
1037
|
-
"name": "constant.character.numeric.regexp",
|
1038
|
-
"match": "\\\\([0-7]{3}|x[[:xdigit:]][[:xdigit:]]|u[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]])"
|
1039
|
-
},
|
1040
|
-
{
|
1041
|
-
"name": "constant.character.control.regexp",
|
1042
|
-
"match": "\\\\c[A-Z]"
|
1043
|
-
},
|
1044
|
-
{
|
1045
|
-
"name": "constant.character.escape.backslash.regexp",
|
1046
|
-
"match": "\\\\."
|
1047
|
-
}
|
1048
|
-
]
|
1049
|
-
},
|
1050
|
-
"regexp": {
|
1051
|
-
"patterns": [
|
1052
|
-
{
|
1053
|
-
"name": "keyword.control.anchor.regexp",
|
1054
|
-
"match": "\\\\[bB]|\\^|\\$"
|
1055
|
-
},
|
1056
|
-
{
|
1057
|
-
"name": "keyword.other.back-reference.regexp",
|
1058
|
-
"match": "\\\\[1-9]\\d*"
|
1059
|
-
},
|
1060
|
-
{
|
1061
|
-
"name": "keyword.operator.quantifier.regexp",
|
1062
|
-
"match": "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??"
|
1063
|
-
},
|
1064
|
-
{
|
1065
|
-
"name": "keyword.operator.or.regexp",
|
1066
|
-
"match": "\\|"
|
1067
|
-
},
|
1068
|
-
{
|
1069
|
-
"name": "meta.group.assertion.regexp",
|
1070
|
-
"begin": "(\\()((\\?=)|(\\?!))",
|
1071
|
-
"end": "(\\))",
|
1072
|
-
"patterns": [
|
1073
|
-
{
|
1074
|
-
"include": "#regexp"
|
1075
|
-
}
|
1076
|
-
],
|
1077
|
-
"beginCaptures": {
|
1078
|
-
"1": {
|
1079
|
-
"name": "punctuation.definition.group.regexp"
|
1080
|
-
},
|
1081
|
-
"2": {
|
1082
|
-
"name": "punctuation.definition.group.assertion.regexp"
|
1083
|
-
},
|
1084
|
-
"3": {
|
1085
|
-
"name": "meta.assertion.look-ahead.regexp"
|
1086
|
-
},
|
1087
|
-
"4": {
|
1088
|
-
"name": "meta.assertion.negative-look-ahead.regexp"
|
1089
|
-
}
|
1090
|
-
},
|
1091
|
-
"endCaptures": {
|
1092
|
-
"1": {
|
1093
|
-
"name": "punctuation.definition.group.regexp"
|
1094
|
-
}
|
1095
|
-
}
|
1096
|
-
},
|
1097
|
-
{
|
1098
|
-
"name": "meta.group.regexp",
|
1099
|
-
"begin": "\\((\\?:)?",
|
1100
|
-
"end": "\\)",
|
1101
|
-
"patterns": [
|
1102
|
-
{
|
1103
|
-
"include": "#regexp"
|
1104
|
-
}
|
1105
|
-
],
|
1106
|
-
"beginCaptures": {
|
1107
|
-
"0": {
|
1108
|
-
"name": "punctuation.definition.group.regexp"
|
1109
|
-
},
|
1110
|
-
"1": {
|
1111
|
-
"name": "punctuation.definition.group.capture.regexp"
|
1112
|
-
}
|
1113
|
-
},
|
1114
|
-
"endCaptures": {
|
1115
|
-
"0": {
|
1116
|
-
"name": "punctuation.definition.group.regexp"
|
1117
|
-
}
|
1118
|
-
}
|
1119
|
-
},
|
1120
|
-
{
|
1121
|
-
"name": "constant.other.character-class.set.regexp",
|
1122
|
-
"begin": "(\\[)(\\^)?",
|
1123
|
-
"end": "(\\])",
|
1124
|
-
"patterns": [
|
1125
|
-
{
|
1126
|
-
"name": "constant.other.character-class.range.regexp",
|
1127
|
-
"match": "(?:.|(\\\\(?:[0-7]{3}|x[[:xdigit:]][[:xdigit:]]|u[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x[[:xdigit:]][[:xdigit:]]|u[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]))|(\\\\c[A-Z])|(\\\\.))",
|
1128
|
-
"captures": {
|
1129
|
-
"1": {
|
1130
|
-
"name": "constant.character.numeric.regexp"
|
1131
|
-
},
|
1132
|
-
"2": {
|
1133
|
-
"name": "constant.character.control.regexp"
|
1134
|
-
},
|
1135
|
-
"3": {
|
1136
|
-
"name": "constant.character.escape.backslash.regexp"
|
1137
|
-
},
|
1138
|
-
"4": {
|
1139
|
-
"name": "constant.character.numeric.regexp"
|
1140
|
-
},
|
1141
|
-
"5": {
|
1142
|
-
"name": "constant.character.control.regexp"
|
1143
|
-
},
|
1144
|
-
"6": {
|
1145
|
-
"name": "constant.character.escape.backslash.regexp"
|
1146
|
-
}
|
1147
|
-
}
|
1148
|
-
},
|
1149
|
-
{
|
1150
|
-
"include": "#regex-character-class"
|
1151
|
-
}
|
1152
|
-
],
|
1153
|
-
"beginCaptures": {
|
1154
|
-
"1": {
|
1155
|
-
"name": "punctuation.definition.character-class.regexp"
|
1156
|
-
},
|
1157
|
-
"2": {
|
1158
|
-
"name": "keyword.operator.negation.regexp"
|
1159
|
-
}
|
1160
|
-
},
|
1161
|
-
"endCaptures": {
|
1162
|
-
"1": {
|
1163
|
-
"name": "punctuation.definition.character-class.regexp"
|
1164
|
-
}
|
1165
|
-
}
|
1166
|
-
},
|
1167
|
-
{
|
1168
|
-
"include": "#regex-character-class"
|
1169
|
-
}
|
1170
|
-
]
|
1171
|
-
},
|
1172
|
-
"selectors": {
|
1173
|
-
"name": "meta.selector.data-weave",
|
1174
|
-
"begin": "(?\u003c![\\[\\(:+*/\\-])(\\s*\\.\\.\\*|\\s*\\.\\.|\\s*\\.\\*|\\s*\\.\\@|\\s*\\.#|\\s*\\.\u0026|\\s*\\.|(?=\\[)|\\:\\:)",
|
1175
|
-
"end": "(?=\\s|,|\\}|\\)|\\n|\\]|\\(|-|$)",
|
1176
|
-
"patterns": [
|
1177
|
-
{
|
1178
|
-
"name": "meta.object.member.dw",
|
1179
|
-
"match": "\\b([[:alpha:]][_[:alnum:]]+#)",
|
1180
|
-
"captures": {
|
1181
|
-
"0": {
|
1182
|
-
"name": "variable.language.dw"
|
1183
|
-
}
|
1184
|
-
}
|
1185
|
-
},
|
1186
|
-
{
|
1187
|
-
"name": "meta.object.member.dw",
|
1188
|
-
"match": "((?:[A-Za-z])([a-zA-Z0-9_]*)[?!]?|(\\$)+)"
|
1189
|
-
},
|
1190
|
-
{
|
1191
|
-
"include": "#strings"
|
1192
|
-
},
|
1193
|
-
{
|
1194
|
-
"begin": "(\\[(@|\\^)?)",
|
1195
|
-
"end": "(\\])",
|
1196
|
-
"patterns": [
|
1197
|
-
{
|
1198
|
-
"include": "#expressions"
|
1199
|
-
},
|
1200
|
-
{
|
1201
|
-
"name": "invalid",
|
1202
|
-
"match": "([\\)])"
|
1203
|
-
}
|
1204
|
-
]
|
1205
|
-
},
|
1206
|
-
{
|
1207
|
-
"include": "#selectors"
|
1208
|
-
}
|
1209
|
-
]
|
1210
|
-
},
|
1211
|
-
"string-character-escape": {
|
1212
|
-
"name": "constant.character.escape.dw",
|
1213
|
-
"match": "\\\\(u[[:xdigit:]]{4}|$|.)"
|
1214
|
-
},
|
1215
|
-
"strings": {
|
1216
|
-
"patterns": [
|
1217
|
-
{
|
1218
|
-
"include": "#qstring-single"
|
1219
|
-
},
|
1220
|
-
{
|
1221
|
-
"include": "#qstring-double"
|
1222
|
-
},
|
1223
|
-
{
|
1224
|
-
"include": "#qstring-backtick"
|
1225
|
-
},
|
1226
|
-
{
|
1227
|
-
"include": "#template"
|
1228
|
-
}
|
1229
|
-
]
|
1230
|
-
},
|
1231
|
-
"template": {
|
1232
|
-
"begin": "([$[:alpha:]][_$[:alnum:]]*)\\s*(`)",
|
1233
|
-
"end": "`",
|
1234
|
-
"patterns": [
|
1235
|
-
{
|
1236
|
-
"include": "#template-substitution-element"
|
1237
|
-
},
|
1238
|
-
{
|
1239
|
-
"include": "#template-dollar"
|
1240
|
-
},
|
1241
|
-
{
|
1242
|
-
"include": "#string-character-escape"
|
1243
|
-
},
|
1244
|
-
{
|
1245
|
-
"name": "string.template.dw",
|
1246
|
-
"match": "([^`])"
|
1247
|
-
}
|
1248
|
-
],
|
1249
|
-
"beginCaptures": {
|
1250
|
-
"1": {
|
1251
|
-
"name": "support.function.dw"
|
1252
|
-
},
|
1253
|
-
"2": {
|
1254
|
-
"name": "string.template.dw punctuation.definition.string.template.begin.dw"
|
1255
|
-
}
|
1256
|
-
},
|
1257
|
-
"endCaptures": {
|
1258
|
-
"0": {
|
1259
|
-
"name": "string.template.dw punctuation.definition.string.template.end.dw"
|
1260
|
-
}
|
1261
|
-
}
|
1262
|
-
},
|
1263
|
-
"template-dollar": {
|
1264
|
-
"patterns": [
|
1265
|
-
{
|
1266
|
-
"name": "variable.parameter.dw",
|
1267
|
-
"match": "(\\$(\\$)+)"
|
1268
|
-
},
|
1269
|
-
{
|
1270
|
-
"name": "variable.parameter.dw",
|
1271
|
-
"match": "(\\$)(?![a-zA-Z(])"
|
1272
|
-
},
|
1273
|
-
{
|
1274
|
-
"name": "variable.parameter.dw",
|
1275
|
-
"match": "(\\$)([a-zA-Z][a-zA-Z0-9_]*)",
|
1276
|
-
"captures": {
|
1277
|
-
"1": {
|
1278
|
-
"name": "keyword.other.dw"
|
1279
|
-
},
|
1280
|
-
"2": {
|
1281
|
-
"name": "variable.other.dw"
|
1282
|
-
}
|
1283
|
-
}
|
1284
|
-
}
|
1285
|
-
]
|
1286
|
-
},
|
1287
|
-
"template-substitution-element": {
|
1288
|
-
"name": "meta.template.expression.dw",
|
1289
|
-
"begin": "\\$\\(",
|
1290
|
-
"end": "\\)",
|
1291
|
-
"patterns": [
|
1292
|
-
{
|
1293
|
-
"include": "#expressions"
|
1294
|
-
}
|
1295
|
-
],
|
1296
|
-
"beginCaptures": {
|
1297
|
-
"0": {
|
1298
|
-
"name": "keyword.other.dw"
|
1299
|
-
}
|
1300
|
-
},
|
1301
|
-
"endCaptures": {
|
1302
|
-
"0": {
|
1303
|
-
"name": "keyword.other.dw"
|
1304
|
-
}
|
1305
|
-
}
|
1306
|
-
},
|
1307
|
-
"type-directive": {
|
1308
|
-
"name": "meta.directive.type.dw",
|
1309
|
-
"begin": "(\\s*(type)\\s+([a-zA-Z][a-zA-Z0-9]*))",
|
1310
|
-
"end": "(?=(fun|input|output|type|var|ns|import|%dw|private|---)\\s)",
|
1311
|
-
"patterns": [
|
1312
|
-
{
|
1313
|
-
"begin": "\u003c",
|
1314
|
-
"end": "\u003e",
|
1315
|
-
"patterns": [
|
1316
|
-
{
|
1317
|
-
"include": "#generics"
|
1318
|
-
}
|
1319
|
-
]
|
1320
|
-
},
|
1321
|
-
{
|
1322
|
-
"name": "keyword.other.dw",
|
1323
|
-
"match": "\\="
|
1324
|
-
},
|
1325
|
-
{
|
1326
|
-
"include": "#types"
|
1327
|
-
}
|
1328
|
-
],
|
1329
|
-
"beginCaptures": {
|
1330
|
-
"2": {
|
1331
|
-
"name": "storage.type.dw"
|
1332
|
-
},
|
1333
|
-
"3": {
|
1334
|
-
"name": "entity.name.type.dw"
|
1335
|
-
}
|
1336
|
-
}
|
1337
|
-
},
|
1338
|
-
"types": {
|
1339
|
-
"patterns": [
|
1340
|
-
{
|
1341
|
-
"include": "#comments"
|
1342
|
-
},
|
1343
|
-
{
|
1344
|
-
"name": "support.class.dw",
|
1345
|
-
"match": "\\b(String|Boolean|Number|Range|Namespace|Uri|DateTime|LocalDateTime|Date|LocalTime|Time|TimeZone|Period|Binary|Null|Regex|Nothing|Any|Object|Key)\\b"
|
1346
|
-
},
|
1347
|
-
{
|
1348
|
-
"begin": "\\b(Array|Type)\\s*\u003c\\b",
|
1349
|
-
"end": "\u003e",
|
1350
|
-
"patterns": [
|
1351
|
-
{
|
1352
|
-
"name": "invalid",
|
1353
|
-
"match": ","
|
1354
|
-
},
|
1355
|
-
{
|
1356
|
-
"include": "#types"
|
1357
|
-
}
|
1358
|
-
],
|
1359
|
-
"beginCaptures": {
|
1360
|
-
"1": {
|
1361
|
-
"name": "support.type.dw"
|
1362
|
-
}
|
1363
|
-
}
|
1364
|
-
},
|
1365
|
-
{
|
1366
|
-
"name": "keyword.operator.declaration.dw",
|
1367
|
-
"match": "(\u0026|\\|)"
|
1368
|
-
},
|
1369
|
-
{
|
1370
|
-
"name": "keyword.operator.declaration.dw",
|
1371
|
-
"match": "\u003c:"
|
1372
|
-
},
|
1373
|
-
{
|
1374
|
-
"name": "support.class.dw",
|
1375
|
-
"match": "\\b([A-Z][a-zA-Z0-9_]*)"
|
1376
|
-
},
|
1377
|
-
{
|
1378
|
-
"begin": "\u003c",
|
1379
|
-
"end": "\u003e",
|
1380
|
-
"patterns": [
|
1381
|
-
{
|
1382
|
-
"include": "#types"
|
1383
|
-
},
|
1384
|
-
{
|
1385
|
-
"include": "#punctuation-comma"
|
1386
|
-
},
|
1387
|
-
{
|
1388
|
-
"include": "#comments"
|
1389
|
-
}
|
1390
|
-
]
|
1391
|
-
},
|
1392
|
-
{
|
1393
|
-
"begin": "\\(",
|
1394
|
-
"end": "(\\)\\s*\\-\\\u003e)",
|
1395
|
-
"patterns": [
|
1396
|
-
{
|
1397
|
-
"include": "#types"
|
1398
|
-
},
|
1399
|
-
{
|
1400
|
-
"include": "#parameters"
|
1401
|
-
}
|
1402
|
-
],
|
1403
|
-
"beginCaptures": {
|
1404
|
-
"1": {
|
1405
|
-
"name": "keyword.operator.tuple.dw"
|
1406
|
-
}
|
1407
|
-
}
|
1408
|
-
},
|
1409
|
-
{
|
1410
|
-
"begin": "\\{\\-\\|",
|
1411
|
-
"end": "\\|\\-\\}",
|
1412
|
-
"patterns": [
|
1413
|
-
{
|
1414
|
-
"include": "#punctuation-comma"
|
1415
|
-
},
|
1416
|
-
{
|
1417
|
-
"include": "#object-member-type"
|
1418
|
-
}
|
1419
|
-
]
|
1420
|
-
},
|
1421
|
-
{
|
1422
|
-
"begin": "\\{\\|",
|
1423
|
-
"end": "\\|\\}",
|
1424
|
-
"patterns": [
|
1425
|
-
{
|
1426
|
-
"include": "#punctuation-comma"
|
1427
|
-
},
|
1428
|
-
{
|
1429
|
-
"include": "#object-member-type"
|
1430
|
-
}
|
1431
|
-
]
|
1432
|
-
},
|
1433
|
-
{
|
1434
|
-
"begin": "\\{\\-",
|
1435
|
-
"end": "\\-\\}",
|
1436
|
-
"patterns": [
|
1437
|
-
{
|
1438
|
-
"include": "#punctuation-comma"
|
1439
|
-
},
|
1440
|
-
{
|
1441
|
-
"include": "#object-member-type"
|
1442
|
-
}
|
1443
|
-
]
|
1444
|
-
},
|
1445
|
-
{
|
1446
|
-
"begin": "\\{",
|
1447
|
-
"end": "\\}",
|
1448
|
-
"patterns": [
|
1449
|
-
{
|
1450
|
-
"include": "#punctuation-comma"
|
1451
|
-
},
|
1452
|
-
{
|
1453
|
-
"include": "#object-member-type"
|
1454
|
-
}
|
1455
|
-
]
|
1456
|
-
},
|
1457
|
-
{
|
1458
|
-
"begin": "\\(",
|
1459
|
-
"end": "\\)",
|
1460
|
-
"patterns": [
|
1461
|
-
{
|
1462
|
-
"include": "#types"
|
1463
|
-
}
|
1464
|
-
]
|
1465
|
-
},
|
1466
|
-
{
|
1467
|
-
"match": "\\b(var|fun|ns)\\b"
|
1468
|
-
},
|
1469
|
-
{
|
1470
|
-
"name": "invalid",
|
1471
|
-
"match": "\\b(input|output|var|ns|import|try|catch|throw|do|for|yield|enum|private|async)\\b"
|
1472
|
-
},
|
1473
|
-
{
|
1474
|
-
"name": "invalid",
|
1475
|
-
"match": "\\b(if|else|while|for|do|using|unless|default|match)\\b"
|
1476
|
-
},
|
1477
|
-
{
|
1478
|
-
"name": "invalid",
|
1479
|
-
"match": "(~=|==|!=|===|!==|\u003c=|\u003e=|\u003c|\u003e|\\$+)"
|
1480
|
-
}
|
1481
|
-
]
|
1482
|
-
},
|
1483
|
-
"using-statement": {
|
1484
|
-
"name": "using-statement.expr.dw",
|
1485
|
-
"begin": "(?\u003c!\\.|\\$)\\b(using)\\s*(\\()",
|
1486
|
-
"end": "(\\))",
|
1487
|
-
"patterns": [
|
1488
|
-
{
|
1489
|
-
"match": "((?:\\+\\+|\\-\\-|[A-Za-z])(?:[a-zA-Z0-9_]*))(\\s*=)",
|
1490
|
-
"captures": {
|
1491
|
-
"1": {
|
1492
|
-
"name": "entity.name.variable.dw"
|
1493
|
-
},
|
1494
|
-
"2": {
|
1495
|
-
"name": "keyword.operator.dw"
|
1496
|
-
}
|
1497
|
-
}
|
1498
|
-
},
|
1499
|
-
{
|
1500
|
-
"include": "#expressions"
|
1501
|
-
}
|
1502
|
-
],
|
1503
|
-
"beginCaptures": {
|
1504
|
-
"1": {
|
1505
|
-
"name": "keyword.control.using.dw"
|
1506
|
-
},
|
1507
|
-
"2": {
|
1508
|
-
"name": "punctuation.definitions.begin.dw"
|
1509
|
-
}
|
1510
|
-
},
|
1511
|
-
"endCaptures": {
|
1512
|
-
"1": {
|
1513
|
-
"name": "punctuation.definitions.end.dw"
|
1514
|
-
}
|
1515
|
-
}
|
1516
|
-
},
|
1517
|
-
"var-directive": {
|
1518
|
-
"name": "meta.directive.var.dw",
|
1519
|
-
"begin": "(\\s*(var)\\s+([a-zA-Z][a-zA-Z0-9]*))",
|
1520
|
-
"end": "(=)",
|
1521
|
-
"patterns": [
|
1522
|
-
{
|
1523
|
-
"begin": "\u003c",
|
1524
|
-
"end": "\u003e",
|
1525
|
-
"patterns": [
|
1526
|
-
{
|
1527
|
-
"include": "#generics"
|
1528
|
-
}
|
1529
|
-
]
|
1530
|
-
},
|
1531
|
-
{
|
1532
|
-
"begin": "(:)",
|
1533
|
-
"end": "(?==|$)",
|
1534
|
-
"patterns": [
|
1535
|
-
{
|
1536
|
-
"include": "#comments"
|
1537
|
-
},
|
1538
|
-
{
|
1539
|
-
"include": "#types"
|
1540
|
-
}
|
1541
|
-
],
|
1542
|
-
"beginCaptures": {
|
1543
|
-
"1": {
|
1544
|
-
"name": "keyword.operator.declaration.dw"
|
1545
|
-
}
|
1546
|
-
}
|
1547
|
-
}
|
1548
|
-
],
|
1549
|
-
"beginCaptures": {
|
1550
|
-
"2": {
|
1551
|
-
"name": "storage.type.dw"
|
1552
|
-
},
|
1553
|
-
"3": {
|
1554
|
-
"name": "entity.name.variable.dw"
|
1555
|
-
}
|
1556
|
-
},
|
1557
|
-
"endCaptures": {
|
1558
|
-
"0": {
|
1559
|
-
"name": "keyword.operator.assignment.dw"
|
1560
|
-
}
|
1561
|
-
}
|
1562
|
-
},
|
1563
|
-
"variable-reference": {
|
1564
|
-
"patterns": [
|
1565
|
-
{
|
1566
|
-
"name": "variable.other.dw",
|
1567
|
-
"match": "\\b(?!(fun|input|output|type|var|ns|import|%dw|private|---)\\b)((\\+\\+|\\-\\-|[A-Za-z])[a-zA-Z0-9_]*)"
|
1568
|
-
},
|
1569
|
-
{
|
1570
|
-
"name": "invalid",
|
1571
|
-
"match": "\\b(fun|input|output|type|var|ns|import|private)\\b"
|
1572
|
-
},
|
1573
|
-
{
|
1574
|
-
"name": "variable.parameter.dw",
|
1575
|
-
"match": "(\\$+)"
|
1576
|
-
}
|
1577
|
-
]
|
1578
|
-
}
|
1579
|
-
}
|
1580
|
-
}
|
1
|
+
{"name":"DataWeave","scopeName":"source.data-weave","patterns":[{"include":"#comments"},{"include":"#directives"},{"name":"keyword.operator.body-marker.dw","match":"(---)"},{"include":"#expressions"},{"name":"invalid","match":"([^\\s]+)"}],"repository":{"array-literal":{"name":"meta.array.literal.dw","begin":"(?\u003c!\\w|}|])(\\[)","end":"\\]","patterns":[{"include":"#expressions"},{"include":"#punctuation-comma"}],"beginCaptures":{"0":{"name":"meta.brace.square.dw"}},"endCaptures":{"0":{"name":"meta.brace.square.dw"}}},"attr-literal":{"name":"meta.attributes.dw","begin":"\\@\\(","end":"\\)","patterns":[{"include":"#object-member"}],"beginCaptures":{"0":{"name":"keyword.operator.attributes.dw"}},"endCaptures":{"0":{"name":"keyword.operator.attributes.dw"}}},"case-clause":{"name":"case-clause.expr.dw","begin":"(?\u003c!\\.|\\$)\\b(case|else(?=\\s*-\u003e))\\b(?!\\$|\\.)","end":"\\-\\\u003e","patterns":[{"begin":"(?\u003c!\\.|\\$)\\b(is)\\s+","end":"(?=\\-\\\u003e)","patterns":[{"include":"#types"}],"beginCaptures":{"1":{"name":"keyword.control.is.dw"}}},{"begin":"(?\u003c!\\.|\\$)\\b(matches)\\b","end":"(?=\\-\\\u003e)","patterns":[{"include":"#expressions"}],"beginCaptures":{"1":{"name":"keyword.control.matches.dw"}}},{"begin":"(?\u003c!\\.|\\$)\\b([A-Za-z][a-zA-Z0-9_]*)\\s*:\\s+","end":"(?=\\-\\\u003e)","patterns":[{"include":"#expressions"}],"beginCaptures":{"1":{"name":"entity.name.variable.dw"}}},{"begin":"(?\u003c!\\.|\\$)\\b([A-Za-z][a-zA-Z0-9_]*)\\s*(if|matches)\\s+","end":"(?=\\-\\\u003e)","patterns":[{"include":"#expressions"}],"beginCaptures":{"1":{"name":"entity.name.variable.dw"},"2":{"name":"keyword.control.if.dw"}}},{"include":"#expressions"}],"beginCaptures":{"1":{"name":"keyword.control.switch.dw"}},"endCaptures":{"0":{"name":"keyword.control.switch.dw"}}},"cast":{"begin":"(?\u003c!\\.|\\$)\\b(as|is)\\s+","end":"(?=$|^|[;,:})\\]\\s])","patterns":[{"include":"#types"}],"beginCaptures":{"1":{"name":"keyword.control.as.dw"}}},"comments":{"patterns":[{"name":"comment.block.dw","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"punctuation.definition.comment.dw"}}},{"match":"\\s*((//).*$\\n?)","captures":{"1":{"name":"comment.line.double-slash.dw"},"2":{"name":"punctuation.definition.comment.dw"}}}]},"constants":{"patterns":[{"name":"constant.language.dw","match":"\\b(true|false|null)\\b"},{"name":"constant.numeric.dw","match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDd]|UL|ul)?\\b"},{"begin":"\\|","end":"\\|","patterns":[{"name":"constant.numeric.dw","match":"([0-9]+)"},{"name":"constant.character.escape.dw","match":"([+:\\-WYMDTHSPZ\\.])"},{"name":"invalid","match":"([^\\|])"}],"beginCaptures":{"0":{"name":"constant.numeric.dw"}},"endCaptures":{"0":{"name":"constant.numeric.dw"}}}]},"directives":{"patterns":[{"include":"#dw-directive"},{"include":"#import-directive"},{"include":"#type-directive"},{"include":"#fun-directive"},{"include":"#var-directive"},{"include":"#ns-directive"},{"include":"#input-directive"},{"include":"#output-directive"}]},"do-statement":{"name":"do-statement.expr.dw","begin":"(?\u003c!\\.|\\$)\\b(do)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comments"},{"include":"#directives"},{"name":"keyword.operator.body-marker.dw","match":"(---)"},{"include":"#expressions"},{"name":"invalid","match":"([^\\s]+)"}],"beginCaptures":{"1":{"name":"keyword.control.do.dw"},"2":{"name":"punctuation.definitions.begin.dw"}},"endCaptures":{"1":{"name":"punctuation.definitions.end.dw"}}},"dw-directive":{"name":"meta.directive.version.dw","begin":"(?\u003c!\\.|\\$)(%dw)\\s+([0-9]\\.[0-9])(?!\\$|\\.)","end":"(?=\\n)","beginCaptures":{"1":{"name":"comment.dw"},"2":{"name":"comment.dw"}}},"expressions":{"name":"expression","patterns":[{"name":"keyword.other.dw","match":"\\b(not)\\s+"},{"include":"#paren-expression"},{"include":"#strings"},{"include":"#constants"},{"include":"#comments"},{"include":"#match-statement"},{"include":"#using-statement"},{"include":"#do-statement"},{"include":"#if-statement"},{"include":"#regex"},{"include":"#keywords"},{"include":"#object-literal"},{"include":"#array-literal"},{"include":"#cast"},{"include":"#object-member"},{"include":"#variable-reference"},{"include":"#selectors"},{"include":"#directives"},{"include":"#infix"}]},"fun-directive":{"name":"meta.directive.fun.dw","begin":"(\\s*(fun)\\s+([a-zA-Z][a-zA-Z0-9]*))","end":"(=)","patterns":[{"begin":"\u003c","end":"\u003e","patterns":[{"include":"#generics"}]},{"begin":"\\(","end":"\\)","patterns":[{"include":"#parameters"}]},{"begin":"(:)","end":"(?==)","patterns":[{"include":"#types"}],"beginCaptures":{"1":{"name":"keyword.operator.declaration.dw"}}}],"beginCaptures":{"2":{"name":"storage.type.dw"},"3":{"name":"entity.name.function.dw"}},"endCaptures":{"0":{"name":"keyword.operator.assignment.dw"}}},"function_call":{"name":"function_call","begin":"\\s*\\(","end":"\\s*\\)","patterns":[{"include":"#punctuation-comma"},{"include":"#expressions"}]},"generics":{"patterns":[{"begin":"(:)","end":"(?=,|\u003e)","patterns":[{"include":"#types"}],"beginCaptures":{"1":{"name":"keyword.operator.declaration.dw"}}},{"name":"keyword.operator.extends.dw","match":"\u003c:"},{"include":"#keywords"},{"name":"entity.name.type.parameter.dw","match":"\\w+"}]},"if-statement":{"name":"meta.if.dw","begin":"(?\u003c!\\.|\\$)\\b(if\\s*)\\(","end":"\\)","patterns":[{"include":"#expressions"}],"beginCaptures":{"1":{"name":"keyword.control.if.dw"}}},"import-directive":{"name":"meta.directive.import.dw","begin":"(\\s*(import)\\s+)","end":"(?=(fun|input|output|type|var|ns|import|%dw|private|---)\\s|$)","patterns":[{"include":"#comments"},{"match":"(,)"},{"match":"(\\*)"},{"match":"\\b(from)\\s+","captures":{"1":{"name":"storage.type.dw"}}},{"name":"entity.name.other.dw","match":"(?:[a-zA-Z][a-zA-Z0-9]*(?:::[a-zA-Z][a-zA-Z0-9]*)*)\n"},{"match":"\\s+(as)\\s+([a-zA-Z][a-zA-Z0-9]*)","captures":{"1":{"name":"keyword.other.dw"},"2":{"name":"entity.name.other.dw"}}}],"beginCaptures":{"2":{"name":"storage.type.dw"}}},"infix":{"name":"support.function.dw","match":"(?\u003c!^|,|\\[|\\(|=|\\+|\u003e|\u003c|\\-|\\*|:|\\{|case|is|else|not|as|and|or)(?\u003c=[a-zA-Z0-9_$\\}\\])\"'`|/])\\s*(?!(var|match|case|else|fun|input|output|is|as|default|ns|import|null|false|true|using|do|not|and|or)\\s)(\\+\\+|\\-\\-|[a-zA-Z][a-zA-Z_0-9]*)(\\s+|\\s*(?=[\"'/|{]))"},"input-directive":{"name":"meta.directive.ns.dw","begin":"(?\u003c!\\.|\\$)\\b(input)\\s+([[:alpha:]][[:alnum:]]*)\\s*","end":"(?=\\n)","patterns":[{"begin":"(\\:\\s*)","end":"(\\s|\\n)","patterns":[{"include":"#types"}],"beginCaptures":{"1":{"name":"keyword.other.dw"}}},{"name":"string.mime.dw","match":"([^{\\n\\s])"}],"beginCaptures":{"1":{"name":"storage.type.dw"},"2":{"name":"entity.name.variable.dw"}}},"keywords":{"patterns":[{"name":"keyword.reserved.dw","match":"\\b(throw|for|yield|enum|private|async)\\b"},{"name":"invalid","match":"\\b(not)\\b"},{"name":"keyword.control.dw","match":"\\b(if|else|while|for|do|using|unless|default)\\b"},{"name":"keyword.operator.comparison.dw","match":"(~=|==|!=|!=|\u003c=|\u003e=|\u003c|\u003e)"},{"name":"keyword.operator.assignment.dw","match":"(=)"},{"name":"keyword.operator.declaration.dw","match":"(:)"},{"name":"keyword.operator.arithmetic.dw","match":"(\\-|\\+|\\*|\\/)"},{"name":"keyword.other.dw","match":"\\b(and|or)\\b"}]},"match-block":{"name":"match-block.expr.dw","begin":"\\{","end":"(?=\\})","patterns":[{"include":"#case-clause"},{"include":"#expressions"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.dw"}}},"match-statement":{"name":"match-statement.expr.dw","begin":"(?\u003c!\\.|\\$)\\b(match)\\s*(?=\\{)","end":"\\}","patterns":[{"include":"#match-block"}],"beginCaptures":{"1":{"name":"keyword.control.switch.dw"}},"endCaptures":{"1":{"name":"punctuation.definition.block.dw"}}},"ns-directive":{"name":"meta.directive.ns.dw","begin":"(?\u003c!\\.|\\$)\\b(ns)\\s+([A-Za-z][a-zA-Z0-9_]*)\\s+([^\\n]*)(?!\\$|\\.)","end":"(?=\\n)","beginCaptures":{"1":{"name":"storage.type.dw"},"2":{"name":"entity.name.namespace.dw"},"3":{"name":"meta.definition.ns.dw string.url.dw"}}},"object-key":{"patterns":[{"name":"meta.object.member.dw meta.object-literal.namespace.dw","match":"\\b([[:alpha:]][_[:alnum:]]+#)","captures":{"0":{"name":"variable.language.dw"}}},{"name":"meta.object.member.dw meta.object-literal.key.dw","begin":"(?=[\\'\\\"\\`])","end":"(?=@\\(|:)","patterns":[{"include":"#strings"}]},{"name":"meta.object.member.dw","match":"(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(?=:|@\\()","end":"(?=,|\\}|\\))","captures":{"1":{"name":"meta.object-literal.key.dw"}}}]},"object-literal":{"name":"meta.objectliteral.dw","begin":"\\{","end":"\\}","patterns":[{"include":"#object-member"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.dw"}},"endCaptures":{"0":{"name":"punctuation.definition.block.dw"}}},"object-member":{"patterns":[{"include":"#comments"},{"include":"#paren-expression"},{"begin":"\\s+if\\b","end":"(?=,|})","patterns":[{"include":"#expressions"}],"beginCaptures":{"0":{"name":"keyword.control.dw"}}},{"include":"#object-key"},{"include":"#attr-literal"},{"include":"#object-member-body"},{"include":"#punctuation-comma"}]},"object-member-body":{"name":"meta.object.member.dw","begin":":","end":"(?=,|\\}|\\))","patterns":[{"include":"#expressions"}],"beginCaptures":{"0":{"name":"meta.object-literal.key.dw punctuation.separator.key-value.dw"}}},"object-member-type":{"patterns":[{"include":"#comments"},{"name":"variable.language.dw","match":"_"},{"name":"variable.language.dw","match":"([a-zA-Z0-9]+#)"},{"name":"entity.name.type.dw","match":"\\(\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*\\)"},{"name":"meta.object.member.dw","match":"([a-zA-Z][a-zA-Z0-9]*)"},{"include":"#strings"},{"name":"keyword.operator.optional.dw","match":"\\?"},{"name":"keyword.operator.optional.dw","match":"\\*"},{"begin":"(\\@\\()","end":"(\\))","patterns":[{"include":"#punctuation-comma"},{"include":"#object-member-type"}],"beginCaptures":{"1":{"name":"keyword.operator.attributes.dw"}},"endCaptures":{"1":{"name":"keyword.operator.attributes.dw"}}},{"begin":"(:)","end":"(?=,|}|\\)|\\|}|\\-}|\\|\\-})","patterns":[{"include":"#types"}],"beginCaptures":{"1":{"name":"keyword.operator.declaration.dw"}}},{"name":"invalid","match":"([^\\s])"}]},"output-directive":{"name":"meta.directive.ns.dw","begin":"(?\u003c!\\.|\\$)\\b(output)\\s+([^\\n{\\s]*)(?!\\$|\\.)","end":"(?=\\n)","beginCaptures":{"1":{"name":"storage.type.dw"},"2":{"name":"string.other.dw"}}},"parameters":{"patterns":[{"begin":"(:)","end":"(?=,|\\)|=)","patterns":[{"include":"#types"}],"beginCaptures":{"1":{"name":"keyword.operator.declaration.dw"}}},{"begin":"(=)","end":"(?=,|\\))","patterns":[{"include":"#expressions"}],"beginCaptures":{"1":{"name":"keyword.operator.declaration.dw"}}},{"name":"variable.parameter.dw","match":"\\w+"}]},"paren-expression":{"begin":"(\\()","end":"(\\))","patterns":[{"include":"#expressions"}],"beginCaptures":{"1":{"name":"punctuation.expression.begin.dw"}},"endCaptures":{"1":{"name":"punctuation.expression.end.dw"}}},"punctuation-comma":{"name":"punctuation.separator.comma.dw","match":","},"qstring-backtick":{"begin":"`","end":"`","patterns":[{"include":"#template-substitution-element"},{"include":"#template-dollar"},{"include":"#string-character-escape"},{"name":"string.template.dw","match":"([^`])"}],"beginCaptures":{"0":{"name":"string.quoted.double.dw punctuation.definition.string.begin.dw"}},"endCaptures":{"0":{"name":"string.quoted.double.dw punctuation.definition.string.end.dw"}}},"qstring-double":{"begin":"\"","end":"\"","patterns":[{"include":"#template-substitution-element"},{"include":"#template-dollar"},{"include":"#string-character-escape"},{"name":"string.quoted.double.dw","match":"([^\"])"}],"beginCaptures":{"0":{"name":"string.quoted.double.dw punctuation.definition.string.begin.dw"}},"endCaptures":{"0":{"name":"string.quoted.double.dw punctuation.definition.string.end.dw"}}},"qstring-single":{"begin":"'","end":"(\\')|((?:[^\\\\\\n])$)","patterns":[{"include":"#template-substitution-element"},{"include":"#template-dollar"},{"include":"#string-character-escape"},{"name":"string.quoted.single.dw","match":"([^'])"}],"beginCaptures":{"0":{"name":"string.quoted.single.dw punctuation.definition.string.begin.dw"}},"endCaptures":{"1":{"name":"string.quoted.single.dw punctuation.definition.string.end.dw"},"2":{"name":"invalid.illegal.newline.dw"}}},"regex":{"patterns":[{"name":"string.regexp.dw","begin":"(?\u003c=[=(:,\\[?+!]|replace|match|scan|matches|contains|---|case|-\u003e|and|or|\\*\\/)\\s*(\\/)(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+\\/(?![\\/*])(?!\\s*[a-zA-Z0-9_$]))","end":"(/)","patterns":[{"include":"#regexp"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dw"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.dw"}}},{"name":"string.regexp.dw","begin":"(?\u003c![_$[:alnum:])])\\/(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+\\/(?![\\/*])(?!\\s*[a-zA-Z0-9_$]))","end":"(/)","patterns":[{"include":"#regexp"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dw"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.dw"}}}]},"regex-character-class":{"patterns":[{"name":"constant.other.character-class.regexp","match":"\\\\[wWsSdDtrnvf]|\\."},{"name":"constant.character.numeric.regexp","match":"\\\\([0-7]{3}|x[[:xdigit:]][[:xdigit:]]|u[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]])"},{"name":"constant.character.control.regexp","match":"\\\\c[A-Z]"},{"name":"constant.character.escape.backslash.regexp","match":"\\\\."}]},"regexp":{"patterns":[{"name":"keyword.control.anchor.regexp","match":"\\\\[bB]|\\^|\\$"},{"name":"keyword.other.back-reference.regexp","match":"\\\\[1-9]\\d*"},{"name":"keyword.operator.quantifier.regexp","match":"[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??"},{"name":"keyword.operator.or.regexp","match":"\\|"},{"name":"meta.group.assertion.regexp","begin":"(\\()((\\?=)|(\\?!))","end":"(\\))","patterns":[{"include":"#regexp"}],"beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"punctuation.definition.group.assertion.regexp"},"3":{"name":"meta.assertion.look-ahead.regexp"},"4":{"name":"meta.assertion.negative-look-ahead.regexp"}},"endCaptures":{"1":{"name":"punctuation.definition.group.regexp"}}},{"name":"meta.group.regexp","begin":"\\((\\?:)?","end":"\\)","patterns":[{"include":"#regexp"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.capture.regexp"}},"endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}}},{"name":"constant.other.character-class.set.regexp","begin":"(\\[)(\\^)?","end":"(\\])","patterns":[{"name":"constant.other.character-class.range.regexp","match":"(?:.|(\\\\(?:[0-7]{3}|x[[:xdigit:]][[:xdigit:]]|u[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x[[:xdigit:]][[:xdigit:]]|u[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]))|(\\\\c[A-Z])|(\\\\.))","captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}}},{"include":"#regex-character-class"}],"beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}}},{"include":"#regex-character-class"}]},"selectors":{"name":"meta.selector.data-weave","begin":"(?\u003c![\\[\\(:+*/\\-])(\\s*\\.\\.\\*|\\s*\\.\\.|\\s*\\.\\*|\\s*\\.\\@|\\s*\\.#|\\s*\\.\u0026|\\s*\\.|(?=\\[)|\\:\\:)","end":"(?=\\s|,|\\}|\\)|\\n|\\]|\\(|-|$)","patterns":[{"name":"meta.object.member.dw","match":"\\b([[:alpha:]][_[:alnum:]]+#)","captures":{"0":{"name":"variable.language.dw"}}},{"name":"meta.object.member.dw","match":"((?:[A-Za-z])([a-zA-Z0-9_]*)[?!]?|(\\$)+)"},{"include":"#strings"},{"begin":"(\\[(@|\\^)?)","end":"(\\])","patterns":[{"include":"#expressions"},{"name":"invalid","match":"([\\)])"}]},{"include":"#selectors"}]},"string-character-escape":{"name":"constant.character.escape.dw","match":"\\\\(u[[:xdigit:]]{4}|$|.)"},"strings":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#qstring-backtick"},{"include":"#template"}]},"template":{"begin":"([$[:alpha:]][_$[:alnum:]]*)\\s*(`)","end":"`","patterns":[{"include":"#template-substitution-element"},{"include":"#template-dollar"},{"include":"#string-character-escape"},{"name":"string.template.dw","match":"([^`])"}],"beginCaptures":{"1":{"name":"support.function.dw"},"2":{"name":"string.template.dw punctuation.definition.string.template.begin.dw"}},"endCaptures":{"0":{"name":"string.template.dw punctuation.definition.string.template.end.dw"}}},"template-dollar":{"patterns":[{"name":"variable.parameter.dw","match":"(\\$(\\$)+)"},{"name":"variable.parameter.dw","match":"(\\$)(?![a-zA-Z(])"},{"name":"variable.parameter.dw","match":"(\\$)([a-zA-Z][a-zA-Z0-9_]*)","captures":{"1":{"name":"keyword.other.dw"},"2":{"name":"variable.other.dw"}}}]},"template-substitution-element":{"name":"meta.template.expression.dw","begin":"\\$\\(","end":"\\)","patterns":[{"include":"#expressions"}],"beginCaptures":{"0":{"name":"keyword.other.dw"}},"endCaptures":{"0":{"name":"keyword.other.dw"}}},"type-directive":{"name":"meta.directive.type.dw","begin":"(\\s*(type)\\s+([a-zA-Z][a-zA-Z0-9]*))","end":"(?=(fun|input|output|type|var|ns|import|%dw|private|---)\\s)","patterns":[{"begin":"\u003c","end":"\u003e","patterns":[{"include":"#generics"}]},{"name":"keyword.other.dw","match":"\\="},{"include":"#types"}],"beginCaptures":{"2":{"name":"storage.type.dw"},"3":{"name":"entity.name.type.dw"}}},"types":{"patterns":[{"include":"#comments"},{"name":"support.class.dw","match":"\\b(String|Boolean|Number|Range|Namespace|Uri|DateTime|LocalDateTime|Date|LocalTime|Time|TimeZone|Period|Binary|Null|Regex|Nothing|Any|Object|Key)\\b"},{"begin":"\\b(Array|Type)\\s*\u003c\\b","end":"\u003e","patterns":[{"name":"invalid","match":","},{"include":"#types"}],"beginCaptures":{"1":{"name":"support.type.dw"}}},{"name":"keyword.operator.declaration.dw","match":"(\u0026|\\|)"},{"name":"keyword.operator.declaration.dw","match":"\u003c:"},{"name":"support.class.dw","match":"\\b([A-Z][a-zA-Z0-9_]*)"},{"begin":"\u003c","end":"\u003e","patterns":[{"include":"#types"},{"include":"#punctuation-comma"},{"include":"#comments"}]},{"begin":"\\(","end":"(\\)\\s*\\-\\\u003e)","patterns":[{"include":"#types"},{"include":"#parameters"}],"beginCaptures":{"1":{"name":"keyword.operator.tuple.dw"}}},{"begin":"\\{\\-\\|","end":"\\|\\-\\}","patterns":[{"include":"#punctuation-comma"},{"include":"#object-member-type"}]},{"begin":"\\{\\|","end":"\\|\\}","patterns":[{"include":"#punctuation-comma"},{"include":"#object-member-type"}]},{"begin":"\\{\\-","end":"\\-\\}","patterns":[{"include":"#punctuation-comma"},{"include":"#object-member-type"}]},{"begin":"\\{","end":"\\}","patterns":[{"include":"#punctuation-comma"},{"include":"#object-member-type"}]},{"begin":"\\(","end":"\\)","patterns":[{"include":"#types"}]},{"match":"\\b(var|fun|ns)\\b"},{"name":"invalid","match":"\\b(input|output|var|ns|import|try|catch|throw|do|for|yield|enum|private|async)\\b"},{"name":"invalid","match":"\\b(if|else|while|for|do|using|unless|default|match)\\b"},{"name":"invalid","match":"(~=|==|!=|===|!==|\u003c=|\u003e=|\u003c|\u003e|\\$+)"}]},"using-statement":{"name":"using-statement.expr.dw","begin":"(?\u003c!\\.|\\$)\\b(using)\\s*(\\()","end":"(\\))","patterns":[{"match":"((?:\\+\\+|\\-\\-|[A-Za-z])(?:[a-zA-Z0-9_]*))(\\s*=)","captures":{"1":{"name":"entity.name.variable.dw"},"2":{"name":"keyword.operator.dw"}}},{"include":"#expressions"}],"beginCaptures":{"1":{"name":"keyword.control.using.dw"},"2":{"name":"punctuation.definitions.begin.dw"}},"endCaptures":{"1":{"name":"punctuation.definitions.end.dw"}}},"var-directive":{"name":"meta.directive.var.dw","begin":"(\\s*(var)\\s+([a-zA-Z][a-zA-Z0-9]*))","end":"(=)","patterns":[{"begin":"\u003c","end":"\u003e","patterns":[{"include":"#generics"}]},{"begin":"(:)","end":"(?==|$)","patterns":[{"include":"#comments"},{"include":"#types"}],"beginCaptures":{"1":{"name":"keyword.operator.declaration.dw"}}}],"beginCaptures":{"2":{"name":"storage.type.dw"},"3":{"name":"entity.name.variable.dw"}},"endCaptures":{"0":{"name":"keyword.operator.assignment.dw"}}},"variable-reference":{"patterns":[{"name":"variable.other.dw","match":"\\b(?!(fun|input|output|type|var|ns|import|%dw|private|---)\\b)((\\+\\+|\\-\\-|[A-Za-z])[a-zA-Z0-9_]*)"},{"name":"invalid","match":"\\b(fun|input|output|type|var|ns|import|private)\\b"},{"name":"variable.parameter.dw","match":"(\\$+)"}]}}}
|