github-linguist 5.3.3 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +5 -2
- data/ext/linguist/linguist.c +18 -7
- data/grammars/annotation.liquidhaskell.haskell.json +969 -862
- data/grammars/config.xcompose.json +22 -25
- data/grammars/file.lasso.json +296 -309
- data/grammars/hint.haskell.json +867 -766
- data/grammars/hint.message.haskell.json +867 -766
- data/grammars/hint.type.haskell.json +867 -766
- data/grammars/objdump.x86asm.json +20 -24
- data/grammars/source.Kotlin.json +220 -225
- data/grammars/source.LS.json +36 -55
- data/grammars/source.MCPOST.json +24 -38
- data/grammars/source.MOD.json +26 -41
- data/grammars/source.SASLog.json +9 -16
- data/grammars/source.abap.json +48 -56
- data/grammars/source.abl.json +8 -14
- data/grammars/source.abnf.json +88 -98
- data/grammars/source.actionscript.3.json +398 -429
- data/grammars/source.acucobol.json +5 -8
- data/grammars/source.ada.json +46 -53
- data/grammars/source.afm.json +548 -554
- data/grammars/source.agc.json +34 -37
- data/grammars/source.agda.json +79 -91
- data/grammars/source.ahk.json +62 -66
- data/grammars/source.alloy.json +16 -20
- data/grammars/source.ampl.json +41 -47
- data/grammars/source.angelscript.json +71 -80
- data/grammars/source.antlr.json +131 -136
- data/grammars/source.apache-config.json +93 -99
- data/grammars/source.apache-config.mod_perl.json +19 -24
- data/grammars/source.apl.json +1038 -1029
- data/grammars/source.applescript.json +501 -523
- data/grammars/source.apt.json +9 -16
- data/grammars/source.asn.json +27 -31
- data/grammars/source.asp.json +61 -67
- data/grammars/source.aspectj.json +385 -391
- data/grammars/source.assembly.json +49 -55
- data/grammars/source.ats.json +45 -121
- data/grammars/source.autoit.json +64 -69
- data/grammars/source.awk.json +172 -176
- data/grammars/source.ballerina.json +48 -395
- data/grammars/source.batchfile.json +269 -269
- data/grammars/source.befunge.json +17 -21
- data/grammars/source.bf.json +5 -11
- data/grammars/source.bison.json +10 -14
- data/grammars/source.blitzmax.json +300 -305
- data/grammars/source.boo.json +189 -193
- data/grammars/source.brightauthorproject.json +8 -13
- data/grammars/source.brightscript.json +37 -47
- data/grammars/source.bro.json +134 -140
- data/grammars/source.bsl.json +152 -193
- data/grammars/source.bsv.json +96 -102
- data/grammars/source.c++.json +176 -193
- data/grammars/source.c++.qt.json +13 -21
- data/grammars/source.c.ec.json +15 -21
- data/grammars/source.c.json +237 -251
- data/grammars/source.c.platform.json +153 -159
- data/grammars/source.c2hs.json +3 -6
- data/grammars/source.cabal.json +17 -20
- data/grammars/source.cache.cmake.json +18 -23
- data/grammars/source.cake.json +4 -7
- data/grammars/source.camlp4.ocaml.json +24 -27
- data/grammars/source.capnp.json +33 -38
- data/grammars/source.ceylon.json +44 -50
- data/grammars/source.cfscript.cfc.json +78 -86
- data/grammars/source.cfscript.json +513 -520
- data/grammars/source.changelogs.rpm-spec.json +8 -16
- data/grammars/source.chapel.json +109 -87
- data/grammars/source.cirru.json +25 -30
- data/grammars/source.clarion.json +41 -54
- data/grammars/source.clean.json +90 -95
- data/grammars/source.click.json +25 -28
- data/grammars/source.clips.json +10 -23
- data/grammars/source.clojure.json +151 -168
- data/grammars/source.cm.json +14 -19
- data/grammars/source.cmake.json +53 -61
- data/grammars/source.cobol.json +165 -180
- data/grammars/source.coffee.json +454 -462
- data/grammars/source.cool.json +36 -43
- data/grammars/source.coq.json +17 -21
- data/grammars/source.crystal.json +889 -983
- data/grammars/source.cs.json +739 -740
- data/grammars/source.csound-document.json +69 -73
- data/grammars/source.csound-score.json +52 -55
- data/grammars/source.csound.json +167 -171
- data/grammars/source.css.json +683 -688
- data/grammars/source.css.less.json +211 -511
- data/grammars/source.css.mss.json +94 -101
- data/grammars/source.css.postcss.sugarss.json +260 -0
- data/grammars/source.csx.json +4 -7
- data/grammars/source.cuda-c++.json +47 -81
- data/grammars/source.cwl.json +103 -0
- data/grammars/source.cython.json +536 -582
- data/grammars/source.d.json +243 -252
- data/grammars/source.dart.json +161 -166
- data/grammars/source.data-weave.json +901 -905
- data/grammars/source.desktop.json +29 -33
- data/grammars/source.diff.json +43 -52
- data/grammars/source.disasm.json +15 -16
- data/grammars/source.ditroff.desc.json +73 -84
- data/grammars/source.ditroff.json +60 -61
- data/grammars/source.dm.json +202 -213
- data/grammars/source.dmf.json +44 -47
- data/grammars/source.dockerfile.json +29 -34
- data/grammars/source.dot.json +46 -55
- data/grammars/source.dylan.json +63 -68
- data/grammars/source.ebnf.json +55 -62
- data/grammars/source.eiffel.json +57 -62
- data/grammars/source.elixir.json +321 -366
- data/grammars/source.emacs.lisp.json +458 -249
- data/grammars/source.erazor.json +49 -57
- data/grammars/source.erlang.json +508 -515
- data/grammars/source.essl.json +17 -30
- data/grammars/source.factor.json +85 -91
- data/grammars/source.fan.json +92 -96
- data/grammars/source.fancy.json +93 -118
- data/grammars/source.fish.json +74 -98
- data/grammars/source.fontforge.json +142 -146
- data/grammars/source.forth.json +42 -57
- data/grammars/source.fortran.json +193 -231
- data/grammars/source.fortran.modern.json +77 -103
- data/grammars/source.fsharp.fsi.json +1 -6
- data/grammars/source.fsharp.fsl.json +1 -6
- data/grammars/source.fsharp.fsx.json +1 -6
- data/grammars/source.fsharp.json +148 -153
- data/grammars/source.gap.json +60 -70
- data/grammars/source.gcode.json +9 -16
- data/grammars/source.gdb.json +63 -79
- data/grammars/source.gdb.session.json +27 -28
- data/grammars/source.gdbregs.json +7 -8
- data/grammars/source.gdscript.json +92 -96
- data/grammars/source.gerber.json +38 -56
- data/grammars/source.gfm.json +447 -462
- data/grammars/source.glsl.json +58 -83
- data/grammars/source.gn.json +188 -193
- data/grammars/source.gnuplot.json +104 -120
- data/grammars/source.go.json +169 -181
- data/grammars/source.golo.json +82 -87
- data/grammars/source.gosu.2.json +58 -68
- data/grammars/source.grace.json +266 -270
- data/grammars/source.graphql.json +586 -596
- data/grammars/source.groovy.gradle.json +18 -22
- data/grammars/source.groovy.json +422 -433
- data/grammars/source.harbour.json +129 -173
- data/grammars/source.haskell.json +871 -772
- data/grammars/source.haxe.2.json +402 -413
- data/grammars/source.hlsl.json +6 -16
- data/grammars/source.hsc2hs.json +1 -4
- data/grammars/source.hsig.json +871 -770
- data/grammars/source.hss.1.json +122 -144
- data/grammars/source.httpspec.json +119 -123
- data/grammars/source.hxml.json +8 -15
- data/grammars/source.ideal.json +125 -125
- data/grammars/source.idl-dlm.json +25 -32
- data/grammars/source.idl.json +59 -80
- data/grammars/source.idris.json +171 -185
- data/grammars/source.inform7.json +117 -121
- data/grammars/source.ini.json +37 -43
- data/grammars/source.io.json +65 -73
- data/grammars/source.ioke.json +72 -78
- data/grammars/source.isabelle.root.json +26 -30
- data/grammars/source.isabelle.theory.json +46 -50
- data/grammars/source.j.json +18 -21
- data/grammars/source.jasmin.json +45 -50
- data/grammars/source.java-properties.json +31 -41
- data/grammars/source.java.json +333 -342
- data/grammars/source.jcl.json +15 -18
- data/grammars/source.jflex.json +166 -172
- data/grammars/source.jison.json +331 -334
- data/grammars/source.jisonlex-injection.json +1 -2
- data/grammars/source.jisonlex.json +148 -151
- data/grammars/source.jolie.json +37 -43
- data/grammars/source.jq.json +80 -87
- data/grammars/source.js.json +798 -818
- data/grammars/source.js.jsx.json +2115 -2225
- data/grammars/source.js.objj.json +167 -172
- data/grammars/source.js.regexp.json +50 -50
- data/grammars/source.js.regexp.replacement.json +7 -7
- data/grammars/source.jsdoc.json +94 -94
- data/grammars/source.json.json +61 -71
- data/grammars/source.julia.console.json +5 -6
- data/grammars/source.julia.json +237 -234
- data/grammars/source.lean.json +55 -67
- data/grammars/source.lid.json +6 -10
- data/grammars/source.lilypond.json +181 -195
- data/grammars/source.lisp.json +40 -50
- data/grammars/source.litcoffee.json +169 -183
- data/grammars/source.livescript.json +207 -220
- data/grammars/source.llvm.json +28 -38
- data/grammars/source.logos.json +7 -14
- data/grammars/source.logtalk.json +136 -141
- data/grammars/source.loomscript.json +77 -83
- data/grammars/source.lsl.json +90 -106
- data/grammars/source.lua.json +100 -109
- data/grammars/source.makefile.json +181 -188
- data/grammars/source.makegen.json +3 -7
- data/grammars/source.mask.json +260 -265
- data/grammars/source.mata.json +38 -46
- data/grammars/source.mathematica.json +155 -167
- data/grammars/source.matlab.json +407 -684
- data/grammars/source.maxscript.json +293 -281
- data/grammars/source.mercury.json +179 -184
- data/grammars/source.meson.json +52 -58
- data/grammars/source.meta-info.json +64 -74
- data/grammars/source.ml.json +107 -113
- data/grammars/source.modelica.json +51 -59
- data/grammars/source.modula2.json +33 -42
- data/grammars/source.monkey.json +234 -241
- data/grammars/source.moonscript.json +51 -56
- data/grammars/source.mql5.json +74 -101
- data/grammars/source.mupad.json +30 -72
- data/grammars/source.ncl.json +1 -14
- data/grammars/source.ne.json +39 -42
- data/grammars/source.nemerle.json +58 -63
- data/grammars/source.nesc.json +9 -15
- data/grammars/source.netlinx.erb.json +13 -25
- data/grammars/source.netlinx.json +231 -292
- data/grammars/source.nextflow-groovy.json +1360 -0
- data/grammars/source.nextflow.json +74 -0
- data/grammars/source.nginx.json +274 -287
- data/grammars/source.nim.json +442 -483
- data/grammars/source.nim_filter.json +6 -26
- data/grammars/source.nimcfg.json +38 -51
- data/grammars/source.ninja.json +64 -70
- data/grammars/source.nit.json +60 -64
- data/grammars/source.nix.json +269 -273
- data/grammars/source.nmml.json +31 -37
- data/grammars/source.nsis.json +66 -72
- data/grammars/source.nu.json +129 -139
- data/grammars/source.nut.json +129 -133
- data/grammars/source.objc++.json +3 -10
- data/grammars/source.objc.json +303 -314
- data/grammars/source.objc.platform.json +145 -151
- data/grammars/source.ocaml.json +506 -514
- data/grammars/source.ocamllex.json +108 -115
- data/grammars/source.ocamlyacc.json +116 -123
- data/grammars/source.ooc.json +148 -155
- data/grammars/source.opa.json +39 -49
- data/grammars/source.opal.json +84 -89
- data/grammars/source.opalsysdefs.json +9 -13
- data/grammars/source.opencobol.json +22 -25
- data/grammars/source.opentype.json +148 -152
- data/grammars/source.ox.json +36 -44
- data/grammars/source.oz.json +31 -38
- data/grammars/source.p4.json +49 -59
- data/grammars/source.pan.json +273 -278
- data/grammars/source.papyrus.skyrim.json +705 -781
- data/grammars/source.parrot.pir.json +59 -65
- data/grammars/source.pascal.json +54 -61
- data/grammars/source.pawn.json +835 -849
- data/grammars/source.pcb.board.json +153 -158
- data/grammars/source.pcb.schematic.json +134 -138
- data/grammars/source.pcb.sexp.json +64 -74
- data/grammars/source.pep8.json +28 -32
- data/grammars/source.perl.6.json +83 -92
- data/grammars/source.perl.json +711 -737
- data/grammars/source.perl6fe.json +1204 -1218
- data/grammars/source.php.zephir.json +80 -89
- data/grammars/source.pic.json +137 -142
- data/grammars/source.pig_latin.json +76 -80
- data/grammars/source.pike.json +23 -36
- data/grammars/source.po.json +74 -84
- data/grammars/source.pogoscript.json +23 -29
- data/grammars/source.pony.json +98 -108
- data/grammars/source.postcss.json +370 -0
- data/grammars/source.postscript.json +88 -97
- data/grammars/source.pov-ray sdl.json +36 -42
- data/grammars/source.powershell.json +175 -197
- data/grammars/source.processing.json +236 -249
- data/grammars/source.prolog.eclipse.json +33 -38
- data/grammars/source.prolog.json +66 -72
- data/grammars/source.protobuf.json +88 -94
- data/grammars/source.puppet.json +144 -151
- data/grammars/source.purescript.json +268 -289
- data/grammars/source.pyjade.json +256 -281
- data/grammars/source.python.django.json +13 -18
- data/grammars/source.python.json +3319 -3367
- data/grammars/source.python.salt.json +3 -7
- data/grammars/source.qmake.json +83 -90
- data/grammars/source.qml.json +57 -78
- data/grammars/source.quoting.perl6fe.json +666 -669
- data/grammars/source.r.json +75 -84
- data/grammars/source.racket.json +17 -38
- data/grammars/source.rascal.json +77 -80
- data/grammars/source.reason.hover.type.json +1 -1
- data/grammars/source.reason.json +1025 -1080
- data/grammars/source.rebol.json +167 -177
- data/grammars/source.red.json +169 -177
- data/grammars/source.regexp.babel.json +74 -77
- data/grammars/source.regexp.extended.json +4 -5
- data/grammars/source.regexp.json +260 -264
- data/grammars/source.regexp.perl6fe.json +108 -111
- data/grammars/source.regexp.python.json +210 -215
- data/grammars/source.regexp.spin.json +63 -72
- data/grammars/source.renpy.json +617 -687
- data/grammars/source.rexx.json +25 -32
- data/grammars/source.ring.json +84 -114
- data/grammars/source.rpm-spec.json +392 -401
- data/grammars/source.ruby.gemfile.json +9 -12
- data/grammars/source.ruby.json +862 -952
- data/grammars/source.ruby.rspec.cucumber.steps.json +90 -103
- data/grammars/source.rust.json +223 -281
- data/grammars/source.sas.json +88 -105
- data/grammars/source.sass.json +100 -108
- data/grammars/source.sbt.json +16 -23
- data/grammars/source.scad.json +60 -67
- data/grammars/source.scala.json +215 -228
- data/grammars/source.scaml.json +120 -135
- data/grammars/source.scheme.json +119 -136
- data/grammars/source.scilab.json +40 -47
- data/grammars/source.scss.json +369 -403
- data/grammars/source.sdbl.json +14 -25
- data/grammars/source.shaderlab.json +24 -27
- data/grammars/source.shell.json +409 -440
- data/grammars/source.shen.json +75 -94
- data/grammars/source.smali.json +232 -293
- data/grammars/source.smalltalk.json +60 -75
- data/grammars/source.smt.json +67 -82
- data/grammars/source.solidity.json +35 -54
- data/grammars/source.sp.json +40 -45
- data/grammars/source.sparql.json +3 -8
- data/grammars/source.spin.json +277 -297
- data/grammars/source.sqf.json +34 -44
- data/grammars/source.sql.json +142 -156
- data/grammars/source.stan.json +201 -160
- data/grammars/source.stata.json +57 -68
- data/grammars/source.strings.json +26 -30
- data/grammars/source.stylus.json +558 -565
- data/grammars/source.supercollider.json +33 -40
- data/grammars/source.swift.json +999 -1077
- data/grammars/source.systemverilog.json +351 -365
- data/grammars/source.tcl.json +77 -94
- data/grammars/source.tea.json +61 -67
- data/grammars/source.terra.json +25 -32
- data/grammars/source.terraform.json +68 -88
- data/grammars/source.thrift.json +300 -306
- data/grammars/source.tl.json +112 -117
- data/grammars/source.tla.json +65 -69
- data/grammars/source.toc.json +21 -25
- data/grammars/source.toml.json +117 -122
- data/grammars/source.ts.json +2838 -2774
- data/grammars/source.tsx.json +180 -184
- data/grammars/source.turing.json +970 -974
- data/grammars/source.turtle.json +124 -140
- data/grammars/source.txl.json +23 -37
- data/grammars/source.ucfconstraints.json +16 -21
- data/grammars/source.ur.json +15 -27
- data/grammars/source.vala.json +221 -235
- data/grammars/source.varnish.vcl.json +117 -129
- data/grammars/source.vbnet.json +69 -106
- data/grammars/source.verilog.json +101 -107
- data/grammars/source.vhdl.json +437 -445
- data/grammars/source.viml.json +540 -550
- data/grammars/source.wavefront.mtl.json +274 -277
- data/grammars/source.wavefront.obj.json +781 -784
- data/grammars/source.wdl.json +66 -46
- data/grammars/source.webassembly.json +97 -102
- data/grammars/source.webidl.json +311 -326
- data/grammars/source.x10.json +28 -32
- data/grammars/source.x86asm.json +21 -26
- data/grammars/source.xc.json +164 -172
- data/grammars/source.xq.json +81 -92
- data/grammars/source.xtend.json +199 -208
- data/grammars/source.yaml-ext.json +118 -124
- data/grammars/source.yaml.json +155 -174
- data/grammars/source.yaml.salt.json +113 -116
- data/grammars/source.yang.json +10 -13
- data/grammars/source.yara.json +98 -0
- data/grammars/text.bibtex.json +95 -100
- data/grammars/text.cfml.basic.json +403 -404
- data/grammars/text.elixir.json +18 -23
- data/grammars/text.error-list.json +15 -16
- data/grammars/text.find-refs.json +487 -488
- data/grammars/text.gherkin.feature.json +45 -53
- data/grammars/text.haml.json +176 -189
- data/grammars/text.hamlc.json +82 -88
- data/grammars/text.html.abl.json +16 -21
- data/grammars/text.html.asciidoc.json +139 -153
- data/grammars/text.html.asdoc.json +145 -155
- data/grammars/text.html.asp.json +23 -28
- data/grammars/text.html.basic.json +323 -338
- data/grammars/text.html.cfm.json +316 -325
- data/grammars/text.html.creole.json +177 -189
- data/grammars/text.html.django.json +27 -33
- data/grammars/text.html.ecr.json +21 -25
- data/grammars/text.html.elixir.json +3 -9
- data/grammars/text.html.erb.json +81 -85
- data/grammars/text.html.erlang.yaws.json +24 -29
- data/grammars/text.html.factor.json +5 -11
- data/grammars/text.html.ftl.json +16 -25
- data/grammars/text.html.handlebars.json +579 -598
- data/grammars/text.html.javadoc.json +426 -0
- data/grammars/text.html.js.json +11 -17
- data/grammars/text.html.jsp.json +377 -384
- data/grammars/text.html.liquid.json +8 -18
- data/grammars/text.html.mako.json +257 -275
- data/grammars/text.html.markdown.source.gfm.apib.json +419 -427
- data/grammars/text.html.markdown.source.gfm.mson.json +405 -414
- data/grammars/text.html.mediawiki.json +318 -344
- data/grammars/text.html.php.blade.json +2134 -2140
- data/grammars/text.html.php.json +980 -1013
- data/grammars/text.html.slash.json +101 -107
- data/grammars/text.html.smarty.json +75 -83
- data/grammars/text.html.soy.json +250 -253
- data/grammars/text.html.ssp.json +18 -24
- data/grammars/text.html.tcl.json +17 -24
- data/grammars/text.html.twig.json +712 -718
- data/grammars/text.idl-idldoc.json +5 -9
- data/grammars/text.jade.json +213 -235
- data/grammars/text.junit-test-report.json +25 -28
- data/grammars/text.log.latex.json +44 -46
- data/grammars/text.marko.json +370 -401
- data/grammars/text.python.console.json +3 -7
- data/grammars/text.python.traceback.json +2 -5
- data/grammars/text.rdoc.json +15 -19
- data/grammars/text.restructuredtext.clean.json +8 -11
- data/grammars/text.restructuredtext.json +886 -873
- data/grammars/text.robot.json +26 -36
- data/grammars/text.roff.json +2852 -2915
- data/grammars/text.runoff.json +56 -69
- data/grammars/text.sfd.json +151 -155
- data/grammars/text.shell-session.json +5 -8
- data/grammars/text.slim.json +184 -210
- data/grammars/text.srt.json +54 -57
- data/grammars/text.tex.json +98 -105
- data/grammars/text.tex.latex.beamer.json +14 -20
- data/grammars/text.tex.latex.haskell.json +883 -782
- data/grammars/text.tex.latex.json +281 -291
- data/grammars/text.tex.latex.memoir.json +39 -46
- data/grammars/text.tex.latex.rd.json +32 -38
- data/grammars/text.xml.ant.json +62 -69
- data/grammars/text.xml.flex-config.json +1009 -1013
- data/grammars/text.xml.genshi.json +10 -16
- data/grammars/text.xml.json +117 -130
- data/grammars/text.xml.pom.json +235 -240
- data/grammars/text.xml.xsl.json +31 -37
- data/grammars/text.zone_file.json +24 -29
- data/lib/linguist/blob.rb +10 -1
- data/lib/linguist/blob_helper.rb +4 -1
- data/lib/linguist/file_blob.rb +5 -0
- data/lib/linguist/generated.rb +16 -0
- data/lib/linguist/heuristics.rb +23 -11
- data/lib/linguist/language.rb +3 -6
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +74 -12
- data/lib/linguist/lazy_blob.rb +15 -1
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1666 -3381
- data/lib/linguist/shebang.rb +2 -0
- data/lib/linguist/strategy/modeline.rb +2 -0
- data/lib/linguist/vendor.yml +5 -6
- data/lib/linguist/version.rb +1 -1
- metadata +12 -11
- data/grammars/source.elm.json +0 -381
- data/grammars/source.nant-build.json +0 -86
- data/grammars/source.octave.json +0 -451
- data/grammars/text.html.mediawiki.elm-build-output.json +0 -111
- data/grammars/text.html.mediawiki.elm-documentation.json +0 -22
- data/grammars/text.html.vue.json +0 -936
@@ -1,10 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "DataWeave",
|
3
3
|
"scopeName": "source.data-weave",
|
4
|
-
"fileTypes": [
|
5
|
-
"dwl"
|
6
|
-
],
|
7
|
-
"uuid": "ba6390ae-c50f-4dce-97f1-951dab8fc607",
|
8
4
|
"patterns": [
|
9
5
|
{
|
10
6
|
"include": "#comments"
|
@@ -13,148 +9,116 @@
|
|
13
9
|
"include": "#directives"
|
14
10
|
},
|
15
11
|
{
|
16
|
-
"
|
17
|
-
"
|
12
|
+
"name": "keyword.operator.body-marker.dw",
|
13
|
+
"match": "(---)"
|
18
14
|
},
|
19
15
|
{
|
20
16
|
"include": "#expressions"
|
21
17
|
},
|
22
18
|
{
|
23
|
-
"
|
24
|
-
"
|
19
|
+
"name": "invalid",
|
20
|
+
"match": "([^\\s]+)"
|
25
21
|
}
|
26
22
|
],
|
27
23
|
"repository": {
|
28
|
-
"
|
29
|
-
"
|
30
|
-
|
31
|
-
|
32
|
-
},
|
33
|
-
{
|
34
|
-
"include": "#import-directive"
|
35
|
-
},
|
36
|
-
{
|
37
|
-
"include": "#type-directive"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"include": "#fun-directive"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"include": "#var-directive"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"include": "#ns-directive"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
"include": "#input-directive"
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"include": "#output-directive"
|
53
|
-
}
|
54
|
-
]
|
55
|
-
},
|
56
|
-
"function_call": {
|
57
|
-
"name": "function_call",
|
58
|
-
"begin": "\\s*\\(",
|
59
|
-
"end": "\\s*\\)",
|
24
|
+
"array-literal": {
|
25
|
+
"name": "meta.array.literal.dw",
|
26
|
+
"begin": "(?\u003c!\\w|}|])(\\[)",
|
27
|
+
"end": "\\]",
|
60
28
|
"patterns": [
|
61
|
-
{
|
62
|
-
"include": "#punctuation-comma"
|
63
|
-
},
|
64
29
|
{
|
65
30
|
"include": "#expressions"
|
66
|
-
}
|
67
|
-
]
|
68
|
-
},
|
69
|
-
"variable-reference": {
|
70
|
-
"patterns": [
|
71
|
-
{
|
72
|
-
"name": "variable.other.dw",
|
73
|
-
"match": "\\b(?!(fun|input|output|type|var|ns|import|%dw|private|---)\\b)((\\+\\+|\\-\\-|[A-Za-z])[a-zA-Z0-9_]*)"
|
74
|
-
},
|
75
|
-
{
|
76
|
-
"name": "invalid",
|
77
|
-
"match": "\\b(fun|input|output|type|var|ns|import|private)\\b"
|
78
31
|
},
|
79
32
|
{
|
80
|
-
"
|
81
|
-
"match": "(\\$+)"
|
33
|
+
"include": "#punctuation-comma"
|
82
34
|
}
|
83
|
-
]
|
84
|
-
},
|
85
|
-
"cast": {
|
86
|
-
"begin": "(?<!\\.|\\$)\\b(as|is)\\s+",
|
35
|
+
],
|
87
36
|
"beginCaptures": {
|
88
|
-
"
|
89
|
-
"name": "
|
37
|
+
"0": {
|
38
|
+
"name": "meta.brace.square.dw"
|
90
39
|
}
|
91
40
|
},
|
92
|
-
"
|
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": "\\)",
|
93
51
|
"patterns": [
|
94
52
|
{
|
95
|
-
"include": "#
|
53
|
+
"include": "#object-member"
|
96
54
|
}
|
97
|
-
]
|
98
|
-
},
|
99
|
-
"case-clause": {
|
100
|
-
"name": "case-clause.expr.dw",
|
101
|
-
"begin": "(?<!\\.|\\$)\\b(case|else(?=\\s*->))\\b(?!\\$|\\.)",
|
55
|
+
],
|
102
56
|
"beginCaptures": {
|
103
|
-
"
|
104
|
-
"name": "keyword.
|
57
|
+
"0": {
|
58
|
+
"name": "keyword.operator.attributes.dw"
|
105
59
|
}
|
106
60
|
},
|
107
|
-
"end": "\\-\\>",
|
108
61
|
"endCaptures": {
|
109
62
|
"0": {
|
110
|
-
"name": "keyword.
|
63
|
+
"name": "keyword.operator.attributes.dw"
|
111
64
|
}
|
112
|
-
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
"case-clause": {
|
68
|
+
"name": "case-clause.expr.dw",
|
69
|
+
"begin": "(?\u003c!\\.|\\$)\\b(case|else(?=\\s*-\u003e))\\b(?!\\$|\\.)",
|
70
|
+
"end": "\\-\\\u003e",
|
113
71
|
"patterns": [
|
114
72
|
{
|
115
|
-
"begin": "(
|
73
|
+
"begin": "(?\u003c!\\.|\\$)\\b(is)\\s+",
|
74
|
+
"end": "(?=\\-\\\u003e)",
|
75
|
+
"patterns": [
|
76
|
+
{
|
77
|
+
"include": "#types"
|
78
|
+
}
|
79
|
+
],
|
116
80
|
"beginCaptures": {
|
117
81
|
"1": {
|
118
82
|
"name": "keyword.control.is.dw"
|
119
83
|
}
|
120
|
-
}
|
121
|
-
|
84
|
+
}
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"begin": "(?\u003c!\\.|\\$)\\b(matches)\\b",
|
88
|
+
"end": "(?=\\-\\\u003e)",
|
122
89
|
"patterns": [
|
123
90
|
{
|
124
|
-
"include": "#
|
91
|
+
"include": "#expressions"
|
125
92
|
}
|
126
|
-
]
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"begin": "(?<!\\.|\\$)\\b(matches)\\b",
|
93
|
+
],
|
130
94
|
"beginCaptures": {
|
131
95
|
"1": {
|
132
96
|
"name": "keyword.control.matches.dw"
|
133
97
|
}
|
134
|
-
}
|
135
|
-
|
98
|
+
}
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"begin": "(?\u003c!\\.|\\$)\\b([A-Za-z][a-zA-Z0-9_]*)\\s*:\\s+",
|
102
|
+
"end": "(?=\\-\\\u003e)",
|
136
103
|
"patterns": [
|
137
104
|
{
|
138
105
|
"include": "#expressions"
|
139
106
|
}
|
140
|
-
]
|
141
|
-
},
|
142
|
-
{
|
143
|
-
"begin": "(?<!\\.|\\$)\\b([A-Za-z][a-zA-Z0-9_]*)\\s*:\\s+",
|
107
|
+
],
|
144
108
|
"beginCaptures": {
|
145
109
|
"1": {
|
146
110
|
"name": "entity.name.variable.dw"
|
147
111
|
}
|
148
|
-
}
|
149
|
-
|
112
|
+
}
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"begin": "(?\u003c!\\.|\\$)\\b([A-Za-z][a-zA-Z0-9_]*)\\s*(if|matches)\\s+",
|
116
|
+
"end": "(?=\\-\\\u003e)",
|
150
117
|
"patterns": [
|
151
118
|
{
|
152
119
|
"include": "#expressions"
|
153
120
|
}
|
154
|
-
]
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"begin": "(?<!\\.|\\$)\\b([A-Za-z][a-zA-Z0-9_]*)\\s*(if|matches)\\s+",
|
121
|
+
],
|
158
122
|
"beginCaptures": {
|
159
123
|
"1": {
|
160
124
|
"name": "entity.name.variable.dw"
|
@@ -162,18 +126,36 @@
|
|
162
126
|
"2": {
|
163
127
|
"name": "keyword.control.if.dw"
|
164
128
|
}
|
165
|
-
}
|
166
|
-
"end": "(?=\\-\\>)",
|
167
|
-
"patterns": [
|
168
|
-
{
|
169
|
-
"include": "#expressions"
|
170
|
-
}
|
171
|
-
]
|
129
|
+
}
|
172
130
|
},
|
173
131
|
{
|
174
132
|
"include": "#expressions"
|
175
133
|
}
|
176
|
-
]
|
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
|
+
}
|
177
159
|
},
|
178
160
|
"comments": {
|
179
161
|
"patterns": [
|
@@ -212,17 +194,7 @@
|
|
212
194
|
},
|
213
195
|
{
|
214
196
|
"begin": "\\|",
|
215
|
-
"beginCaptures": {
|
216
|
-
"0": {
|
217
|
-
"name": "constant.numeric.dw"
|
218
|
-
}
|
219
|
-
},
|
220
197
|
"end": "\\|",
|
221
|
-
"endCaptures": {
|
222
|
-
"0": {
|
223
|
-
"name": "constant.numeric.dw"
|
224
|
-
}
|
225
|
-
},
|
226
198
|
"patterns": [
|
227
199
|
{
|
228
200
|
"name": "constant.numeric.dw",
|
@@ -236,13 +208,89 @@
|
|
236
208
|
"name": "invalid",
|
237
209
|
"match": "([^\\|])"
|
238
210
|
}
|
239
|
-
]
|
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"
|
240
250
|
}
|
241
251
|
]
|
242
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
|
+
},
|
243
290
|
"dw-directive": {
|
244
291
|
"name": "meta.directive.version.dw",
|
245
|
-
"begin": "(
|
292
|
+
"begin": "(?\u003c!\\.|\\$)(%dw)\\s+([0-9]\\.[0-9])(?!\\$|\\.)",
|
293
|
+
"end": "(?=\\n)",
|
246
294
|
"beginCaptures": {
|
247
295
|
"1": {
|
248
296
|
"name": "comment.dw"
|
@@ -250,12 +298,7 @@
|
|
250
298
|
"2": {
|
251
299
|
"name": "comment.dw"
|
252
300
|
}
|
253
|
-
}
|
254
|
-
"end": "(?=\\n)"
|
255
|
-
},
|
256
|
-
"infix": {
|
257
|
-
"name": "support.function.dw",
|
258
|
-
"match": "(?<!^|,|\\[|\\(|=|\\+|>|<|\\-|\\*|:|\\{|case|is|else|not|as|and|or)(?<=[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*(?=[\"'/|{]))"
|
301
|
+
}
|
259
302
|
},
|
260
303
|
"expressions": {
|
261
304
|
"name": "expression",
|
@@ -320,67 +363,195 @@
|
|
320
363
|
}
|
321
364
|
]
|
322
365
|
},
|
323
|
-
"
|
366
|
+
"fun-directive": {
|
367
|
+
"name": "meta.directive.fun.dw",
|
368
|
+
"begin": "(\\s*(fun)\\s+([a-zA-Z][a-zA-Z0-9]*))",
|
369
|
+
"end": "(=)",
|
324
370
|
"patterns": [
|
325
371
|
{
|
326
|
-
"begin": "
|
327
|
-
"
|
328
|
-
"1": {
|
329
|
-
"name": "keyword.operator.declaration.dw"
|
330
|
-
}
|
331
|
-
},
|
332
|
-
"end": "(?=,|>)",
|
372
|
+
"begin": "\u003c",
|
373
|
+
"end": "\u003e",
|
333
374
|
"patterns": [
|
334
375
|
{
|
335
|
-
"include": "#
|
376
|
+
"include": "#generics"
|
336
377
|
}
|
337
378
|
]
|
338
379
|
},
|
339
380
|
{
|
340
|
-
"
|
341
|
-
"
|
342
|
-
|
343
|
-
|
344
|
-
|
381
|
+
"begin": "\\(",
|
382
|
+
"end": "\\)",
|
383
|
+
"patterns": [
|
384
|
+
{
|
385
|
+
"include": "#parameters"
|
386
|
+
}
|
387
|
+
]
|
345
388
|
},
|
346
389
|
{
|
347
|
-
"
|
348
|
-
"
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
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
|
+
],
|
356
404
|
"beginCaptures": {
|
357
|
-
"
|
405
|
+
"2": {
|
358
406
|
"name": "storage.type.dw"
|
359
407
|
},
|
360
|
-
"
|
361
|
-
"name": "entity.name.
|
408
|
+
"3": {
|
409
|
+
"name": "entity.name.function.dw"
|
362
410
|
}
|
363
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*\\)",
|
364
422
|
"patterns": [
|
365
423
|
{
|
366
|
-
"
|
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
|
+
],
|
367
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": {
|
368
504
|
"1": {
|
369
505
|
"name": "keyword.other.dw"
|
506
|
+
},
|
507
|
+
"2": {
|
508
|
+
"name": "entity.name.other.dw"
|
370
509
|
}
|
371
|
-
}
|
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*)",
|
372
530
|
"end": "(\\s|\\n)",
|
373
531
|
"patterns": [
|
374
532
|
{
|
375
533
|
"include": "#types"
|
376
534
|
}
|
377
|
-
]
|
535
|
+
],
|
536
|
+
"beginCaptures": {
|
537
|
+
"1": {
|
538
|
+
"name": "keyword.other.dw"
|
539
|
+
}
|
540
|
+
}
|
378
541
|
},
|
379
542
|
{
|
380
|
-
"
|
381
|
-
"
|
543
|
+
"name": "string.mime.dw",
|
544
|
+
"match": "([^{\\n\\s])"
|
382
545
|
}
|
383
|
-
]
|
546
|
+
],
|
547
|
+
"beginCaptures": {
|
548
|
+
"1": {
|
549
|
+
"name": "storage.type.dw"
|
550
|
+
},
|
551
|
+
"2": {
|
552
|
+
"name": "entity.name.variable.dw"
|
553
|
+
}
|
554
|
+
}
|
384
555
|
},
|
385
556
|
"keywords": {
|
386
557
|
"patterns": [
|
@@ -398,7 +569,7 @@
|
|
398
569
|
},
|
399
570
|
{
|
400
571
|
"name": "keyword.operator.comparison.dw",
|
401
|
-
"match": "(
|
572
|
+
"match": "(~=|==|!=|!=|\u003c=|\u003e=|\u003c|\u003e)"
|
402
573
|
},
|
403
574
|
{
|
404
575
|
"name": "keyword.operator.assignment.dw",
|
@@ -421,11 +592,6 @@
|
|
421
592
|
"match-block": {
|
422
593
|
"name": "match-block.expr.dw",
|
423
594
|
"begin": "\\{",
|
424
|
-
"beginCaptures": {
|
425
|
-
"0": {
|
426
|
-
"name": "punctuation.definition.block.dw"
|
427
|
-
}
|
428
|
-
},
|
429
595
|
"end": "(?=\\})",
|
430
596
|
"patterns": [
|
431
597
|
{
|
@@ -434,296 +600,231 @@
|
|
434
600
|
{
|
435
601
|
"include": "#expressions"
|
436
602
|
}
|
437
|
-
]
|
603
|
+
],
|
604
|
+
"beginCaptures": {
|
605
|
+
"0": {
|
606
|
+
"name": "punctuation.definition.block.dw"
|
607
|
+
}
|
608
|
+
}
|
438
609
|
},
|
439
610
|
"match-statement": {
|
440
611
|
"name": "match-statement.expr.dw",
|
441
|
-
"begin": "(
|
612
|
+
"begin": "(?\u003c!\\.|\\$)\\b(match)\\s*(?=\\{)",
|
613
|
+
"end": "\\}",
|
614
|
+
"patterns": [
|
615
|
+
{
|
616
|
+
"include": "#match-block"
|
617
|
+
}
|
618
|
+
],
|
442
619
|
"beginCaptures": {
|
443
620
|
"1": {
|
444
621
|
"name": "keyword.control.switch.dw"
|
445
622
|
}
|
446
623
|
},
|
447
|
-
"end": "\\}",
|
448
624
|
"endCaptures": {
|
449
625
|
"1": {
|
450
626
|
"name": "punctuation.definition.block.dw"
|
451
627
|
}
|
452
|
-
}
|
453
|
-
"patterns": [
|
454
|
-
{
|
455
|
-
"include": "#match-block"
|
456
|
-
}
|
457
|
-
]
|
628
|
+
}
|
458
629
|
},
|
459
|
-
"
|
460
|
-
"name": "
|
461
|
-
"begin": "(
|
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)",
|
462
634
|
"beginCaptures": {
|
463
635
|
"1": {
|
464
|
-
"name": "
|
636
|
+
"name": "storage.type.dw"
|
465
637
|
},
|
466
638
|
"2": {
|
467
|
-
"name": "
|
468
|
-
}
|
469
|
-
|
470
|
-
|
471
|
-
"endCaptures": {
|
472
|
-
"1": {
|
473
|
-
"name": "punctuation.definitions.end.dw"
|
639
|
+
"name": "entity.name.namespace.dw"
|
640
|
+
},
|
641
|
+
"3": {
|
642
|
+
"name": "meta.definition.ns.dw string.url.dw"
|
474
643
|
}
|
475
|
-
}
|
644
|
+
}
|
645
|
+
},
|
646
|
+
"object-key": {
|
476
647
|
"patterns": [
|
477
648
|
{
|
478
|
-
"
|
649
|
+
"name": "meta.object.member.dw meta.object-literal.namespace.dw",
|
650
|
+
"match": "\\b([[:alpha:]][_[:alnum:]]+#)",
|
479
651
|
"captures": {
|
480
|
-
"
|
481
|
-
"name": "
|
482
|
-
},
|
483
|
-
"2": {
|
484
|
-
"name": "keyword.operator.dw"
|
652
|
+
"0": {
|
653
|
+
"name": "variable.language.dw"
|
485
654
|
}
|
486
655
|
}
|
487
656
|
},
|
488
657
|
{
|
489
|
-
"
|
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
|
+
}
|
490
676
|
}
|
491
677
|
]
|
492
678
|
},
|
493
|
-
"
|
494
|
-
"name": "
|
495
|
-
"begin": "
|
679
|
+
"object-literal": {
|
680
|
+
"name": "meta.objectliteral.dw",
|
681
|
+
"begin": "\\{",
|
682
|
+
"end": "\\}",
|
683
|
+
"patterns": [
|
684
|
+
{
|
685
|
+
"include": "#object-member"
|
686
|
+
}
|
687
|
+
],
|
496
688
|
"beginCaptures": {
|
497
|
-
"
|
498
|
-
"name": "
|
499
|
-
},
|
500
|
-
"2": {
|
501
|
-
"name": "punctuation.definitions.begin.dw"
|
689
|
+
"0": {
|
690
|
+
"name": "punctuation.definition.block.dw"
|
502
691
|
}
|
503
692
|
},
|
504
|
-
"end": "(\\})",
|
505
693
|
"endCaptures": {
|
506
|
-
"
|
507
|
-
"name": "punctuation.
|
694
|
+
"0": {
|
695
|
+
"name": "punctuation.definition.block.dw"
|
508
696
|
}
|
509
|
-
}
|
697
|
+
}
|
698
|
+
},
|
699
|
+
"object-member": {
|
510
700
|
"patterns": [
|
511
701
|
{
|
512
702
|
"include": "#comments"
|
513
703
|
},
|
514
704
|
{
|
515
|
-
"include": "#
|
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
|
+
}
|
516
720
|
},
|
517
721
|
{
|
518
|
-
"
|
519
|
-
"name": "keyword.operator.body-marker.dw"
|
722
|
+
"include": "#object-key"
|
520
723
|
},
|
521
724
|
{
|
522
|
-
"include": "#
|
725
|
+
"include": "#attr-literal"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"include": "#object-member-body"
|
523
729
|
},
|
524
730
|
{
|
525
|
-
"
|
526
|
-
"name": "invalid"
|
731
|
+
"include": "#punctuation-comma"
|
527
732
|
}
|
528
733
|
]
|
529
734
|
},
|
530
|
-
"
|
531
|
-
"name": "meta.
|
532
|
-
"begin": "
|
533
|
-
"
|
534
|
-
"1": {
|
535
|
-
"name": "keyword.control.if.dw"
|
536
|
-
}
|
537
|
-
},
|
538
|
-
"end": "\\)",
|
735
|
+
"object-member-body": {
|
736
|
+
"name": "meta.object.member.dw",
|
737
|
+
"begin": ":",
|
738
|
+
"end": "(?=,|\\}|\\))",
|
539
739
|
"patterns": [
|
540
740
|
{
|
541
741
|
"include": "#expressions"
|
542
742
|
}
|
543
|
-
]
|
544
|
-
},
|
545
|
-
"ns-directive": {
|
546
|
-
"name": "meta.directive.ns.dw",
|
547
|
-
"begin": "(?<!\\.|\\$)\\b(ns)\\s+([A-Za-z][a-zA-Z0-9_]*)\\s+([^\\n]*)(?!\\$|\\.)",
|
548
|
-
"beginCaptures": {
|
549
|
-
"1": {
|
550
|
-
"name": "storage.type.dw"
|
551
|
-
},
|
552
|
-
"2": {
|
553
|
-
"name": "entity.name.namespace.dw"
|
554
|
-
},
|
555
|
-
"3": {
|
556
|
-
"name": "meta.definition.ns.dw string.url.dw"
|
557
|
-
}
|
558
|
-
},
|
559
|
-
"end": "(?=\\n)"
|
560
|
-
},
|
561
|
-
"object-literal": {
|
562
|
-
"name": "meta.objectliteral.dw",
|
563
|
-
"begin": "\\{",
|
743
|
+
],
|
564
744
|
"beginCaptures": {
|
565
745
|
"0": {
|
566
|
-
"name": "punctuation.
|
567
|
-
}
|
568
|
-
},
|
569
|
-
"end": "\\}",
|
570
|
-
"endCaptures": {
|
571
|
-
"0": {
|
572
|
-
"name": "punctuation.definition.block.dw"
|
573
|
-
}
|
574
|
-
},
|
575
|
-
"patterns": [
|
576
|
-
{
|
577
|
-
"include": "#object-member"
|
746
|
+
"name": "meta.object-literal.key.dw punctuation.separator.key-value.dw"
|
578
747
|
}
|
579
|
-
|
748
|
+
}
|
580
749
|
},
|
581
|
-
"
|
582
|
-
"name": "meta.attributes.dw",
|
583
|
-
"begin": "\\@\\(",
|
584
|
-
"beginCaptures": {
|
585
|
-
"0": {
|
586
|
-
"name": "keyword.operator.attributes.dw"
|
587
|
-
}
|
588
|
-
},
|
589
|
-
"end": "\\)",
|
590
|
-
"endCaptures": {
|
591
|
-
"0": {
|
592
|
-
"name": "keyword.operator.attributes.dw"
|
593
|
-
}
|
594
|
-
},
|
750
|
+
"object-member-type": {
|
595
751
|
"patterns": [
|
596
752
|
{
|
597
|
-
"include": "#
|
598
|
-
}
|
599
|
-
]
|
600
|
-
},
|
601
|
-
"selectors": {
|
602
|
-
"name": "meta.selector.data-weave",
|
603
|
-
"begin": "(?<![\\[\\(:+*/\\-])(\\s*\\.\\.\\*|\\s*\\.\\.|\\s*\\.\\*|\\s*\\.\\@|\\s*\\.#|\\s*\\.&|\\s*\\.|(?=\\[)|\\:\\:)",
|
604
|
-
"end": "(?=\\s|,|\\}|\\)|\\n|\\]|\\(|-|$)",
|
605
|
-
"patterns": [
|
753
|
+
"include": "#comments"
|
754
|
+
},
|
606
755
|
{
|
607
|
-
"name": "
|
608
|
-
"match": "
|
609
|
-
"captures": {
|
610
|
-
"0": {
|
611
|
-
"name": "variable.language.dw"
|
612
|
-
}
|
613
|
-
}
|
756
|
+
"name": "variable.language.dw",
|
757
|
+
"match": "_"
|
614
758
|
},
|
615
759
|
{
|
616
|
-
"
|
617
|
-
"
|
760
|
+
"name": "variable.language.dw",
|
761
|
+
"match": "([a-zA-Z0-9]+#)"
|
618
762
|
},
|
619
763
|
{
|
620
|
-
"
|
764
|
+
"name": "entity.name.type.dw",
|
765
|
+
"match": "\\(\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*\\)"
|
621
766
|
},
|
622
767
|
{
|
623
|
-
"
|
624
|
-
"
|
625
|
-
"patterns": [
|
626
|
-
{
|
627
|
-
"include": "#expressions"
|
628
|
-
},
|
629
|
-
{
|
630
|
-
"match": "([\\)])",
|
631
|
-
"name": "invalid"
|
632
|
-
}
|
633
|
-
]
|
768
|
+
"name": "meta.object.member.dw",
|
769
|
+
"match": "([a-zA-Z][a-zA-Z0-9]*)"
|
634
770
|
},
|
635
771
|
{
|
636
|
-
"include": "#
|
637
|
-
}
|
638
|
-
]
|
639
|
-
},
|
640
|
-
"object-key": {
|
641
|
-
"patterns": [
|
772
|
+
"include": "#strings"
|
773
|
+
},
|
642
774
|
{
|
643
|
-
"name": "
|
644
|
-
"match": "
|
645
|
-
"captures": {
|
646
|
-
"0": {
|
647
|
-
"name": "variable.language.dw"
|
648
|
-
}
|
649
|
-
}
|
775
|
+
"name": "keyword.operator.optional.dw",
|
776
|
+
"match": "\\?"
|
650
777
|
},
|
651
778
|
{
|
652
|
-
"name": "
|
653
|
-
"
|
654
|
-
|
779
|
+
"name": "keyword.operator.optional.dw",
|
780
|
+
"match": "\\*"
|
781
|
+
},
|
782
|
+
{
|
783
|
+
"begin": "(\\@\\()",
|
784
|
+
"end": "(\\))",
|
655
785
|
"patterns": [
|
656
786
|
{
|
657
|
-
"include": "#
|
787
|
+
"include": "#punctuation-comma"
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"include": "#object-member-type"
|
658
791
|
}
|
659
|
-
]
|
660
|
-
|
661
|
-
{
|
662
|
-
"name": "meta.object.member.dw",
|
663
|
-
"end": "(?=,|\\}|\\))",
|
664
|
-
"match": "(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(?=:|@\\()",
|
665
|
-
"captures": {
|
792
|
+
],
|
793
|
+
"beginCaptures": {
|
666
794
|
"1": {
|
667
|
-
"name": "
|
795
|
+
"name": "keyword.operator.attributes.dw"
|
796
|
+
}
|
797
|
+
},
|
798
|
+
"endCaptures": {
|
799
|
+
"1": {
|
800
|
+
"name": "keyword.operator.attributes.dw"
|
668
801
|
}
|
669
802
|
}
|
670
|
-
}
|
671
|
-
]
|
672
|
-
},
|
673
|
-
"object-member": {
|
674
|
-
"patterns": [
|
675
|
-
{
|
676
|
-
"include": "#comments"
|
677
803
|
},
|
678
804
|
{
|
679
|
-
"
|
680
|
-
|
681
|
-
{
|
682
|
-
"begin": "\\s+if\\b",
|
683
|
-
"beginCaptures": {
|
684
|
-
"0": {
|
685
|
-
"name": "keyword.control.dw"
|
686
|
-
}
|
687
|
-
},
|
688
|
-
"end": "(?=,|})",
|
805
|
+
"begin": "(:)",
|
806
|
+
"end": "(?=,|}|\\)|\\|}|\\-}|\\|\\-})",
|
689
807
|
"patterns": [
|
690
808
|
{
|
691
|
-
"include": "#
|
809
|
+
"include": "#types"
|
692
810
|
}
|
693
|
-
]
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
"include": "#attr-literal"
|
700
|
-
},
|
701
|
-
{
|
702
|
-
"include": "#object-member-body"
|
811
|
+
],
|
812
|
+
"beginCaptures": {
|
813
|
+
"1": {
|
814
|
+
"name": "keyword.operator.declaration.dw"
|
815
|
+
}
|
816
|
+
}
|
703
817
|
},
|
704
818
|
{
|
705
|
-
"
|
706
|
-
|
707
|
-
]
|
708
|
-
},
|
709
|
-
"object-member-body": {
|
710
|
-
"name": "meta.object.member.dw",
|
711
|
-
"begin": ":",
|
712
|
-
"beginCaptures": {
|
713
|
-
"0": {
|
714
|
-
"name": "meta.object-literal.key.dw punctuation.separator.key-value.dw"
|
715
|
-
}
|
716
|
-
},
|
717
|
-
"end": "(?=,|\\}|\\))",
|
718
|
-
"patterns": [
|
719
|
-
{
|
720
|
-
"include": "#expressions"
|
819
|
+
"name": "invalid",
|
820
|
+
"match": "([^\\s])"
|
721
821
|
}
|
722
822
|
]
|
723
823
|
},
|
724
824
|
"output-directive": {
|
725
825
|
"name": "meta.directive.ns.dw",
|
726
|
-
"begin": "(
|
826
|
+
"begin": "(?\u003c!\\.|\\$)\\b(output)\\s+([^\\n{\\s]*)(?!\\$|\\.)",
|
827
|
+
"end": "(?=\\n)",
|
727
828
|
"beginCaptures": {
|
728
829
|
"1": {
|
729
830
|
"name": "storage.type.dw"
|
@@ -731,38 +832,37 @@
|
|
731
832
|
"2": {
|
732
833
|
"name": "string.other.dw"
|
733
834
|
}
|
734
|
-
}
|
735
|
-
"end": "(?=\\n)"
|
835
|
+
}
|
736
836
|
},
|
737
837
|
"parameters": {
|
738
838
|
"patterns": [
|
739
839
|
{
|
740
840
|
"begin": "(:)",
|
741
|
-
"beginCaptures": {
|
742
|
-
"1": {
|
743
|
-
"name": "keyword.operator.declaration.dw"
|
744
|
-
}
|
745
|
-
},
|
746
841
|
"end": "(?=,|\\)|=)",
|
747
842
|
"patterns": [
|
748
843
|
{
|
749
844
|
"include": "#types"
|
750
845
|
}
|
751
|
-
]
|
752
|
-
},
|
753
|
-
{
|
754
|
-
"begin": "(=)",
|
846
|
+
],
|
755
847
|
"beginCaptures": {
|
756
848
|
"1": {
|
757
849
|
"name": "keyword.operator.declaration.dw"
|
758
850
|
}
|
759
|
-
}
|
851
|
+
}
|
852
|
+
},
|
853
|
+
{
|
854
|
+
"begin": "(=)",
|
760
855
|
"end": "(?=,|\\))",
|
761
856
|
"patterns": [
|
762
857
|
{
|
763
858
|
"include": "#expressions"
|
764
859
|
}
|
765
|
-
]
|
860
|
+
],
|
861
|
+
"beginCaptures": {
|
862
|
+
"1": {
|
863
|
+
"name": "keyword.operator.declaration.dw"
|
864
|
+
}
|
865
|
+
}
|
766
866
|
},
|
767
867
|
{
|
768
868
|
"name": "variable.parameter.dw",
|
@@ -772,56 +872,59 @@
|
|
772
872
|
},
|
773
873
|
"paren-expression": {
|
774
874
|
"begin": "(\\()",
|
875
|
+
"end": "(\\))",
|
876
|
+
"patterns": [
|
877
|
+
{
|
878
|
+
"include": "#expressions"
|
879
|
+
}
|
880
|
+
],
|
775
881
|
"beginCaptures": {
|
776
882
|
"1": {
|
777
883
|
"name": "punctuation.expression.begin.dw"
|
778
884
|
}
|
779
885
|
},
|
780
|
-
"end": "(\\))",
|
781
886
|
"endCaptures": {
|
782
887
|
"1": {
|
783
888
|
"name": "punctuation.expression.end.dw"
|
784
889
|
}
|
785
|
-
}
|
786
|
-
"patterns": [
|
787
|
-
{
|
788
|
-
"include": "#expressions"
|
789
|
-
}
|
790
|
-
]
|
890
|
+
}
|
791
891
|
},
|
792
892
|
"punctuation-comma": {
|
793
893
|
"name": "punctuation.separator.comma.dw",
|
794
894
|
"match": ","
|
795
895
|
},
|
796
|
-
"
|
896
|
+
"qstring-backtick": {
|
897
|
+
"begin": "`",
|
898
|
+
"end": "`",
|
797
899
|
"patterns": [
|
798
900
|
{
|
799
|
-
"include": "#
|
901
|
+
"include": "#template-substitution-element"
|
800
902
|
},
|
801
903
|
{
|
802
|
-
"include": "#
|
904
|
+
"include": "#template-dollar"
|
803
905
|
},
|
804
906
|
{
|
805
|
-
"include": "#
|
907
|
+
"include": "#string-character-escape"
|
806
908
|
},
|
807
909
|
{
|
808
|
-
"
|
910
|
+
"name": "string.template.dw",
|
911
|
+
"match": "([^`])"
|
809
912
|
}
|
810
|
-
]
|
811
|
-
},
|
812
|
-
"qstring-backtick": {
|
813
|
-
"begin": "`",
|
913
|
+
],
|
814
914
|
"beginCaptures": {
|
815
915
|
"0": {
|
816
916
|
"name": "string.quoted.double.dw punctuation.definition.string.begin.dw"
|
817
917
|
}
|
818
918
|
},
|
819
|
-
"end": "`",
|
820
919
|
"endCaptures": {
|
821
920
|
"0": {
|
822
921
|
"name": "string.quoted.double.dw punctuation.definition.string.end.dw"
|
823
922
|
}
|
824
|
-
}
|
923
|
+
}
|
924
|
+
},
|
925
|
+
"qstring-double": {
|
926
|
+
"begin": "\"",
|
927
|
+
"end": "\"",
|
825
928
|
"patterns": [
|
826
929
|
{
|
827
930
|
"include": "#template-substitution-element"
|
@@ -833,27 +936,24 @@
|
|
833
936
|
"include": "#string-character-escape"
|
834
937
|
},
|
835
938
|
{
|
836
|
-
"
|
837
|
-
"
|
939
|
+
"name": "string.quoted.double.dw",
|
940
|
+
"match": "([^\"])"
|
838
941
|
}
|
839
|
-
]
|
840
|
-
},
|
841
|
-
"template": {
|
842
|
-
"begin": "([$[:alpha:]][_$[:alnum:]]*)\\s*(`)",
|
942
|
+
],
|
843
943
|
"beginCaptures": {
|
844
|
-
"
|
845
|
-
"name": "
|
846
|
-
},
|
847
|
-
"2": {
|
848
|
-
"name": "string.template.dw punctuation.definition.string.template.begin.dw"
|
944
|
+
"0": {
|
945
|
+
"name": "string.quoted.double.dw punctuation.definition.string.begin.dw"
|
849
946
|
}
|
850
947
|
},
|
851
|
-
"end": "`",
|
852
948
|
"endCaptures": {
|
853
949
|
"0": {
|
854
|
-
"name": "string.
|
950
|
+
"name": "string.quoted.double.dw punctuation.definition.string.end.dw"
|
855
951
|
}
|
856
|
-
}
|
952
|
+
}
|
953
|
+
},
|
954
|
+
"qstring-single": {
|
955
|
+
"begin": "'",
|
956
|
+
"end": "(\\')|((?:[^\\\\\\n])$)",
|
857
957
|
"patterns": [
|
858
958
|
{
|
859
959
|
"include": "#template-substitution-element"
|
@@ -865,52 +965,15 @@
|
|
865
965
|
"include": "#string-character-escape"
|
866
966
|
},
|
867
967
|
{
|
868
|
-
"
|
869
|
-
"
|
968
|
+
"name": "string.quoted.single.dw",
|
969
|
+
"match": "([^'])"
|
870
970
|
}
|
871
|
-
]
|
872
|
-
},
|
873
|
-
"string-character-escape": {
|
874
|
-
"name": "constant.character.escape.dw",
|
875
|
-
"match": "\\\\(u\\h{4}|$|.)"
|
876
|
-
},
|
877
|
-
"qstring-double": {
|
878
|
-
"begin": "\"",
|
879
|
-
"beginCaptures": {
|
880
|
-
"0": {
|
881
|
-
"name": "string.quoted.double.dw punctuation.definition.string.begin.dw"
|
882
|
-
}
|
883
|
-
},
|
884
|
-
"end": "\"",
|
885
|
-
"endCaptures": {
|
886
|
-
"0": {
|
887
|
-
"name": "string.quoted.double.dw punctuation.definition.string.end.dw"
|
888
|
-
}
|
889
|
-
},
|
890
|
-
"patterns": [
|
891
|
-
{
|
892
|
-
"include": "#template-substitution-element"
|
893
|
-
},
|
894
|
-
{
|
895
|
-
"include": "#template-dollar"
|
896
|
-
},
|
897
|
-
{
|
898
|
-
"include": "#string-character-escape"
|
899
|
-
},
|
900
|
-
{
|
901
|
-
"match": "([^\"])",
|
902
|
-
"name": "string.quoted.double.dw"
|
903
|
-
}
|
904
|
-
]
|
905
|
-
},
|
906
|
-
"qstring-single": {
|
907
|
-
"begin": "'",
|
971
|
+
],
|
908
972
|
"beginCaptures": {
|
909
973
|
"0": {
|
910
974
|
"name": "string.quoted.single.dw punctuation.definition.string.begin.dw"
|
911
975
|
}
|
912
976
|
},
|
913
|
-
"end": "(\\')|((?:[^\\\\\\n])$)",
|
914
977
|
"endCaptures": {
|
915
978
|
"1": {
|
916
979
|
"name": "string.quoted.single.dw punctuation.definition.string.end.dw"
|
@@ -918,302 +981,337 @@
|
|
918
981
|
"2": {
|
919
982
|
"name": "invalid.illegal.newline.dw"
|
920
983
|
}
|
921
|
-
}
|
984
|
+
}
|
985
|
+
},
|
986
|
+
"regex": {
|
922
987
|
"patterns": [
|
923
988
|
{
|
924
|
-
"
|
925
|
-
|
926
|
-
|
927
|
-
"
|
928
|
-
|
929
|
-
|
930
|
-
|
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
|
+
}
|
931
1007
|
},
|
932
1008
|
{
|
933
|
-
"
|
934
|
-
"
|
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
|
+
}
|
935
1027
|
}
|
936
1028
|
]
|
937
1029
|
},
|
938
|
-
"
|
1030
|
+
"regex-character-class": {
|
939
1031
|
"patterns": [
|
940
1032
|
{
|
941
|
-
"
|
942
|
-
"
|
1033
|
+
"name": "constant.other.character-class.regexp",
|
1034
|
+
"match": "\\\\[wWsSdDtrnvf]|\\."
|
943
1035
|
},
|
944
1036
|
{
|
945
|
-
"
|
946
|
-
"
|
1037
|
+
"name": "constant.character.numeric.regexp",
|
1038
|
+
"match": "\\\\([0-7]{3}|x[[:xdigit:]][[:xdigit:]]|u[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]])"
|
947
1039
|
},
|
948
1040
|
{
|
949
|
-
"
|
950
|
-
"
|
951
|
-
|
952
|
-
"name": "keyword.other.dw"
|
953
|
-
},
|
954
|
-
"2": {
|
955
|
-
"name": "variable.other.dw"
|
956
|
-
}
|
957
|
-
},
|
958
|
-
"name": "variable.parameter.dw"
|
959
|
-
}
|
960
|
-
]
|
961
|
-
},
|
962
|
-
"template-substitution-element": {
|
963
|
-
"name": "meta.template.expression.dw",
|
964
|
-
"begin": "\\$\\(",
|
965
|
-
"beginCaptures": {
|
966
|
-
"0": {
|
967
|
-
"name": "keyword.other.dw"
|
968
|
-
}
|
969
|
-
},
|
970
|
-
"end": "\\)",
|
971
|
-
"endCaptures": {
|
972
|
-
"0": {
|
973
|
-
"name": "keyword.other.dw"
|
974
|
-
}
|
975
|
-
},
|
976
|
-
"patterns": [
|
1041
|
+
"name": "constant.character.control.regexp",
|
1042
|
+
"match": "\\\\c[A-Z]"
|
1043
|
+
},
|
977
1044
|
{
|
978
|
-
"
|
1045
|
+
"name": "constant.character.escape.backslash.regexp",
|
1046
|
+
"match": "\\\\."
|
979
1047
|
}
|
980
1048
|
]
|
981
1049
|
},
|
982
|
-
"
|
1050
|
+
"regexp": {
|
983
1051
|
"patterns": [
|
984
1052
|
{
|
985
|
-
"
|
986
|
-
|
987
|
-
{
|
988
|
-
"name": "support.class.dw",
|
989
|
-
"match": "\\b(String|Boolean|Number|Range|Namespace|Uri|DateTime|LocalDateTime|Date|LocalTime|Time|TimeZone|Period|Binary|Null|Regex|Nothing|Any|Object|Key)\\b"
|
990
|
-
},
|
991
|
-
{
|
992
|
-
"begin": "\\b(Array|Type)\\s*<\\b",
|
993
|
-
"beginCaptures": {
|
994
|
-
"1": {
|
995
|
-
"name": "support.type.dw"
|
996
|
-
}
|
997
|
-
},
|
998
|
-
"end": ">",
|
999
|
-
"patterns": [
|
1000
|
-
{
|
1001
|
-
"match": ",",
|
1002
|
-
"name": "invalid"
|
1003
|
-
},
|
1004
|
-
{
|
1005
|
-
"include": "#types"
|
1006
|
-
}
|
1007
|
-
]
|
1053
|
+
"name": "keyword.control.anchor.regexp",
|
1054
|
+
"match": "\\\\[bB]|\\^|\\$"
|
1008
1055
|
},
|
1009
1056
|
{
|
1010
|
-
"name": "keyword.
|
1011
|
-
"match": "
|
1057
|
+
"name": "keyword.other.back-reference.regexp",
|
1058
|
+
"match": "\\\\[1-9]\\d*"
|
1012
1059
|
},
|
1013
1060
|
{
|
1014
|
-
"name": "keyword.operator.
|
1015
|
-
"match": "
|
1061
|
+
"name": "keyword.operator.quantifier.regexp",
|
1062
|
+
"match": "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??"
|
1016
1063
|
},
|
1017
1064
|
{
|
1018
|
-
"name": "
|
1019
|
-
"match": "
|
1065
|
+
"name": "keyword.operator.or.regexp",
|
1066
|
+
"match": "\\|"
|
1020
1067
|
},
|
1021
1068
|
{
|
1022
|
-
"
|
1023
|
-
"
|
1069
|
+
"name": "meta.group.assertion.regexp",
|
1070
|
+
"begin": "(\\()((\\?=)|(\\?!))",
|
1071
|
+
"end": "(\\))",
|
1024
1072
|
"patterns": [
|
1025
1073
|
{
|
1026
|
-
"include": "#
|
1027
|
-
},
|
1028
|
-
{
|
1029
|
-
"include": "#punctuation-comma"
|
1030
|
-
},
|
1031
|
-
{
|
1032
|
-
"include": "#comments"
|
1074
|
+
"include": "#regexp"
|
1033
1075
|
}
|
1034
|
-
]
|
1035
|
-
},
|
1036
|
-
{
|
1037
|
-
"begin": "\\(",
|
1076
|
+
],
|
1038
1077
|
"beginCaptures": {
|
1039
1078
|
"1": {
|
1040
|
-
"name": "
|
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"
|
1041
1089
|
}
|
1042
1090
|
},
|
1043
|
-
"
|
1044
|
-
|
1045
|
-
|
1046
|
-
"include": "#types"
|
1047
|
-
},
|
1048
|
-
{
|
1049
|
-
"include": "#parameters"
|
1091
|
+
"endCaptures": {
|
1092
|
+
"1": {
|
1093
|
+
"name": "punctuation.definition.group.regexp"
|
1050
1094
|
}
|
1051
|
-
|
1095
|
+
}
|
1052
1096
|
},
|
1053
1097
|
{
|
1054
|
-
"
|
1055
|
-
"
|
1098
|
+
"name": "meta.group.regexp",
|
1099
|
+
"begin": "\\((\\?:)?",
|
1100
|
+
"end": "\\)",
|
1056
1101
|
"patterns": [
|
1057
1102
|
{
|
1058
|
-
"include": "#
|
1059
|
-
},
|
1060
|
-
{
|
1061
|
-
"include": "#object-member-type"
|
1103
|
+
"include": "#regexp"
|
1062
1104
|
}
|
1063
|
-
]
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
"end": "\\|\\}",
|
1068
|
-
"patterns": [
|
1069
|
-
{
|
1070
|
-
"include": "#punctuation-comma"
|
1105
|
+
],
|
1106
|
+
"beginCaptures": {
|
1107
|
+
"0": {
|
1108
|
+
"name": "punctuation.definition.group.regexp"
|
1071
1109
|
},
|
1072
|
-
{
|
1073
|
-
"
|
1110
|
+
"1": {
|
1111
|
+
"name": "punctuation.definition.group.capture.regexp"
|
1074
1112
|
}
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
"end": "\\-\\}",
|
1080
|
-
"patterns": [
|
1081
|
-
{
|
1082
|
-
"include": "#punctuation-comma"
|
1083
|
-
},
|
1084
|
-
{
|
1085
|
-
"include": "#object-member-type"
|
1113
|
+
},
|
1114
|
+
"endCaptures": {
|
1115
|
+
"0": {
|
1116
|
+
"name": "punctuation.definition.group.regexp"
|
1086
1117
|
}
|
1087
|
-
|
1118
|
+
}
|
1088
1119
|
},
|
1089
1120
|
{
|
1090
|
-
"
|
1091
|
-
"
|
1121
|
+
"name": "constant.other.character-class.set.regexp",
|
1122
|
+
"begin": "(\\[)(\\^)?",
|
1123
|
+
"end": "(\\])",
|
1092
1124
|
"patterns": [
|
1093
1125
|
{
|
1094
|
-
"
|
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
|
+
}
|
1095
1148
|
},
|
1096
1149
|
{
|
1097
|
-
"include": "#
|
1150
|
+
"include": "#regex-character-class"
|
1098
1151
|
}
|
1099
|
-
]
|
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
|
+
}
|
1100
1166
|
},
|
1101
1167
|
{
|
1102
|
-
"
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
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"
|
1107
1183
|
}
|
1108
|
-
|
1184
|
+
}
|
1109
1185
|
},
|
1110
1186
|
{
|
1111
|
-
"
|
1187
|
+
"name": "meta.object.member.dw",
|
1188
|
+
"match": "((?:[A-Za-z])([a-zA-Z0-9_]*)[?!]?|(\\$)+)"
|
1112
1189
|
},
|
1113
1190
|
{
|
1114
|
-
"
|
1115
|
-
"match": "\\b(input|output|var|ns|import|try|catch|throw|do|for|yield|enum|private|async)\\b"
|
1191
|
+
"include": "#strings"
|
1116
1192
|
},
|
1117
1193
|
{
|
1118
|
-
"
|
1119
|
-
"
|
1194
|
+
"begin": "(\\[(@|\\^)?)",
|
1195
|
+
"end": "(\\])",
|
1196
|
+
"patterns": [
|
1197
|
+
{
|
1198
|
+
"include": "#expressions"
|
1199
|
+
},
|
1200
|
+
{
|
1201
|
+
"name": "invalid",
|
1202
|
+
"match": "([\\)])"
|
1203
|
+
}
|
1204
|
+
]
|
1120
1205
|
},
|
1121
1206
|
{
|
1122
|
-
"
|
1123
|
-
"match": "(~=|==|!=|===|!==|<=|>=|<|>|\\$+)"
|
1207
|
+
"include": "#selectors"
|
1124
1208
|
}
|
1125
1209
|
]
|
1126
1210
|
},
|
1127
|
-
"
|
1211
|
+
"string-character-escape": {
|
1212
|
+
"name": "constant.character.escape.dw",
|
1213
|
+
"match": "\\\\(u[[:xdigit:]]{4}|$|.)"
|
1214
|
+
},
|
1215
|
+
"strings": {
|
1128
1216
|
"patterns": [
|
1129
1217
|
{
|
1130
|
-
"include": "#
|
1218
|
+
"include": "#qstring-single"
|
1131
1219
|
},
|
1132
1220
|
{
|
1133
|
-
"
|
1134
|
-
"name": "variable.language.dw"
|
1221
|
+
"include": "#qstring-double"
|
1135
1222
|
},
|
1136
1223
|
{
|
1137
|
-
"
|
1138
|
-
"name": "variable.language.dw"
|
1224
|
+
"include": "#qstring-backtick"
|
1139
1225
|
},
|
1140
1226
|
{
|
1141
|
-
"
|
1142
|
-
|
1227
|
+
"include": "#template"
|
1228
|
+
}
|
1229
|
+
]
|
1230
|
+
},
|
1231
|
+
"template": {
|
1232
|
+
"begin": "([$[:alpha:]][_$[:alnum:]]*)\\s*(`)",
|
1233
|
+
"end": "`",
|
1234
|
+
"patterns": [
|
1235
|
+
{
|
1236
|
+
"include": "#template-substitution-element"
|
1143
1237
|
},
|
1144
1238
|
{
|
1145
|
-
"
|
1146
|
-
"name": "meta.object.member.dw"
|
1239
|
+
"include": "#template-dollar"
|
1147
1240
|
},
|
1148
1241
|
{
|
1149
|
-
"include": "#
|
1242
|
+
"include": "#string-character-escape"
|
1150
1243
|
},
|
1151
1244
|
{
|
1152
|
-
"
|
1153
|
-
"
|
1245
|
+
"name": "string.template.dw",
|
1246
|
+
"match": "([^`])"
|
1247
|
+
}
|
1248
|
+
],
|
1249
|
+
"beginCaptures": {
|
1250
|
+
"1": {
|
1251
|
+
"name": "support.function.dw"
|
1154
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": [
|
1155
1265
|
{
|
1156
|
-
"
|
1157
|
-
"
|
1266
|
+
"name": "variable.parameter.dw",
|
1267
|
+
"match": "(\\$(\\$)+)"
|
1158
1268
|
},
|
1159
1269
|
{
|
1160
|
-
"
|
1161
|
-
"
|
1162
|
-
"1": {
|
1163
|
-
"name": "keyword.operator.attributes.dw"
|
1164
|
-
}
|
1165
|
-
},
|
1166
|
-
"end": "(\\))",
|
1167
|
-
"endCaptures": {
|
1168
|
-
"1": {
|
1169
|
-
"name": "keyword.operator.attributes.dw"
|
1170
|
-
}
|
1171
|
-
},
|
1172
|
-
"patterns": [
|
1173
|
-
{
|
1174
|
-
"include": "#punctuation-comma"
|
1175
|
-
},
|
1176
|
-
{
|
1177
|
-
"include": "#object-member-type"
|
1178
|
-
}
|
1179
|
-
]
|
1270
|
+
"name": "variable.parameter.dw",
|
1271
|
+
"match": "(\\$)(?![a-zA-Z(])"
|
1180
1272
|
},
|
1181
1273
|
{
|
1182
|
-
"
|
1183
|
-
"
|
1274
|
+
"name": "variable.parameter.dw",
|
1275
|
+
"match": "(\\$)([a-zA-Z][a-zA-Z0-9_]*)",
|
1276
|
+
"captures": {
|
1184
1277
|
"1": {
|
1185
|
-
"name": "keyword.
|
1186
|
-
}
|
1187
|
-
|
1188
|
-
|
1189
|
-
"patterns": [
|
1190
|
-
{
|
1191
|
-
"include": "#types"
|
1278
|
+
"name": "keyword.other.dw"
|
1279
|
+
},
|
1280
|
+
"2": {
|
1281
|
+
"name": "variable.other.dw"
|
1192
1282
|
}
|
1193
|
-
|
1194
|
-
},
|
1195
|
-
{
|
1196
|
-
"match": "([^\\s])",
|
1197
|
-
"name": "invalid"
|
1283
|
+
}
|
1198
1284
|
}
|
1199
1285
|
]
|
1200
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
|
+
},
|
1201
1307
|
"type-directive": {
|
1202
1308
|
"name": "meta.directive.type.dw",
|
1203
1309
|
"begin": "(\\s*(type)\\s+([a-zA-Z][a-zA-Z0-9]*))",
|
1204
1310
|
"end": "(?=(fun|input|output|type|var|ns|import|%dw|private|---)\\s)",
|
1205
|
-
"beginCaptures": {
|
1206
|
-
"2": {
|
1207
|
-
"name": "storage.type.dw"
|
1208
|
-
},
|
1209
|
-
"3": {
|
1210
|
-
"name": "entity.name.type.dw"
|
1211
|
-
}
|
1212
|
-
},
|
1213
1311
|
"patterns": [
|
1214
1312
|
{
|
1215
|
-
"begin": "
|
1216
|
-
"end": "
|
1313
|
+
"begin": "\u003c",
|
1314
|
+
"end": "\u003e",
|
1217
1315
|
"patterns": [
|
1218
1316
|
{
|
1219
1317
|
"include": "#generics"
|
@@ -1227,358 +1325,256 @@
|
|
1227
1325
|
{
|
1228
1326
|
"include": "#types"
|
1229
1327
|
}
|
1230
|
-
]
|
1231
|
-
},
|
1232
|
-
"import-directive": {
|
1233
|
-
"name": "meta.directive.import.dw",
|
1234
|
-
"begin": "(\\s*(import)\\s+)",
|
1235
|
-
"end": "(?=(fun|input|output|type|var|ns|import|%dw|private|---)\\s|$)",
|
1328
|
+
],
|
1236
1329
|
"beginCaptures": {
|
1237
1330
|
"2": {
|
1238
1331
|
"name": "storage.type.dw"
|
1332
|
+
},
|
1333
|
+
"3": {
|
1334
|
+
"name": "entity.name.type.dw"
|
1239
1335
|
}
|
1240
|
-
}
|
1336
|
+
}
|
1337
|
+
},
|
1338
|
+
"types": {
|
1241
1339
|
"patterns": [
|
1242
1340
|
{
|
1243
1341
|
"include": "#comments"
|
1244
1342
|
},
|
1245
1343
|
{
|
1246
|
-
"
|
1247
|
-
|
1248
|
-
{
|
1249
|
-
"match": "(\\*)"
|
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"
|
1250
1346
|
},
|
1251
1347
|
{
|
1252
|
-
"
|
1253
|
-
"
|
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": {
|
1254
1360
|
"1": {
|
1255
|
-
"name": "
|
1361
|
+
"name": "support.type.dw"
|
1256
1362
|
}
|
1257
1363
|
}
|
1258
1364
|
},
|
1259
1365
|
{
|
1260
|
-
"
|
1261
|
-
"
|
1366
|
+
"name": "keyword.operator.declaration.dw",
|
1367
|
+
"match": "(\u0026|\\|)"
|
1262
1368
|
},
|
1263
1369
|
{
|
1264
|
-
"
|
1265
|
-
"
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
"name": "entity.name.other.dw"
|
1271
|
-
}
|
1272
|
-
}
|
1273
|
-
}
|
1274
|
-
]
|
1275
|
-
},
|
1276
|
-
"var-directive": {
|
1277
|
-
"name": "meta.directive.var.dw",
|
1278
|
-
"begin": "(\\s*(var)\\s+([a-zA-Z][a-zA-Z0-9]*))",
|
1279
|
-
"end": "(=)",
|
1280
|
-
"beginCaptures": {
|
1281
|
-
"2": {
|
1282
|
-
"name": "storage.type.dw"
|
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_]*)"
|
1283
1376
|
},
|
1284
|
-
"3": {
|
1285
|
-
"name": "entity.name.variable.dw"
|
1286
|
-
}
|
1287
|
-
},
|
1288
|
-
"endCaptures": {
|
1289
|
-
"0": {
|
1290
|
-
"name": "keyword.operator.assignment.dw"
|
1291
|
-
}
|
1292
|
-
},
|
1293
|
-
"patterns": [
|
1294
1377
|
{
|
1295
|
-
"begin": "
|
1296
|
-
"end": "
|
1378
|
+
"begin": "\u003c",
|
1379
|
+
"end": "\u003e",
|
1297
1380
|
"patterns": [
|
1298
1381
|
{
|
1299
|
-
"include": "#
|
1382
|
+
"include": "#types"
|
1383
|
+
},
|
1384
|
+
{
|
1385
|
+
"include": "#punctuation-comma"
|
1386
|
+
},
|
1387
|
+
{
|
1388
|
+
"include": "#comments"
|
1300
1389
|
}
|
1301
1390
|
]
|
1302
1391
|
},
|
1303
1392
|
{
|
1304
|
-
"begin": "(
|
1393
|
+
"begin": "\\(",
|
1394
|
+
"end": "(\\)\\s*\\-\\\u003e)",
|
1395
|
+
"patterns": [
|
1396
|
+
{
|
1397
|
+
"include": "#types"
|
1398
|
+
},
|
1399
|
+
{
|
1400
|
+
"include": "#parameters"
|
1401
|
+
}
|
1402
|
+
],
|
1305
1403
|
"beginCaptures": {
|
1306
1404
|
"1": {
|
1307
|
-
"name": "keyword.operator.
|
1405
|
+
"name": "keyword.operator.tuple.dw"
|
1308
1406
|
}
|
1309
|
-
}
|
1310
|
-
|
1407
|
+
}
|
1408
|
+
},
|
1409
|
+
{
|
1410
|
+
"begin": "\\{\\-\\|",
|
1411
|
+
"end": "\\|\\-\\}",
|
1311
1412
|
"patterns": [
|
1312
1413
|
{
|
1313
|
-
"include": "#
|
1414
|
+
"include": "#punctuation-comma"
|
1314
1415
|
},
|
1315
1416
|
{
|
1316
|
-
"include": "#
|
1417
|
+
"include": "#object-member-type"
|
1317
1418
|
}
|
1318
1419
|
]
|
1319
|
-
}
|
1320
|
-
]
|
1321
|
-
},
|
1322
|
-
"fun-directive": {
|
1323
|
-
"name": "meta.directive.fun.dw",
|
1324
|
-
"begin": "(\\s*(fun)\\s+([a-zA-Z][a-zA-Z0-9]*))",
|
1325
|
-
"end": "(=)",
|
1326
|
-
"beginCaptures": {
|
1327
|
-
"2": {
|
1328
|
-
"name": "storage.type.dw"
|
1329
1420
|
},
|
1330
|
-
"3": {
|
1331
|
-
"name": "entity.name.function.dw"
|
1332
|
-
}
|
1333
|
-
},
|
1334
|
-
"endCaptures": {
|
1335
|
-
"0": {
|
1336
|
-
"name": "keyword.operator.assignment.dw"
|
1337
|
-
}
|
1338
|
-
},
|
1339
|
-
"patterns": [
|
1340
1421
|
{
|
1341
|
-
"begin": "
|
1342
|
-
"end": "
|
1422
|
+
"begin": "\\{\\|",
|
1423
|
+
"end": "\\|\\}",
|
1343
1424
|
"patterns": [
|
1344
1425
|
{
|
1345
|
-
"include": "#
|
1346
|
-
}
|
1347
|
-
]
|
1348
|
-
},
|
1349
|
-
{
|
1350
|
-
"begin": "\\(",
|
1351
|
-
"end": "\\)",
|
1352
|
-
"patterns": [
|
1426
|
+
"include": "#punctuation-comma"
|
1427
|
+
},
|
1353
1428
|
{
|
1354
|
-
"include": "#
|
1429
|
+
"include": "#object-member-type"
|
1355
1430
|
}
|
1356
1431
|
]
|
1357
1432
|
},
|
1358
1433
|
{
|
1359
|
-
"begin": "
|
1360
|
-
"
|
1361
|
-
"1": {
|
1362
|
-
"name": "keyword.operator.declaration.dw"
|
1363
|
-
}
|
1364
|
-
},
|
1365
|
-
"end": "(?==)",
|
1434
|
+
"begin": "\\{\\-",
|
1435
|
+
"end": "\\-\\}",
|
1366
1436
|
"patterns": [
|
1367
1437
|
{
|
1368
|
-
"include": "#
|
1438
|
+
"include": "#punctuation-comma"
|
1439
|
+
},
|
1440
|
+
{
|
1441
|
+
"include": "#object-member-type"
|
1369
1442
|
}
|
1370
1443
|
]
|
1371
|
-
}
|
1372
|
-
]
|
1373
|
-
},
|
1374
|
-
"array-literal": {
|
1375
|
-
"name": "meta.array.literal.dw",
|
1376
|
-
"begin": "(?<!\\w|}|])(\\[)",
|
1377
|
-
"beginCaptures": {
|
1378
|
-
"0": {
|
1379
|
-
"name": "meta.brace.square.dw"
|
1380
|
-
}
|
1381
|
-
},
|
1382
|
-
"end": "\\]",
|
1383
|
-
"endCaptures": {
|
1384
|
-
"0": {
|
1385
|
-
"name": "meta.brace.square.dw"
|
1386
|
-
}
|
1387
|
-
},
|
1388
|
-
"patterns": [
|
1389
|
-
{
|
1390
|
-
"include": "#expressions"
|
1391
1444
|
},
|
1392
1445
|
{
|
1393
|
-
"
|
1394
|
-
|
1395
|
-
]
|
1396
|
-
},
|
1397
|
-
"regex": {
|
1398
|
-
"patterns": [
|
1399
|
-
{
|
1400
|
-
"name": "string.regexp.dw",
|
1401
|
-
"begin": "(?<=[=(:,\\[?+!]|replace|match|scan|matches|contains|---|case|->|and|or|\\*\\/)\\s*(\\/)(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+\\/(?![\\/*])(?!\\s*[a-zA-Z0-9_$]))",
|
1402
|
-
"beginCaptures": {
|
1403
|
-
"1": {
|
1404
|
-
"name": "punctuation.definition.string.begin.dw"
|
1405
|
-
}
|
1406
|
-
},
|
1407
|
-
"end": "(/)",
|
1408
|
-
"endCaptures": {
|
1409
|
-
"1": {
|
1410
|
-
"name": "punctuation.definition.string.end.dw"
|
1411
|
-
}
|
1412
|
-
},
|
1446
|
+
"begin": "\\{",
|
1447
|
+
"end": "\\}",
|
1413
1448
|
"patterns": [
|
1414
1449
|
{
|
1415
|
-
"include": "#
|
1450
|
+
"include": "#punctuation-comma"
|
1451
|
+
},
|
1452
|
+
{
|
1453
|
+
"include": "#object-member-type"
|
1416
1454
|
}
|
1417
1455
|
]
|
1418
1456
|
},
|
1419
1457
|
{
|
1420
|
-
"
|
1421
|
-
"
|
1422
|
-
"beginCaptures": {
|
1423
|
-
"0": {
|
1424
|
-
"name": "punctuation.definition.string.begin.dw"
|
1425
|
-
}
|
1426
|
-
},
|
1427
|
-
"end": "(/)",
|
1428
|
-
"endCaptures": {
|
1429
|
-
"1": {
|
1430
|
-
"name": "punctuation.definition.string.end.dw"
|
1431
|
-
}
|
1432
|
-
},
|
1458
|
+
"begin": "\\(",
|
1459
|
+
"end": "\\)",
|
1433
1460
|
"patterns": [
|
1434
1461
|
{
|
1435
|
-
"include": "#
|
1462
|
+
"include": "#types"
|
1436
1463
|
}
|
1437
1464
|
]
|
1438
|
-
}
|
1439
|
-
]
|
1440
|
-
},
|
1441
|
-
"regexp": {
|
1442
|
-
"patterns": [
|
1443
|
-
{
|
1444
|
-
"name": "keyword.control.anchor.regexp",
|
1445
|
-
"match": "\\\\[bB]|\\^|\\$"
|
1446
1465
|
},
|
1447
1466
|
{
|
1448
|
-
"
|
1449
|
-
"match": "\\\\[1-9]\\d*"
|
1467
|
+
"match": "\\b(var|fun|ns)\\b"
|
1450
1468
|
},
|
1451
1469
|
{
|
1452
|
-
"name": "
|
1453
|
-
"match": "
|
1470
|
+
"name": "invalid",
|
1471
|
+
"match": "\\b(input|output|var|ns|import|try|catch|throw|do|for|yield|enum|private|async)\\b"
|
1454
1472
|
},
|
1455
1473
|
{
|
1456
|
-
"name": "
|
1457
|
-
"match": "
|
1474
|
+
"name": "invalid",
|
1475
|
+
"match": "\\b(if|else|while|for|do|using|unless|default|match)\\b"
|
1458
1476
|
},
|
1459
1477
|
{
|
1460
|
-
"name": "
|
1461
|
-
"
|
1462
|
-
|
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": {
|
1463
1491
|
"1": {
|
1464
|
-
"name": "
|
1492
|
+
"name": "entity.name.variable.dw"
|
1465
1493
|
},
|
1466
1494
|
"2": {
|
1467
|
-
"name": "
|
1468
|
-
},
|
1469
|
-
"3": {
|
1470
|
-
"name": "meta.assertion.look-ahead.regexp"
|
1471
|
-
},
|
1472
|
-
"4": {
|
1473
|
-
"name": "meta.assertion.negative-look-ahead.regexp"
|
1474
|
-
}
|
1475
|
-
},
|
1476
|
-
"end": "(\\))",
|
1477
|
-
"endCaptures": {
|
1478
|
-
"1": {
|
1479
|
-
"name": "punctuation.definition.group.regexp"
|
1480
|
-
}
|
1481
|
-
},
|
1482
|
-
"patterns": [
|
1483
|
-
{
|
1484
|
-
"include": "#regexp"
|
1495
|
+
"name": "keyword.operator.dw"
|
1485
1496
|
}
|
1486
|
-
|
1497
|
+
}
|
1487
1498
|
},
|
1488
1499
|
{
|
1489
|
-
"
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
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",
|
1505
1525
|
"patterns": [
|
1506
1526
|
{
|
1507
|
-
"include": "#
|
1527
|
+
"include": "#generics"
|
1508
1528
|
}
|
1509
1529
|
]
|
1510
1530
|
},
|
1511
1531
|
{
|
1512
|
-
"
|
1513
|
-
"
|
1514
|
-
"beginCaptures": {
|
1515
|
-
"1": {
|
1516
|
-
"name": "punctuation.definition.character-class.regexp"
|
1517
|
-
},
|
1518
|
-
"2": {
|
1519
|
-
"name": "keyword.operator.negation.regexp"
|
1520
|
-
}
|
1521
|
-
},
|
1522
|
-
"end": "(\\])",
|
1523
|
-
"endCaptures": {
|
1524
|
-
"1": {
|
1525
|
-
"name": "punctuation.definition.character-class.regexp"
|
1526
|
-
}
|
1527
|
-
},
|
1532
|
+
"begin": "(:)",
|
1533
|
+
"end": "(?==|$)",
|
1528
1534
|
"patterns": [
|
1529
1535
|
{
|
1530
|
-
"
|
1531
|
-
"match": "(?:.|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))",
|
1532
|
-
"captures": {
|
1533
|
-
"1": {
|
1534
|
-
"name": "constant.character.numeric.regexp"
|
1535
|
-
},
|
1536
|
-
"2": {
|
1537
|
-
"name": "constant.character.control.regexp"
|
1538
|
-
},
|
1539
|
-
"3": {
|
1540
|
-
"name": "constant.character.escape.backslash.regexp"
|
1541
|
-
},
|
1542
|
-
"4": {
|
1543
|
-
"name": "constant.character.numeric.regexp"
|
1544
|
-
},
|
1545
|
-
"5": {
|
1546
|
-
"name": "constant.character.control.regexp"
|
1547
|
-
},
|
1548
|
-
"6": {
|
1549
|
-
"name": "constant.character.escape.backslash.regexp"
|
1550
|
-
}
|
1551
|
-
}
|
1536
|
+
"include": "#comments"
|
1552
1537
|
},
|
1553
1538
|
{
|
1554
|
-
"include": "#
|
1539
|
+
"include": "#types"
|
1555
1540
|
}
|
1556
|
-
]
|
1541
|
+
],
|
1542
|
+
"beginCaptures": {
|
1543
|
+
"1": {
|
1544
|
+
"name": "keyword.operator.declaration.dw"
|
1545
|
+
}
|
1546
|
+
}
|
1547
|
+
}
|
1548
|
+
],
|
1549
|
+
"beginCaptures": {
|
1550
|
+
"2": {
|
1551
|
+
"name": "storage.type.dw"
|
1557
1552
|
},
|
1558
|
-
{
|
1559
|
-
"
|
1553
|
+
"3": {
|
1554
|
+
"name": "entity.name.variable.dw"
|
1560
1555
|
}
|
1561
|
-
|
1556
|
+
},
|
1557
|
+
"endCaptures": {
|
1558
|
+
"0": {
|
1559
|
+
"name": "keyword.operator.assignment.dw"
|
1560
|
+
}
|
1561
|
+
}
|
1562
1562
|
},
|
1563
|
-
"
|
1563
|
+
"variable-reference": {
|
1564
1564
|
"patterns": [
|
1565
1565
|
{
|
1566
|
-
"name": "
|
1567
|
-
"match": "
|
1568
|
-
},
|
1569
|
-
{
|
1570
|
-
"name": "constant.character.numeric.regexp",
|
1571
|
-
"match": "\\\\([0-7]{3}|x\\h\\h|u\\h\\h\\h\\h)"
|
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_]*)"
|
1572
1568
|
},
|
1573
1569
|
{
|
1574
|
-
"name": "
|
1575
|
-
"match": "
|
1570
|
+
"name": "invalid",
|
1571
|
+
"match": "\\b(fun|input|output|type|var|ns|import|private)\\b"
|
1576
1572
|
},
|
1577
1573
|
{
|
1578
|
-
"name": "
|
1579
|
-
"match": "
|
1574
|
+
"name": "variable.parameter.dw",
|
1575
|
+
"match": "(\\$+)"
|
1580
1576
|
}
|
1581
1577
|
]
|
1582
1578
|
}
|
1583
1579
|
}
|
1584
|
-
}
|
1580
|
+
}
|