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
@@ -1,283 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "HTTP Spec",
|
3
|
-
"scopeName": "source.httpspec",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "meta.request.httpspec",
|
7
|
-
"patterns": [
|
8
|
-
{
|
9
|
-
"include": "#request"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"match": "^$"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"include": "#response"
|
16
|
-
}
|
17
|
-
]
|
18
|
-
}
|
19
|
-
],
|
20
|
-
"repository": {
|
21
|
-
"ampersand": {
|
22
|
-
"patterns": [
|
23
|
-
{
|
24
|
-
"name": "support.function.ampersand.httpspec",
|
25
|
-
"match": "(?\u003c!\\\u0026)\\\u0026(?!\\\u0026)"
|
26
|
-
}
|
27
|
-
]
|
28
|
-
},
|
29
|
-
"closingbracket": {
|
30
|
-
"patterns": [
|
31
|
-
{
|
32
|
-
"name": "keyword.other.multiplexend.httpspec"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"match": "\\]"
|
36
|
-
}
|
37
|
-
]
|
38
|
-
},
|
39
|
-
"comma": {
|
40
|
-
"patterns": [
|
41
|
-
{
|
42
|
-
"name": "keyword.other.comma.httpspec.test",
|
43
|
-
"match": "\\,"
|
44
|
-
}
|
45
|
-
]
|
46
|
-
},
|
47
|
-
"emptyline": {
|
48
|
-
"patterns": [
|
49
|
-
{
|
50
|
-
"match": "^\\s*$"
|
51
|
-
}
|
52
|
-
]
|
53
|
-
},
|
54
|
-
"equals": {
|
55
|
-
"patterns": [
|
56
|
-
{
|
57
|
-
"name": "support.function.keyvaluepairseparator.httpspec",
|
58
|
-
"match": "\\="
|
59
|
-
}
|
60
|
-
]
|
61
|
-
},
|
62
|
-
"header": {
|
63
|
-
"patterns": [
|
64
|
-
{
|
65
|
-
"name": "string.unquoted.uri.httpspec",
|
66
|
-
"match": "^([a-zA-Z\\-_]+\\:)\\s(.*)$",
|
67
|
-
"captures": {
|
68
|
-
"1": {
|
69
|
-
"name": "variable.parameter.headername.httpspec"
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
]
|
74
|
-
},
|
75
|
-
"invalidcomma": {
|
76
|
-
"patterns": [
|
77
|
-
{
|
78
|
-
"name": "invalid.illegal.comma.httpspec",
|
79
|
-
"match": "^\\,|\\,(?=\\s)"
|
80
|
-
}
|
81
|
-
]
|
82
|
-
},
|
83
|
-
"jsonblock": {
|
84
|
-
"patterns": [
|
85
|
-
{
|
86
|
-
"include": "source.json"
|
87
|
-
}
|
88
|
-
]
|
89
|
-
},
|
90
|
-
"methodlist": {
|
91
|
-
"patterns": [
|
92
|
-
{
|
93
|
-
"include": "#methodname"
|
94
|
-
},
|
95
|
-
{
|
96
|
-
"include": "#invalidcomma"
|
97
|
-
},
|
98
|
-
{
|
99
|
-
"include": "#comma"
|
100
|
-
}
|
101
|
-
]
|
102
|
-
},
|
103
|
-
"methodname": {
|
104
|
-
"patterns": [
|
105
|
-
{
|
106
|
-
"name": "keyword.other.method.httpspec",
|
107
|
-
"match": "(?:\\b)(OPTIONS|HEAD|GET|DELETE|PUT|PATCH|POST)"
|
108
|
-
}
|
109
|
-
]
|
110
|
-
},
|
111
|
-
"multiplex": {
|
112
|
-
"begin": "(\\[)",
|
113
|
-
"end": "\\]",
|
114
|
-
"patterns": [
|
115
|
-
{
|
116
|
-
"include": "#uripart"
|
117
|
-
},
|
118
|
-
{
|
119
|
-
"include": "#comma"
|
120
|
-
}
|
121
|
-
],
|
122
|
-
"beginCaptures": {
|
123
|
-
"0": {
|
124
|
-
"name": "keyword.other"
|
125
|
-
}
|
126
|
-
},
|
127
|
-
"endCaptures": {
|
128
|
-
"0": {
|
129
|
-
"name": "keyword.other"
|
130
|
-
}
|
131
|
-
}
|
132
|
-
},
|
133
|
-
"namevaluepair": {
|
134
|
-
"patterns": [
|
135
|
-
{
|
136
|
-
"include": "#uriqueryname"
|
137
|
-
},
|
138
|
-
{
|
139
|
-
"include": "#equals"
|
140
|
-
},
|
141
|
-
{
|
142
|
-
"include": "#uriqueryvalue"
|
143
|
-
}
|
144
|
-
]
|
145
|
-
},
|
146
|
-
"openingbracket": {
|
147
|
-
"patterns": [
|
148
|
-
{
|
149
|
-
"name": "keyword.other.multiplexstart.httpspec",
|
150
|
-
"match": "\\["
|
151
|
-
}
|
152
|
-
]
|
153
|
-
},
|
154
|
-
"questionmark": {
|
155
|
-
"patterns": [
|
156
|
-
{
|
157
|
-
"name": "support.function.queryseparator.httpspec",
|
158
|
-
"match": "\\?"
|
159
|
-
}
|
160
|
-
]
|
161
|
-
},
|
162
|
-
"request": {
|
163
|
-
"patterns": [
|
164
|
-
{
|
165
|
-
"begin": "^(?=ACL|BASELINE-CONTROL|BIND|CHECKIN|CHECKOUT|CONNECT|COPY|DELETE|GET|HEAD|LABEL|LINK|LOCK|MERGE|MKACTIVITY|MKCALENDAR|MKCOL|MKREDIRECTREF|MKWORKSPACE|MOVE|OPTIONS|ORDERPATCH|PATCH|POST|PRI|PROPFIND|PROPPATCH|PUT|REBIND|REPORT|SEARCH|TRACE|UNBIND|UNCHECKOUT|UNLINK|UNLOCK|UPDATE|UPDATEREDIRECTREF|VERSION-CONTROL\n)",
|
166
|
-
"end": "^(?=\\d\\d\\d)",
|
167
|
-
"patterns": [
|
168
|
-
{
|
169
|
-
"include": "#requestline"
|
170
|
-
},
|
171
|
-
{
|
172
|
-
"include": "#header"
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"include": "#jsonblock"
|
176
|
-
}
|
177
|
-
]
|
178
|
-
}
|
179
|
-
]
|
180
|
-
},
|
181
|
-
"requestline": {
|
182
|
-
"patterns": [
|
183
|
-
{
|
184
|
-
"include": "#methodlist"
|
185
|
-
},
|
186
|
-
{
|
187
|
-
"include": "#uri"
|
188
|
-
}
|
189
|
-
]
|
190
|
-
},
|
191
|
-
"response": {
|
192
|
-
"patterns": [
|
193
|
-
{
|
194
|
-
"include": "#statusline"
|
195
|
-
},
|
196
|
-
{
|
197
|
-
"include": "#header"
|
198
|
-
},
|
199
|
-
{
|
200
|
-
"include": "#jsonblock"
|
201
|
-
}
|
202
|
-
]
|
203
|
-
},
|
204
|
-
"statusline": {
|
205
|
-
"patterns": [
|
206
|
-
{
|
207
|
-
"match": "^(\\d\\d\\d)\\s(.*)$",
|
208
|
-
"captures": {
|
209
|
-
"0": {
|
210
|
-
"name": "constant.language.statustext.httpspec"
|
211
|
-
}
|
212
|
-
}
|
213
|
-
}
|
214
|
-
]
|
215
|
-
},
|
216
|
-
"uri": {
|
217
|
-
"patterns": [
|
218
|
-
{
|
219
|
-
"include": "#uripath"
|
220
|
-
},
|
221
|
-
{
|
222
|
-
"include": "#multiplex"
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"include": "#questionmark"
|
226
|
-
},
|
227
|
-
{
|
228
|
-
"include": "#uriquery"
|
229
|
-
}
|
230
|
-
]
|
231
|
-
},
|
232
|
-
"uripart": {
|
233
|
-
"patterns": [
|
234
|
-
{
|
235
|
-
"match": "([a-bA-B0-9\\-_/]+)"
|
236
|
-
}
|
237
|
-
]
|
238
|
-
},
|
239
|
-
"uripath": {
|
240
|
-
"patterns": [
|
241
|
-
{
|
242
|
-
"name": "support.function.httpspec",
|
243
|
-
"begin": "(?:\\s)\\/",
|
244
|
-
"end": "(?:$)",
|
245
|
-
"patterns": [
|
246
|
-
{
|
247
|
-
"include": "#uripart"
|
248
|
-
},
|
249
|
-
{
|
250
|
-
"include": "#multiplex"
|
251
|
-
}
|
252
|
-
]
|
253
|
-
}
|
254
|
-
]
|
255
|
-
},
|
256
|
-
"uriquery": {
|
257
|
-
"patterns": [
|
258
|
-
{
|
259
|
-
"include": "#namevaluepair"
|
260
|
-
},
|
261
|
-
{
|
262
|
-
"include": "#ampersand"
|
263
|
-
}
|
264
|
-
]
|
265
|
-
},
|
266
|
-
"uriqueryname": {
|
267
|
-
"patterns": [
|
268
|
-
{
|
269
|
-
"name": "support.function.uriqueryname.httpspec",
|
270
|
-
"match": "(?\u003c=[?\u0026])([^=\u0026])+"
|
271
|
-
}
|
272
|
-
]
|
273
|
-
},
|
274
|
-
"uriqueryvalue": {
|
275
|
-
"patterns": [
|
276
|
-
{
|
277
|
-
"name": "support.function.uriqueryvalue.httpspec",
|
278
|
-
"match": "(?\u003c=\\=)([^=\u0026]+)"
|
279
|
-
}
|
280
|
-
]
|
281
|
-
}
|
282
|
-
}
|
283
|
-
}
|
1
|
+
{"name":"HTTP Spec","scopeName":"source.httpspec","patterns":[{"name":"meta.request.httpspec","patterns":[{"include":"#request"},{"match":"^$"},{"include":"#response"}]}],"repository":{"ampersand":{"patterns":[{"name":"support.function.ampersand.httpspec","match":"(?\u003c!\\\u0026)\\\u0026(?!\\\u0026)"}]},"closingbracket":{"patterns":[{"name":"keyword.other.multiplexend.httpspec"},{"match":"\\]"}]},"comma":{"patterns":[{"name":"keyword.other.comma.httpspec.test","match":"\\,"}]},"emptyline":{"patterns":[{"match":"^\\s*$"}]},"equals":{"patterns":[{"name":"support.function.keyvaluepairseparator.httpspec","match":"\\="}]},"header":{"patterns":[{"name":"string.unquoted.uri.httpspec","match":"^([a-zA-Z\\-_]+\\:)\\s(.*)$","captures":{"1":{"name":"variable.parameter.headername.httpspec"}}}]},"invalidcomma":{"patterns":[{"name":"invalid.illegal.comma.httpspec","match":"^\\,|\\,(?=\\s)"}]},"jsonblock":{"patterns":[{"include":"source.json"}]},"methodlist":{"patterns":[{"include":"#methodname"},{"include":"#invalidcomma"},{"include":"#comma"}]},"methodname":{"patterns":[{"name":"keyword.other.method.httpspec","match":"(?:\\b)(OPTIONS|HEAD|GET|DELETE|PUT|PATCH|POST)"}]},"multiplex":{"begin":"(\\[)","end":"\\]","patterns":[{"include":"#uripart"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"keyword.other"}},"endCaptures":{"0":{"name":"keyword.other"}}},"namevaluepair":{"patterns":[{"include":"#uriqueryname"},{"include":"#equals"},{"include":"#uriqueryvalue"}]},"openingbracket":{"patterns":[{"name":"keyword.other.multiplexstart.httpspec","match":"\\["}]},"questionmark":{"patterns":[{"name":"support.function.queryseparator.httpspec","match":"\\?"}]},"request":{"patterns":[{"begin":"^(?=ACL|BASELINE-CONTROL|BIND|CHECKIN|CHECKOUT|CONNECT|COPY|DELETE|GET|HEAD|LABEL|LINK|LOCK|MERGE|MKACTIVITY|MKCALENDAR|MKCOL|MKREDIRECTREF|MKWORKSPACE|MOVE|OPTIONS|ORDERPATCH|PATCH|POST|PRI|PROPFIND|PROPPATCH|PUT|REBIND|REPORT|SEARCH|TRACE|UNBIND|UNCHECKOUT|UNLINK|UNLOCK|UPDATE|UPDATEREDIRECTREF|VERSION-CONTROL\n)","end":"^(?=\\d\\d\\d)","patterns":[{"include":"#requestline"},{"include":"#header"},{"include":"#jsonblock"}]}]},"requestline":{"patterns":[{"include":"#methodlist"},{"include":"#uri"}]},"response":{"patterns":[{"include":"#statusline"},{"include":"#header"},{"include":"#jsonblock"}]},"statusline":{"patterns":[{"match":"^(\\d\\d\\d)\\s(.*)$","captures":{"0":{"name":"constant.language.statustext.httpspec"}}}]},"uri":{"patterns":[{"include":"#uripath"},{"include":"#multiplex"},{"include":"#questionmark"},{"include":"#uriquery"}]},"uripart":{"patterns":[{"match":"([a-bA-B0-9\\-_/]+)"}]},"uripath":{"patterns":[{"name":"support.function.httpspec","begin":"(?:\\s)\\/","end":"(?:$)","patterns":[{"include":"#uripart"},{"include":"#multiplex"}]}]},"uriquery":{"patterns":[{"include":"#namevaluepair"},{"include":"#ampersand"}]},"uriqueryname":{"patterns":[{"name":"support.function.uriqueryname.httpspec","match":"(?\u003c=[?\u0026])([^=\u0026])+"}]},"uriqueryvalue":{"patterns":[{"name":"support.function.uriqueryvalue.httpspec","match":"(?\u003c=\\=)([^=\u0026]+)"}]}}}
|
@@ -1,80 +1 @@
|
|
1
|
-
{
|
2
|
-
"scopeName": "source.hx.argument",
|
3
|
-
"patterns": [
|
4
|
-
{
|
5
|
-
"include": "#parameter"
|
6
|
-
}
|
7
|
-
],
|
8
|
-
"repository": {
|
9
|
-
"parameter": {
|
10
|
-
"patterns": [
|
11
|
-
{
|
12
|
-
"include": "#parameter-name"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"include": "#parameter-type-hint"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"include": "#parameter-assign"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"include": "source.hx#punctuation-comma"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"include": "source.hx#global"
|
25
|
-
}
|
26
|
-
]
|
27
|
-
},
|
28
|
-
"parameter-assign": {
|
29
|
-
"begin": "=",
|
30
|
-
"end": "$",
|
31
|
-
"patterns": [
|
32
|
-
{
|
33
|
-
"include": "source.hx#block"
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"include": "source.hx#block-contents"
|
37
|
-
}
|
38
|
-
],
|
39
|
-
"beginCaptures": {
|
40
|
-
"0": {
|
41
|
-
"name": "keyword.operator.assignment.hx"
|
42
|
-
}
|
43
|
-
}
|
44
|
-
},
|
45
|
-
"parameter-name": {
|
46
|
-
"begin": "^",
|
47
|
-
"end": "([_a-zA-Z]\\w*)",
|
48
|
-
"patterns": [
|
49
|
-
{
|
50
|
-
"include": "source.hx#global"
|
51
|
-
},
|
52
|
-
{
|
53
|
-
"include": "source.hx#metadata"
|
54
|
-
},
|
55
|
-
{
|
56
|
-
"include": "source.hx#operator-optional"
|
57
|
-
}
|
58
|
-
],
|
59
|
-
"endCaptures": {
|
60
|
-
"1": {
|
61
|
-
"name": "variable.parameter.hx"
|
62
|
-
}
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"parameter-type-hint": {
|
66
|
-
"begin": ":",
|
67
|
-
"end": "(?=\\)(?!\\s*-\u003e)|,|=)",
|
68
|
-
"patterns": [
|
69
|
-
{
|
70
|
-
"include": "source.hx#type"
|
71
|
-
}
|
72
|
-
],
|
73
|
-
"beginCaptures": {
|
74
|
-
"0": {
|
75
|
-
"name": "keyword.operator.type.annotation.hx"
|
76
|
-
}
|
77
|
-
}
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
1
|
+
{"scopeName":"source.hx.argument","patterns":[{"include":"#parameter"}],"repository":{"parameter":{"patterns":[{"include":"#parameter-name"},{"include":"#parameter-type-hint"},{"include":"#parameter-assign"},{"include":"source.hx#punctuation-comma"},{"include":"source.hx#global"}]},"parameter-assign":{"begin":"=","end":"$","patterns":[{"include":"source.hx#block"},{"include":"source.hx#block-contents"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.hx"}}},"parameter-name":{"begin":"^","end":"([_a-zA-Z]\\w*)","patterns":[{"include":"source.hx#global"},{"include":"source.hx#metadata"},{"include":"source.hx#operator-optional"}],"endCaptures":{"1":{"name":"variable.parameter.hx"}}},"parameter-type-hint":{"begin":":","end":"(?=\\)(?!\\s*-\u003e)|,|=)","patterns":[{"include":"source.hx#type"}],"beginCaptures":{"0":{"name":"keyword.operator.type.annotation.hx"}}}}}
|
data/grammars/source.hx.json
CHANGED
@@ -1,2428 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "Haxe",
|
3
|
-
"scopeName": "source.hx",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#all"
|
7
|
-
}
|
8
|
-
],
|
9
|
-
"repository": {
|
10
|
-
"abstract": {
|
11
|
-
"name": "meta.abstract.hx",
|
12
|
-
"begin": "(?=abstract\\s+[A-Z])",
|
13
|
-
"end": "(?\u003c=\\})|(;)",
|
14
|
-
"patterns": [
|
15
|
-
{
|
16
|
-
"include": "#abstract-name"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"include": "#abstract-name-post"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"include": "#abstract-block"
|
23
|
-
}
|
24
|
-
],
|
25
|
-
"endCaptures": {
|
26
|
-
"1": {
|
27
|
-
"name": "punctuation.terminator.hx"
|
28
|
-
}
|
29
|
-
}
|
30
|
-
},
|
31
|
-
"abstract-block": {
|
32
|
-
"name": "meta.block.hx",
|
33
|
-
"begin": "(?\u003c=\\{)",
|
34
|
-
"end": "(\\})",
|
35
|
-
"patterns": [
|
36
|
-
{
|
37
|
-
"include": "#method"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"include": "#modifiers"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"include": "#variable"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"include": "#block"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
"include": "#block-contents"
|
50
|
-
}
|
51
|
-
],
|
52
|
-
"endCaptures": {
|
53
|
-
"1": {
|
54
|
-
"name": "punctuation.definition.block.end.hx"
|
55
|
-
}
|
56
|
-
}
|
57
|
-
},
|
58
|
-
"abstract-name": {
|
59
|
-
"begin": "\\b(abstract)\\b",
|
60
|
-
"end": "([_A-Za-z]\\w*)",
|
61
|
-
"patterns": [
|
62
|
-
{
|
63
|
-
"include": "#global"
|
64
|
-
}
|
65
|
-
],
|
66
|
-
"beginCaptures": {
|
67
|
-
"1": {
|
68
|
-
"name": "storage.type.class.hx"
|
69
|
-
}
|
70
|
-
},
|
71
|
-
"endCaptures": {
|
72
|
-
"1": {
|
73
|
-
"name": "entity.name.type.class.hx"
|
74
|
-
}
|
75
|
-
}
|
76
|
-
},
|
77
|
-
"abstract-name-post": {
|
78
|
-
"begin": "(?\u003c=\\w)",
|
79
|
-
"end": "([\\{;])",
|
80
|
-
"patterns": [
|
81
|
-
{
|
82
|
-
"include": "#global"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"name": "keyword.other.hx",
|
86
|
-
"match": "\\b(from|to)\\b"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"include": "#type"
|
90
|
-
},
|
91
|
-
{
|
92
|
-
"name": "punctuation.definition.other.hx",
|
93
|
-
"match": "[\\(\\)]"
|
94
|
-
}
|
95
|
-
],
|
96
|
-
"endCaptures": {
|
97
|
-
"1": {
|
98
|
-
"name": "punctuation.definition.block.begin.hx"
|
99
|
-
}
|
100
|
-
}
|
101
|
-
},
|
102
|
-
"accessor-method": {
|
103
|
-
"patterns": [
|
104
|
-
{
|
105
|
-
"name": "entity.name.function.hx",
|
106
|
-
"match": "\\b(get|set)_[_A-Za-z]\\w*\\b"
|
107
|
-
}
|
108
|
-
]
|
109
|
-
},
|
110
|
-
"all": {
|
111
|
-
"patterns": [
|
112
|
-
{
|
113
|
-
"include": "#global"
|
114
|
-
},
|
115
|
-
{
|
116
|
-
"include": "#package"
|
117
|
-
},
|
118
|
-
{
|
119
|
-
"include": "#import"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"include": "#using"
|
123
|
-
},
|
124
|
-
{
|
125
|
-
"name": "storage.modifier.hx",
|
126
|
-
"match": "\\b(final)\\b(?=\\s+(class|interface|extern|private))"
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"include": "#abstract"
|
130
|
-
},
|
131
|
-
{
|
132
|
-
"include": "#class"
|
133
|
-
},
|
134
|
-
{
|
135
|
-
"include": "#enum"
|
136
|
-
},
|
137
|
-
{
|
138
|
-
"include": "#interface"
|
139
|
-
},
|
140
|
-
{
|
141
|
-
"include": "#typedef"
|
142
|
-
},
|
143
|
-
{
|
144
|
-
"include": "#block"
|
145
|
-
},
|
146
|
-
{
|
147
|
-
"include": "#block-contents"
|
148
|
-
}
|
149
|
-
]
|
150
|
-
},
|
151
|
-
"array": {
|
152
|
-
"name": "meta.array.literal.hx",
|
153
|
-
"begin": "\\[",
|
154
|
-
"end": "\\]",
|
155
|
-
"patterns": [
|
156
|
-
{
|
157
|
-
"include": "#block"
|
158
|
-
},
|
159
|
-
{
|
160
|
-
"include": "#block-contents"
|
161
|
-
}
|
162
|
-
],
|
163
|
-
"beginCaptures": {
|
164
|
-
"0": {
|
165
|
-
"name": "punctuation.definition.array.begin.hx"
|
166
|
-
}
|
167
|
-
},
|
168
|
-
"endCaptures": {
|
169
|
-
"0": {
|
170
|
-
"name": "punctuation.definition.array.end.hx"
|
171
|
-
}
|
172
|
-
}
|
173
|
-
},
|
174
|
-
"arrow-function": {
|
175
|
-
"name": "meta.method.arrow.hx",
|
176
|
-
"begin": "(\\()(?=[^(]*?\\)\\s*-\u003e)",
|
177
|
-
"end": "(\\))\\s*(-\u003e)",
|
178
|
-
"patterns": [
|
179
|
-
{
|
180
|
-
"include": "#arrow-function-parameter"
|
181
|
-
}
|
182
|
-
],
|
183
|
-
"beginCaptures": {
|
184
|
-
"1": {
|
185
|
-
"name": "punctuation.definition.parameters.begin.hx"
|
186
|
-
}
|
187
|
-
},
|
188
|
-
"endCaptures": {
|
189
|
-
"1": {
|
190
|
-
"name": "punctuation.definition.parameters.end.hx"
|
191
|
-
},
|
192
|
-
"2": {
|
193
|
-
"name": "storage.type.function.arrow.hx"
|
194
|
-
}
|
195
|
-
}
|
196
|
-
},
|
197
|
-
"arrow-function-parameter": {
|
198
|
-
"begin": "(?\u003c=\\(|,)",
|
199
|
-
"end": "(?=\\)|,)",
|
200
|
-
"patterns": [
|
201
|
-
{
|
202
|
-
"include": "#parameter-name"
|
203
|
-
},
|
204
|
-
{
|
205
|
-
"include": "#arrow-function-parameter-type-hint"
|
206
|
-
},
|
207
|
-
{
|
208
|
-
"include": "#parameter-assign"
|
209
|
-
},
|
210
|
-
{
|
211
|
-
"include": "#punctuation-comma"
|
212
|
-
},
|
213
|
-
{
|
214
|
-
"include": "#global"
|
215
|
-
}
|
216
|
-
]
|
217
|
-
},
|
218
|
-
"arrow-function-parameter-type-hint": {
|
219
|
-
"begin": ":",
|
220
|
-
"end": "(?=\\)|,|=)",
|
221
|
-
"patterns": [
|
222
|
-
{
|
223
|
-
"include": "#type"
|
224
|
-
}
|
225
|
-
],
|
226
|
-
"beginCaptures": {
|
227
|
-
"0": {
|
228
|
-
"name": "keyword.operator.type.annotation.hx"
|
229
|
-
}
|
230
|
-
}
|
231
|
-
},
|
232
|
-
"block": {
|
233
|
-
"begin": "\\{",
|
234
|
-
"end": "\\}",
|
235
|
-
"patterns": [
|
236
|
-
{
|
237
|
-
"include": "#block"
|
238
|
-
},
|
239
|
-
{
|
240
|
-
"include": "#block-contents"
|
241
|
-
}
|
242
|
-
],
|
243
|
-
"beginCaptures": {
|
244
|
-
"0": {
|
245
|
-
"name": "punctuation.definition.block.begin.hx"
|
246
|
-
}
|
247
|
-
},
|
248
|
-
"endCaptures": {
|
249
|
-
"0": {
|
250
|
-
"name": "punctuation.definition.block.end.hx"
|
251
|
-
}
|
252
|
-
}
|
253
|
-
},
|
254
|
-
"block-contents": {
|
255
|
-
"patterns": [
|
256
|
-
{
|
257
|
-
"include": "#global"
|
258
|
-
},
|
259
|
-
{
|
260
|
-
"include": "#regex"
|
261
|
-
},
|
262
|
-
{
|
263
|
-
"include": "#array"
|
264
|
-
},
|
265
|
-
{
|
266
|
-
"include": "#constants"
|
267
|
-
},
|
268
|
-
{
|
269
|
-
"include": "#strings"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"include": "#metadata"
|
273
|
-
},
|
274
|
-
{
|
275
|
-
"include": "#method"
|
276
|
-
},
|
277
|
-
{
|
278
|
-
"include": "#variable"
|
279
|
-
},
|
280
|
-
{
|
281
|
-
"include": "#modifiers"
|
282
|
-
},
|
283
|
-
{
|
284
|
-
"include": "#new-expr"
|
285
|
-
},
|
286
|
-
{
|
287
|
-
"include": "#for-loop"
|
288
|
-
},
|
289
|
-
{
|
290
|
-
"include": "#keywords"
|
291
|
-
},
|
292
|
-
{
|
293
|
-
"include": "#arrow-function"
|
294
|
-
},
|
295
|
-
{
|
296
|
-
"include": "#method-call"
|
297
|
-
},
|
298
|
-
{
|
299
|
-
"include": "#enum-constructor-call"
|
300
|
-
},
|
301
|
-
{
|
302
|
-
"include": "#punctuation-braces"
|
303
|
-
},
|
304
|
-
{
|
305
|
-
"include": "#macro-reification"
|
306
|
-
},
|
307
|
-
{
|
308
|
-
"include": "#operators"
|
309
|
-
},
|
310
|
-
{
|
311
|
-
"include": "#operator-assignment"
|
312
|
-
},
|
313
|
-
{
|
314
|
-
"include": "#punctuation-terminator"
|
315
|
-
},
|
316
|
-
{
|
317
|
-
"include": "#punctuation-comma"
|
318
|
-
},
|
319
|
-
{
|
320
|
-
"include": "#punctuation-accessor"
|
321
|
-
},
|
322
|
-
{
|
323
|
-
"include": "#identifiers"
|
324
|
-
}
|
325
|
-
]
|
326
|
-
},
|
327
|
-
"class": {
|
328
|
-
"name": "meta.class.hx",
|
329
|
-
"begin": "(?=class)",
|
330
|
-
"end": "(?\u003c=\\})|(;)",
|
331
|
-
"patterns": [
|
332
|
-
{
|
333
|
-
"include": "#class-name"
|
334
|
-
},
|
335
|
-
{
|
336
|
-
"include": "#class-name-post"
|
337
|
-
},
|
338
|
-
{
|
339
|
-
"include": "#class-block"
|
340
|
-
}
|
341
|
-
],
|
342
|
-
"endCaptures": {
|
343
|
-
"1": {
|
344
|
-
"name": "punctuation.terminator.hx"
|
345
|
-
}
|
346
|
-
}
|
347
|
-
},
|
348
|
-
"class-block": {
|
349
|
-
"name": "meta.block.hx",
|
350
|
-
"begin": "(?\u003c=\\{)",
|
351
|
-
"end": "(\\})",
|
352
|
-
"patterns": [
|
353
|
-
{
|
354
|
-
"include": "#method"
|
355
|
-
},
|
356
|
-
{
|
357
|
-
"include": "#modifiers"
|
358
|
-
},
|
359
|
-
{
|
360
|
-
"include": "#variable"
|
361
|
-
},
|
362
|
-
{
|
363
|
-
"include": "#block"
|
364
|
-
},
|
365
|
-
{
|
366
|
-
"include": "#block-contents"
|
367
|
-
}
|
368
|
-
],
|
369
|
-
"endCaptures": {
|
370
|
-
"1": {
|
371
|
-
"name": "punctuation.definition.block.end.hx"
|
372
|
-
}
|
373
|
-
}
|
374
|
-
},
|
375
|
-
"class-name": {
|
376
|
-
"name": "meta.class.identifier.hx",
|
377
|
-
"begin": "\\b(class)\\b",
|
378
|
-
"end": "([_A-Za-z]\\w*)",
|
379
|
-
"patterns": [
|
380
|
-
{
|
381
|
-
"include": "#global"
|
382
|
-
}
|
383
|
-
],
|
384
|
-
"beginCaptures": {
|
385
|
-
"1": {
|
386
|
-
"name": "storage.type.class.hx"
|
387
|
-
}
|
388
|
-
},
|
389
|
-
"endCaptures": {
|
390
|
-
"1": {
|
391
|
-
"name": "entity.name.type.class.hx"
|
392
|
-
}
|
393
|
-
}
|
394
|
-
},
|
395
|
-
"class-name-post": {
|
396
|
-
"begin": "(?\u003c=\\w)",
|
397
|
-
"end": "([\\{;])",
|
398
|
-
"patterns": [
|
399
|
-
{
|
400
|
-
"include": "#modifiers-inheritance"
|
401
|
-
},
|
402
|
-
{
|
403
|
-
"include": "#type"
|
404
|
-
}
|
405
|
-
],
|
406
|
-
"endCaptures": {
|
407
|
-
"1": {
|
408
|
-
"name": "punctuation.definition.block.begin.hx"
|
409
|
-
}
|
410
|
-
}
|
411
|
-
},
|
412
|
-
"comments": {
|
413
|
-
"patterns": [
|
414
|
-
{
|
415
|
-
"name": "comment.block.documentation.hx",
|
416
|
-
"begin": "/\\*\\*(?!/)",
|
417
|
-
"end": "\\*/",
|
418
|
-
"patterns": [
|
419
|
-
{
|
420
|
-
"include": "#javadoc-tags"
|
421
|
-
}
|
422
|
-
],
|
423
|
-
"beginCaptures": {
|
424
|
-
"0": {
|
425
|
-
"name": "punctuation.definition.comment.hx"
|
426
|
-
}
|
427
|
-
},
|
428
|
-
"endCaptures": {
|
429
|
-
"0": {
|
430
|
-
"name": "punctuation.definition.comment.hx"
|
431
|
-
}
|
432
|
-
}
|
433
|
-
},
|
434
|
-
{
|
435
|
-
"name": "comment.block.hx",
|
436
|
-
"begin": "/\\*",
|
437
|
-
"end": "\\*/",
|
438
|
-
"patterns": [
|
439
|
-
{
|
440
|
-
"include": "#javadoc-tags"
|
441
|
-
}
|
442
|
-
],
|
443
|
-
"beginCaptures": {
|
444
|
-
"0": {
|
445
|
-
"name": "punctuation.definition.comment.hx"
|
446
|
-
}
|
447
|
-
},
|
448
|
-
"endCaptures": {
|
449
|
-
"0": {
|
450
|
-
"name": "punctuation.definition.comment.hx"
|
451
|
-
}
|
452
|
-
}
|
453
|
-
},
|
454
|
-
{
|
455
|
-
"name": "comment.line.double-slash.hx",
|
456
|
-
"match": "(//).*$\\n?",
|
457
|
-
"captures": {
|
458
|
-
"1": {
|
459
|
-
"name": "punctuation.definition.comment.hx"
|
460
|
-
}
|
461
|
-
}
|
462
|
-
}
|
463
|
-
]
|
464
|
-
},
|
465
|
-
"conditional-compilation": {
|
466
|
-
"patterns": [
|
467
|
-
{
|
468
|
-
"match": "((#(if|elseif))[\\s!]+([a-zA-Z_][a-zA-Z0-9_]*(\\.[a-zA-Z_][a-zA-Z0-9_]*)*)(?=\\s|/\\*|//))",
|
469
|
-
"captures": {
|
470
|
-
"0": {
|
471
|
-
"name": "punctuation.definition.tag"
|
472
|
-
}
|
473
|
-
}
|
474
|
-
},
|
475
|
-
{
|
476
|
-
"name": "punctuation.definition.tag",
|
477
|
-
"begin": "((#(if|elseif))[\\s!]*)(?=\\()",
|
478
|
-
"end": "(?\u003c=\\)|\\n)",
|
479
|
-
"patterns": [
|
480
|
-
{
|
481
|
-
"include": "#conditional-compilation-parens"
|
482
|
-
}
|
483
|
-
],
|
484
|
-
"beginCaptures": {
|
485
|
-
"0": {
|
486
|
-
"name": "punctuation.definition.tag"
|
487
|
-
}
|
488
|
-
},
|
489
|
-
"endCaptures": {
|
490
|
-
"0": {
|
491
|
-
"name": "punctuation.definition.tag"
|
492
|
-
}
|
493
|
-
}
|
494
|
-
},
|
495
|
-
{
|
496
|
-
"name": "punctuation.definition.tag",
|
497
|
-
"match": "(#(end|else|error|line))"
|
498
|
-
},
|
499
|
-
{
|
500
|
-
"name": "punctuation.definition.tag",
|
501
|
-
"match": "(#([a-zA-Z0-9_]*))\\s"
|
502
|
-
}
|
503
|
-
]
|
504
|
-
},
|
505
|
-
"conditional-compilation-parens": {
|
506
|
-
"begin": "\\(",
|
507
|
-
"end": "\\)",
|
508
|
-
"patterns": [
|
509
|
-
{
|
510
|
-
"include": "#conditional-compilation-parens"
|
511
|
-
}
|
512
|
-
]
|
513
|
-
},
|
514
|
-
"constant-name": {
|
515
|
-
"name": "variable.other.hx",
|
516
|
-
"match": "\\b([_A-Z][_A-Z0-9]*)\\b"
|
517
|
-
},
|
518
|
-
"constants": {
|
519
|
-
"patterns": [
|
520
|
-
{
|
521
|
-
"name": "constant.language.hx",
|
522
|
-
"match": "\\b(true|false|null)\\b"
|
523
|
-
},
|
524
|
-
{
|
525
|
-
"name": "constant.numeric.hex.hx",
|
526
|
-
"match": "\\b(0(x|X)[0-9a-fA-F]*)\\b"
|
527
|
-
},
|
528
|
-
{
|
529
|
-
"match": "(?x)\n(?\u003c!\\$)(?:\n (?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # 1.1E+3\n (?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)| # 1.E+3\n (?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # .1E+3\n (?:\\b[0-9]+[eE][+-]?[0-9]+\\b)| # 1E+3\n (?:\\b[0-9]+(\\.)[0-9]+\\b)| # 1.1\n (?:\\b[0-9]+(\\.)(?!\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9]+\\b)| # .1\n (?:\\b[0-9]+\\b) # 1\n)(?!\\$)",
|
530
|
-
"captures": {
|
531
|
-
"0": {
|
532
|
-
"name": "constant.numeric.decimal.hx"
|
533
|
-
},
|
534
|
-
"1": {
|
535
|
-
"name": "meta.delimiter.decimal.period.hx"
|
536
|
-
},
|
537
|
-
"2": {
|
538
|
-
"name": "meta.delimiter.decimal.period.hx"
|
539
|
-
},
|
540
|
-
"3": {
|
541
|
-
"name": "meta.delimiter.decimal.period.hx"
|
542
|
-
},
|
543
|
-
"4": {
|
544
|
-
"name": "meta.delimiter.decimal.period.hx"
|
545
|
-
},
|
546
|
-
"5": {
|
547
|
-
"name": "meta.delimiter.decimal.period.hx"
|
548
|
-
},
|
549
|
-
"6": {
|
550
|
-
"name": "meta.delimiter.decimal.period.hx"
|
551
|
-
}
|
552
|
-
}
|
553
|
-
}
|
554
|
-
]
|
555
|
-
},
|
556
|
-
"enum": {
|
557
|
-
"name": "meta.enum.hx",
|
558
|
-
"begin": "(?=enum\\s+[A-Z])",
|
559
|
-
"end": "(?\u003c=\\})|(;)",
|
560
|
-
"patterns": [
|
561
|
-
{
|
562
|
-
"include": "#enum-name"
|
563
|
-
},
|
564
|
-
{
|
565
|
-
"include": "#enum-name-post"
|
566
|
-
},
|
567
|
-
{
|
568
|
-
"include": "#enum-block"
|
569
|
-
}
|
570
|
-
],
|
571
|
-
"endCaptures": {
|
572
|
-
"1": {
|
573
|
-
"name": "punctuation.terminator.hx"
|
574
|
-
}
|
575
|
-
}
|
576
|
-
},
|
577
|
-
"enum-block": {
|
578
|
-
"name": "meta.block.hx",
|
579
|
-
"begin": "(?\u003c=\\{)",
|
580
|
-
"end": "(\\})",
|
581
|
-
"patterns": [
|
582
|
-
{
|
583
|
-
"include": "#global"
|
584
|
-
},
|
585
|
-
{
|
586
|
-
"include": "#metadata"
|
587
|
-
},
|
588
|
-
{
|
589
|
-
"include": "#parameters"
|
590
|
-
},
|
591
|
-
{
|
592
|
-
"include": "#identifiers"
|
593
|
-
}
|
594
|
-
],
|
595
|
-
"endCaptures": {
|
596
|
-
"1": {
|
597
|
-
"name": "punctuation.definition.block.end.hx"
|
598
|
-
}
|
599
|
-
}
|
600
|
-
},
|
601
|
-
"enum-constructor-call": {
|
602
|
-
"begin": "\\b(?\u003c!\\.)((_*[a-z]\\w*\\.)*)(_*[A-Z]\\w*)(?:(\\.)(_*[A-Z]\\w*[a-z]\\w*))*\\s*(\\()",
|
603
|
-
"end": "(\\))",
|
604
|
-
"patterns": [
|
605
|
-
{
|
606
|
-
"include": "#block"
|
607
|
-
},
|
608
|
-
{
|
609
|
-
"include": "#block-contents"
|
610
|
-
}
|
611
|
-
],
|
612
|
-
"beginCaptures": {
|
613
|
-
"1": {
|
614
|
-
"name": "support.package.hx"
|
615
|
-
},
|
616
|
-
"3": {
|
617
|
-
"name": "entity.name.type.hx"
|
618
|
-
},
|
619
|
-
"4": {
|
620
|
-
"name": "support.package.hx"
|
621
|
-
},
|
622
|
-
"5": {
|
623
|
-
"name": "entity.name.type.hx"
|
624
|
-
},
|
625
|
-
"6": {
|
626
|
-
"name": "meta.brace.round.hx"
|
627
|
-
}
|
628
|
-
},
|
629
|
-
"endCaptures": {
|
630
|
-
"1": {
|
631
|
-
"name": "meta.brace.round.hx"
|
632
|
-
}
|
633
|
-
}
|
634
|
-
},
|
635
|
-
"enum-name": {
|
636
|
-
"begin": "\\b(enum)\\b",
|
637
|
-
"end": "([_A-Za-z]\\w*)",
|
638
|
-
"patterns": [
|
639
|
-
{
|
640
|
-
"include": "#global"
|
641
|
-
}
|
642
|
-
],
|
643
|
-
"beginCaptures": {
|
644
|
-
"1": {
|
645
|
-
"name": "storage.type.class.hx"
|
646
|
-
}
|
647
|
-
},
|
648
|
-
"endCaptures": {
|
649
|
-
"1": {
|
650
|
-
"name": "entity.name.type.class.hx"
|
651
|
-
}
|
652
|
-
}
|
653
|
-
},
|
654
|
-
"enum-name-post": {
|
655
|
-
"begin": "(?\u003c=\\w)",
|
656
|
-
"end": "([\\{;])",
|
657
|
-
"patterns": [
|
658
|
-
{
|
659
|
-
"include": "#type"
|
660
|
-
}
|
661
|
-
],
|
662
|
-
"endCaptures": {
|
663
|
-
"1": {
|
664
|
-
"name": "punctuation.definition.block.begin.hx"
|
665
|
-
}
|
666
|
-
}
|
667
|
-
},
|
668
|
-
"for-loop": {
|
669
|
-
"begin": "\\b(for)\\b\\s*(\\()",
|
670
|
-
"end": "(\\))",
|
671
|
-
"patterns": [
|
672
|
-
{
|
673
|
-
"name": "keyword.other.in.hx",
|
674
|
-
"match": "\\b(in)\\b"
|
675
|
-
},
|
676
|
-
{
|
677
|
-
"include": "#block"
|
678
|
-
},
|
679
|
-
{
|
680
|
-
"include": "#block-contents"
|
681
|
-
}
|
682
|
-
],
|
683
|
-
"beginCaptures": {
|
684
|
-
"1": {
|
685
|
-
"name": "keyword.control.flow-control.hx"
|
686
|
-
},
|
687
|
-
"2": {
|
688
|
-
"name": "meta.brace.round.hx"
|
689
|
-
}
|
690
|
-
},
|
691
|
-
"endCaptures": {
|
692
|
-
"1": {
|
693
|
-
"name": "meta.brace.round.hx"
|
694
|
-
}
|
695
|
-
}
|
696
|
-
},
|
697
|
-
"function-type": {
|
698
|
-
"begin": "\\(",
|
699
|
-
"end": "\\)",
|
700
|
-
"patterns": [
|
701
|
-
{
|
702
|
-
"include": "#function-type-parameter"
|
703
|
-
}
|
704
|
-
],
|
705
|
-
"beginCaptures": {
|
706
|
-
"0": {
|
707
|
-
"name": "punctuation.definition.parameters.begin.hx"
|
708
|
-
}
|
709
|
-
},
|
710
|
-
"endCaptures": {
|
711
|
-
"0": {
|
712
|
-
"name": "punctuation.definition.parameters.end.hx"
|
713
|
-
}
|
714
|
-
}
|
715
|
-
},
|
716
|
-
"function-type-parameter": {
|
717
|
-
"begin": "(?\u003c=\\(|,)",
|
718
|
-
"end": "(?=\\)|,)",
|
719
|
-
"patterns": [
|
720
|
-
{
|
721
|
-
"include": "#global"
|
722
|
-
},
|
723
|
-
{
|
724
|
-
"include": "#metadata"
|
725
|
-
},
|
726
|
-
{
|
727
|
-
"include": "#operator-optional"
|
728
|
-
},
|
729
|
-
{
|
730
|
-
"include": "#punctuation-comma"
|
731
|
-
},
|
732
|
-
{
|
733
|
-
"include": "#function-type-parameter-name"
|
734
|
-
},
|
735
|
-
{
|
736
|
-
"include": "#function-type-parameter-type-hint"
|
737
|
-
},
|
738
|
-
{
|
739
|
-
"include": "#parameter-assign"
|
740
|
-
},
|
741
|
-
{
|
742
|
-
"include": "#type"
|
743
|
-
},
|
744
|
-
{
|
745
|
-
"include": "#global"
|
746
|
-
}
|
747
|
-
]
|
748
|
-
},
|
749
|
-
"function-type-parameter-name": {
|
750
|
-
"match": "([_a-zA-Z]\\w*)(?=\\s*:)",
|
751
|
-
"captures": {
|
752
|
-
"1": {
|
753
|
-
"name": "variable.parameter.hx"
|
754
|
-
}
|
755
|
-
}
|
756
|
-
},
|
757
|
-
"function-type-parameter-type-hint": {
|
758
|
-
"begin": ":",
|
759
|
-
"end": "(?=\\)|,|=)",
|
760
|
-
"patterns": [
|
761
|
-
{
|
762
|
-
"include": "#type"
|
763
|
-
}
|
764
|
-
],
|
765
|
-
"beginCaptures": {
|
766
|
-
"0": {
|
767
|
-
"name": "keyword.operator.type.annotation.hx"
|
768
|
-
}
|
769
|
-
}
|
770
|
-
},
|
771
|
-
"global": {
|
772
|
-
"patterns": [
|
773
|
-
{
|
774
|
-
"include": "#comments"
|
775
|
-
},
|
776
|
-
{
|
777
|
-
"include": "#conditional-compilation"
|
778
|
-
}
|
779
|
-
]
|
780
|
-
},
|
781
|
-
"identifier-name": {
|
782
|
-
"name": "variable.other.hx",
|
783
|
-
"match": "\\b([_A-Za-z]\\w*)\\b"
|
784
|
-
},
|
785
|
-
"identifiers": {
|
786
|
-
"patterns": [
|
787
|
-
{
|
788
|
-
"include": "#constant-name"
|
789
|
-
},
|
790
|
-
{
|
791
|
-
"include": "#type-name"
|
792
|
-
},
|
793
|
-
{
|
794
|
-
"include": "#identifier-name"
|
795
|
-
}
|
796
|
-
]
|
797
|
-
},
|
798
|
-
"import": {
|
799
|
-
"begin": "import\\b",
|
800
|
-
"end": "$|(;)",
|
801
|
-
"patterns": [
|
802
|
-
{
|
803
|
-
"include": "#type-path"
|
804
|
-
},
|
805
|
-
{
|
806
|
-
"name": "keyword.control.as.hx",
|
807
|
-
"match": "\\b(as)\\b"
|
808
|
-
},
|
809
|
-
{
|
810
|
-
"name": "keyword.control.in.hx",
|
811
|
-
"match": "\\b(in)\\b"
|
812
|
-
},
|
813
|
-
{
|
814
|
-
"name": "constant.language.import-all.hx",
|
815
|
-
"match": "\\*"
|
816
|
-
},
|
817
|
-
{
|
818
|
-
"name": "variable.other.hxt",
|
819
|
-
"match": "\\b([_A-Za-z]\\w*)\\b(?=\\s*(as|in|$|(;)))"
|
820
|
-
},
|
821
|
-
{
|
822
|
-
"include": "#type-path-package-name"
|
823
|
-
}
|
824
|
-
],
|
825
|
-
"beginCaptures": {
|
826
|
-
"0": {
|
827
|
-
"name": "keyword.control.import.hx"
|
828
|
-
}
|
829
|
-
},
|
830
|
-
"endCaptures": {
|
831
|
-
"1": {
|
832
|
-
"name": "punctuation.terminator.hx"
|
833
|
-
}
|
834
|
-
}
|
835
|
-
},
|
836
|
-
"interface": {
|
837
|
-
"name": "meta.interface.hx",
|
838
|
-
"begin": "(?=interface)",
|
839
|
-
"end": "(?\u003c=\\})|(;)",
|
840
|
-
"patterns": [
|
841
|
-
{
|
842
|
-
"include": "#interface-name"
|
843
|
-
},
|
844
|
-
{
|
845
|
-
"include": "#interface-name-post"
|
846
|
-
},
|
847
|
-
{
|
848
|
-
"include": "#interface-block"
|
849
|
-
}
|
850
|
-
],
|
851
|
-
"endCaptures": {
|
852
|
-
"1": {
|
853
|
-
"name": "punctuation.terminator.hx"
|
854
|
-
}
|
855
|
-
}
|
856
|
-
},
|
857
|
-
"interface-block": {
|
858
|
-
"name": "meta.block.hx",
|
859
|
-
"begin": "(?\u003c=\\{)",
|
860
|
-
"end": "(\\})",
|
861
|
-
"patterns": [
|
862
|
-
{
|
863
|
-
"include": "#method"
|
864
|
-
},
|
865
|
-
{
|
866
|
-
"include": "#variable"
|
867
|
-
},
|
868
|
-
{
|
869
|
-
"include": "#block"
|
870
|
-
},
|
871
|
-
{
|
872
|
-
"include": "#block-contents"
|
873
|
-
}
|
874
|
-
],
|
875
|
-
"endCaptures": {
|
876
|
-
"1": {
|
877
|
-
"name": "punctuation.definition.block.end.hx"
|
878
|
-
}
|
879
|
-
}
|
880
|
-
},
|
881
|
-
"interface-name": {
|
882
|
-
"begin": "\\b(interface)\\b",
|
883
|
-
"end": "([_A-Za-z]\\w*)",
|
884
|
-
"patterns": [
|
885
|
-
{
|
886
|
-
"include": "#global"
|
887
|
-
}
|
888
|
-
],
|
889
|
-
"beginCaptures": {
|
890
|
-
"1": {
|
891
|
-
"name": "storage.type.class.hx"
|
892
|
-
}
|
893
|
-
},
|
894
|
-
"endCaptures": {
|
895
|
-
"1": {
|
896
|
-
"name": "entity.name.type.class.hx"
|
897
|
-
}
|
898
|
-
}
|
899
|
-
},
|
900
|
-
"interface-name-post": {
|
901
|
-
"begin": "(?\u003c=\\w)",
|
902
|
-
"end": "([\\{;])",
|
903
|
-
"patterns": [
|
904
|
-
{
|
905
|
-
"include": "#global"
|
906
|
-
},
|
907
|
-
{
|
908
|
-
"include": "#modifiers-inheritance"
|
909
|
-
},
|
910
|
-
{
|
911
|
-
"include": "#type"
|
912
|
-
}
|
913
|
-
],
|
914
|
-
"endCaptures": {
|
915
|
-
"1": {
|
916
|
-
"name": "punctuation.definition.block.begin.hx"
|
917
|
-
}
|
918
|
-
}
|
919
|
-
},
|
920
|
-
"javadoc-tags": {
|
921
|
-
"patterns": [
|
922
|
-
{
|
923
|
-
"match": "(@(?:param|exception|throws|event))\\s+([_A-Za-z]\\w*)\\s+",
|
924
|
-
"captures": {
|
925
|
-
"1": {
|
926
|
-
"name": "storage.type.class.javadoc"
|
927
|
-
},
|
928
|
-
"2": {
|
929
|
-
"name": "variable.other.javadoc"
|
930
|
-
}
|
931
|
-
}
|
932
|
-
},
|
933
|
-
{
|
934
|
-
"match": "(@since)\\s+([\\w\\.-]+)\\s+",
|
935
|
-
"captures": {
|
936
|
-
"1": {
|
937
|
-
"name": "storage.type.class.javadoc"
|
938
|
-
},
|
939
|
-
"2": {
|
940
|
-
"name": "constant.numeric.javadoc"
|
941
|
-
}
|
942
|
-
}
|
943
|
-
},
|
944
|
-
{
|
945
|
-
"match": "@(param|exception|throws|deprecated|returns?|since|default|see|event)",
|
946
|
-
"captures": {
|
947
|
-
"0": {
|
948
|
-
"name": "storage.type.class.javadoc"
|
949
|
-
}
|
950
|
-
}
|
951
|
-
}
|
952
|
-
]
|
953
|
-
},
|
954
|
-
"keywords": {
|
955
|
-
"patterns": [
|
956
|
-
{
|
957
|
-
"begin": "(?\u003c=trace|$type|if|while|for|super)\\s*(\\()",
|
958
|
-
"end": "\\)",
|
959
|
-
"patterns": [
|
960
|
-
{
|
961
|
-
"include": "#block-contents"
|
962
|
-
}
|
963
|
-
],
|
964
|
-
"beginCaptures": {
|
965
|
-
"2": {
|
966
|
-
"name": "meta.brace.round.hx"
|
967
|
-
}
|
968
|
-
},
|
969
|
-
"endCaptures": {
|
970
|
-
"0": {
|
971
|
-
"name": "meta.brace.round.hx"
|
972
|
-
}
|
973
|
-
}
|
974
|
-
},
|
975
|
-
{
|
976
|
-
"begin": "(?\u003c=catch)\\s*(\\()",
|
977
|
-
"end": "\\)",
|
978
|
-
"patterns": [
|
979
|
-
{
|
980
|
-
"include": "#block-contents"
|
981
|
-
},
|
982
|
-
{
|
983
|
-
"include": "#type-check"
|
984
|
-
}
|
985
|
-
],
|
986
|
-
"beginCaptures": {
|
987
|
-
"2": {
|
988
|
-
"name": "meta.brace.round.hx"
|
989
|
-
}
|
990
|
-
},
|
991
|
-
"endCaptures": {
|
992
|
-
"0": {
|
993
|
-
"name": "meta.brace.round.hx"
|
994
|
-
}
|
995
|
-
}
|
996
|
-
},
|
997
|
-
{
|
998
|
-
"begin": "(?\u003c=cast)\\s*(\\()",
|
999
|
-
"end": "\\)",
|
1000
|
-
"patterns": [
|
1001
|
-
{
|
1002
|
-
"begin": "(?=,)",
|
1003
|
-
"end": "(?=\\))",
|
1004
|
-
"patterns": [
|
1005
|
-
{
|
1006
|
-
"include": "#type"
|
1007
|
-
}
|
1008
|
-
]
|
1009
|
-
},
|
1010
|
-
{
|
1011
|
-
"include": "#block-contents"
|
1012
|
-
}
|
1013
|
-
],
|
1014
|
-
"beginCaptures": {
|
1015
|
-
"2": {
|
1016
|
-
"name": "meta.brace.round.hx"
|
1017
|
-
}
|
1018
|
-
},
|
1019
|
-
"endCaptures": {
|
1020
|
-
"0": {
|
1021
|
-
"name": "meta.brace.round.hx"
|
1022
|
-
}
|
1023
|
-
}
|
1024
|
-
},
|
1025
|
-
{
|
1026
|
-
"name": "keyword.control.catch-exception.hx",
|
1027
|
-
"match": "\\b(try|catch|throw)\\b"
|
1028
|
-
},
|
1029
|
-
{
|
1030
|
-
"begin": "\\b(case|default)\\b",
|
1031
|
-
"end": ":|(?=if)|$",
|
1032
|
-
"patterns": [
|
1033
|
-
{
|
1034
|
-
"include": "#global"
|
1035
|
-
},
|
1036
|
-
{
|
1037
|
-
"include": "#metadata"
|
1038
|
-
},
|
1039
|
-
{
|
1040
|
-
"match": "\\b(var|final)\\b\\s*([_a-zA-Z]\\w*)\\b",
|
1041
|
-
"captures": {
|
1042
|
-
"1": {
|
1043
|
-
"name": "storage.type.variable.hx"
|
1044
|
-
},
|
1045
|
-
"2": {
|
1046
|
-
"name": "variable.other.hx"
|
1047
|
-
}
|
1048
|
-
}
|
1049
|
-
},
|
1050
|
-
{
|
1051
|
-
"include": "#array"
|
1052
|
-
},
|
1053
|
-
{
|
1054
|
-
"include": "#constants"
|
1055
|
-
},
|
1056
|
-
{
|
1057
|
-
"include": "#strings"
|
1058
|
-
},
|
1059
|
-
{
|
1060
|
-
"name": "meta.brace.round.hx",
|
1061
|
-
"match": "\\("
|
1062
|
-
},
|
1063
|
-
{
|
1064
|
-
"name": "meta.brace.round.hx",
|
1065
|
-
"match": "\\)"
|
1066
|
-
},
|
1067
|
-
{
|
1068
|
-
"include": "#macro-reification"
|
1069
|
-
},
|
1070
|
-
{
|
1071
|
-
"name": "keyword.operator.extractor.hx",
|
1072
|
-
"match": "=\u003e"
|
1073
|
-
},
|
1074
|
-
{
|
1075
|
-
"include": "#operator-assignment"
|
1076
|
-
},
|
1077
|
-
{
|
1078
|
-
"include": "#punctuation-comma"
|
1079
|
-
},
|
1080
|
-
{
|
1081
|
-
"include": "#keywords"
|
1082
|
-
},
|
1083
|
-
{
|
1084
|
-
"include": "#method-call"
|
1085
|
-
},
|
1086
|
-
{
|
1087
|
-
"include": "#identifiers"
|
1088
|
-
}
|
1089
|
-
],
|
1090
|
-
"beginCaptures": {
|
1091
|
-
"1": {
|
1092
|
-
"name": "keyword.control.flow-control.hx"
|
1093
|
-
}
|
1094
|
-
}
|
1095
|
-
},
|
1096
|
-
{
|
1097
|
-
"name": "keyword.control.flow-control.hx",
|
1098
|
-
"match": "\\b(if|else|return|do|while|for|break|continue|switch|case|default)\\b"
|
1099
|
-
},
|
1100
|
-
{
|
1101
|
-
"name": "keyword.other.untyped.hx",
|
1102
|
-
"match": "\\b(cast|untyped)\\b"
|
1103
|
-
},
|
1104
|
-
{
|
1105
|
-
"name": "keyword.other.trace.hx",
|
1106
|
-
"match": "\\btrace\\b"
|
1107
|
-
},
|
1108
|
-
{
|
1109
|
-
"name": "keyword.other.type.hx",
|
1110
|
-
"match": "\\$type\\b"
|
1111
|
-
},
|
1112
|
-
{
|
1113
|
-
"name": "keyword.other.untyped-property.hx",
|
1114
|
-
"match": "\\__(global|this)__\\b"
|
1115
|
-
},
|
1116
|
-
{
|
1117
|
-
"name": "variable.language.hx",
|
1118
|
-
"match": "\\b(this|super)\\b"
|
1119
|
-
},
|
1120
|
-
{
|
1121
|
-
"name": "keyword.operator.new.hx",
|
1122
|
-
"match": "\\bnew\\b"
|
1123
|
-
},
|
1124
|
-
{
|
1125
|
-
"name": "storage.type.hx",
|
1126
|
-
"match": "\\b(abstract|class|enum|interface|typedef)\\b"
|
1127
|
-
},
|
1128
|
-
{
|
1129
|
-
"name": "storage.type.function.arrow.hx",
|
1130
|
-
"match": "-\u003e"
|
1131
|
-
},
|
1132
|
-
{
|
1133
|
-
"include": "#modifiers"
|
1134
|
-
},
|
1135
|
-
{
|
1136
|
-
"include": "#modifiers-inheritance"
|
1137
|
-
}
|
1138
|
-
]
|
1139
|
-
},
|
1140
|
-
"keywords-accessor": {
|
1141
|
-
"name": "storage.type.property.hx",
|
1142
|
-
"match": "\\b(default|get|set|dynamic|never|null)\\b"
|
1143
|
-
},
|
1144
|
-
"macro-reification": {
|
1145
|
-
"patterns": [
|
1146
|
-
{
|
1147
|
-
"match": "(\\$)([eabipv])\\{",
|
1148
|
-
"captures": {
|
1149
|
-
"1": {
|
1150
|
-
"name": "punctuation.definition.reification.hx"
|
1151
|
-
},
|
1152
|
-
"2": {
|
1153
|
-
"name": "keyword.reification.hx"
|
1154
|
-
}
|
1155
|
-
}
|
1156
|
-
},
|
1157
|
-
{
|
1158
|
-
"match": "((\\$)([a-zA-Z]*))",
|
1159
|
-
"captures": {
|
1160
|
-
"2": {
|
1161
|
-
"name": "punctuation.definition.reification.hx"
|
1162
|
-
},
|
1163
|
-
"3": {
|
1164
|
-
"name": "variable.reification.hx"
|
1165
|
-
}
|
1166
|
-
}
|
1167
|
-
}
|
1168
|
-
]
|
1169
|
-
},
|
1170
|
-
"metadata": {
|
1171
|
-
"patterns": [
|
1172
|
-
{
|
1173
|
-
"begin": "(@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs.assemblyMeta|cs.assemblyStrict|cs.using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash.property|font|forward.new|forward.variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java.native|javaCanonical|jsRequire|jvm.synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)\\b)\\s*(\\()",
|
1174
|
-
"end": "\\)",
|
1175
|
-
"patterns": [
|
1176
|
-
{
|
1177
|
-
"include": "#block-contents"
|
1178
|
-
}
|
1179
|
-
],
|
1180
|
-
"beginCaptures": {
|
1181
|
-
"1": {
|
1182
|
-
"name": "punctuation.metadata.hx"
|
1183
|
-
},
|
1184
|
-
"2": {
|
1185
|
-
"name": "storage.modifier.metadata.hx"
|
1186
|
-
},
|
1187
|
-
"3": {
|
1188
|
-
"name": "meta.brace.round.hx"
|
1189
|
-
}
|
1190
|
-
},
|
1191
|
-
"endCaptures": {
|
1192
|
-
"0": {
|
1193
|
-
"name": "meta.brace.round.hx"
|
1194
|
-
}
|
1195
|
-
}
|
1196
|
-
},
|
1197
|
-
{
|
1198
|
-
"match": "((@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs.assemblyMeta|cs.assemblyStrict|cs.using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash.property|font|forward.new|forward.variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java.native|javaCanonical|jsRequire|jvm.synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)\\b))",
|
1199
|
-
"captures": {
|
1200
|
-
"2": {
|
1201
|
-
"name": "punctuation.metadata.hx"
|
1202
|
-
},
|
1203
|
-
"3": {
|
1204
|
-
"name": "storage.modifier.metadata.hx"
|
1205
|
-
}
|
1206
|
-
}
|
1207
|
-
},
|
1208
|
-
{
|
1209
|
-
"begin": "(@)(:?[a-zA-Z_]*)\\s*(\\()",
|
1210
|
-
"end": "\\)",
|
1211
|
-
"patterns": [
|
1212
|
-
{
|
1213
|
-
"include": "#block-contents"
|
1214
|
-
}
|
1215
|
-
],
|
1216
|
-
"beginCaptures": {
|
1217
|
-
"1": {
|
1218
|
-
"name": "punctuation.metadata.hx"
|
1219
|
-
},
|
1220
|
-
"2": {
|
1221
|
-
"name": "variable.metadata.hx"
|
1222
|
-
},
|
1223
|
-
"3": {
|
1224
|
-
"name": "meta.brace.round.hx"
|
1225
|
-
}
|
1226
|
-
},
|
1227
|
-
"endCaptures": {
|
1228
|
-
"0": {
|
1229
|
-
"name": "meta.brace.round.hx"
|
1230
|
-
}
|
1231
|
-
}
|
1232
|
-
},
|
1233
|
-
{
|
1234
|
-
"match": "(@)(:?)([a-zA-Z_]*(\\.))*([a-zA-Z_]*)?",
|
1235
|
-
"captures": {
|
1236
|
-
"1": {
|
1237
|
-
"name": "punctuation.metadata.hx"
|
1238
|
-
},
|
1239
|
-
"2": {
|
1240
|
-
"name": "variable.metadata.hx"
|
1241
|
-
},
|
1242
|
-
"3": {
|
1243
|
-
"name": "variable.metadata.hx"
|
1244
|
-
},
|
1245
|
-
"4": {
|
1246
|
-
"name": "punctuation.accessor.hx"
|
1247
|
-
},
|
1248
|
-
"5": {
|
1249
|
-
"name": "variable.metadata.hx"
|
1250
|
-
}
|
1251
|
-
}
|
1252
|
-
}
|
1253
|
-
]
|
1254
|
-
},
|
1255
|
-
"method": {
|
1256
|
-
"name": "meta.method.hx",
|
1257
|
-
"begin": "(?=\\bfunction\\b)",
|
1258
|
-
"end": "(?\u003c=[\\};])",
|
1259
|
-
"patterns": [
|
1260
|
-
{
|
1261
|
-
"include": "#macro-reification"
|
1262
|
-
},
|
1263
|
-
{
|
1264
|
-
"include": "#method-name"
|
1265
|
-
},
|
1266
|
-
{
|
1267
|
-
"include": "#method-name-post"
|
1268
|
-
},
|
1269
|
-
{
|
1270
|
-
"include": "#method-block"
|
1271
|
-
}
|
1272
|
-
]
|
1273
|
-
},
|
1274
|
-
"method-block": {
|
1275
|
-
"name": "meta.method.block.hx",
|
1276
|
-
"begin": "(?\u003c=\\{)",
|
1277
|
-
"end": "(\\})",
|
1278
|
-
"patterns": [
|
1279
|
-
{
|
1280
|
-
"include": "#block"
|
1281
|
-
},
|
1282
|
-
{
|
1283
|
-
"include": "#block-contents"
|
1284
|
-
}
|
1285
|
-
],
|
1286
|
-
"beginCaptures": {
|
1287
|
-
"1": {
|
1288
|
-
"name": "punctuation.definition.block.begin.hx"
|
1289
|
-
}
|
1290
|
-
},
|
1291
|
-
"endCaptures": {
|
1292
|
-
"1": {
|
1293
|
-
"name": "punctuation.definition.block.end.hx"
|
1294
|
-
}
|
1295
|
-
}
|
1296
|
-
},
|
1297
|
-
"method-call": {
|
1298
|
-
"begin": "\\b(?:(__(?:addressOf|as|call|checked|cpp|cs|define_feature|delete|feature|field|fixed|foreach|forin|has_next|hkeys|in|int|is|java|js|keys|lock|lua|lua_table|new|php|physeq|prefix|ptr|resources|rethrow|set|setfield|sizeof|type|typeof|unprotect|unsafe|valueOf|var|vector|vmem_get|vmem_set|vmem_sign|instanceof|strict_eq|strict_neq)__)|([_a-z]\\w*))\\s*(\\()",
|
1299
|
-
"end": "(\\))",
|
1300
|
-
"patterns": [
|
1301
|
-
{
|
1302
|
-
"include": "#block"
|
1303
|
-
},
|
1304
|
-
{
|
1305
|
-
"include": "#block-contents"
|
1306
|
-
}
|
1307
|
-
],
|
1308
|
-
"beginCaptures": {
|
1309
|
-
"1": {
|
1310
|
-
"name": "keyword.other.untyped-function.hx"
|
1311
|
-
},
|
1312
|
-
"2": {
|
1313
|
-
"name": "entity.name.function.hx"
|
1314
|
-
},
|
1315
|
-
"3": {
|
1316
|
-
"name": "meta.brace.round.hx"
|
1317
|
-
}
|
1318
|
-
},
|
1319
|
-
"endCaptures": {
|
1320
|
-
"1": {
|
1321
|
-
"name": "meta.brace.round.hx"
|
1322
|
-
}
|
1323
|
-
}
|
1324
|
-
},
|
1325
|
-
"method-name": {
|
1326
|
-
"begin": "\\b(function)\\b\\s*\\b(?:(new)|([_A-Za-z]\\w*))?\\b",
|
1327
|
-
"end": "(?=$|\\()",
|
1328
|
-
"patterns": [
|
1329
|
-
{
|
1330
|
-
"include": "#macro-reification"
|
1331
|
-
},
|
1332
|
-
{
|
1333
|
-
"include": "#type-parameters"
|
1334
|
-
}
|
1335
|
-
],
|
1336
|
-
"beginCaptures": {
|
1337
|
-
"1": {
|
1338
|
-
"name": "storage.type.function.hx"
|
1339
|
-
},
|
1340
|
-
"2": {
|
1341
|
-
"name": "storage.type.hx"
|
1342
|
-
},
|
1343
|
-
"3": {
|
1344
|
-
"name": "entity.name.function.hx"
|
1345
|
-
}
|
1346
|
-
}
|
1347
|
-
},
|
1348
|
-
"method-name-post": {
|
1349
|
-
"begin": "(?\u003c=[\\w\\s\u003e])",
|
1350
|
-
"end": "(\\{)|(;)",
|
1351
|
-
"patterns": [
|
1352
|
-
{
|
1353
|
-
"include": "#parameters"
|
1354
|
-
},
|
1355
|
-
{
|
1356
|
-
"include": "#method-return-type-hint"
|
1357
|
-
},
|
1358
|
-
{
|
1359
|
-
"include": "#block"
|
1360
|
-
},
|
1361
|
-
{
|
1362
|
-
"include": "#block-contents"
|
1363
|
-
}
|
1364
|
-
],
|
1365
|
-
"endCaptures": {
|
1366
|
-
"1": {
|
1367
|
-
"name": "punctuation.definition.block.begin.hx"
|
1368
|
-
},
|
1369
|
-
"2": {
|
1370
|
-
"name": "punctuation.terminator.hx"
|
1371
|
-
}
|
1372
|
-
}
|
1373
|
-
},
|
1374
|
-
"method-return-type-hint": {
|
1375
|
-
"begin": "(?\u003c=\\))\\s*(:)",
|
1376
|
-
"end": "(?=\\{|;|[a-z0-9])",
|
1377
|
-
"patterns": [
|
1378
|
-
{
|
1379
|
-
"include": "#type"
|
1380
|
-
}
|
1381
|
-
],
|
1382
|
-
"beginCaptures": {
|
1383
|
-
"1": {
|
1384
|
-
"name": "keyword.operator.type.annotation.hx"
|
1385
|
-
}
|
1386
|
-
}
|
1387
|
-
},
|
1388
|
-
"modifiers": {
|
1389
|
-
"patterns": [
|
1390
|
-
{
|
1391
|
-
"name": "storage.type.class",
|
1392
|
-
"match": "\\b(enum)\\b"
|
1393
|
-
},
|
1394
|
-
{
|
1395
|
-
"name": "storage.modifier.hx",
|
1396
|
-
"match": "\\b(public|private|static|dynamic|inline|macro|extern|override|overload|abstract)\\b"
|
1397
|
-
},
|
1398
|
-
{
|
1399
|
-
"name": "storage.modifier.hx",
|
1400
|
-
"match": "\\b(final)\\b(?=\\s+(public|private|static|dynamic|inline|macro|extern|override|overload|abstract|function))"
|
1401
|
-
}
|
1402
|
-
]
|
1403
|
-
},
|
1404
|
-
"modifiers-inheritance": {
|
1405
|
-
"name": "storage.modifier.hx",
|
1406
|
-
"match": "\\b(implements|extends)\\b"
|
1407
|
-
},
|
1408
|
-
"new-expr": {
|
1409
|
-
"name": "new.expr.hx",
|
1410
|
-
"begin": "(?\u003c!\\.)\\b(new)\\b",
|
1411
|
-
"end": "(?=$|\\()",
|
1412
|
-
"patterns": [
|
1413
|
-
{
|
1414
|
-
"include": "#type"
|
1415
|
-
}
|
1416
|
-
],
|
1417
|
-
"beginCaptures": {
|
1418
|
-
"1": {
|
1419
|
-
"name": "keyword.operator.new.hx"
|
1420
|
-
}
|
1421
|
-
}
|
1422
|
-
},
|
1423
|
-
"operator-assignment": {
|
1424
|
-
"name": "keyword.operator.assignment.hx",
|
1425
|
-
"match": "(=)"
|
1426
|
-
},
|
1427
|
-
"operator-optional": {
|
1428
|
-
"name": "keyword.operator.optional.hx",
|
1429
|
-
"match": "(\\?)(?!\\s)"
|
1430
|
-
},
|
1431
|
-
"operator-type-hint": {
|
1432
|
-
"name": "keyword.operator.type.annotation.hx",
|
1433
|
-
"match": "(:)"
|
1434
|
-
},
|
1435
|
-
"operators": {
|
1436
|
-
"patterns": [
|
1437
|
-
{
|
1438
|
-
"name": "keyword.operator.logical.hx",
|
1439
|
-
"match": "(\u0026\u0026|\\|\\|)"
|
1440
|
-
},
|
1441
|
-
{
|
1442
|
-
"name": "keyword.operator.bitwise.hx",
|
1443
|
-
"match": "(~|\u0026|\\||\\^|\u003e\u003e\u003e|\u003c\u003c|\u003e\u003e)"
|
1444
|
-
},
|
1445
|
-
{
|
1446
|
-
"name": "keyword.operator.comparison.hx",
|
1447
|
-
"match": "(==|!=|\u003c=|\u003e=|\u003c|\u003e)"
|
1448
|
-
},
|
1449
|
-
{
|
1450
|
-
"name": "keyword.operator.logical.hx",
|
1451
|
-
"match": "(!)"
|
1452
|
-
},
|
1453
|
-
{
|
1454
|
-
"name": "keyword.operator.increment-decrement.hx",
|
1455
|
-
"match": "(\\-\\-|\\+\\+)"
|
1456
|
-
},
|
1457
|
-
{
|
1458
|
-
"name": "keyword.operator.arithmetic.hx",
|
1459
|
-
"match": "(\\-|\\+|\\*|\\/|%)"
|
1460
|
-
},
|
1461
|
-
{
|
1462
|
-
"name": "keyword.operator.intiterator.hx",
|
1463
|
-
"match": "\\.\\.\\."
|
1464
|
-
},
|
1465
|
-
{
|
1466
|
-
"name": "keyword.operator.arrow.hx",
|
1467
|
-
"match": "=\u003e"
|
1468
|
-
},
|
1469
|
-
{
|
1470
|
-
"name": "keyword.other.hx",
|
1471
|
-
"match": "\\bis\\b(?!\\()"
|
1472
|
-
},
|
1473
|
-
{
|
1474
|
-
"begin": "\\?",
|
1475
|
-
"end": ":",
|
1476
|
-
"patterns": [
|
1477
|
-
{
|
1478
|
-
"include": "#block-contents"
|
1479
|
-
}
|
1480
|
-
],
|
1481
|
-
"beginCaptures": {
|
1482
|
-
"0": {
|
1483
|
-
"name": "keyword.operator.ternary.hx"
|
1484
|
-
}
|
1485
|
-
},
|
1486
|
-
"endCaptures": {
|
1487
|
-
"0": {
|
1488
|
-
"name": "keyword.operator.ternary.hx"
|
1489
|
-
}
|
1490
|
-
}
|
1491
|
-
}
|
1492
|
-
]
|
1493
|
-
},
|
1494
|
-
"package": {
|
1495
|
-
"begin": "package\\b",
|
1496
|
-
"end": "$|(;)",
|
1497
|
-
"patterns": [
|
1498
|
-
{
|
1499
|
-
"include": "#type-path"
|
1500
|
-
},
|
1501
|
-
{
|
1502
|
-
"include": "#type-path-package-name"
|
1503
|
-
}
|
1504
|
-
],
|
1505
|
-
"beginCaptures": {
|
1506
|
-
"0": {
|
1507
|
-
"name": "keyword.other.package.hx"
|
1508
|
-
}
|
1509
|
-
},
|
1510
|
-
"endCaptures": {
|
1511
|
-
"1": {
|
1512
|
-
"name": "punctuation.terminator.hx"
|
1513
|
-
}
|
1514
|
-
}
|
1515
|
-
},
|
1516
|
-
"parameter": {
|
1517
|
-
"begin": "(?\u003c=\\(|,)",
|
1518
|
-
"end": "(?=\\)(?!\\s*-\u003e)|,)",
|
1519
|
-
"patterns": [
|
1520
|
-
{
|
1521
|
-
"include": "#parameter-name"
|
1522
|
-
},
|
1523
|
-
{
|
1524
|
-
"include": "#parameter-type-hint"
|
1525
|
-
},
|
1526
|
-
{
|
1527
|
-
"include": "#parameter-assign"
|
1528
|
-
},
|
1529
|
-
{
|
1530
|
-
"include": "#punctuation-comma"
|
1531
|
-
},
|
1532
|
-
{
|
1533
|
-
"include": "#global"
|
1534
|
-
}
|
1535
|
-
]
|
1536
|
-
},
|
1537
|
-
"parameter-assign": {
|
1538
|
-
"begin": "=",
|
1539
|
-
"end": "(?=\\)|,)",
|
1540
|
-
"patterns": [
|
1541
|
-
{
|
1542
|
-
"include": "#block"
|
1543
|
-
},
|
1544
|
-
{
|
1545
|
-
"include": "#block-contents"
|
1546
|
-
}
|
1547
|
-
],
|
1548
|
-
"beginCaptures": {
|
1549
|
-
"0": {
|
1550
|
-
"name": "keyword.operator.assignment.hx"
|
1551
|
-
}
|
1552
|
-
}
|
1553
|
-
},
|
1554
|
-
"parameter-name": {
|
1555
|
-
"begin": "(?\u003c=\\(|,)",
|
1556
|
-
"end": "([_a-zA-Z]\\w*)",
|
1557
|
-
"patterns": [
|
1558
|
-
{
|
1559
|
-
"include": "#global"
|
1560
|
-
},
|
1561
|
-
{
|
1562
|
-
"include": "#metadata"
|
1563
|
-
},
|
1564
|
-
{
|
1565
|
-
"include": "#operator-optional"
|
1566
|
-
}
|
1567
|
-
],
|
1568
|
-
"endCaptures": {
|
1569
|
-
"1": {
|
1570
|
-
"name": "variable.parameter.hx"
|
1571
|
-
}
|
1572
|
-
}
|
1573
|
-
},
|
1574
|
-
"parameter-type-hint": {
|
1575
|
-
"begin": ":",
|
1576
|
-
"end": "(?=\\)(?!\\s*-\u003e)|,|=)",
|
1577
|
-
"patterns": [
|
1578
|
-
{
|
1579
|
-
"include": "#type"
|
1580
|
-
}
|
1581
|
-
],
|
1582
|
-
"beginCaptures": {
|
1583
|
-
"0": {
|
1584
|
-
"name": "keyword.operator.type.annotation.hx"
|
1585
|
-
}
|
1586
|
-
}
|
1587
|
-
},
|
1588
|
-
"parameters": {
|
1589
|
-
"name": "meta.parameters.hx",
|
1590
|
-
"begin": "\\(",
|
1591
|
-
"end": "\\s*(\\)(?!\\s*-\u003e))",
|
1592
|
-
"patterns": [
|
1593
|
-
{
|
1594
|
-
"include": "#parameter"
|
1595
|
-
}
|
1596
|
-
],
|
1597
|
-
"beginCaptures": {
|
1598
|
-
"0": {
|
1599
|
-
"name": "punctuation.definition.parameters.begin.hx"
|
1600
|
-
}
|
1601
|
-
},
|
1602
|
-
"endCaptures": {
|
1603
|
-
"1": {
|
1604
|
-
"name": "punctuation.definition.parameters.end.hx"
|
1605
|
-
}
|
1606
|
-
}
|
1607
|
-
},
|
1608
|
-
"punctuation-accessor": {
|
1609
|
-
"name": "punctuation.accessor.hx",
|
1610
|
-
"match": "\\."
|
1611
|
-
},
|
1612
|
-
"punctuation-braces": {
|
1613
|
-
"begin": "\\(",
|
1614
|
-
"end": "\\)",
|
1615
|
-
"patterns": [
|
1616
|
-
{
|
1617
|
-
"include": "#keywords"
|
1618
|
-
},
|
1619
|
-
{
|
1620
|
-
"include": "#block"
|
1621
|
-
},
|
1622
|
-
{
|
1623
|
-
"include": "#block-contents"
|
1624
|
-
},
|
1625
|
-
{
|
1626
|
-
"include": "#type-check"
|
1627
|
-
}
|
1628
|
-
],
|
1629
|
-
"beginCaptures": {
|
1630
|
-
"0": {
|
1631
|
-
"name": "meta.brace.round.hx"
|
1632
|
-
}
|
1633
|
-
},
|
1634
|
-
"endCaptures": {
|
1635
|
-
"0": {
|
1636
|
-
"name": "meta.brace.round.hx"
|
1637
|
-
}
|
1638
|
-
}
|
1639
|
-
},
|
1640
|
-
"punctuation-comma": {
|
1641
|
-
"name": "punctuation.separator.comma.hx",
|
1642
|
-
"match": ","
|
1643
|
-
},
|
1644
|
-
"punctuation-terminator": {
|
1645
|
-
"name": "punctuation.terminator.hx",
|
1646
|
-
"match": ";"
|
1647
|
-
},
|
1648
|
-
"regex": {
|
1649
|
-
"name": "string.regexp.hx",
|
1650
|
-
"begin": "(~/)",
|
1651
|
-
"end": "(/)([gimsu]*)",
|
1652
|
-
"patterns": [
|
1653
|
-
{
|
1654
|
-
"include": "#regexp"
|
1655
|
-
}
|
1656
|
-
],
|
1657
|
-
"beginCaptures": {
|
1658
|
-
"1": {
|
1659
|
-
"name": "punctuation.definition.string.begin.hx"
|
1660
|
-
}
|
1661
|
-
},
|
1662
|
-
"endCaptures": {
|
1663
|
-
"1": {
|
1664
|
-
"name": "punctuation.definition.string.end.hx"
|
1665
|
-
},
|
1666
|
-
"2": {
|
1667
|
-
"name": "keyword.other.hx"
|
1668
|
-
}
|
1669
|
-
}
|
1670
|
-
},
|
1671
|
-
"regex-character-class": {
|
1672
|
-
"patterns": [
|
1673
|
-
{
|
1674
|
-
"name": "constant.other.character-class.regexp",
|
1675
|
-
"match": "\\\\[wWsSdDtrnvf]|\\."
|
1676
|
-
},
|
1677
|
-
{
|
1678
|
-
"name": "constant.character.numeric.regexp",
|
1679
|
-
"match": "\\\\([0-7]{3}|x[[:xdigit:]][[:xdigit:]]|u[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]])"
|
1680
|
-
},
|
1681
|
-
{
|
1682
|
-
"name": "constant.character.control.regexp",
|
1683
|
-
"match": "\\\\c[A-Z]"
|
1684
|
-
},
|
1685
|
-
{
|
1686
|
-
"name": "constant.character.escape.backslash.regexp",
|
1687
|
-
"match": "\\\\."
|
1688
|
-
}
|
1689
|
-
]
|
1690
|
-
},
|
1691
|
-
"regexp": {
|
1692
|
-
"patterns": [
|
1693
|
-
{
|
1694
|
-
"name": "keyword.control.anchor.regexp",
|
1695
|
-
"match": "\\\\[bB]|\\^|\\$"
|
1696
|
-
},
|
1697
|
-
{
|
1698
|
-
"name": "keyword.other.back-reference.regexp",
|
1699
|
-
"match": "\\\\[1-9]\\d*"
|
1700
|
-
},
|
1701
|
-
{
|
1702
|
-
"name": "keyword.operator.quantifier.regexp",
|
1703
|
-
"match": "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??"
|
1704
|
-
},
|
1705
|
-
{
|
1706
|
-
"name": "keyword.operator.or.regexp",
|
1707
|
-
"match": "\\|"
|
1708
|
-
},
|
1709
|
-
{
|
1710
|
-
"name": "meta.group.assertion.regexp",
|
1711
|
-
"begin": "(\\()((\\?=)|(\\?!))",
|
1712
|
-
"end": "(\\))",
|
1713
|
-
"patterns": [
|
1714
|
-
{
|
1715
|
-
"include": "#regexp"
|
1716
|
-
}
|
1717
|
-
],
|
1718
|
-
"beginCaptures": {
|
1719
|
-
"1": {
|
1720
|
-
"name": "punctuation.definition.group.regexp"
|
1721
|
-
},
|
1722
|
-
"2": {
|
1723
|
-
"name": "punctuation.definition.group.assertion.regexp"
|
1724
|
-
},
|
1725
|
-
"3": {
|
1726
|
-
"name": "meta.assertion.look-ahead.regexp"
|
1727
|
-
},
|
1728
|
-
"4": {
|
1729
|
-
"name": "meta.assertion.negative-look-ahead.regexp"
|
1730
|
-
}
|
1731
|
-
},
|
1732
|
-
"endCaptures": {
|
1733
|
-
"1": {
|
1734
|
-
"name": "punctuation.definition.group.regexp"
|
1735
|
-
}
|
1736
|
-
}
|
1737
|
-
},
|
1738
|
-
{
|
1739
|
-
"name": "meta.group.regexp",
|
1740
|
-
"begin": "\\((\\?:)?",
|
1741
|
-
"end": "\\)",
|
1742
|
-
"patterns": [
|
1743
|
-
{
|
1744
|
-
"include": "#regexp"
|
1745
|
-
}
|
1746
|
-
],
|
1747
|
-
"beginCaptures": {
|
1748
|
-
"0": {
|
1749
|
-
"name": "punctuation.definition.group.regexp"
|
1750
|
-
},
|
1751
|
-
"1": {
|
1752
|
-
"name": "punctuation.definition.group.capture.regexp"
|
1753
|
-
}
|
1754
|
-
},
|
1755
|
-
"endCaptures": {
|
1756
|
-
"0": {
|
1757
|
-
"name": "punctuation.definition.group.regexp"
|
1758
|
-
}
|
1759
|
-
}
|
1760
|
-
},
|
1761
|
-
{
|
1762
|
-
"name": "constant.other.character-class.set.regexp",
|
1763
|
-
"begin": "(\\[)(\\^)?",
|
1764
|
-
"end": "(\\])",
|
1765
|
-
"patterns": [
|
1766
|
-
{
|
1767
|
-
"name": "constant.other.character-class.range.regexp",
|
1768
|
-
"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])|(\\\\.))",
|
1769
|
-
"captures": {
|
1770
|
-
"1": {
|
1771
|
-
"name": "constant.character.numeric.regexp"
|
1772
|
-
},
|
1773
|
-
"2": {
|
1774
|
-
"name": "constant.character.control.regexp"
|
1775
|
-
},
|
1776
|
-
"3": {
|
1777
|
-
"name": "constant.character.escape.backslash.regexp"
|
1778
|
-
},
|
1779
|
-
"4": {
|
1780
|
-
"name": "constant.character.numeric.regexp"
|
1781
|
-
},
|
1782
|
-
"5": {
|
1783
|
-
"name": "constant.character.control.regexp"
|
1784
|
-
},
|
1785
|
-
"6": {
|
1786
|
-
"name": "constant.character.escape.backslash.regexp"
|
1787
|
-
}
|
1788
|
-
}
|
1789
|
-
},
|
1790
|
-
{
|
1791
|
-
"include": "#regex-character-class"
|
1792
|
-
}
|
1793
|
-
],
|
1794
|
-
"beginCaptures": {
|
1795
|
-
"1": {
|
1796
|
-
"name": "punctuation.definition.character-class.regexp"
|
1797
|
-
},
|
1798
|
-
"2": {
|
1799
|
-
"name": "keyword.operator.negation.regexp"
|
1800
|
-
}
|
1801
|
-
},
|
1802
|
-
"endCaptures": {
|
1803
|
-
"1": {
|
1804
|
-
"name": "punctuation.definition.character-class.regexp"
|
1805
|
-
}
|
1806
|
-
}
|
1807
|
-
},
|
1808
|
-
{
|
1809
|
-
"include": "#regex-character-class"
|
1810
|
-
}
|
1811
|
-
]
|
1812
|
-
},
|
1813
|
-
"string-escape-sequences": {
|
1814
|
-
"patterns": [
|
1815
|
-
{
|
1816
|
-
"name": "constant.character.escape.hx",
|
1817
|
-
"match": "\\\\[0-3][0-9]{2}"
|
1818
|
-
},
|
1819
|
-
{
|
1820
|
-
"name": "constant.character.escape.hx",
|
1821
|
-
"match": "\\\\x[0-9A-Fa-f]{2}"
|
1822
|
-
},
|
1823
|
-
{
|
1824
|
-
"name": "constant.character.escape.hx",
|
1825
|
-
"match": "\\\\u[0-9]{4}"
|
1826
|
-
},
|
1827
|
-
{
|
1828
|
-
"name": "constant.character.escape.hx",
|
1829
|
-
"match": "\\\\u\\{[0-9A-Fa-f]{1,}\\}"
|
1830
|
-
},
|
1831
|
-
{
|
1832
|
-
"name": "constant.character.escape.hx",
|
1833
|
-
"match": "\\\\[nrt\"'\\\\]"
|
1834
|
-
},
|
1835
|
-
{
|
1836
|
-
"name": "invalid.escape.sequence.hx",
|
1837
|
-
"match": "\\\\."
|
1838
|
-
}
|
1839
|
-
]
|
1840
|
-
},
|
1841
|
-
"strings": {
|
1842
|
-
"patterns": [
|
1843
|
-
{
|
1844
|
-
"name": "string.quoted.double.hx",
|
1845
|
-
"begin": "\"",
|
1846
|
-
"end": "\"",
|
1847
|
-
"patterns": [
|
1848
|
-
{
|
1849
|
-
"include": "#string-escape-sequences"
|
1850
|
-
}
|
1851
|
-
],
|
1852
|
-
"beginCaptures": {
|
1853
|
-
"0": {
|
1854
|
-
"name": "punctuation.definition.string.begin.hx"
|
1855
|
-
}
|
1856
|
-
},
|
1857
|
-
"endCaptures": {
|
1858
|
-
"0": {
|
1859
|
-
"name": "punctuation.definition.string.end.hx"
|
1860
|
-
}
|
1861
|
-
}
|
1862
|
-
},
|
1863
|
-
{
|
1864
|
-
"begin": "(')",
|
1865
|
-
"end": "(')",
|
1866
|
-
"patterns": [
|
1867
|
-
{
|
1868
|
-
"name": "string.quoted.single.hx",
|
1869
|
-
"begin": "\\$(?=\\$)",
|
1870
|
-
"end": "\\$",
|
1871
|
-
"beginCaptures": {
|
1872
|
-
"0": {
|
1873
|
-
"name": "constant.character.escape.hx"
|
1874
|
-
}
|
1875
|
-
},
|
1876
|
-
"endCaptures": {
|
1877
|
-
"0": {
|
1878
|
-
"name": "constant.character.escape.hx"
|
1879
|
-
}
|
1880
|
-
}
|
1881
|
-
},
|
1882
|
-
{
|
1883
|
-
"include": "#string-escape-sequences"
|
1884
|
-
},
|
1885
|
-
{
|
1886
|
-
"begin": "(\\${)",
|
1887
|
-
"end": "(})",
|
1888
|
-
"patterns": [
|
1889
|
-
{
|
1890
|
-
"include": "#block-contents"
|
1891
|
-
}
|
1892
|
-
],
|
1893
|
-
"beginCaptures": {
|
1894
|
-
"0": {
|
1895
|
-
"name": "punctuation.definition.block.begin.hx"
|
1896
|
-
}
|
1897
|
-
},
|
1898
|
-
"endCaptures": {
|
1899
|
-
"0": {
|
1900
|
-
"name": "punctuation.definition.block.end.hx"
|
1901
|
-
}
|
1902
|
-
}
|
1903
|
-
},
|
1904
|
-
{
|
1905
|
-
"match": "(\\$)([_a-zA-Z]\\w*)",
|
1906
|
-
"captures": {
|
1907
|
-
"1": {
|
1908
|
-
"name": "punctuation.definition.block.begin.hx"
|
1909
|
-
},
|
1910
|
-
"2": {
|
1911
|
-
"name": "variable.other.hx"
|
1912
|
-
}
|
1913
|
-
}
|
1914
|
-
},
|
1915
|
-
{
|
1916
|
-
"name": "constant.character.escape.hx"
|
1917
|
-
},
|
1918
|
-
{
|
1919
|
-
"name": "string.quoted.single.hx",
|
1920
|
-
"match": "."
|
1921
|
-
}
|
1922
|
-
],
|
1923
|
-
"beginCaptures": {
|
1924
|
-
"0": {
|
1925
|
-
"name": "string.quoted.single.hx"
|
1926
|
-
},
|
1927
|
-
"1": {
|
1928
|
-
"name": "punctuation.definition.string.begin.hx"
|
1929
|
-
}
|
1930
|
-
},
|
1931
|
-
"endCaptures": {
|
1932
|
-
"0": {
|
1933
|
-
"name": "string.quoted.single.hx"
|
1934
|
-
},
|
1935
|
-
"1": {
|
1936
|
-
"name": "punctuation.definition.string.end.hx"
|
1937
|
-
}
|
1938
|
-
}
|
1939
|
-
}
|
1940
|
-
]
|
1941
|
-
},
|
1942
|
-
"type": {
|
1943
|
-
"patterns": [
|
1944
|
-
{
|
1945
|
-
"include": "#global"
|
1946
|
-
},
|
1947
|
-
{
|
1948
|
-
"include": "#macro-reification"
|
1949
|
-
},
|
1950
|
-
{
|
1951
|
-
"include": "#type-name"
|
1952
|
-
},
|
1953
|
-
{
|
1954
|
-
"include": "#type-parameters"
|
1955
|
-
},
|
1956
|
-
{
|
1957
|
-
"name": "keyword.operator.type.function.hx",
|
1958
|
-
"match": "-\u003e"
|
1959
|
-
},
|
1960
|
-
{
|
1961
|
-
"name": "keyword.operator.type.intersection.hx",
|
1962
|
-
"match": "\u0026"
|
1963
|
-
},
|
1964
|
-
{
|
1965
|
-
"name": "keyword.operator.optional",
|
1966
|
-
"match": "\\?(?=\\s*[_A-Z])"
|
1967
|
-
},
|
1968
|
-
{
|
1969
|
-
"name": "punctuation.definition.tag",
|
1970
|
-
"match": "\\?(?!\\s*[_A-Z])"
|
1971
|
-
},
|
1972
|
-
{
|
1973
|
-
"begin": "(\\{)",
|
1974
|
-
"end": "(?\u003c=\\})",
|
1975
|
-
"patterns": [
|
1976
|
-
{
|
1977
|
-
"include": "#typedef-block"
|
1978
|
-
}
|
1979
|
-
],
|
1980
|
-
"beginCaptures": {
|
1981
|
-
"0": {
|
1982
|
-
"name": "punctuation.definition.block.begin.hx"
|
1983
|
-
}
|
1984
|
-
}
|
1985
|
-
},
|
1986
|
-
{
|
1987
|
-
"include": "#function-type"
|
1988
|
-
}
|
1989
|
-
]
|
1990
|
-
},
|
1991
|
-
"type-check": {
|
1992
|
-
"begin": "(?\u003c!macro)(?=:)",
|
1993
|
-
"end": "(?=\\))",
|
1994
|
-
"patterns": [
|
1995
|
-
{
|
1996
|
-
"include": "#operator-type-hint"
|
1997
|
-
},
|
1998
|
-
{
|
1999
|
-
"include": "#type"
|
2000
|
-
}
|
2001
|
-
]
|
2002
|
-
},
|
2003
|
-
"type-name": {
|
2004
|
-
"patterns": [
|
2005
|
-
{
|
2006
|
-
"match": "\\b(Any|Array|ArrayAccess|Bool|Class|Date|DateTools|Dynamic|Enum|EnumValue|EReg|Float|IMap|Int|IntIterator|Iterable|Iterator|KeyValueIterator|KeyValueIterable|Lambda|List|ListIterator|ListNode|Map|Math|Null|Reflect|Single|Std|String|StringBuf|StringTools|Sys|Type|UInt|UnicodeString|ValueType|Void|Xml|XmlType)(?:(\\.)(_*[A-Z]\\w*[a-z]\\w*))*\\b",
|
2007
|
-
"captures": {
|
2008
|
-
"1": {
|
2009
|
-
"name": "support.class.builtin.hx"
|
2010
|
-
},
|
2011
|
-
"2": {
|
2012
|
-
"name": "support.package.hx"
|
2013
|
-
},
|
2014
|
-
"3": {
|
2015
|
-
"name": "entity.name.type.hx"
|
2016
|
-
}
|
2017
|
-
}
|
2018
|
-
},
|
2019
|
-
{
|
2020
|
-
"match": "\\b(?\u003c![^.]\\.)((_*[a-z]\\w*\\.)*)(_*[A-Z]\\w*)(?:(\\.)(_*[A-Z]\\w*[a-z]\\w*))*\\b",
|
2021
|
-
"captures": {
|
2022
|
-
"1": {
|
2023
|
-
"name": "support.package.hx"
|
2024
|
-
},
|
2025
|
-
"3": {
|
2026
|
-
"name": "entity.name.type.hx"
|
2027
|
-
},
|
2028
|
-
"4": {
|
2029
|
-
"name": "support.package.hx"
|
2030
|
-
},
|
2031
|
-
"5": {
|
2032
|
-
"name": "entity.name.type.hx"
|
2033
|
-
}
|
2034
|
-
}
|
2035
|
-
}
|
2036
|
-
]
|
2037
|
-
},
|
2038
|
-
"type-parameter-constraint-new": {
|
2039
|
-
"name": "keyword.operator.type.annotation.hxt",
|
2040
|
-
"match": ":"
|
2041
|
-
},
|
2042
|
-
"type-parameter-constraint-old": {
|
2043
|
-
"begin": "(:)\\s*(\\()",
|
2044
|
-
"end": "\\)",
|
2045
|
-
"patterns": [
|
2046
|
-
{
|
2047
|
-
"include": "#type"
|
2048
|
-
},
|
2049
|
-
{
|
2050
|
-
"include": "#punctuation-comma"
|
2051
|
-
}
|
2052
|
-
],
|
2053
|
-
"beginCaptures": {
|
2054
|
-
"1": {
|
2055
|
-
"name": "keyword.operator.type.annotation.hx"
|
2056
|
-
},
|
2057
|
-
"2": {
|
2058
|
-
"name": "punctuation.definition.constraint.begin.hx"
|
2059
|
-
}
|
2060
|
-
},
|
2061
|
-
"endCaptures": {
|
2062
|
-
"0": {
|
2063
|
-
"name": "punctuation.definition.constraint.end.hx"
|
2064
|
-
}
|
2065
|
-
}
|
2066
|
-
},
|
2067
|
-
"type-parameters": {
|
2068
|
-
"name": "meta.type-parameters.hx",
|
2069
|
-
"begin": "(\u003c)",
|
2070
|
-
"end": "(?=$)|(\u003e)",
|
2071
|
-
"patterns": [
|
2072
|
-
{
|
2073
|
-
"include": "#type"
|
2074
|
-
},
|
2075
|
-
{
|
2076
|
-
"include": "#type-parameter-constraint-old"
|
2077
|
-
},
|
2078
|
-
{
|
2079
|
-
"include": "#type-parameter-constraint-new"
|
2080
|
-
},
|
2081
|
-
{
|
2082
|
-
"include": "#global"
|
2083
|
-
},
|
2084
|
-
{
|
2085
|
-
"include": "#regex"
|
2086
|
-
},
|
2087
|
-
{
|
2088
|
-
"include": "#array"
|
2089
|
-
},
|
2090
|
-
{
|
2091
|
-
"include": "#constants"
|
2092
|
-
},
|
2093
|
-
{
|
2094
|
-
"include": "#strings"
|
2095
|
-
},
|
2096
|
-
{
|
2097
|
-
"include": "#metadata"
|
2098
|
-
},
|
2099
|
-
{
|
2100
|
-
"include": "#punctuation-comma"
|
2101
|
-
}
|
2102
|
-
],
|
2103
|
-
"beginCaptures": {
|
2104
|
-
"1": {
|
2105
|
-
"name": "punctuation.definition.typeparameters.begin.hx"
|
2106
|
-
}
|
2107
|
-
},
|
2108
|
-
"endCaptures": {
|
2109
|
-
"1": {
|
2110
|
-
"name": "punctuation.definition.typeparameters.end.hx"
|
2111
|
-
}
|
2112
|
-
}
|
2113
|
-
},
|
2114
|
-
"type-path": {
|
2115
|
-
"patterns": [
|
2116
|
-
{
|
2117
|
-
"include": "#global"
|
2118
|
-
},
|
2119
|
-
{
|
2120
|
-
"include": "#punctuation-accessor"
|
2121
|
-
},
|
2122
|
-
{
|
2123
|
-
"include": "#type-path-type-name"
|
2124
|
-
}
|
2125
|
-
]
|
2126
|
-
},
|
2127
|
-
"type-path-package-name": {
|
2128
|
-
"name": "support.package.hx",
|
2129
|
-
"match": "\\b([_A-Za-z]\\w*)\\b"
|
2130
|
-
},
|
2131
|
-
"type-path-type-name": {
|
2132
|
-
"name": "entity.name.type.hx",
|
2133
|
-
"match": "\\b(_*[A-Z]\\w*)\\b"
|
2134
|
-
},
|
2135
|
-
"typedef": {
|
2136
|
-
"name": "meta.typedef.hx",
|
2137
|
-
"begin": "(?=typedef)",
|
2138
|
-
"end": "(?\u003c=\\})|(;)",
|
2139
|
-
"patterns": [
|
2140
|
-
{
|
2141
|
-
"include": "#typedef-name"
|
2142
|
-
},
|
2143
|
-
{
|
2144
|
-
"include": "#typedef-name-post"
|
2145
|
-
},
|
2146
|
-
{
|
2147
|
-
"include": "#typedef-block"
|
2148
|
-
}
|
2149
|
-
],
|
2150
|
-
"endCaptures": {
|
2151
|
-
"1": {
|
2152
|
-
"name": "punctuation.terminator.hx"
|
2153
|
-
}
|
2154
|
-
}
|
2155
|
-
},
|
2156
|
-
"typedef-block": {
|
2157
|
-
"name": "meta.block.hx",
|
2158
|
-
"begin": "(?\u003c=\\{)",
|
2159
|
-
"end": "(\\})",
|
2160
|
-
"patterns": [
|
2161
|
-
{
|
2162
|
-
"include": "#global"
|
2163
|
-
},
|
2164
|
-
{
|
2165
|
-
"include": "#metadata"
|
2166
|
-
},
|
2167
|
-
{
|
2168
|
-
"include": "#method"
|
2169
|
-
},
|
2170
|
-
{
|
2171
|
-
"include": "#variable"
|
2172
|
-
},
|
2173
|
-
{
|
2174
|
-
"include": "#modifiers"
|
2175
|
-
},
|
2176
|
-
{
|
2177
|
-
"include": "#punctuation-comma"
|
2178
|
-
},
|
2179
|
-
{
|
2180
|
-
"include": "#operator-optional"
|
2181
|
-
},
|
2182
|
-
{
|
2183
|
-
"include": "#typedef-extension"
|
2184
|
-
},
|
2185
|
-
{
|
2186
|
-
"include": "#typedef-simple-field-type-hint"
|
2187
|
-
},
|
2188
|
-
{
|
2189
|
-
"include": "#identifier-name"
|
2190
|
-
},
|
2191
|
-
{
|
2192
|
-
"include": "#strings"
|
2193
|
-
}
|
2194
|
-
],
|
2195
|
-
"endCaptures": {
|
2196
|
-
"1": {
|
2197
|
-
"name": "punctuation.definition.block.end.hx"
|
2198
|
-
}
|
2199
|
-
}
|
2200
|
-
},
|
2201
|
-
"typedef-extension": {
|
2202
|
-
"begin": "\u003e",
|
2203
|
-
"end": ",|$",
|
2204
|
-
"patterns": [
|
2205
|
-
{
|
2206
|
-
"include": "#type"
|
2207
|
-
}
|
2208
|
-
]
|
2209
|
-
},
|
2210
|
-
"typedef-name": {
|
2211
|
-
"begin": "\\b(typedef)\\b",
|
2212
|
-
"end": "([_A-Za-z]\\w*)",
|
2213
|
-
"patterns": [
|
2214
|
-
{
|
2215
|
-
"include": "#global"
|
2216
|
-
}
|
2217
|
-
],
|
2218
|
-
"beginCaptures": {
|
2219
|
-
"1": {
|
2220
|
-
"name": "storage.type.class.hx"
|
2221
|
-
}
|
2222
|
-
},
|
2223
|
-
"endCaptures": {
|
2224
|
-
"1": {
|
2225
|
-
"name": "entity.name.type.class.hx"
|
2226
|
-
}
|
2227
|
-
}
|
2228
|
-
},
|
2229
|
-
"typedef-name-post": {
|
2230
|
-
"begin": "(?\u003c=\\w)",
|
2231
|
-
"end": "(\\{)|(?=;)",
|
2232
|
-
"patterns": [
|
2233
|
-
{
|
2234
|
-
"include": "#global"
|
2235
|
-
},
|
2236
|
-
{
|
2237
|
-
"include": "#punctuation-brackets"
|
2238
|
-
},
|
2239
|
-
{
|
2240
|
-
"include": "#punctuation-separator"
|
2241
|
-
},
|
2242
|
-
{
|
2243
|
-
"include": "#operator-assignment"
|
2244
|
-
},
|
2245
|
-
{
|
2246
|
-
"include": "#type"
|
2247
|
-
}
|
2248
|
-
],
|
2249
|
-
"endCaptures": {
|
2250
|
-
"1": {
|
2251
|
-
"name": "punctuation.definition.block.begin.hx"
|
2252
|
-
}
|
2253
|
-
}
|
2254
|
-
},
|
2255
|
-
"typedef-simple-field-type-hint": {
|
2256
|
-
"begin": ":",
|
2257
|
-
"end": "(?=\\}|,|;)",
|
2258
|
-
"patterns": [
|
2259
|
-
{
|
2260
|
-
"include": "#type"
|
2261
|
-
}
|
2262
|
-
],
|
2263
|
-
"beginCaptures": {
|
2264
|
-
"0": {
|
2265
|
-
"name": "keyword.operator.type.annotation.hx"
|
2266
|
-
}
|
2267
|
-
}
|
2268
|
-
},
|
2269
|
-
"using": {
|
2270
|
-
"begin": "using\\b",
|
2271
|
-
"end": "$|(;)",
|
2272
|
-
"patterns": [
|
2273
|
-
{
|
2274
|
-
"include": "#type-path"
|
2275
|
-
},
|
2276
|
-
{
|
2277
|
-
"include": "#type-path-package-name"
|
2278
|
-
}
|
2279
|
-
],
|
2280
|
-
"beginCaptures": {
|
2281
|
-
"0": {
|
2282
|
-
"name": "keyword.other.using.hx"
|
2283
|
-
}
|
2284
|
-
},
|
2285
|
-
"endCaptures": {
|
2286
|
-
"1": {
|
2287
|
-
"name": "punctuation.terminator.hx"
|
2288
|
-
}
|
2289
|
-
}
|
2290
|
-
},
|
2291
|
-
"variable": {
|
2292
|
-
"begin": "(?=\\b(var|final)\\b)",
|
2293
|
-
"end": "(?=$)|(;)",
|
2294
|
-
"patterns": [
|
2295
|
-
{
|
2296
|
-
"include": "#variable-name"
|
2297
|
-
},
|
2298
|
-
{
|
2299
|
-
"include": "#variable-name-next"
|
2300
|
-
},
|
2301
|
-
{
|
2302
|
-
"include": "#variable-assign"
|
2303
|
-
},
|
2304
|
-
{
|
2305
|
-
"include": "#variable-name-post"
|
2306
|
-
}
|
2307
|
-
],
|
2308
|
-
"endCaptures": {
|
2309
|
-
"1": {
|
2310
|
-
"name": "punctuation.terminator.hx"
|
2311
|
-
}
|
2312
|
-
}
|
2313
|
-
},
|
2314
|
-
"variable-accessors": {
|
2315
|
-
"name": "meta.parameters.hx",
|
2316
|
-
"begin": "\\(",
|
2317
|
-
"end": "\\)",
|
2318
|
-
"patterns": [
|
2319
|
-
{
|
2320
|
-
"include": "#global"
|
2321
|
-
},
|
2322
|
-
{
|
2323
|
-
"include": "#keywords-accessor"
|
2324
|
-
},
|
2325
|
-
{
|
2326
|
-
"include": "#accessor-method"
|
2327
|
-
},
|
2328
|
-
{
|
2329
|
-
"include": "#punctuation-comma"
|
2330
|
-
}
|
2331
|
-
],
|
2332
|
-
"beginCaptures": {
|
2333
|
-
"0": {
|
2334
|
-
"name": "punctuation.definition.parameters.begin.hx"
|
2335
|
-
}
|
2336
|
-
},
|
2337
|
-
"endCaptures": {
|
2338
|
-
"0": {
|
2339
|
-
"name": "punctuation.definition.parameters.end.hx"
|
2340
|
-
}
|
2341
|
-
}
|
2342
|
-
},
|
2343
|
-
"variable-assign": {
|
2344
|
-
"begin": "=",
|
2345
|
-
"end": "(?=;|,)",
|
2346
|
-
"patterns": [
|
2347
|
-
{
|
2348
|
-
"include": "#block"
|
2349
|
-
},
|
2350
|
-
{
|
2351
|
-
"include": "#block-contents"
|
2352
|
-
}
|
2353
|
-
],
|
2354
|
-
"beginCaptures": {
|
2355
|
-
"0": {
|
2356
|
-
"name": "keyword.operator.assignment.hx"
|
2357
|
-
}
|
2358
|
-
}
|
2359
|
-
},
|
2360
|
-
"variable-name": {
|
2361
|
-
"begin": "\\b(var|final)\\b",
|
2362
|
-
"end": "(?=$)|([_a-zA-Z]\\w*)",
|
2363
|
-
"patterns": [
|
2364
|
-
{
|
2365
|
-
"include": "#operator-optional"
|
2366
|
-
}
|
2367
|
-
],
|
2368
|
-
"beginCaptures": {
|
2369
|
-
"1": {
|
2370
|
-
"name": "storage.type.variable.hx"
|
2371
|
-
}
|
2372
|
-
},
|
2373
|
-
"endCaptures": {
|
2374
|
-
"1": {
|
2375
|
-
"name": "variable.other.hx"
|
2376
|
-
}
|
2377
|
-
}
|
2378
|
-
},
|
2379
|
-
"variable-name-next": {
|
2380
|
-
"begin": ",",
|
2381
|
-
"end": "([_a-zA-Z]\\w*)",
|
2382
|
-
"patterns": [
|
2383
|
-
{
|
2384
|
-
"include": "#global"
|
2385
|
-
}
|
2386
|
-
],
|
2387
|
-
"beginCaptures": {
|
2388
|
-
"0": {
|
2389
|
-
"name": "punctuation.separator.comma.hx"
|
2390
|
-
}
|
2391
|
-
},
|
2392
|
-
"endCaptures": {
|
2393
|
-
"1": {
|
2394
|
-
"name": "variable.other.hx"
|
2395
|
-
}
|
2396
|
-
}
|
2397
|
-
},
|
2398
|
-
"variable-name-post": {
|
2399
|
-
"begin": "(?\u003c=\\w)",
|
2400
|
-
"end": "(?=;)|(?==)",
|
2401
|
-
"patterns": [
|
2402
|
-
{
|
2403
|
-
"include": "#variable-accessors"
|
2404
|
-
},
|
2405
|
-
{
|
2406
|
-
"include": "#variable-type-hint"
|
2407
|
-
},
|
2408
|
-
{
|
2409
|
-
"include": "#block-contents"
|
2410
|
-
}
|
2411
|
-
]
|
2412
|
-
},
|
2413
|
-
"variable-type-hint": {
|
2414
|
-
"begin": ":",
|
2415
|
-
"end": "(?=$|;|,|=)",
|
2416
|
-
"patterns": [
|
2417
|
-
{
|
2418
|
-
"include": "#type"
|
2419
|
-
}
|
2420
|
-
],
|
2421
|
-
"beginCaptures": {
|
2422
|
-
"0": {
|
2423
|
-
"name": "keyword.operator.type.annotation.hx"
|
2424
|
-
}
|
2425
|
-
}
|
2426
|
-
}
|
2427
|
-
}
|
2428
|
-
}
|
1
|
+
{"name":"Haxe","scopeName":"source.hx","patterns":[{"include":"#all"}],"repository":{"abstract":{"name":"meta.abstract.hx","begin":"(?=abstract\\s+[A-Z])","end":"(?\u003c=\\})|(;)","patterns":[{"include":"#abstract-name"},{"include":"#abstract-name-post"},{"include":"#abstract-block"}],"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"abstract-block":{"name":"meta.block.hx","begin":"(?\u003c=\\{)","end":"(\\})","patterns":[{"include":"#method"},{"include":"#modifiers"},{"include":"#variable"},{"include":"#block"},{"include":"#block-contents"}],"endCaptures":{"1":{"name":"punctuation.definition.block.end.hx"}}},"abstract-name":{"begin":"\\b(abstract)\\b","end":"([_A-Za-z]\\w*)","patterns":[{"include":"#global"}],"beginCaptures":{"1":{"name":"storage.type.class.hx"}},"endCaptures":{"1":{"name":"entity.name.type.class.hx"}}},"abstract-name-post":{"begin":"(?\u003c=\\w)","end":"([\\{;])","patterns":[{"include":"#global"},{"name":"keyword.other.hx","match":"\\b(from|to)\\b"},{"include":"#type"},{"name":"punctuation.definition.other.hx","match":"[\\(\\)]"}],"endCaptures":{"1":{"name":"punctuation.definition.block.begin.hx"}}},"accessor-method":{"patterns":[{"name":"entity.name.function.hx","match":"\\b(get|set)_[_A-Za-z]\\w*\\b"}]},"all":{"patterns":[{"include":"#global"},{"include":"#package"},{"include":"#import"},{"include":"#using"},{"name":"storage.modifier.hx","match":"\\b(final)\\b(?=\\s+(class|interface|extern|private))"},{"include":"#abstract"},{"include":"#class"},{"include":"#enum"},{"include":"#interface"},{"include":"#typedef"},{"include":"#block"},{"include":"#block-contents"}]},"array":{"name":"meta.array.literal.hx","begin":"\\[","end":"\\]","patterns":[{"include":"#block"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.hx"}}},"arrow-function":{"name":"meta.method.arrow.hx","begin":"(\\()(?=[^(]*?\\)\\s*-\u003e)","end":"(\\))\\s*(-\u003e)","patterns":[{"include":"#arrow-function-parameter"}],"beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.hx"}},"endCaptures":{"1":{"name":"punctuation.definition.parameters.end.hx"},"2":{"name":"storage.type.function.arrow.hx"}}},"arrow-function-parameter":{"begin":"(?\u003c=\\(|,)","end":"(?=\\)|,)","patterns":[{"include":"#parameter-name"},{"include":"#arrow-function-parameter-type-hint"},{"include":"#parameter-assign"},{"include":"#punctuation-comma"},{"include":"#global"}]},"arrow-function-parameter-type-hint":{"begin":":","end":"(?=\\)|,|=)","patterns":[{"include":"#type"}],"beginCaptures":{"0":{"name":"keyword.operator.type.annotation.hx"}}},"block":{"begin":"\\{","end":"\\}","patterns":[{"include":"#block"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.hx"}}},"block-contents":{"patterns":[{"include":"#global"},{"include":"#regex"},{"include":"#array"},{"include":"#constants"},{"include":"#strings"},{"include":"#metadata"},{"include":"#method"},{"include":"#variable"},{"include":"#modifiers"},{"include":"#new-expr"},{"include":"#for-loop"},{"include":"#keywords"},{"include":"#arrow-function"},{"include":"#method-call"},{"include":"#enum-constructor-call"},{"include":"#punctuation-braces"},{"include":"#macro-reification"},{"include":"#operators"},{"include":"#operator-assignment"},{"include":"#punctuation-terminator"},{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"},{"include":"#identifiers"}]},"class":{"name":"meta.class.hx","begin":"(?=class)","end":"(?\u003c=\\})|(;)","patterns":[{"include":"#class-name"},{"include":"#class-name-post"},{"include":"#class-block"}],"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"class-block":{"name":"meta.block.hx","begin":"(?\u003c=\\{)","end":"(\\})","patterns":[{"include":"#method"},{"include":"#modifiers"},{"include":"#variable"},{"include":"#block"},{"include":"#block-contents"}],"endCaptures":{"1":{"name":"punctuation.definition.block.end.hx"}}},"class-name":{"name":"meta.class.identifier.hx","begin":"\\b(class)\\b","end":"([_A-Za-z]\\w*)","patterns":[{"include":"#global"}],"beginCaptures":{"1":{"name":"storage.type.class.hx"}},"endCaptures":{"1":{"name":"entity.name.type.class.hx"}}},"class-name-post":{"begin":"(?\u003c=\\w)","end":"([\\{;])","patterns":[{"include":"#modifiers-inheritance"},{"include":"#type"}],"endCaptures":{"1":{"name":"punctuation.definition.block.begin.hx"}}},"comments":{"patterns":[{"name":"comment.block.documentation.hx","begin":"/\\*\\*(?!/)","end":"\\*/","patterns":[{"include":"#javadoc-tags"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.hx"}}},{"name":"comment.block.hx","begin":"/\\*","end":"\\*/","patterns":[{"include":"#javadoc-tags"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.hx"}}},{"name":"comment.line.double-slash.hx","match":"(//).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.hx"}}}]},"conditional-compilation":{"patterns":[{"match":"((#(if|elseif))[\\s!]+([a-zA-Z_][a-zA-Z0-9_]*(\\.[a-zA-Z_][a-zA-Z0-9_]*)*)(?=\\s|/\\*|//))","captures":{"0":{"name":"punctuation.definition.tag"}}},{"name":"punctuation.definition.tag","begin":"((#(if|elseif))[\\s!]*)(?=\\()","end":"(?\u003c=\\)|\\n)","patterns":[{"include":"#conditional-compilation-parens"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},{"name":"punctuation.definition.tag","match":"(#(end|else|error|line))"},{"name":"punctuation.definition.tag","match":"(#([a-zA-Z0-9_]*))\\s"}]},"conditional-compilation-parens":{"begin":"\\(","end":"\\)","patterns":[{"include":"#conditional-compilation-parens"}]},"constant-name":{"name":"variable.other.hx","match":"\\b([_A-Z][_A-Z0-9]*)\\b"},"constants":{"patterns":[{"name":"constant.language.hx","match":"\\b(true|false|null)\\b"},{"name":"constant.numeric.hex.hx","match":"\\b(0(x|X)[0-9a-fA-F]*)\\b"},{"match":"(?x)\n(?\u003c!\\$)(?:\n (?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # 1.1E+3\n (?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)| # 1.E+3\n (?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # .1E+3\n (?:\\b[0-9]+[eE][+-]?[0-9]+\\b)| # 1E+3\n (?:\\b[0-9]+(\\.)[0-9]+\\b)| # 1.1\n (?:\\b[0-9]+(\\.)(?!\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9]+\\b)| # .1\n (?:\\b[0-9]+\\b) # 1\n)(?!\\$)","captures":{"0":{"name":"constant.numeric.decimal.hx"},"1":{"name":"meta.delimiter.decimal.period.hx"},"2":{"name":"meta.delimiter.decimal.period.hx"},"3":{"name":"meta.delimiter.decimal.period.hx"},"4":{"name":"meta.delimiter.decimal.period.hx"},"5":{"name":"meta.delimiter.decimal.period.hx"},"6":{"name":"meta.delimiter.decimal.period.hx"}}}]},"enum":{"name":"meta.enum.hx","begin":"(?=enum\\s+[A-Z])","end":"(?\u003c=\\})|(;)","patterns":[{"include":"#enum-name"},{"include":"#enum-name-post"},{"include":"#enum-block"}],"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"enum-block":{"name":"meta.block.hx","begin":"(?\u003c=\\{)","end":"(\\})","patterns":[{"include":"#global"},{"include":"#metadata"},{"include":"#parameters"},{"include":"#identifiers"}],"endCaptures":{"1":{"name":"punctuation.definition.block.end.hx"}}},"enum-constructor-call":{"begin":"\\b(?\u003c!\\.)((_*[a-z]\\w*\\.)*)(_*[A-Z]\\w*)(?:(\\.)(_*[A-Z]\\w*[a-z]\\w*))*\\s*(\\()","end":"(\\))","patterns":[{"include":"#block"},{"include":"#block-contents"}],"beginCaptures":{"1":{"name":"support.package.hx"},"3":{"name":"entity.name.type.hx"},"4":{"name":"support.package.hx"},"5":{"name":"entity.name.type.hx"},"6":{"name":"meta.brace.round.hx"}},"endCaptures":{"1":{"name":"meta.brace.round.hx"}}},"enum-name":{"begin":"\\b(enum)\\b","end":"([_A-Za-z]\\w*)","patterns":[{"include":"#global"}],"beginCaptures":{"1":{"name":"storage.type.class.hx"}},"endCaptures":{"1":{"name":"entity.name.type.class.hx"}}},"enum-name-post":{"begin":"(?\u003c=\\w)","end":"([\\{;])","patterns":[{"include":"#type"}],"endCaptures":{"1":{"name":"punctuation.definition.block.begin.hx"}}},"for-loop":{"begin":"\\b(for)\\b\\s*(\\()","end":"(\\))","patterns":[{"name":"keyword.other.in.hx","match":"\\b(in)\\b"},{"include":"#block"},{"include":"#block-contents"}],"beginCaptures":{"1":{"name":"keyword.control.flow-control.hx"},"2":{"name":"meta.brace.round.hx"}},"endCaptures":{"1":{"name":"meta.brace.round.hx"}}},"function-type":{"begin":"\\(","end":"\\)","patterns":[{"include":"#function-type-parameter"}],"beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.hx"}}},"function-type-parameter":{"begin":"(?\u003c=\\(|,)","end":"(?=\\)|,)","patterns":[{"include":"#global"},{"include":"#metadata"},{"include":"#operator-optional"},{"include":"#punctuation-comma"},{"include":"#function-type-parameter-name"},{"include":"#function-type-parameter-type-hint"},{"include":"#parameter-assign"},{"include":"#type"},{"include":"#global"}]},"function-type-parameter-name":{"match":"([_a-zA-Z]\\w*)(?=\\s*:)","captures":{"1":{"name":"variable.parameter.hx"}}},"function-type-parameter-type-hint":{"begin":":","end":"(?=\\)|,|=)","patterns":[{"include":"#type"}],"beginCaptures":{"0":{"name":"keyword.operator.type.annotation.hx"}}},"global":{"patterns":[{"include":"#comments"},{"include":"#conditional-compilation"}]},"identifier-name":{"name":"variable.other.hx","match":"\\b([_A-Za-z]\\w*)\\b"},"identifiers":{"patterns":[{"include":"#constant-name"},{"include":"#type-name"},{"include":"#identifier-name"}]},"import":{"begin":"import\\b","end":"$|(;)","patterns":[{"include":"#type-path"},{"name":"keyword.control.as.hx","match":"\\b(as)\\b"},{"name":"keyword.control.in.hx","match":"\\b(in)\\b"},{"name":"constant.language.import-all.hx","match":"\\*"},{"name":"variable.other.hxt","match":"\\b([_A-Za-z]\\w*)\\b(?=\\s*(as|in|$|(;)))"},{"include":"#type-path-package-name"}],"beginCaptures":{"0":{"name":"keyword.control.import.hx"}},"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"interface":{"name":"meta.interface.hx","begin":"(?=interface)","end":"(?\u003c=\\})|(;)","patterns":[{"include":"#interface-name"},{"include":"#interface-name-post"},{"include":"#interface-block"}],"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"interface-block":{"name":"meta.block.hx","begin":"(?\u003c=\\{)","end":"(\\})","patterns":[{"include":"#method"},{"include":"#variable"},{"include":"#block"},{"include":"#block-contents"}],"endCaptures":{"1":{"name":"punctuation.definition.block.end.hx"}}},"interface-name":{"begin":"\\b(interface)\\b","end":"([_A-Za-z]\\w*)","patterns":[{"include":"#global"}],"beginCaptures":{"1":{"name":"storage.type.class.hx"}},"endCaptures":{"1":{"name":"entity.name.type.class.hx"}}},"interface-name-post":{"begin":"(?\u003c=\\w)","end":"([\\{;])","patterns":[{"include":"#global"},{"include":"#modifiers-inheritance"},{"include":"#type"}],"endCaptures":{"1":{"name":"punctuation.definition.block.begin.hx"}}},"javadoc-tags":{"patterns":[{"match":"(@(?:param|exception|throws|event))\\s+([_A-Za-z]\\w*)\\s+","captures":{"1":{"name":"storage.type.class.javadoc"},"2":{"name":"variable.other.javadoc"}}},{"match":"(@since)\\s+([\\w\\.-]+)\\s+","captures":{"1":{"name":"storage.type.class.javadoc"},"2":{"name":"constant.numeric.javadoc"}}},{"match":"@(param|exception|throws|deprecated|returns?|since|default|see|event)","captures":{"0":{"name":"storage.type.class.javadoc"}}}]},"keywords":{"patterns":[{"begin":"(?\u003c=trace|$type|if|while|for|super)\\s*(\\()","end":"\\)","patterns":[{"include":"#block-contents"}],"beginCaptures":{"2":{"name":"meta.brace.round.hx"}},"endCaptures":{"0":{"name":"meta.brace.round.hx"}}},{"begin":"(?\u003c=catch)\\s*(\\()","end":"\\)","patterns":[{"include":"#block-contents"},{"include":"#type-check"}],"beginCaptures":{"2":{"name":"meta.brace.round.hx"}},"endCaptures":{"0":{"name":"meta.brace.round.hx"}}},{"begin":"(?\u003c=cast)\\s*(\\()","end":"\\)","patterns":[{"begin":"(?=,)","end":"(?=\\))","patterns":[{"include":"#type"}]},{"include":"#block-contents"}],"beginCaptures":{"2":{"name":"meta.brace.round.hx"}},"endCaptures":{"0":{"name":"meta.brace.round.hx"}}},{"name":"keyword.control.catch-exception.hx","match":"\\b(try|catch|throw)\\b"},{"begin":"\\b(case|default)\\b","end":":|(?=if)|$","patterns":[{"include":"#global"},{"include":"#metadata"},{"match":"\\b(var|final)\\b\\s*([_a-zA-Z]\\w*)\\b","captures":{"1":{"name":"storage.type.variable.hx"},"2":{"name":"variable.other.hx"}}},{"include":"#array"},{"include":"#constants"},{"include":"#strings"},{"name":"meta.brace.round.hx","match":"\\("},{"name":"meta.brace.round.hx","match":"\\)"},{"include":"#macro-reification"},{"name":"keyword.operator.extractor.hx","match":"=\u003e"},{"include":"#operator-assignment"},{"include":"#punctuation-comma"},{"include":"#keywords"},{"include":"#method-call"},{"include":"#identifiers"}],"beginCaptures":{"1":{"name":"keyword.control.flow-control.hx"}}},{"name":"keyword.control.flow-control.hx","match":"\\b(if|else|return|do|while|for|break|continue|switch|case|default)\\b"},{"name":"keyword.other.untyped.hx","match":"\\b(cast|untyped)\\b"},{"name":"keyword.other.trace.hx","match":"\\btrace\\b"},{"name":"keyword.other.type.hx","match":"\\$type\\b"},{"name":"keyword.other.untyped-property.hx","match":"\\__(global|this)__\\b"},{"name":"variable.language.hx","match":"\\b(this|super)\\b"},{"name":"keyword.operator.new.hx","match":"\\bnew\\b"},{"name":"storage.type.hx","match":"\\b(abstract|class|enum|interface|typedef)\\b"},{"name":"storage.type.function.arrow.hx","match":"-\u003e"},{"include":"#modifiers"},{"include":"#modifiers-inheritance"}]},"keywords-accessor":{"name":"storage.type.property.hx","match":"\\b(default|get|set|dynamic|never|null)\\b"},"macro-reification":{"patterns":[{"match":"(\\$)([eabipv])\\{","captures":{"1":{"name":"punctuation.definition.reification.hx"},"2":{"name":"keyword.reification.hx"}}},{"match":"((\\$)([a-zA-Z]*))","captures":{"2":{"name":"punctuation.definition.reification.hx"},"3":{"name":"variable.reification.hx"}}}]},"metadata":{"patterns":[{"begin":"(@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs.assemblyMeta|cs.assemblyStrict|cs.using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash.property|font|forward.new|forward.variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java.native|javaCanonical|jsRequire|jvm.synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)\\b)\\s*(\\()","end":"\\)","patterns":[{"include":"#block-contents"}],"beginCaptures":{"1":{"name":"punctuation.metadata.hx"},"2":{"name":"storage.modifier.metadata.hx"},"3":{"name":"meta.brace.round.hx"}},"endCaptures":{"0":{"name":"meta.brace.round.hx"}}},{"match":"((@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs.assemblyMeta|cs.assemblyStrict|cs.using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash.property|font|forward.new|forward.variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java.native|javaCanonical|jsRequire|jvm.synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)\\b))","captures":{"2":{"name":"punctuation.metadata.hx"},"3":{"name":"storage.modifier.metadata.hx"}}},{"begin":"(@)(:?[a-zA-Z_]*)\\s*(\\()","end":"\\)","patterns":[{"include":"#block-contents"}],"beginCaptures":{"1":{"name":"punctuation.metadata.hx"},"2":{"name":"variable.metadata.hx"},"3":{"name":"meta.brace.round.hx"}},"endCaptures":{"0":{"name":"meta.brace.round.hx"}}},{"match":"(@)(:?)([a-zA-Z_]*(\\.))*([a-zA-Z_]*)?","captures":{"1":{"name":"punctuation.metadata.hx"},"2":{"name":"variable.metadata.hx"},"3":{"name":"variable.metadata.hx"},"4":{"name":"punctuation.accessor.hx"},"5":{"name":"variable.metadata.hx"}}}]},"method":{"name":"meta.method.hx","begin":"(?=\\bfunction\\b)","end":"(?\u003c=[\\};])","patterns":[{"include":"#macro-reification"},{"include":"#method-name"},{"include":"#method-name-post"},{"include":"#method-block"}]},"method-block":{"name":"meta.method.block.hx","begin":"(?\u003c=\\{)","end":"(\\})","patterns":[{"include":"#block"},{"include":"#block-contents"}],"beginCaptures":{"1":{"name":"punctuation.definition.block.begin.hx"}},"endCaptures":{"1":{"name":"punctuation.definition.block.end.hx"}}},"method-call":{"begin":"\\b(?:(__(?:addressOf|as|call|checked|cpp|cs|define_feature|delete|feature|field|fixed|foreach|forin|has_next|hkeys|in|int|is|java|js|keys|lock|lua|lua_table|new|php|physeq|prefix|ptr|resources|rethrow|set|setfield|sizeof|type|typeof|unprotect|unsafe|valueOf|var|vector|vmem_get|vmem_set|vmem_sign|instanceof|strict_eq|strict_neq)__)|([_a-z]\\w*))\\s*(\\()","end":"(\\))","patterns":[{"include":"#block"},{"include":"#block-contents"}],"beginCaptures":{"1":{"name":"keyword.other.untyped-function.hx"},"2":{"name":"entity.name.function.hx"},"3":{"name":"meta.brace.round.hx"}},"endCaptures":{"1":{"name":"meta.brace.round.hx"}}},"method-name":{"begin":"\\b(function)\\b\\s*\\b(?:(new)|([_A-Za-z]\\w*))?\\b","end":"(?=$|\\()","patterns":[{"include":"#macro-reification"},{"include":"#type-parameters"}],"beginCaptures":{"1":{"name":"storage.type.function.hx"},"2":{"name":"storage.type.hx"},"3":{"name":"entity.name.function.hx"}}},"method-name-post":{"begin":"(?\u003c=[\\w\\s\u003e])","end":"(\\{)|(;)","patterns":[{"include":"#parameters"},{"include":"#method-return-type-hint"},{"include":"#block"},{"include":"#block-contents"}],"endCaptures":{"1":{"name":"punctuation.definition.block.begin.hx"},"2":{"name":"punctuation.terminator.hx"}}},"method-return-type-hint":{"begin":"(?\u003c=\\))\\s*(:)","end":"(?=\\{|;|[a-z0-9])","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"keyword.operator.type.annotation.hx"}}},"modifiers":{"patterns":[{"name":"storage.type.class","match":"\\b(enum)\\b"},{"name":"storage.modifier.hx","match":"\\b(public|private|static|dynamic|inline|macro|extern|override|overload|abstract)\\b"},{"name":"storage.modifier.hx","match":"\\b(final)\\b(?=\\s+(public|private|static|dynamic|inline|macro|extern|override|overload|abstract|function))"}]},"modifiers-inheritance":{"name":"storage.modifier.hx","match":"\\b(implements|extends)\\b"},"new-expr":{"name":"new.expr.hx","begin":"(?\u003c!\\.)\\b(new)\\b","end":"(?=$|\\()","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"keyword.operator.new.hx"}}},"operator-assignment":{"name":"keyword.operator.assignment.hx","match":"(=)"},"operator-optional":{"name":"keyword.operator.optional.hx","match":"(\\?)(?!\\s)"},"operator-type-hint":{"name":"keyword.operator.type.annotation.hx","match":"(:)"},"operators":{"patterns":[{"name":"keyword.operator.logical.hx","match":"(\u0026\u0026|\\|\\|)"},{"name":"keyword.operator.bitwise.hx","match":"(~|\u0026|\\||\\^|\u003e\u003e\u003e|\u003c\u003c|\u003e\u003e)"},{"name":"keyword.operator.comparison.hx","match":"(==|!=|\u003c=|\u003e=|\u003c|\u003e)"},{"name":"keyword.operator.logical.hx","match":"(!)"},{"name":"keyword.operator.increment-decrement.hx","match":"(\\-\\-|\\+\\+)"},{"name":"keyword.operator.arithmetic.hx","match":"(\\-|\\+|\\*|\\/|%)"},{"name":"keyword.operator.intiterator.hx","match":"\\.\\.\\."},{"name":"keyword.operator.arrow.hx","match":"=\u003e"},{"name":"keyword.other.hx","match":"\\bis\\b(?!\\()"},{"begin":"\\?","end":":","patterns":[{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"keyword.operator.ternary.hx"}},"endCaptures":{"0":{"name":"keyword.operator.ternary.hx"}}}]},"package":{"begin":"package\\b","end":"$|(;)","patterns":[{"include":"#type-path"},{"include":"#type-path-package-name"}],"beginCaptures":{"0":{"name":"keyword.other.package.hx"}},"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"parameter":{"begin":"(?\u003c=\\(|,)","end":"(?=\\)(?!\\s*-\u003e)|,)","patterns":[{"include":"#parameter-name"},{"include":"#parameter-type-hint"},{"include":"#parameter-assign"},{"include":"#punctuation-comma"},{"include":"#global"}]},"parameter-assign":{"begin":"=","end":"(?=\\)|,)","patterns":[{"include":"#block"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.hx"}}},"parameter-name":{"begin":"(?\u003c=\\(|,)","end":"([_a-zA-Z]\\w*)","patterns":[{"include":"#global"},{"include":"#metadata"},{"include":"#operator-optional"}],"endCaptures":{"1":{"name":"variable.parameter.hx"}}},"parameter-type-hint":{"begin":":","end":"(?=\\)(?!\\s*-\u003e)|,|=)","patterns":[{"include":"#type"}],"beginCaptures":{"0":{"name":"keyword.operator.type.annotation.hx"}}},"parameters":{"name":"meta.parameters.hx","begin":"\\(","end":"\\s*(\\)(?!\\s*-\u003e))","patterns":[{"include":"#parameter"}],"beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.hx"}},"endCaptures":{"1":{"name":"punctuation.definition.parameters.end.hx"}}},"punctuation-accessor":{"name":"punctuation.accessor.hx","match":"\\."},"punctuation-braces":{"begin":"\\(","end":"\\)","patterns":[{"include":"#keywords"},{"include":"#block"},{"include":"#block-contents"},{"include":"#type-check"}],"beginCaptures":{"0":{"name":"meta.brace.round.hx"}},"endCaptures":{"0":{"name":"meta.brace.round.hx"}}},"punctuation-comma":{"name":"punctuation.separator.comma.hx","match":","},"punctuation-terminator":{"name":"punctuation.terminator.hx","match":";"},"regex":{"name":"string.regexp.hx","begin":"(~/)","end":"(/)([gimsu]*)","patterns":[{"include":"#regexp"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.hx"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.hx"},"2":{"name":"keyword.other.hx"}}},"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"}]},"string-escape-sequences":{"patterns":[{"name":"constant.character.escape.hx","match":"\\\\[0-3][0-9]{2}"},{"name":"constant.character.escape.hx","match":"\\\\x[0-9A-Fa-f]{2}"},{"name":"constant.character.escape.hx","match":"\\\\u[0-9]{4}"},{"name":"constant.character.escape.hx","match":"\\\\u\\{[0-9A-Fa-f]{1,}\\}"},{"name":"constant.character.escape.hx","match":"\\\\[nrt\"'\\\\]"},{"name":"invalid.escape.sequence.hx","match":"\\\\."}]},"strings":{"patterns":[{"name":"string.quoted.double.hx","begin":"\"","end":"\"","patterns":[{"include":"#string-escape-sequences"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.hx"}}},{"begin":"(')","end":"(')","patterns":[{"name":"string.quoted.single.hx","begin":"\\$(?=\\$)","end":"\\$","beginCaptures":{"0":{"name":"constant.character.escape.hx"}},"endCaptures":{"0":{"name":"constant.character.escape.hx"}}},{"include":"#string-escape-sequences"},{"begin":"(\\${)","end":"(})","patterns":[{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.hx"}}},{"match":"(\\$)([_a-zA-Z]\\w*)","captures":{"1":{"name":"punctuation.definition.block.begin.hx"},"2":{"name":"variable.other.hx"}}},{"name":"constant.character.escape.hx"},{"name":"string.quoted.single.hx","match":"."}],"beginCaptures":{"0":{"name":"string.quoted.single.hx"},"1":{"name":"punctuation.definition.string.begin.hx"}},"endCaptures":{"0":{"name":"string.quoted.single.hx"},"1":{"name":"punctuation.definition.string.end.hx"}}}]},"type":{"patterns":[{"include":"#global"},{"include":"#macro-reification"},{"include":"#type-name"},{"include":"#type-parameters"},{"name":"keyword.operator.type.function.hx","match":"-\u003e"},{"name":"keyword.operator.type.intersection.hx","match":"\u0026"},{"name":"keyword.operator.optional","match":"\\?(?=\\s*[_A-Z])"},{"name":"punctuation.definition.tag","match":"\\?(?!\\s*[_A-Z])"},{"begin":"(\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#typedef-block"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.hx"}}},{"include":"#function-type"}]},"type-check":{"begin":"(?\u003c!macro)(?=:)","end":"(?=\\))","patterns":[{"include":"#operator-type-hint"},{"include":"#type"}]},"type-name":{"patterns":[{"match":"\\b(Any|Array|ArrayAccess|Bool|Class|Date|DateTools|Dynamic|Enum|EnumValue|EReg|Float|IMap|Int|IntIterator|Iterable|Iterator|KeyValueIterator|KeyValueIterable|Lambda|List|ListIterator|ListNode|Map|Math|Null|Reflect|Single|Std|String|StringBuf|StringTools|Sys|Type|UInt|UnicodeString|ValueType|Void|Xml|XmlType)(?:(\\.)(_*[A-Z]\\w*[a-z]\\w*))*\\b","captures":{"1":{"name":"support.class.builtin.hx"},"2":{"name":"support.package.hx"},"3":{"name":"entity.name.type.hx"}}},{"match":"\\b(?\u003c![^.]\\.)((_*[a-z]\\w*\\.)*)(_*[A-Z]\\w*)(?:(\\.)(_*[A-Z]\\w*[a-z]\\w*))*\\b","captures":{"1":{"name":"support.package.hx"},"3":{"name":"entity.name.type.hx"},"4":{"name":"support.package.hx"},"5":{"name":"entity.name.type.hx"}}}]},"type-parameter-constraint-new":{"name":"keyword.operator.type.annotation.hxt","match":":"},"type-parameter-constraint-old":{"begin":"(:)\\s*(\\()","end":"\\)","patterns":[{"include":"#type"},{"include":"#punctuation-comma"}],"beginCaptures":{"1":{"name":"keyword.operator.type.annotation.hx"},"2":{"name":"punctuation.definition.constraint.begin.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.constraint.end.hx"}}},"type-parameters":{"name":"meta.type-parameters.hx","begin":"(\u003c)","end":"(?=$)|(\u003e)","patterns":[{"include":"#type"},{"include":"#type-parameter-constraint-old"},{"include":"#type-parameter-constraint-new"},{"include":"#global"},{"include":"#regex"},{"include":"#array"},{"include":"#constants"},{"include":"#strings"},{"include":"#metadata"},{"include":"#punctuation-comma"}],"beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.hx"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.hx"}}},"type-path":{"patterns":[{"include":"#global"},{"include":"#punctuation-accessor"},{"include":"#type-path-type-name"}]},"type-path-package-name":{"name":"support.package.hx","match":"\\b([_A-Za-z]\\w*)\\b"},"type-path-type-name":{"name":"entity.name.type.hx","match":"\\b(_*[A-Z]\\w*)\\b"},"typedef":{"name":"meta.typedef.hx","begin":"(?=typedef)","end":"(?\u003c=\\})|(;)","patterns":[{"include":"#typedef-name"},{"include":"#typedef-name-post"},{"include":"#typedef-block"}],"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"typedef-block":{"name":"meta.block.hx","begin":"(?\u003c=\\{)","end":"(\\})","patterns":[{"include":"#global"},{"include":"#metadata"},{"include":"#method"},{"include":"#variable"},{"include":"#modifiers"},{"include":"#punctuation-comma"},{"include":"#operator-optional"},{"include":"#typedef-extension"},{"include":"#typedef-simple-field-type-hint"},{"include":"#identifier-name"},{"include":"#strings"}],"endCaptures":{"1":{"name":"punctuation.definition.block.end.hx"}}},"typedef-extension":{"begin":"\u003e","end":",|$","patterns":[{"include":"#type"}]},"typedef-name":{"begin":"\\b(typedef)\\b","end":"([_A-Za-z]\\w*)","patterns":[{"include":"#global"}],"beginCaptures":{"1":{"name":"storage.type.class.hx"}},"endCaptures":{"1":{"name":"entity.name.type.class.hx"}}},"typedef-name-post":{"begin":"(?\u003c=\\w)","end":"(\\{)|(?=;)","patterns":[{"include":"#global"},{"include":"#punctuation-brackets"},{"include":"#punctuation-separator"},{"include":"#operator-assignment"},{"include":"#type"}],"endCaptures":{"1":{"name":"punctuation.definition.block.begin.hx"}}},"typedef-simple-field-type-hint":{"begin":":","end":"(?=\\}|,|;)","patterns":[{"include":"#type"}],"beginCaptures":{"0":{"name":"keyword.operator.type.annotation.hx"}}},"using":{"begin":"using\\b","end":"$|(;)","patterns":[{"include":"#type-path"},{"include":"#type-path-package-name"}],"beginCaptures":{"0":{"name":"keyword.other.using.hx"}},"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"variable":{"begin":"(?=\\b(var|final)\\b)","end":"(?=$)|(;)","patterns":[{"include":"#variable-name"},{"include":"#variable-name-next"},{"include":"#variable-assign"},{"include":"#variable-name-post"}],"endCaptures":{"1":{"name":"punctuation.terminator.hx"}}},"variable-accessors":{"name":"meta.parameters.hx","begin":"\\(","end":"\\)","patterns":[{"include":"#global"},{"include":"#keywords-accessor"},{"include":"#accessor-method"},{"include":"#punctuation-comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.hx"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.hx"}}},"variable-assign":{"begin":"=","end":"(?=;|,)","patterns":[{"include":"#block"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.hx"}}},"variable-name":{"begin":"\\b(var|final)\\b","end":"(?=$)|([_a-zA-Z]\\w*)","patterns":[{"include":"#operator-optional"}],"beginCaptures":{"1":{"name":"storage.type.variable.hx"}},"endCaptures":{"1":{"name":"variable.other.hx"}}},"variable-name-next":{"begin":",","end":"([_a-zA-Z]\\w*)","patterns":[{"include":"#global"}],"beginCaptures":{"0":{"name":"punctuation.separator.comma.hx"}},"endCaptures":{"1":{"name":"variable.other.hx"}}},"variable-name-post":{"begin":"(?\u003c=\\w)","end":"(?=;)|(?==)","patterns":[{"include":"#variable-accessors"},{"include":"#variable-type-hint"},{"include":"#block-contents"}]},"variable-type-hint":{"begin":":","end":"(?=$|;|,|=)","patterns":[{"include":"#type"}],"beginCaptures":{"0":{"name":"keyword.operator.type.annotation.hx"}}}}}
|