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,200 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "Gremlin Image",
|
3
|
-
"scopeName": "source.gremlin",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#data"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"include": "#tags"
|
10
|
-
}
|
11
|
-
],
|
12
|
-
"repository": {
|
13
|
-
"data": {
|
14
|
-
"contentName": "meta.file.body.gremlin",
|
15
|
-
"begin": "^\\s*((?:sun)?gremlinfile)(?=\\s|$).*",
|
16
|
-
"end": "^\\s*(-1)\\s*$",
|
17
|
-
"patterns": [
|
18
|
-
{
|
19
|
-
"name": "keyword.operator.element-specification.sun.gremlin",
|
20
|
-
"match": "(?x)\\b\n(ARC|BEZIER|BOTCENT|BOTLEFT|BOTRIGHT|BSPLINE|CENTCENT|CENTLEFT\n|CENTRIGHT|CURVE|POLYGON|TOPCENT|TOPLEFT|TOPRIGHT|VECTOR)\\b"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"match": "^\\s*([0-6])\\s+([0-9]+)\\s*$",
|
24
|
-
"captures": {
|
25
|
-
"1": {
|
26
|
-
"name": "keyword.operator.element-brush.gremlin"
|
27
|
-
},
|
28
|
-
"2": {
|
29
|
-
"name": "keyword.operator.element-size.gremlin"
|
30
|
-
}
|
31
|
-
}
|
32
|
-
},
|
33
|
-
{
|
34
|
-
"name": "comment.line.ignored.end-point-list.gremlin",
|
35
|
-
"match": "^\\s*(?:\\*|-1.0+\\s+-1.0+)\\s*$"
|
36
|
-
},
|
37
|
-
{
|
38
|
-
"name": "keyword.operator.element-specification.aed.gremlin",
|
39
|
-
"match": "^\\s*[0-9]+(?:\\s*$|\\s+(?=\\d))"
|
40
|
-
},
|
41
|
-
{
|
42
|
-
"match": "(?x) ^\\s*\n( (6) \\s+ (\\S.{5})\n| (5) \\s+ (\\S.{4})\n| (4) \\s+ (\\S.{3})\n| (3) \\s+ (\\S.{2})\n| (2) \\s+ (\\S.{1})\n| (1) \\s+ ([7-9\\D])\n| ((?!0)\\d+) \\s+ (\\S.*)\n) \\s* $",
|
43
|
-
"captures": {
|
44
|
-
"1": {
|
45
|
-
"name": "meta.element-text.gremlin"
|
46
|
-
},
|
47
|
-
"10": {
|
48
|
-
"name": "keyword.operator.character-count.2.gremlin"
|
49
|
-
},
|
50
|
-
"11": {
|
51
|
-
"name": "string.unquoted.gremlin"
|
52
|
-
},
|
53
|
-
"12": {
|
54
|
-
"name": "keyword.operator.character-count.1.gremlin"
|
55
|
-
},
|
56
|
-
"13": {
|
57
|
-
"name": "string.unquoted.gremlin"
|
58
|
-
},
|
59
|
-
"14": {
|
60
|
-
"name": "keyword.operator.character-count.gremlin"
|
61
|
-
},
|
62
|
-
"15": {
|
63
|
-
"name": "string.unquoted.gremlin"
|
64
|
-
},
|
65
|
-
"2": {
|
66
|
-
"name": "keyword.operator.character-count.6.gremlin"
|
67
|
-
},
|
68
|
-
"3": {
|
69
|
-
"name": "string.unquoted.gremlin"
|
70
|
-
},
|
71
|
-
"4": {
|
72
|
-
"name": "keyword.operator.character-count.5.gremlin"
|
73
|
-
},
|
74
|
-
"5": {
|
75
|
-
"name": "string.unquoted.gremlin"
|
76
|
-
},
|
77
|
-
"6": {
|
78
|
-
"name": "keyword.operator.character-count.4.gremlin"
|
79
|
-
},
|
80
|
-
"7": {
|
81
|
-
"name": "string.unquoted.gremlin"
|
82
|
-
},
|
83
|
-
"8": {
|
84
|
-
"name": "keyword.operator.character-count.3.gremlin"
|
85
|
-
},
|
86
|
-
"9": {
|
87
|
-
"name": "string.unquoted.gremlin"
|
88
|
-
}
|
89
|
-
}
|
90
|
-
},
|
91
|
-
{
|
92
|
-
"name": "constant.numeric.decimal.gremlin",
|
93
|
-
"match": "\\d+(?:\\.\\d+)?"
|
94
|
-
}
|
95
|
-
],
|
96
|
-
"beginCaptures": {
|
97
|
-
"0": {
|
98
|
-
"name": "meta.file.start.gremlin"
|
99
|
-
},
|
100
|
-
"1": {
|
101
|
-
"name": "keyword.control.flow.begin-file.gremlin"
|
102
|
-
}
|
103
|
-
},
|
104
|
-
"endCaptures": {
|
105
|
-
"0": {
|
106
|
-
"name": "meta.file.end.gremlin"
|
107
|
-
},
|
108
|
-
"1": {
|
109
|
-
"name": "comment.line.ignored.end-of-file.gremlin"
|
110
|
-
}
|
111
|
-
}
|
112
|
-
},
|
113
|
-
"grn": {
|
114
|
-
"patterns": [
|
115
|
-
{
|
116
|
-
"name": "meta.directive.preprocessor.grn.roff",
|
117
|
-
"match": "(?ix) ^\\s*\n(pointscale|pointscal|pointsca|pointsc|points\n|point|poin|poi|po|p) (?:\\s+(on|off))?\n(?=\\s|$) ",
|
118
|
-
"captures": {
|
119
|
-
"1": {
|
120
|
-
"name": "keyword.operator.point-scale.grn.roff"
|
121
|
-
},
|
122
|
-
"2": {
|
123
|
-
"name": "constant.language.boolean.grn.roff"
|
124
|
-
}
|
125
|
-
}
|
126
|
-
},
|
127
|
-
{
|
128
|
-
"name": "meta.directive.preprocessor.grn.roff",
|
129
|
-
"match": "(?i)^\\s*(file|fil|fi|f)\\s+(\\S.*)",
|
130
|
-
"captures": {
|
131
|
-
"1": {
|
132
|
-
"name": "keyword.control.directive.include.grn.roff"
|
133
|
-
},
|
134
|
-
"2": {
|
135
|
-
"name": "string.unquoted.filename.grn.roff"
|
136
|
-
}
|
137
|
-
}
|
138
|
-
},
|
139
|
-
{
|
140
|
-
"name": "keyword.operator.directive.preprocessor.grn.roff",
|
141
|
-
"match": "(?ix) ^\\s*\n( [1-4] (?=\\s+\\S)\n| roman|roma|rom|ro|r\n| italics|italic|itali|ital|ita|it|i\n| bold|bol|bo|b\n| special|specia|speci|spec|spe|sp\n| stipple|stippl|stipp|stip|sti|st|l\n| scale|scal|sca|sc|x\n| narrow|narro|narr|nar|na\n| medium|mediu|medi|med|me\n| thick|thic|thi|th|t\n| default|defaul|defau|defa|def|de|d\n| width|widt|wid|wi|w\n| height|heigh|heig|hei|he|h\n) (?=\\s|$)"
|
142
|
-
},
|
143
|
-
{
|
144
|
-
"include": "text.roff#params"
|
145
|
-
}
|
146
|
-
]
|
147
|
-
},
|
148
|
-
"tags": {
|
149
|
-
"begin": "^([.'])[ \\t]*(GS)(?=$|\\s|\\\\E?[\"#])(.*)$",
|
150
|
-
"end": "^([.'])[ \\t]*(GE|GF)(?=$|\\s|\\\\E?[\"#])",
|
151
|
-
"patterns": [
|
152
|
-
{
|
153
|
-
"begin": "\\A\\s*((?:sun)?gremlinfile)(?=\\s|$)",
|
154
|
-
"end": "(?=A)B",
|
155
|
-
"patterns": [
|
156
|
-
{
|
157
|
-
"include": "#data"
|
158
|
-
}
|
159
|
-
]
|
160
|
-
},
|
161
|
-
{
|
162
|
-
"include": "#grn"
|
163
|
-
}
|
164
|
-
],
|
165
|
-
"beginCaptures": {
|
166
|
-
"0": {
|
167
|
-
"name": "meta.function.begin.gremlin.macro.roff"
|
168
|
-
},
|
169
|
-
"1": {
|
170
|
-
"name": "punctuation.definition.macro.roff"
|
171
|
-
},
|
172
|
-
"2": {
|
173
|
-
"name": "entity.function.name.roff"
|
174
|
-
},
|
175
|
-
"3": {
|
176
|
-
"patterns": [
|
177
|
-
{
|
178
|
-
"name": "constant.language.alignment-mode.grn.roff",
|
179
|
-
"match": "(?:^|\\G)\\s*([LIC])\\b"
|
180
|
-
},
|
181
|
-
{
|
182
|
-
"include": "text.roff#escapes"
|
183
|
-
}
|
184
|
-
]
|
185
|
-
}
|
186
|
-
},
|
187
|
-
"endCaptures": {
|
188
|
-
"0": {
|
189
|
-
"name": "meta.function.end.gremlin.macro.roff"
|
190
|
-
},
|
191
|
-
"1": {
|
192
|
-
"name": "punctuation.definition.macro.roff"
|
193
|
-
},
|
194
|
-
"2": {
|
195
|
-
"name": "entity.name.function.roff"
|
196
|
-
}
|
197
|
-
}
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
1
|
+
{"name":"Gremlin Image","scopeName":"source.gremlin","patterns":[{"include":"#data"},{"include":"#tags"}],"repository":{"data":{"contentName":"meta.file.body.gremlin","begin":"^\\s*((?:sun)?gremlinfile)(?=\\s|$).*","end":"^\\s*(-1)\\s*$","patterns":[{"name":"keyword.operator.element-specification.sun.gremlin","match":"(?x)\\b\n(ARC|BEZIER|BOTCENT|BOTLEFT|BOTRIGHT|BSPLINE|CENTCENT|CENTLEFT\n|CENTRIGHT|CURVE|POLYGON|TOPCENT|TOPLEFT|TOPRIGHT|VECTOR)\\b"},{"match":"^\\s*([0-6])\\s+([0-9]+)\\s*$","captures":{"1":{"name":"keyword.operator.element-brush.gremlin"},"2":{"name":"keyword.operator.element-size.gremlin"}}},{"name":"comment.line.ignored.end-point-list.gremlin","match":"^\\s*(?:\\*|-1.0+\\s+-1.0+)\\s*$"},{"name":"keyword.operator.element-specification.aed.gremlin","match":"^\\s*[0-9]+(?:\\s*$|\\s+(?=\\d))"},{"match":"(?x) ^\\s*\n( (6) \\s+ (\\S.{5})\n| (5) \\s+ (\\S.{4})\n| (4) \\s+ (\\S.{3})\n| (3) \\s+ (\\S.{2})\n| (2) \\s+ (\\S.{1})\n| (1) \\s+ ([7-9\\D])\n| ((?!0)\\d+) \\s+ (\\S.*)\n) \\s* $","captures":{"1":{"name":"meta.element-text.gremlin"},"10":{"name":"keyword.operator.character-count.2.gremlin"},"11":{"name":"string.unquoted.gremlin"},"12":{"name":"keyword.operator.character-count.1.gremlin"},"13":{"name":"string.unquoted.gremlin"},"14":{"name":"keyword.operator.character-count.gremlin"},"15":{"name":"string.unquoted.gremlin"},"2":{"name":"keyword.operator.character-count.6.gremlin"},"3":{"name":"string.unquoted.gremlin"},"4":{"name":"keyword.operator.character-count.5.gremlin"},"5":{"name":"string.unquoted.gremlin"},"6":{"name":"keyword.operator.character-count.4.gremlin"},"7":{"name":"string.unquoted.gremlin"},"8":{"name":"keyword.operator.character-count.3.gremlin"},"9":{"name":"string.unquoted.gremlin"}}},{"name":"constant.numeric.decimal.gremlin","match":"\\d+(?:\\.\\d+)?"}],"beginCaptures":{"0":{"name":"meta.file.start.gremlin"},"1":{"name":"keyword.control.flow.begin-file.gremlin"}},"endCaptures":{"0":{"name":"meta.file.end.gremlin"},"1":{"name":"comment.line.ignored.end-of-file.gremlin"}}},"grn":{"patterns":[{"name":"meta.directive.preprocessor.grn.roff","match":"(?ix) ^\\s*\n(pointscale|pointscal|pointsca|pointsc|points\n|point|poin|poi|po|p) (?:\\s+(on|off))?\n(?=\\s|$) ","captures":{"1":{"name":"keyword.operator.point-scale.grn.roff"},"2":{"name":"constant.language.boolean.grn.roff"}}},{"name":"meta.directive.preprocessor.grn.roff","match":"(?i)^\\s*(file|fil|fi|f)\\s+(\\S.*)","captures":{"1":{"name":"keyword.control.directive.include.grn.roff"},"2":{"name":"string.unquoted.filename.grn.roff"}}},{"name":"keyword.operator.directive.preprocessor.grn.roff","match":"(?ix) ^\\s*\n( [1-4] (?=\\s+\\S)\n| roman|roma|rom|ro|r\n| italics|italic|itali|ital|ita|it|i\n| bold|bol|bo|b\n| special|specia|speci|spec|spe|sp\n| stipple|stippl|stipp|stip|sti|st|l\n| scale|scal|sca|sc|x\n| narrow|narro|narr|nar|na\n| medium|mediu|medi|med|me\n| thick|thic|thi|th|t\n| default|defaul|defau|defa|def|de|d\n| width|widt|wid|wi|w\n| height|heigh|heig|hei|he|h\n) (?=\\s|$)"},{"include":"text.roff#params"}]},"tags":{"begin":"^([.'])[ \\t]*(GS)(?=$|\\s|\\\\E?[\"#])(.*)$","end":"^([.'])[ \\t]*(GE|GF)(?=$|\\s|\\\\E?[\"#])","patterns":[{"begin":"\\A\\s*((?:sun)?gremlinfile)(?=\\s|$)","end":"(?=A)B","patterns":[{"include":"#data"}]},{"include":"#grn"}],"beginCaptures":{"0":{"name":"meta.function.begin.gremlin.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"},"3":{"patterns":[{"name":"constant.language.alignment-mode.grn.roff","match":"(?:^|\\G)\\s*([LIC])\\b"},{"include":"text.roff#escapes"}]}},"endCaptures":{"0":{"name":"meta.function.end.gremlin.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.name.function.roff"}}}}}
|
@@ -1,69 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "Gradle Build Script",
|
3
|
-
"scopeName": "source.groovy.gradle",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#gradle"
|
7
|
-
}
|
8
|
-
],
|
9
|
-
"repository": {
|
10
|
-
"blocks": {
|
11
|
-
"patterns": [
|
12
|
-
{
|
13
|
-
"name": "meta.definition.block.groovy.gradle",
|
14
|
-
"begin": "(?!\u003cproject\\.)(\\w+)\\s*{",
|
15
|
-
"end": "}",
|
16
|
-
"patterns": [
|
17
|
-
{
|
18
|
-
"include": "#gradle-groovy"
|
19
|
-
}
|
20
|
-
],
|
21
|
-
"beginCaptures": {
|
22
|
-
"1": {
|
23
|
-
"name": "entity.name.block.groovy.gradle"
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
]
|
28
|
-
},
|
29
|
-
"gradle": {
|
30
|
-
"patterns": [
|
31
|
-
{
|
32
|
-
"include": "#tasks"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"include": "#blocks"
|
36
|
-
},
|
37
|
-
{
|
38
|
-
"include": "source.groovy"
|
39
|
-
}
|
40
|
-
]
|
41
|
-
},
|
42
|
-
"gradle-groovy": {
|
43
|
-
"patterns": [
|
44
|
-
{
|
45
|
-
"include": "source.groovy"
|
46
|
-
}
|
47
|
-
]
|
48
|
-
},
|
49
|
-
"tasks": {
|
50
|
-
"patterns": [
|
51
|
-
{
|
52
|
-
"name": "meta.definition.task.groovy.gradle",
|
53
|
-
"begin": "task\\s+(\\w+)\\s*(?=[\\({])",
|
54
|
-
"end": "^",
|
55
|
-
"patterns": [
|
56
|
-
{
|
57
|
-
"include": "#gradle-groovy"
|
58
|
-
}
|
59
|
-
],
|
60
|
-
"beginCaptures": {
|
61
|
-
"1": {
|
62
|
-
"name": "entity.name.task.groovy.gradle"
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
]
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
1
|
+
{"name":"Gradle Build Script","scopeName":"source.groovy.gradle","patterns":[{"include":"#gradle"}],"repository":{"blocks":{"patterns":[{"name":"meta.definition.block.groovy.gradle","begin":"(?!\u003cproject\\.)(\\w+)\\s*{","end":"}","patterns":[{"include":"#gradle-groovy"}],"beginCaptures":{"1":{"name":"entity.name.block.groovy.gradle"}}}]},"gradle":{"patterns":[{"include":"#tasks"},{"include":"#blocks"},{"include":"source.groovy"}]},"gradle-groovy":{"patterns":[{"include":"source.groovy"}]},"tasks":{"patterns":[{"name":"meta.definition.task.groovy.gradle","begin":"task\\s+(\\w+)\\s*(?=[\\({])","end":"^","patterns":[{"include":"#gradle-groovy"}],"beginCaptures":{"1":{"name":"entity.name.task.groovy.gradle"}}}]}}}
|
data/grammars/source.groovy.json
CHANGED
@@ -1,1374 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "Groovy",
|
3
|
-
"scopeName": "source.groovy",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "comment.line.hashbang.groovy",
|
7
|
-
"match": "^(#!).+$\\n",
|
8
|
-
"captures": {
|
9
|
-
"1": {
|
10
|
-
"name": "punctuation.definition.comment.groovy"
|
11
|
-
}
|
12
|
-
}
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"name": "meta.package.groovy",
|
16
|
-
"match": "^\\s*(package)\\b(?:\\s*([^ ;$]+)\\s*(;)?)?",
|
17
|
-
"captures": {
|
18
|
-
"1": {
|
19
|
-
"name": "keyword.other.package.groovy"
|
20
|
-
},
|
21
|
-
"2": {
|
22
|
-
"name": "storage.modifier.package.groovy"
|
23
|
-
},
|
24
|
-
"3": {
|
25
|
-
"name": "punctuation.terminator.groovy"
|
26
|
-
}
|
27
|
-
}
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"name": "meta.import.groovy",
|
31
|
-
"contentName": "storage.modifier.import.groovy",
|
32
|
-
"begin": "(import static)\\b\\s*",
|
33
|
-
"end": "\\s*(?:$|(?=%\u003e)(;))",
|
34
|
-
"patterns": [
|
35
|
-
{
|
36
|
-
"name": "punctuation.separator.groovy",
|
37
|
-
"match": "\\."
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"name": "invalid.illegal.character_not_allowed_here.groovy",
|
41
|
-
"match": "\\s"
|
42
|
-
}
|
43
|
-
],
|
44
|
-
"captures": {
|
45
|
-
"1": {
|
46
|
-
"name": "keyword.other.import.groovy"
|
47
|
-
},
|
48
|
-
"2": {
|
49
|
-
"name": "storage.modifier.import.groovy"
|
50
|
-
},
|
51
|
-
"3": {
|
52
|
-
"name": "punctuation.terminator.groovy"
|
53
|
-
}
|
54
|
-
},
|
55
|
-
"beginCaptures": {
|
56
|
-
"1": {
|
57
|
-
"name": "keyword.other.import.static.groovy"
|
58
|
-
}
|
59
|
-
},
|
60
|
-
"endCaptures": {
|
61
|
-
"1": {
|
62
|
-
"name": "punctuation.terminator.groovy"
|
63
|
-
}
|
64
|
-
}
|
65
|
-
},
|
66
|
-
{
|
67
|
-
"name": "meta.import.groovy",
|
68
|
-
"contentName": "storage.modifier.import.groovy",
|
69
|
-
"begin": "(import)\\b\\s*",
|
70
|
-
"end": "\\s*(?:$|(?=%\u003e)|(;))",
|
71
|
-
"patterns": [
|
72
|
-
{
|
73
|
-
"name": "punctuation.separator.groovy",
|
74
|
-
"match": "\\."
|
75
|
-
},
|
76
|
-
{
|
77
|
-
"name": "invalid.illegal.character_not_allowed_here.groovy",
|
78
|
-
"match": "\\s"
|
79
|
-
}
|
80
|
-
],
|
81
|
-
"captures": {
|
82
|
-
"1": {
|
83
|
-
"name": "keyword.other.import.groovy"
|
84
|
-
},
|
85
|
-
"2": {
|
86
|
-
"name": "storage.modifier.import.groovy"
|
87
|
-
},
|
88
|
-
"3": {
|
89
|
-
"name": "punctuation.terminator.groovy"
|
90
|
-
}
|
91
|
-
},
|
92
|
-
"beginCaptures": {
|
93
|
-
"1": {
|
94
|
-
"name": "keyword.other.import.groovy"
|
95
|
-
}
|
96
|
-
},
|
97
|
-
"endCaptures": {
|
98
|
-
"1": {
|
99
|
-
"name": "punctuation.terminator.groovy"
|
100
|
-
}
|
101
|
-
}
|
102
|
-
},
|
103
|
-
{
|
104
|
-
"name": "meta.import.groovy",
|
105
|
-
"match": "^\\s*(import)(?:\\s+(static)\\s+)\\b(?:\\s*([^ ;$]+)\\s*(;)?)?",
|
106
|
-
"captures": {
|
107
|
-
"1": {
|
108
|
-
"name": "keyword.other.import.groovy"
|
109
|
-
},
|
110
|
-
"2": {
|
111
|
-
"name": "keyword.other.import.static.groovy"
|
112
|
-
},
|
113
|
-
"3": {
|
114
|
-
"name": "storage.modifier.import.groovy"
|
115
|
-
},
|
116
|
-
"4": {
|
117
|
-
"name": "punctuation.terminator.groovy"
|
118
|
-
}
|
119
|
-
}
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"include": "#groovy"
|
123
|
-
}
|
124
|
-
],
|
125
|
-
"repository": {
|
126
|
-
"annotations": {
|
127
|
-
"patterns": [
|
128
|
-
{
|
129
|
-
"name": "meta.declaration.annotation.groovy",
|
130
|
-
"begin": "(?\u003c!\\.)(@[^ (]+)(\\()",
|
131
|
-
"end": "(\\))",
|
132
|
-
"patterns": [
|
133
|
-
{
|
134
|
-
"match": "(\\w*)\\s*(=)",
|
135
|
-
"captures": {
|
136
|
-
"1": {
|
137
|
-
"name": "constant.other.key.groovy"
|
138
|
-
},
|
139
|
-
"2": {
|
140
|
-
"name": "keyword.operator.assignment.groovy"
|
141
|
-
}
|
142
|
-
}
|
143
|
-
},
|
144
|
-
{
|
145
|
-
"include": "#values"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"name": "punctuation.definition.seperator.groovy",
|
149
|
-
"match": ","
|
150
|
-
}
|
151
|
-
],
|
152
|
-
"beginCaptures": {
|
153
|
-
"1": {
|
154
|
-
"name": "storage.type.annotation.groovy"
|
155
|
-
},
|
156
|
-
"2": {
|
157
|
-
"name": "punctuation.definition.annotation-arguments.begin.groovy"
|
158
|
-
}
|
159
|
-
},
|
160
|
-
"endCaptures": {
|
161
|
-
"1": {
|
162
|
-
"name": "punctuation.definition.annotation-arguments.end.groovy"
|
163
|
-
}
|
164
|
-
}
|
165
|
-
},
|
166
|
-
{
|
167
|
-
"name": "storage.type.annotation.groovy",
|
168
|
-
"match": "(?\u003c!\\.)@\\S+"
|
169
|
-
}
|
170
|
-
]
|
171
|
-
},
|
172
|
-
"anonymous-classes-and-new": {
|
173
|
-
"begin": "\\bnew\\b",
|
174
|
-
"end": "(?\u003c=\\)|\\])(?!\\s*{)|(?\u003c=})|(?=[;])|$",
|
175
|
-
"patterns": [
|
176
|
-
{
|
177
|
-
"begin": "(\\w+)\\s*(?=\\[)",
|
178
|
-
"end": "}|(?=\\s*(?:,|;|\\)))|$",
|
179
|
-
"patterns": [
|
180
|
-
{
|
181
|
-
"begin": "\\[",
|
182
|
-
"end": "\\]",
|
183
|
-
"patterns": [
|
184
|
-
{
|
185
|
-
"include": "#groovy"
|
186
|
-
}
|
187
|
-
]
|
188
|
-
},
|
189
|
-
{
|
190
|
-
"begin": "{",
|
191
|
-
"end": "(?=})",
|
192
|
-
"patterns": [
|
193
|
-
{
|
194
|
-
"include": "#groovy"
|
195
|
-
}
|
196
|
-
]
|
197
|
-
}
|
198
|
-
],
|
199
|
-
"beginCaptures": {
|
200
|
-
"1": {
|
201
|
-
"name": "storage.type.groovy"
|
202
|
-
}
|
203
|
-
}
|
204
|
-
},
|
205
|
-
{
|
206
|
-
"begin": "(?=\\w.*\\(?)",
|
207
|
-
"end": "(?\u003c=\\))|$",
|
208
|
-
"patterns": [
|
209
|
-
{
|
210
|
-
"include": "#object-types"
|
211
|
-
},
|
212
|
-
{
|
213
|
-
"begin": "\\(",
|
214
|
-
"end": "\\)",
|
215
|
-
"patterns": [
|
216
|
-
{
|
217
|
-
"include": "#groovy"
|
218
|
-
}
|
219
|
-
],
|
220
|
-
"beginCaptures": {
|
221
|
-
"1": {
|
222
|
-
"name": "storage.type.groovy"
|
223
|
-
}
|
224
|
-
}
|
225
|
-
}
|
226
|
-
]
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"name": "meta.inner-class.groovy",
|
230
|
-
"begin": "{",
|
231
|
-
"end": "}",
|
232
|
-
"patterns": [
|
233
|
-
{
|
234
|
-
"include": "#class-body"
|
235
|
-
}
|
236
|
-
]
|
237
|
-
}
|
238
|
-
],
|
239
|
-
"beginCaptures": {
|
240
|
-
"0": {
|
241
|
-
"name": "keyword.control.new.groovy"
|
242
|
-
}
|
243
|
-
}
|
244
|
-
},
|
245
|
-
"braces": {
|
246
|
-
"begin": "\\{",
|
247
|
-
"end": "\\}",
|
248
|
-
"patterns": [
|
249
|
-
{
|
250
|
-
"include": "#groovy-code"
|
251
|
-
}
|
252
|
-
]
|
253
|
-
},
|
254
|
-
"class": {
|
255
|
-
"name": "meta.definition.class.groovy",
|
256
|
-
"begin": "(?=\\w?[\\w\\s]*(?:class|(?:@)?interface|enum)\\s+\\w+)",
|
257
|
-
"end": "}",
|
258
|
-
"patterns": [
|
259
|
-
{
|
260
|
-
"include": "#storage-modifiers"
|
261
|
-
},
|
262
|
-
{
|
263
|
-
"include": "#comments"
|
264
|
-
},
|
265
|
-
{
|
266
|
-
"name": "meta.class.identifier.groovy",
|
267
|
-
"match": "(class|(?:@)?interface|enum)\\s+(\\w+)",
|
268
|
-
"captures": {
|
269
|
-
"1": {
|
270
|
-
"name": "storage.modifier.groovy"
|
271
|
-
},
|
272
|
-
"2": {
|
273
|
-
"name": "entity.name.type.class.groovy"
|
274
|
-
}
|
275
|
-
}
|
276
|
-
},
|
277
|
-
{
|
278
|
-
"name": "meta.definition.class.inherited.classes.groovy",
|
279
|
-
"begin": "extends",
|
280
|
-
"end": "(?={|implements)",
|
281
|
-
"patterns": [
|
282
|
-
{
|
283
|
-
"include": "#object-types-inherited"
|
284
|
-
},
|
285
|
-
{
|
286
|
-
"include": "#comments"
|
287
|
-
}
|
288
|
-
],
|
289
|
-
"beginCaptures": {
|
290
|
-
"0": {
|
291
|
-
"name": "storage.modifier.extends.groovy"
|
292
|
-
}
|
293
|
-
}
|
294
|
-
},
|
295
|
-
{
|
296
|
-
"name": "meta.definition.class.implemented.interfaces.groovy",
|
297
|
-
"begin": "(implements)\\s",
|
298
|
-
"end": "(?=\\s*extends|\\{)",
|
299
|
-
"patterns": [
|
300
|
-
{
|
301
|
-
"include": "#object-types-inherited"
|
302
|
-
},
|
303
|
-
{
|
304
|
-
"include": "#comments"
|
305
|
-
}
|
306
|
-
],
|
307
|
-
"beginCaptures": {
|
308
|
-
"1": {
|
309
|
-
"name": "storage.modifier.implements.groovy"
|
310
|
-
}
|
311
|
-
}
|
312
|
-
},
|
313
|
-
{
|
314
|
-
"name": "meta.class.body.groovy",
|
315
|
-
"begin": "{",
|
316
|
-
"end": "(?=})",
|
317
|
-
"patterns": [
|
318
|
-
{
|
319
|
-
"include": "#class-body"
|
320
|
-
}
|
321
|
-
]
|
322
|
-
}
|
323
|
-
],
|
324
|
-
"endCaptures": {
|
325
|
-
"0": {
|
326
|
-
"name": "punctuation.section.class.end.groovy"
|
327
|
-
}
|
328
|
-
}
|
329
|
-
},
|
330
|
-
"class-body": {
|
331
|
-
"patterns": [
|
332
|
-
{
|
333
|
-
"include": "#enum-values"
|
334
|
-
},
|
335
|
-
{
|
336
|
-
"include": "#constructors"
|
337
|
-
},
|
338
|
-
{
|
339
|
-
"include": "#groovy"
|
340
|
-
}
|
341
|
-
]
|
342
|
-
},
|
343
|
-
"closures": {
|
344
|
-
"begin": "\\{(?=.*?-\u003e)",
|
345
|
-
"end": "\\}",
|
346
|
-
"patterns": [
|
347
|
-
{
|
348
|
-
"begin": "(?\u003c=\\{)(?=[^\\}]*?-\u003e)",
|
349
|
-
"end": "-\u003e",
|
350
|
-
"patterns": [
|
351
|
-
{
|
352
|
-
"name": "meta.closure.parameters.groovy",
|
353
|
-
"begin": "(?!-\u003e)",
|
354
|
-
"end": "(?=-\u003e)",
|
355
|
-
"patterns": [
|
356
|
-
{
|
357
|
-
"name": "meta.closure.parameter.groovy",
|
358
|
-
"begin": "(?!,|-\u003e)",
|
359
|
-
"end": "(?=,|-\u003e)",
|
360
|
-
"patterns": [
|
361
|
-
{
|
362
|
-
"name": "meta.parameter.default.groovy",
|
363
|
-
"begin": "=",
|
364
|
-
"end": "(?=,|-\u003e)",
|
365
|
-
"patterns": [
|
366
|
-
{
|
367
|
-
"include": "#groovy-code"
|
368
|
-
}
|
369
|
-
],
|
370
|
-
"beginCaptures": {
|
371
|
-
"0": {
|
372
|
-
"name": "keyword.operator.assignment.groovy"
|
373
|
-
}
|
374
|
-
}
|
375
|
-
},
|
376
|
-
{
|
377
|
-
"include": "#parameters"
|
378
|
-
}
|
379
|
-
]
|
380
|
-
}
|
381
|
-
]
|
382
|
-
}
|
383
|
-
],
|
384
|
-
"endCaptures": {
|
385
|
-
"0": {
|
386
|
-
"name": "keyword.operator.groovy"
|
387
|
-
}
|
388
|
-
}
|
389
|
-
},
|
390
|
-
{
|
391
|
-
"begin": "(?=[^}])",
|
392
|
-
"end": "(?=\\})",
|
393
|
-
"patterns": [
|
394
|
-
{
|
395
|
-
"include": "#groovy-code"
|
396
|
-
}
|
397
|
-
]
|
398
|
-
}
|
399
|
-
]
|
400
|
-
},
|
401
|
-
"comment-block": {
|
402
|
-
"name": "comment.block.groovy",
|
403
|
-
"begin": "/\\*",
|
404
|
-
"end": "\\*/",
|
405
|
-
"captures": {
|
406
|
-
"0": {
|
407
|
-
"name": "punctuation.definition.comment.groovy"
|
408
|
-
}
|
409
|
-
}
|
410
|
-
},
|
411
|
-
"comments": {
|
412
|
-
"patterns": [
|
413
|
-
{
|
414
|
-
"name": "comment.block.empty.groovy",
|
415
|
-
"match": "/\\*\\*/",
|
416
|
-
"captures": {
|
417
|
-
"0": {
|
418
|
-
"name": "punctuation.definition.comment.groovy"
|
419
|
-
}
|
420
|
-
}
|
421
|
-
},
|
422
|
-
{
|
423
|
-
"include": "text.html.javadoc"
|
424
|
-
},
|
425
|
-
{
|
426
|
-
"include": "#comment-block"
|
427
|
-
},
|
428
|
-
{
|
429
|
-
"name": "comment.line.double-slash.groovy",
|
430
|
-
"match": "(//).*$\\n?",
|
431
|
-
"captures": {
|
432
|
-
"1": {
|
433
|
-
"name": "punctuation.definition.comment.groovy"
|
434
|
-
}
|
435
|
-
}
|
436
|
-
}
|
437
|
-
]
|
438
|
-
},
|
439
|
-
"constants": {
|
440
|
-
"patterns": [
|
441
|
-
{
|
442
|
-
"name": "constant.other.groovy",
|
443
|
-
"match": "\\b([A-Z][A-Z0-9_]+)\\b"
|
444
|
-
},
|
445
|
-
{
|
446
|
-
"name": "constant.language.groovy",
|
447
|
-
"match": "\\b(true|false|null)\\b"
|
448
|
-
}
|
449
|
-
]
|
450
|
-
},
|
451
|
-
"constructors": {
|
452
|
-
"begin": "(?\u003c=;|^)(?=\\s*(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)\\s+)*[A-Z]\\w*\\()",
|
453
|
-
"end": "}",
|
454
|
-
"patterns": [
|
455
|
-
{
|
456
|
-
"include": "#method-content"
|
457
|
-
}
|
458
|
-
],
|
459
|
-
"applyEndPatternLast": true
|
460
|
-
},
|
461
|
-
"enum-values": {
|
462
|
-
"patterns": [
|
463
|
-
{
|
464
|
-
"begin": "(?\u003c=;|^)\\s*\\b([A-Z0-9_]+)(?=\\s*(?:,|;|}|\\(|$))",
|
465
|
-
"end": ",|;|(?=})|^(?!\\s*\\w+\\s*(?:,|$))",
|
466
|
-
"patterns": [
|
467
|
-
{
|
468
|
-
"name": "meta.enum.value.groovy",
|
469
|
-
"begin": "\\(",
|
470
|
-
"end": "\\)",
|
471
|
-
"patterns": [
|
472
|
-
{
|
473
|
-
"name": "punctuation.definition.seperator.parameter.groovy",
|
474
|
-
"match": ","
|
475
|
-
},
|
476
|
-
{
|
477
|
-
"include": "#groovy-code"
|
478
|
-
}
|
479
|
-
]
|
480
|
-
}
|
481
|
-
],
|
482
|
-
"beginCaptures": {
|
483
|
-
"1": {
|
484
|
-
"name": "constant.enum.name.groovy"
|
485
|
-
}
|
486
|
-
}
|
487
|
-
}
|
488
|
-
]
|
489
|
-
},
|
490
|
-
"groovy": {
|
491
|
-
"patterns": [
|
492
|
-
{
|
493
|
-
"include": "#comments"
|
494
|
-
},
|
495
|
-
{
|
496
|
-
"include": "#class"
|
497
|
-
},
|
498
|
-
{
|
499
|
-
"include": "#variables"
|
500
|
-
},
|
501
|
-
{
|
502
|
-
"include": "#methods"
|
503
|
-
},
|
504
|
-
{
|
505
|
-
"include": "#annotations"
|
506
|
-
},
|
507
|
-
{
|
508
|
-
"include": "#groovy-code"
|
509
|
-
}
|
510
|
-
]
|
511
|
-
},
|
512
|
-
"groovy-code": {
|
513
|
-
"patterns": [
|
514
|
-
{
|
515
|
-
"include": "#groovy-code-minus-map-keys"
|
516
|
-
},
|
517
|
-
{
|
518
|
-
"include": "#map-keys"
|
519
|
-
}
|
520
|
-
]
|
521
|
-
},
|
522
|
-
"groovy-code-minus-map-keys": {
|
523
|
-
"patterns": [
|
524
|
-
{
|
525
|
-
"include": "#comments"
|
526
|
-
},
|
527
|
-
{
|
528
|
-
"include": "#annotations"
|
529
|
-
},
|
530
|
-
{
|
531
|
-
"include": "#support-functions"
|
532
|
-
},
|
533
|
-
{
|
534
|
-
"include": "#keyword-language"
|
535
|
-
},
|
536
|
-
{
|
537
|
-
"include": "#values"
|
538
|
-
},
|
539
|
-
{
|
540
|
-
"include": "#anonymous-classes-and-new"
|
541
|
-
},
|
542
|
-
{
|
543
|
-
"include": "#keyword-operator"
|
544
|
-
},
|
545
|
-
{
|
546
|
-
"include": "#types"
|
547
|
-
},
|
548
|
-
{
|
549
|
-
"include": "#storage-modifiers"
|
550
|
-
},
|
551
|
-
{
|
552
|
-
"include": "#parens"
|
553
|
-
},
|
554
|
-
{
|
555
|
-
"include": "#closures"
|
556
|
-
},
|
557
|
-
{
|
558
|
-
"include": "#braces"
|
559
|
-
}
|
560
|
-
]
|
561
|
-
},
|
562
|
-
"keyword": {
|
563
|
-
"patterns": [
|
564
|
-
{
|
565
|
-
"include": "#keyword-operator"
|
566
|
-
},
|
567
|
-
{
|
568
|
-
"include": "#keyword-language"
|
569
|
-
}
|
570
|
-
]
|
571
|
-
},
|
572
|
-
"keyword-language": {
|
573
|
-
"patterns": [
|
574
|
-
{
|
575
|
-
"name": "keyword.control.exception.groovy",
|
576
|
-
"match": "\\b(try|catch|finally|throw)\\b"
|
577
|
-
},
|
578
|
-
{
|
579
|
-
"name": "keyword.control.groovy",
|
580
|
-
"match": "\\b((?\u003c!\\.)(?:return|break|continue|default|do|while|for|switch|if|else))\\b"
|
581
|
-
},
|
582
|
-
{
|
583
|
-
"name": "meta.case.groovy",
|
584
|
-
"begin": "\\bcase\\b",
|
585
|
-
"end": ":",
|
586
|
-
"patterns": [
|
587
|
-
{
|
588
|
-
"include": "#groovy-code-minus-map-keys"
|
589
|
-
}
|
590
|
-
],
|
591
|
-
"beginCaptures": {
|
592
|
-
"0": {
|
593
|
-
"name": "keyword.control.groovy"
|
594
|
-
}
|
595
|
-
},
|
596
|
-
"endCaptures": {
|
597
|
-
"0": {
|
598
|
-
"name": "punctuation.definition.case-terminator.groovy"
|
599
|
-
}
|
600
|
-
}
|
601
|
-
},
|
602
|
-
{
|
603
|
-
"name": "meta.declaration.assertion.groovy",
|
604
|
-
"begin": "\\b(assert)\\s",
|
605
|
-
"end": "$|;|}",
|
606
|
-
"patterns": [
|
607
|
-
{
|
608
|
-
"name": "keyword.operator.assert.expression-seperator.groovy",
|
609
|
-
"match": ":"
|
610
|
-
},
|
611
|
-
{
|
612
|
-
"include": "#groovy-code-minus-map-keys"
|
613
|
-
}
|
614
|
-
],
|
615
|
-
"beginCaptures": {
|
616
|
-
"1": {
|
617
|
-
"name": "keyword.control.assert.groovy"
|
618
|
-
}
|
619
|
-
}
|
620
|
-
},
|
621
|
-
{
|
622
|
-
"name": "keyword.other.throws.groovy",
|
623
|
-
"match": "\\b(throws)\\b"
|
624
|
-
}
|
625
|
-
]
|
626
|
-
},
|
627
|
-
"keyword-operator": {
|
628
|
-
"patterns": [
|
629
|
-
{
|
630
|
-
"name": "keyword.operator.as.groovy",
|
631
|
-
"match": "\\b(as)\\b"
|
632
|
-
},
|
633
|
-
{
|
634
|
-
"name": "keyword.operator.in.groovy",
|
635
|
-
"match": "\\b(in)\\b"
|
636
|
-
},
|
637
|
-
{
|
638
|
-
"name": "keyword.operator.elvis.groovy",
|
639
|
-
"match": "\\?\\:"
|
640
|
-
},
|
641
|
-
{
|
642
|
-
"name": "keyword.operator.spreadmap.groovy",
|
643
|
-
"match": "\\*\\:"
|
644
|
-
},
|
645
|
-
{
|
646
|
-
"name": "keyword.operator.range.groovy",
|
647
|
-
"match": "\\.\\."
|
648
|
-
},
|
649
|
-
{
|
650
|
-
"name": "keyword.operator.arrow.groovy",
|
651
|
-
"match": "\\-\u003e"
|
652
|
-
},
|
653
|
-
{
|
654
|
-
"name": "keyword.operator.leftshift.groovy",
|
655
|
-
"match": "\u003c\u003c"
|
656
|
-
},
|
657
|
-
{
|
658
|
-
"name": "keyword.operator.navigation.groovy",
|
659
|
-
"match": "(?\u003c=\\S)\\.(?=\\S)"
|
660
|
-
},
|
661
|
-
{
|
662
|
-
"name": "keyword.operator.safe-navigation.groovy",
|
663
|
-
"match": "(?\u003c=\\S)\\?\\.(?=\\S)"
|
664
|
-
},
|
665
|
-
{
|
666
|
-
"name": "meta.evaluation.ternary.groovy",
|
667
|
-
"begin": "\\?",
|
668
|
-
"end": "(?=$|\\)|}|])",
|
669
|
-
"patterns": [
|
670
|
-
{
|
671
|
-
"name": "keyword.operator.ternary.expression-seperator.groovy",
|
672
|
-
"match": ":"
|
673
|
-
},
|
674
|
-
{
|
675
|
-
"include": "#groovy-code-minus-map-keys"
|
676
|
-
}
|
677
|
-
],
|
678
|
-
"beginCaptures": {
|
679
|
-
"0": {
|
680
|
-
"name": "keyword.operator.ternary.groovy"
|
681
|
-
}
|
682
|
-
}
|
683
|
-
},
|
684
|
-
{
|
685
|
-
"name": "keyword.operator.match.groovy",
|
686
|
-
"match": "==~"
|
687
|
-
},
|
688
|
-
{
|
689
|
-
"name": "keyword.operator.find.groovy",
|
690
|
-
"match": "=~"
|
691
|
-
},
|
692
|
-
{
|
693
|
-
"name": "keyword.operator.instanceof.groovy",
|
694
|
-
"match": "\\b(instanceof)\\b"
|
695
|
-
},
|
696
|
-
{
|
697
|
-
"name": "keyword.operator.comparison.groovy",
|
698
|
-
"match": "(===|==|!=|\u003c=|\u003e=|\u003c=\u003e|\u003c\u003e|\u003c|\u003e|\u003c\u003c)"
|
699
|
-
},
|
700
|
-
{
|
701
|
-
"name": "keyword.operator.assignment.groovy",
|
702
|
-
"match": "="
|
703
|
-
},
|
704
|
-
{
|
705
|
-
"name": "keyword.operator.increment-decrement.groovy",
|
706
|
-
"match": "(\\-\\-|\\+\\+)"
|
707
|
-
},
|
708
|
-
{
|
709
|
-
"name": "keyword.operator.arithmetic.groovy",
|
710
|
-
"match": "(\\-|\\+|\\*|\\/|%)"
|
711
|
-
},
|
712
|
-
{
|
713
|
-
"name": "keyword.operator.logical.groovy",
|
714
|
-
"match": "(!|\u0026\u0026|\\|\\|)"
|
715
|
-
}
|
716
|
-
]
|
717
|
-
},
|
718
|
-
"language-variables": {
|
719
|
-
"patterns": [
|
720
|
-
{
|
721
|
-
"name": "variable.language.groovy",
|
722
|
-
"match": "\\b(this|super)\\b"
|
723
|
-
}
|
724
|
-
]
|
725
|
-
},
|
726
|
-
"map-keys": {
|
727
|
-
"patterns": [
|
728
|
-
{
|
729
|
-
"match": "(\\w+)\\s*(:)",
|
730
|
-
"captures": {
|
731
|
-
"1": {
|
732
|
-
"name": "constant.other.key.groovy"
|
733
|
-
},
|
734
|
-
"2": {
|
735
|
-
"name": "punctuation.definition.seperator.key-value.groovy"
|
736
|
-
}
|
737
|
-
}
|
738
|
-
}
|
739
|
-
]
|
740
|
-
},
|
741
|
-
"method-call": {
|
742
|
-
"name": "meta.method-call.groovy",
|
743
|
-
"begin": "([\\w$]+)(\\()",
|
744
|
-
"end": "\\)",
|
745
|
-
"patterns": [
|
746
|
-
{
|
747
|
-
"name": "punctuation.definition.seperator.parameter.groovy",
|
748
|
-
"match": ","
|
749
|
-
},
|
750
|
-
{
|
751
|
-
"include": "#groovy-code"
|
752
|
-
}
|
753
|
-
],
|
754
|
-
"beginCaptures": {
|
755
|
-
"1": {
|
756
|
-
"name": "meta.method.groovy"
|
757
|
-
},
|
758
|
-
"2": {
|
759
|
-
"name": "punctuation.definition.method-parameters.begin.groovy"
|
760
|
-
}
|
761
|
-
},
|
762
|
-
"endCaptures": {
|
763
|
-
"0": {
|
764
|
-
"name": "punctuation.definition.method-parameters.end.groovy"
|
765
|
-
}
|
766
|
-
}
|
767
|
-
},
|
768
|
-
"method-content": {
|
769
|
-
"patterns": [
|
770
|
-
{
|
771
|
-
"match": "\\s"
|
772
|
-
},
|
773
|
-
{
|
774
|
-
"include": "#annotations"
|
775
|
-
},
|
776
|
-
{
|
777
|
-
"name": "meta.method.return-type.java",
|
778
|
-
"begin": "(?=(?:\\w|\u003c)[^\\(]*\\s+(?:[\\w$]|\u003c)+\\s*\\()",
|
779
|
-
"end": "(?=[\\w$]+\\s*\\()",
|
780
|
-
"patterns": [
|
781
|
-
{
|
782
|
-
"include": "#storage-modifiers"
|
783
|
-
},
|
784
|
-
{
|
785
|
-
"include": "#types"
|
786
|
-
}
|
787
|
-
]
|
788
|
-
},
|
789
|
-
{
|
790
|
-
"name": "meta.definition.method.signature.java",
|
791
|
-
"begin": "([\\w$]+)\\s*\\(",
|
792
|
-
"end": "\\)",
|
793
|
-
"patterns": [
|
794
|
-
{
|
795
|
-
"name": "meta.method.parameters.groovy",
|
796
|
-
"begin": "(?=[^)])",
|
797
|
-
"end": "(?=\\))",
|
798
|
-
"patterns": [
|
799
|
-
{
|
800
|
-
"name": "meta.method.parameter.groovy",
|
801
|
-
"begin": "(?=[^,)])",
|
802
|
-
"end": "(?=,|\\))",
|
803
|
-
"patterns": [
|
804
|
-
{
|
805
|
-
"name": "punctuation.definition.separator.groovy",
|
806
|
-
"match": ","
|
807
|
-
},
|
808
|
-
{
|
809
|
-
"name": "meta.parameter.default.groovy",
|
810
|
-
"begin": "=",
|
811
|
-
"end": "(?=,|\\))",
|
812
|
-
"patterns": [
|
813
|
-
{
|
814
|
-
"include": "#groovy-code"
|
815
|
-
}
|
816
|
-
],
|
817
|
-
"beginCaptures": {
|
818
|
-
"0": {
|
819
|
-
"name": "keyword.operator.assignment.groovy"
|
820
|
-
}
|
821
|
-
}
|
822
|
-
},
|
823
|
-
{
|
824
|
-
"include": "#parameters"
|
825
|
-
}
|
826
|
-
]
|
827
|
-
}
|
828
|
-
]
|
829
|
-
}
|
830
|
-
],
|
831
|
-
"beginCaptures": {
|
832
|
-
"1": {
|
833
|
-
"name": "entity.name.function.java"
|
834
|
-
}
|
835
|
-
}
|
836
|
-
},
|
837
|
-
{
|
838
|
-
"name": "meta.method.paramerised-type.groovy",
|
839
|
-
"begin": "(?=\u003c)",
|
840
|
-
"end": "(?=\\s)",
|
841
|
-
"patterns": [
|
842
|
-
{
|
843
|
-
"name": "storage.type.parameters.groovy",
|
844
|
-
"begin": "\u003c",
|
845
|
-
"end": "\u003e",
|
846
|
-
"patterns": [
|
847
|
-
{
|
848
|
-
"include": "#types"
|
849
|
-
},
|
850
|
-
{
|
851
|
-
"name": "punctuation.definition.seperator.groovy",
|
852
|
-
"match": ","
|
853
|
-
}
|
854
|
-
]
|
855
|
-
}
|
856
|
-
]
|
857
|
-
},
|
858
|
-
{
|
859
|
-
"name": "meta.throwables.groovy",
|
860
|
-
"begin": "throws",
|
861
|
-
"end": "(?={|;)|^(?=\\s*(?:[^{\\s]|$))",
|
862
|
-
"patterns": [
|
863
|
-
{
|
864
|
-
"include": "#object-types"
|
865
|
-
}
|
866
|
-
],
|
867
|
-
"beginCaptures": {
|
868
|
-
"0": {
|
869
|
-
"name": "storage.modifier.groovy"
|
870
|
-
}
|
871
|
-
}
|
872
|
-
},
|
873
|
-
{
|
874
|
-
"name": "meta.method.body.java",
|
875
|
-
"begin": "{",
|
876
|
-
"end": "(?=})",
|
877
|
-
"patterns": [
|
878
|
-
{
|
879
|
-
"include": "#groovy-code"
|
880
|
-
}
|
881
|
-
]
|
882
|
-
}
|
883
|
-
]
|
884
|
-
},
|
885
|
-
"methods": {
|
886
|
-
"name": "meta.definition.method.groovy",
|
887
|
-
"begin": "(?x:(?\u003c=;|^|{)(?=\\s*\n (?:\n (?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final) # visibility/modifier\n |\n (?:def)\n |\n (?:\n (?:\n (?:void|boolean|byte|char|short|int|float|long|double)\n |\n (?:@?(?:[a-zA-Z]\\w*\\.)*[A-Z]+\\w*) # object type\n )\n [\\[\\]]*\n (?:\u003c.*\u003e)?\n ) \n \n )\n \\s+\n ([^=]+\\s+)?\\w+\\s*\\(\n\t\t\t))",
|
888
|
-
"end": "}|(?=[^{])",
|
889
|
-
"patterns": [
|
890
|
-
{
|
891
|
-
"include": "#method-content"
|
892
|
-
}
|
893
|
-
],
|
894
|
-
"applyEndPatternLast": true
|
895
|
-
},
|
896
|
-
"nest_curly": {
|
897
|
-
"begin": "\\{",
|
898
|
-
"end": "\\}",
|
899
|
-
"patterns": [
|
900
|
-
{
|
901
|
-
"include": "#nest_curly"
|
902
|
-
}
|
903
|
-
],
|
904
|
-
"captures": {
|
905
|
-
"0": {
|
906
|
-
"name": "punctuation.section.scope.groovy"
|
907
|
-
}
|
908
|
-
}
|
909
|
-
},
|
910
|
-
"numbers": {
|
911
|
-
"patterns": [
|
912
|
-
{
|
913
|
-
"name": "constant.numeric.groovy",
|
914
|
-
"match": "((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b"
|
915
|
-
}
|
916
|
-
]
|
917
|
-
},
|
918
|
-
"object-types": {
|
919
|
-
"patterns": [
|
920
|
-
{
|
921
|
-
"name": "storage.type.generic.groovy",
|
922
|
-
"begin": "\\b((?:[a-z]\\w*\\.)*(?:[A-Z]+\\w*[a-z]+\\w*|UR[LI]))\u003c",
|
923
|
-
"end": "\u003e|[^\\w\\s,\\?\u003c\\[\\]]",
|
924
|
-
"patterns": [
|
925
|
-
{
|
926
|
-
"include": "#object-types"
|
927
|
-
},
|
928
|
-
{
|
929
|
-
"name": "storage.type.generic.groovy",
|
930
|
-
"begin": "\u003c",
|
931
|
-
"end": "\u003e|[^\\w\\s,\\[\\]\u003c]"
|
932
|
-
}
|
933
|
-
]
|
934
|
-
},
|
935
|
-
{
|
936
|
-
"name": "storage.type.object.array.groovy",
|
937
|
-
"begin": "\\b((?:[a-z]\\w*\\.)*[A-Z]+\\w*[a-z]+\\w*)(?=\\[)",
|
938
|
-
"end": "(?=[^\\]\\s])",
|
939
|
-
"patterns": [
|
940
|
-
{
|
941
|
-
"begin": "\\[",
|
942
|
-
"end": "\\]",
|
943
|
-
"patterns": [
|
944
|
-
{
|
945
|
-
"include": "#groovy"
|
946
|
-
}
|
947
|
-
]
|
948
|
-
}
|
949
|
-
]
|
950
|
-
},
|
951
|
-
{
|
952
|
-
"name": "storage.type.groovy",
|
953
|
-
"match": "\\b(?:[a-zA-Z]\\w*\\.)*(?:[A-Z]+\\w*[a-z]+\\w*|UR[LI])\\b"
|
954
|
-
}
|
955
|
-
]
|
956
|
-
},
|
957
|
-
"object-types-inherited": {
|
958
|
-
"patterns": [
|
959
|
-
{
|
960
|
-
"name": "entity.other.inherited-class.groovy",
|
961
|
-
"begin": "\\b((?:[a-zA-Z]\\w*\\.)*[A-Z]+\\w*[a-z]+\\w*)\u003c",
|
962
|
-
"end": "\u003e|[^\\w\\s,\\?\u003c\\[\\]]",
|
963
|
-
"patterns": [
|
964
|
-
{
|
965
|
-
"include": "#object-types-inherited"
|
966
|
-
},
|
967
|
-
{
|
968
|
-
"name": "storage.type.generic.groovy",
|
969
|
-
"begin": "\u003c",
|
970
|
-
"end": "\u003e|[^\\w\\s,\\[\\]\u003c]"
|
971
|
-
}
|
972
|
-
]
|
973
|
-
},
|
974
|
-
{
|
975
|
-
"name": "entity.other.inherited-class.groovy",
|
976
|
-
"match": "\\b(?:[a-zA-Z]\\w*(\\.))*[A-Z]+\\w*[a-z]+\\w*\\b",
|
977
|
-
"captures": {
|
978
|
-
"1": {
|
979
|
-
"name": "keyword.operator.dereference.groovy"
|
980
|
-
}
|
981
|
-
}
|
982
|
-
}
|
983
|
-
]
|
984
|
-
},
|
985
|
-
"parameters": {
|
986
|
-
"patterns": [
|
987
|
-
{
|
988
|
-
"include": "#annotations"
|
989
|
-
},
|
990
|
-
{
|
991
|
-
"include": "#storage-modifiers"
|
992
|
-
},
|
993
|
-
{
|
994
|
-
"include": "#types"
|
995
|
-
},
|
996
|
-
{
|
997
|
-
"name": "variable.parameter.method.groovy",
|
998
|
-
"match": "\\w+"
|
999
|
-
}
|
1000
|
-
]
|
1001
|
-
},
|
1002
|
-
"parens": {
|
1003
|
-
"begin": "\\(",
|
1004
|
-
"end": "\\)",
|
1005
|
-
"patterns": [
|
1006
|
-
{
|
1007
|
-
"include": "#groovy-code"
|
1008
|
-
}
|
1009
|
-
]
|
1010
|
-
},
|
1011
|
-
"primitive-arrays": {
|
1012
|
-
"patterns": [
|
1013
|
-
{
|
1014
|
-
"name": "storage.type.primitive.array.groovy",
|
1015
|
-
"match": "\\b(?:void|boolean|byte|char|short|int|float|long|double)(\\[\\])*\\b"
|
1016
|
-
}
|
1017
|
-
]
|
1018
|
-
},
|
1019
|
-
"primitive-types": {
|
1020
|
-
"patterns": [
|
1021
|
-
{
|
1022
|
-
"name": "storage.type.primitive.groovy",
|
1023
|
-
"match": "\\b(?:void|boolean|byte|char|short|int|float|long|double)\\b"
|
1024
|
-
}
|
1025
|
-
]
|
1026
|
-
},
|
1027
|
-
"regexp": {
|
1028
|
-
"patterns": [
|
1029
|
-
{
|
1030
|
-
"name": "string.regexp.groovy",
|
1031
|
-
"begin": "/(?=[^/]+/([^\u003e]|$))",
|
1032
|
-
"end": "/",
|
1033
|
-
"patterns": [
|
1034
|
-
{
|
1035
|
-
"name": "constant.character.escape.groovy",
|
1036
|
-
"match": "\\\\."
|
1037
|
-
}
|
1038
|
-
],
|
1039
|
-
"beginCaptures": {
|
1040
|
-
"0": {
|
1041
|
-
"name": "punctuation.definition.string.regexp.begin.groovy"
|
1042
|
-
}
|
1043
|
-
},
|
1044
|
-
"endCaptures": {
|
1045
|
-
"0": {
|
1046
|
-
"name": "punctuation.definition.string.regexp.end.groovy"
|
1047
|
-
}
|
1048
|
-
}
|
1049
|
-
},
|
1050
|
-
{
|
1051
|
-
"name": "string.regexp.compiled.groovy",
|
1052
|
-
"begin": "~\"",
|
1053
|
-
"end": "\"",
|
1054
|
-
"patterns": [
|
1055
|
-
{
|
1056
|
-
"name": "constant.character.escape.groovy",
|
1057
|
-
"match": "\\\\."
|
1058
|
-
}
|
1059
|
-
],
|
1060
|
-
"beginCaptures": {
|
1061
|
-
"0": {
|
1062
|
-
"name": "punctuation.definition.string.regexp.begin.groovy"
|
1063
|
-
}
|
1064
|
-
},
|
1065
|
-
"endCaptures": {
|
1066
|
-
"0": {
|
1067
|
-
"name": "punctuation.definition.string.regexp.end.groovy"
|
1068
|
-
}
|
1069
|
-
}
|
1070
|
-
}
|
1071
|
-
]
|
1072
|
-
},
|
1073
|
-
"storage-modifiers": {
|
1074
|
-
"patterns": [
|
1075
|
-
{
|
1076
|
-
"name": "storage.modifier.access-control.groovy",
|
1077
|
-
"match": "\\b(private|protected|public)\\b"
|
1078
|
-
},
|
1079
|
-
{
|
1080
|
-
"name": "storage.modifier.static.groovy",
|
1081
|
-
"match": "\\b(static)\\b"
|
1082
|
-
},
|
1083
|
-
{
|
1084
|
-
"name": "storage.modifier.final.groovy",
|
1085
|
-
"match": "\\b(final)\\b"
|
1086
|
-
},
|
1087
|
-
{
|
1088
|
-
"name": "storage.modifier.other.groovy",
|
1089
|
-
"match": "\\b(native|synchronized|abstract|threadsafe|transient)\\b"
|
1090
|
-
}
|
1091
|
-
]
|
1092
|
-
},
|
1093
|
-
"string-quoted-double": {
|
1094
|
-
"name": "string.quoted.double.groovy",
|
1095
|
-
"begin": "\"",
|
1096
|
-
"end": "\"",
|
1097
|
-
"patterns": [
|
1098
|
-
{
|
1099
|
-
"include": "#string-quoted-double-contents"
|
1100
|
-
}
|
1101
|
-
],
|
1102
|
-
"beginCaptures": {
|
1103
|
-
"0": {
|
1104
|
-
"name": "punctuation.definition.string.begin.groovy"
|
1105
|
-
}
|
1106
|
-
},
|
1107
|
-
"endCaptures": {
|
1108
|
-
"0": {
|
1109
|
-
"name": "punctuation.definition.string.end.groovy"
|
1110
|
-
}
|
1111
|
-
}
|
1112
|
-
},
|
1113
|
-
"string-quoted-double-contents": {
|
1114
|
-
"patterns": [
|
1115
|
-
{
|
1116
|
-
"name": "constant.character.escape.groovy",
|
1117
|
-
"match": "\\\\."
|
1118
|
-
},
|
1119
|
-
{
|
1120
|
-
"name": "variable.other.interpolated.groovy",
|
1121
|
-
"begin": "\\$\\w",
|
1122
|
-
"end": "(?=\\W)",
|
1123
|
-
"patterns": [
|
1124
|
-
{
|
1125
|
-
"name": "variable.other.interpolated.groovy",
|
1126
|
-
"match": "\\w"
|
1127
|
-
},
|
1128
|
-
{
|
1129
|
-
"name": "keyword.other.dereference.groovy",
|
1130
|
-
"match": "\\."
|
1131
|
-
}
|
1132
|
-
],
|
1133
|
-
"applyEndPatternLast": true
|
1134
|
-
},
|
1135
|
-
{
|
1136
|
-
"name": "source.groovy.embedded.source",
|
1137
|
-
"begin": "\\$\\{",
|
1138
|
-
"end": "\\}",
|
1139
|
-
"patterns": [
|
1140
|
-
{
|
1141
|
-
"include": "#nest_curly"
|
1142
|
-
}
|
1143
|
-
],
|
1144
|
-
"captures": {
|
1145
|
-
"0": {
|
1146
|
-
"name": "punctuation.section.embedded.groovy"
|
1147
|
-
}
|
1148
|
-
}
|
1149
|
-
}
|
1150
|
-
]
|
1151
|
-
},
|
1152
|
-
"string-quoted-double-multiline": {
|
1153
|
-
"name": "string.quoted.double.multiline.groovy",
|
1154
|
-
"begin": "\"\"\"",
|
1155
|
-
"end": "\"\"\"",
|
1156
|
-
"patterns": [
|
1157
|
-
{
|
1158
|
-
"include": "#string-quoted-double-contents"
|
1159
|
-
}
|
1160
|
-
],
|
1161
|
-
"beginCaptures": {
|
1162
|
-
"0": {
|
1163
|
-
"name": "punctuation.definition.string.begin.groovy"
|
1164
|
-
}
|
1165
|
-
},
|
1166
|
-
"endCaptures": {
|
1167
|
-
"0": {
|
1168
|
-
"name": "punctuation.definition.string.end.groovy"
|
1169
|
-
}
|
1170
|
-
}
|
1171
|
-
},
|
1172
|
-
"string-quoted-single": {
|
1173
|
-
"name": "string.quoted.single.groovy",
|
1174
|
-
"begin": "'",
|
1175
|
-
"end": "'",
|
1176
|
-
"patterns": [
|
1177
|
-
{
|
1178
|
-
"include": "#string-quoted-single-contents"
|
1179
|
-
}
|
1180
|
-
],
|
1181
|
-
"beginCaptures": {
|
1182
|
-
"0": {
|
1183
|
-
"name": "punctuation.definition.string.begin.groovy"
|
1184
|
-
}
|
1185
|
-
},
|
1186
|
-
"endCaptures": {
|
1187
|
-
"0": {
|
1188
|
-
"name": "punctuation.definition.string.end.groovy"
|
1189
|
-
}
|
1190
|
-
}
|
1191
|
-
},
|
1192
|
-
"string-quoted-single-contents": {
|
1193
|
-
"patterns": [
|
1194
|
-
{
|
1195
|
-
"name": "constant.character.escape.groovy",
|
1196
|
-
"match": "\\\\."
|
1197
|
-
}
|
1198
|
-
]
|
1199
|
-
},
|
1200
|
-
"string-quoted-single-multiline": {
|
1201
|
-
"name": "string.quoted.single.multiline.groovy",
|
1202
|
-
"begin": "'''",
|
1203
|
-
"end": "'''",
|
1204
|
-
"patterns": [
|
1205
|
-
{
|
1206
|
-
"include": "#string-quoted-single-contents"
|
1207
|
-
}
|
1208
|
-
],
|
1209
|
-
"beginCaptures": {
|
1210
|
-
"0": {
|
1211
|
-
"name": "punctuation.definition.string.begin.groovy"
|
1212
|
-
}
|
1213
|
-
},
|
1214
|
-
"endCaptures": {
|
1215
|
-
"0": {
|
1216
|
-
"name": "punctuation.definition.string.end.groovy"
|
1217
|
-
}
|
1218
|
-
}
|
1219
|
-
},
|
1220
|
-
"strings": {
|
1221
|
-
"patterns": [
|
1222
|
-
{
|
1223
|
-
"include": "#string-quoted-double-multiline"
|
1224
|
-
},
|
1225
|
-
{
|
1226
|
-
"include": "#string-quoted-single-multiline"
|
1227
|
-
},
|
1228
|
-
{
|
1229
|
-
"include": "#string-quoted-double"
|
1230
|
-
},
|
1231
|
-
{
|
1232
|
-
"include": "#string-quoted-single"
|
1233
|
-
},
|
1234
|
-
{
|
1235
|
-
"include": "#regexp"
|
1236
|
-
}
|
1237
|
-
]
|
1238
|
-
},
|
1239
|
-
"structures": {
|
1240
|
-
"name": "meta.structure.groovy",
|
1241
|
-
"begin": "\\[",
|
1242
|
-
"end": "\\]",
|
1243
|
-
"patterns": [
|
1244
|
-
{
|
1245
|
-
"include": "#groovy-code"
|
1246
|
-
},
|
1247
|
-
{
|
1248
|
-
"name": "punctuation.definition.separator.groovy",
|
1249
|
-
"match": ","
|
1250
|
-
}
|
1251
|
-
],
|
1252
|
-
"beginCaptures": {
|
1253
|
-
"0": {
|
1254
|
-
"name": "punctuation.definition.structure.begin.groovy"
|
1255
|
-
}
|
1256
|
-
},
|
1257
|
-
"endCaptures": {
|
1258
|
-
"0": {
|
1259
|
-
"name": "punctuation.definition.structure.end.groovy"
|
1260
|
-
}
|
1261
|
-
}
|
1262
|
-
},
|
1263
|
-
"support-functions": {
|
1264
|
-
"patterns": [
|
1265
|
-
{
|
1266
|
-
"name": "support.function.print.groovy",
|
1267
|
-
"match": "(?x)\\b(?:sprintf|print(?:f|ln)?)\\b"
|
1268
|
-
},
|
1269
|
-
{
|
1270
|
-
"name": "support.function.testing.groovy",
|
1271
|
-
"match": "(?x)\\b(?:shouldFail|fail(?:NotEquals)?|ass(?:ume|ert(?:S(?:cript|ame)|N(?:ot(?:Same|\n\t\t\t\t\tNull)|ull)|Contains|T(?:hat|oString|rue)|Inspect|Equals|False|Length|\n\t\t\t\t\tArrayEquals)))\\b"
|
1272
|
-
}
|
1273
|
-
]
|
1274
|
-
},
|
1275
|
-
"types": {
|
1276
|
-
"patterns": [
|
1277
|
-
{
|
1278
|
-
"name": "storage.type.def.groovy",
|
1279
|
-
"match": "\\b(def)\\b"
|
1280
|
-
},
|
1281
|
-
{
|
1282
|
-
"include": "#primitive-types"
|
1283
|
-
},
|
1284
|
-
{
|
1285
|
-
"include": "#primitive-arrays"
|
1286
|
-
},
|
1287
|
-
{
|
1288
|
-
"include": "#object-types"
|
1289
|
-
}
|
1290
|
-
]
|
1291
|
-
},
|
1292
|
-
"values": {
|
1293
|
-
"patterns": [
|
1294
|
-
{
|
1295
|
-
"include": "#language-variables"
|
1296
|
-
},
|
1297
|
-
{
|
1298
|
-
"include": "#strings"
|
1299
|
-
},
|
1300
|
-
{
|
1301
|
-
"include": "#numbers"
|
1302
|
-
},
|
1303
|
-
{
|
1304
|
-
"include": "#constants"
|
1305
|
-
},
|
1306
|
-
{
|
1307
|
-
"include": "#types"
|
1308
|
-
},
|
1309
|
-
{
|
1310
|
-
"include": "#structures"
|
1311
|
-
},
|
1312
|
-
{
|
1313
|
-
"include": "#method-call"
|
1314
|
-
}
|
1315
|
-
]
|
1316
|
-
},
|
1317
|
-
"variables": {
|
1318
|
-
"patterns": [
|
1319
|
-
{
|
1320
|
-
"name": "meta.definition.variable.groovy",
|
1321
|
-
"begin": "(?x:(?=\n (?:\n (?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final) # visibility/modifier\n |\n (?:def)\n |\n (?:void|boolean|byte|char|short|int|float|long|double)\n |\n (?:(?:[a-z]\\w*\\.)*[A-Z]+\\w*) # object type\n )\n \\s+\n [\\w\\d_\u003c\u003e\\[\\],\\s]+\n (?:=|$)\n \n \t\t\t))",
|
1322
|
-
"end": ";|$",
|
1323
|
-
"patterns": [
|
1324
|
-
{
|
1325
|
-
"match": "\\s"
|
1326
|
-
},
|
1327
|
-
{
|
1328
|
-
"match": "([A-Z_0-9]+)\\s+(?=\\=)",
|
1329
|
-
"captures": {
|
1330
|
-
"1": {
|
1331
|
-
"name": "constant.variable.groovy"
|
1332
|
-
}
|
1333
|
-
}
|
1334
|
-
},
|
1335
|
-
{
|
1336
|
-
"match": "(\\w[^\\s,]*)\\s+(?=\\=)",
|
1337
|
-
"captures": {
|
1338
|
-
"1": {
|
1339
|
-
"name": "meta.definition.variable.name.groovy"
|
1340
|
-
}
|
1341
|
-
}
|
1342
|
-
},
|
1343
|
-
{
|
1344
|
-
"begin": "=",
|
1345
|
-
"end": "$",
|
1346
|
-
"patterns": [
|
1347
|
-
{
|
1348
|
-
"include": "#groovy-code"
|
1349
|
-
}
|
1350
|
-
],
|
1351
|
-
"beginCaptures": {
|
1352
|
-
"0": {
|
1353
|
-
"name": "keyword.operator.assignment.groovy"
|
1354
|
-
}
|
1355
|
-
}
|
1356
|
-
},
|
1357
|
-
{
|
1358
|
-
"match": "(\\w[^\\s=]*)(?=\\s*($|;))",
|
1359
|
-
"captures": {
|
1360
|
-
"1": {
|
1361
|
-
"name": "meta.definition.variable.name.groovy"
|
1362
|
-
}
|
1363
|
-
}
|
1364
|
-
},
|
1365
|
-
{
|
1366
|
-
"include": "#groovy-code"
|
1367
|
-
}
|
1368
|
-
]
|
1369
|
-
}
|
1370
|
-
],
|
1371
|
-
"applyEndPatternLast": true
|
1372
|
-
}
|
1373
|
-
}
|
1374
|
-
}
|
1
|
+
{"name":"Groovy","scopeName":"source.groovy","patterns":[{"name":"comment.line.hashbang.groovy","match":"^(#!).+$\\n","captures":{"1":{"name":"punctuation.definition.comment.groovy"}}},{"name":"meta.package.groovy","match":"^\\s*(package)\\b(?:\\s*([^ ;$]+)\\s*(;)?)?","captures":{"1":{"name":"keyword.other.package.groovy"},"2":{"name":"storage.modifier.package.groovy"},"3":{"name":"punctuation.terminator.groovy"}}},{"name":"meta.import.groovy","contentName":"storage.modifier.import.groovy","begin":"(import static)\\b\\s*","end":"\\s*(?:$|(?=%\u003e)(;))","patterns":[{"name":"punctuation.separator.groovy","match":"\\."},{"name":"invalid.illegal.character_not_allowed_here.groovy","match":"\\s"}],"captures":{"1":{"name":"keyword.other.import.groovy"},"2":{"name":"storage.modifier.import.groovy"},"3":{"name":"punctuation.terminator.groovy"}},"beginCaptures":{"1":{"name":"keyword.other.import.static.groovy"}},"endCaptures":{"1":{"name":"punctuation.terminator.groovy"}}},{"name":"meta.import.groovy","contentName":"storage.modifier.import.groovy","begin":"(import)\\b\\s*","end":"\\s*(?:$|(?=%\u003e)|(;))","patterns":[{"name":"punctuation.separator.groovy","match":"\\."},{"name":"invalid.illegal.character_not_allowed_here.groovy","match":"\\s"}],"captures":{"1":{"name":"keyword.other.import.groovy"},"2":{"name":"storage.modifier.import.groovy"},"3":{"name":"punctuation.terminator.groovy"}},"beginCaptures":{"1":{"name":"keyword.other.import.groovy"}},"endCaptures":{"1":{"name":"punctuation.terminator.groovy"}}},{"name":"meta.import.groovy","match":"^\\s*(import)(?:\\s+(static)\\s+)\\b(?:\\s*([^ ;$]+)\\s*(;)?)?","captures":{"1":{"name":"keyword.other.import.groovy"},"2":{"name":"keyword.other.import.static.groovy"},"3":{"name":"storage.modifier.import.groovy"},"4":{"name":"punctuation.terminator.groovy"}}},{"include":"#groovy"}],"repository":{"annotations":{"patterns":[{"name":"meta.declaration.annotation.groovy","begin":"(?\u003c!\\.)(@[^ (]+)(\\()","end":"(\\))","patterns":[{"match":"(\\w*)\\s*(=)","captures":{"1":{"name":"constant.other.key.groovy"},"2":{"name":"keyword.operator.assignment.groovy"}}},{"include":"#values"},{"name":"punctuation.definition.seperator.groovy","match":","}],"beginCaptures":{"1":{"name":"storage.type.annotation.groovy"},"2":{"name":"punctuation.definition.annotation-arguments.begin.groovy"}},"endCaptures":{"1":{"name":"punctuation.definition.annotation-arguments.end.groovy"}}},{"name":"storage.type.annotation.groovy","match":"(?\u003c!\\.)@\\S+"}]},"anonymous-classes-and-new":{"begin":"\\bnew\\b","end":"(?\u003c=\\)|\\])(?!\\s*{)|(?\u003c=})|(?=[;])|$","patterns":[{"begin":"(\\w+)\\s*(?=\\[)","end":"}|(?=\\s*(?:,|;|\\)))|$","patterns":[{"begin":"\\[","end":"\\]","patterns":[{"include":"#groovy"}]},{"begin":"{","end":"(?=})","patterns":[{"include":"#groovy"}]}],"beginCaptures":{"1":{"name":"storage.type.groovy"}}},{"begin":"(?=\\w.*\\(?)","end":"(?\u003c=\\))|$","patterns":[{"include":"#object-types"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#groovy"}],"beginCaptures":{"1":{"name":"storage.type.groovy"}}}]},{"name":"meta.inner-class.groovy","begin":"{","end":"}","patterns":[{"include":"#class-body"}]}],"beginCaptures":{"0":{"name":"keyword.control.new.groovy"}}},"braces":{"begin":"\\{","end":"\\}","patterns":[{"include":"#groovy-code"}]},"class":{"name":"meta.definition.class.groovy","begin":"(?=\\w?[\\w\\s]*(?:class|(?:@)?interface|enum)\\s+\\w+)","end":"}","patterns":[{"include":"#storage-modifiers"},{"include":"#comments"},{"name":"meta.class.identifier.groovy","match":"(class|(?:@)?interface|enum)\\s+(\\w+)","captures":{"1":{"name":"storage.modifier.groovy"},"2":{"name":"entity.name.type.class.groovy"}}},{"name":"meta.definition.class.inherited.classes.groovy","begin":"extends","end":"(?={|implements)","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}],"beginCaptures":{"0":{"name":"storage.modifier.extends.groovy"}}},{"name":"meta.definition.class.implemented.interfaces.groovy","begin":"(implements)\\s","end":"(?=\\s*extends|\\{)","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}],"beginCaptures":{"1":{"name":"storage.modifier.implements.groovy"}}},{"name":"meta.class.body.groovy","begin":"{","end":"(?=})","patterns":[{"include":"#class-body"}]}],"endCaptures":{"0":{"name":"punctuation.section.class.end.groovy"}}},"class-body":{"patterns":[{"include":"#enum-values"},{"include":"#constructors"},{"include":"#groovy"}]},"closures":{"begin":"\\{(?=.*?-\u003e)","end":"\\}","patterns":[{"begin":"(?\u003c=\\{)(?=[^\\}]*?-\u003e)","end":"-\u003e","patterns":[{"name":"meta.closure.parameters.groovy","begin":"(?!-\u003e)","end":"(?=-\u003e)","patterns":[{"name":"meta.closure.parameter.groovy","begin":"(?!,|-\u003e)","end":"(?=,|-\u003e)","patterns":[{"name":"meta.parameter.default.groovy","begin":"=","end":"(?=,|-\u003e)","patterns":[{"include":"#groovy-code"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.groovy"}}},{"include":"#parameters"}]}]}],"endCaptures":{"0":{"name":"keyword.operator.groovy"}}},{"begin":"(?=[^}])","end":"(?=\\})","patterns":[{"include":"#groovy-code"}]}]},"comment-block":{"name":"comment.block.groovy","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"punctuation.definition.comment.groovy"}}},"comments":{"patterns":[{"name":"comment.block.empty.groovy","match":"/\\*\\*/","captures":{"0":{"name":"punctuation.definition.comment.groovy"}}},{"include":"text.html.javadoc"},{"include":"#comment-block"},{"name":"comment.line.double-slash.groovy","match":"(//).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.groovy"}}}]},"constants":{"patterns":[{"name":"constant.other.groovy","match":"\\b([A-Z][A-Z0-9_]+)\\b"},{"name":"constant.language.groovy","match":"\\b(true|false|null)\\b"}]},"constructors":{"begin":"(?\u003c=;|^)(?=\\s*(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)\\s+)*[A-Z]\\w*\\()","end":"}","patterns":[{"include":"#method-content"}],"applyEndPatternLast":true},"enum-values":{"patterns":[{"begin":"(?\u003c=;|^)\\s*\\b([A-Z0-9_]+)(?=\\s*(?:,|;|}|\\(|$))","end":",|;|(?=})|^(?!\\s*\\w+\\s*(?:,|$))","patterns":[{"name":"meta.enum.value.groovy","begin":"\\(","end":"\\)","patterns":[{"name":"punctuation.definition.seperator.parameter.groovy","match":","},{"include":"#groovy-code"}]}],"beginCaptures":{"1":{"name":"constant.enum.name.groovy"}}}]},"groovy":{"patterns":[{"include":"#comments"},{"include":"#class"},{"include":"#variables"},{"include":"#methods"},{"include":"#annotations"},{"include":"#groovy-code"}]},"groovy-code":{"patterns":[{"include":"#groovy-code-minus-map-keys"},{"include":"#map-keys"}]},"groovy-code-minus-map-keys":{"patterns":[{"include":"#comments"},{"include":"#annotations"},{"include":"#support-functions"},{"include":"#keyword-language"},{"include":"#values"},{"include":"#anonymous-classes-and-new"},{"include":"#keyword-operator"},{"include":"#types"},{"include":"#storage-modifiers"},{"include":"#parens"},{"include":"#closures"},{"include":"#braces"}]},"keyword":{"patterns":[{"include":"#keyword-operator"},{"include":"#keyword-language"}]},"keyword-language":{"patterns":[{"name":"keyword.control.exception.groovy","match":"\\b(try|catch|finally|throw)\\b"},{"name":"keyword.control.groovy","match":"\\b((?\u003c!\\.)(?:return|break|continue|default|do|while|for|switch|if|else))\\b"},{"name":"meta.case.groovy","begin":"\\bcase\\b","end":":","patterns":[{"include":"#groovy-code-minus-map-keys"}],"beginCaptures":{"0":{"name":"keyword.control.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.case-terminator.groovy"}}},{"name":"meta.declaration.assertion.groovy","begin":"\\b(assert)\\s","end":"$|;|}","patterns":[{"name":"keyword.operator.assert.expression-seperator.groovy","match":":"},{"include":"#groovy-code-minus-map-keys"}],"beginCaptures":{"1":{"name":"keyword.control.assert.groovy"}}},{"name":"keyword.other.throws.groovy","match":"\\b(throws)\\b"}]},"keyword-operator":{"patterns":[{"name":"keyword.operator.as.groovy","match":"\\b(as)\\b"},{"name":"keyword.operator.in.groovy","match":"\\b(in)\\b"},{"name":"keyword.operator.elvis.groovy","match":"\\?\\:"},{"name":"keyword.operator.spreadmap.groovy","match":"\\*\\:"},{"name":"keyword.operator.range.groovy","match":"\\.\\."},{"name":"keyword.operator.arrow.groovy","match":"\\-\u003e"},{"name":"keyword.operator.leftshift.groovy","match":"\u003c\u003c"},{"name":"keyword.operator.navigation.groovy","match":"(?\u003c=\\S)\\.(?=\\S)"},{"name":"keyword.operator.safe-navigation.groovy","match":"(?\u003c=\\S)\\?\\.(?=\\S)"},{"name":"meta.evaluation.ternary.groovy","begin":"\\?","end":"(?=$|\\)|}|])","patterns":[{"name":"keyword.operator.ternary.expression-seperator.groovy","match":":"},{"include":"#groovy-code-minus-map-keys"}],"beginCaptures":{"0":{"name":"keyword.operator.ternary.groovy"}}},{"name":"keyword.operator.match.groovy","match":"==~"},{"name":"keyword.operator.find.groovy","match":"=~"},{"name":"keyword.operator.instanceof.groovy","match":"\\b(instanceof)\\b"},{"name":"keyword.operator.comparison.groovy","match":"(===|==|!=|\u003c=|\u003e=|\u003c=\u003e|\u003c\u003e|\u003c|\u003e|\u003c\u003c)"},{"name":"keyword.operator.assignment.groovy","match":"="},{"name":"keyword.operator.increment-decrement.groovy","match":"(\\-\\-|\\+\\+)"},{"name":"keyword.operator.arithmetic.groovy","match":"(\\-|\\+|\\*|\\/|%)"},{"name":"keyword.operator.logical.groovy","match":"(!|\u0026\u0026|\\|\\|)"}]},"language-variables":{"patterns":[{"name":"variable.language.groovy","match":"\\b(this|super)\\b"}]},"map-keys":{"patterns":[{"match":"(\\w+)\\s*(:)","captures":{"1":{"name":"constant.other.key.groovy"},"2":{"name":"punctuation.definition.seperator.key-value.groovy"}}}]},"method-call":{"name":"meta.method-call.groovy","begin":"([\\w$]+)(\\()","end":"\\)","patterns":[{"name":"punctuation.definition.seperator.parameter.groovy","match":","},{"include":"#groovy-code"}],"beginCaptures":{"1":{"name":"meta.method.groovy"},"2":{"name":"punctuation.definition.method-parameters.begin.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.method-parameters.end.groovy"}}},"method-content":{"patterns":[{"match":"\\s"},{"include":"#annotations"},{"name":"meta.method.return-type.java","begin":"(?=(?:\\w|\u003c)[^\\(]*\\s+(?:[\\w$]|\u003c)+\\s*\\()","end":"(?=[\\w$]+\\s*\\()","patterns":[{"include":"#storage-modifiers"},{"include":"#types"}]},{"name":"meta.definition.method.signature.java","begin":"([\\w$]+)\\s*\\(","end":"\\)","patterns":[{"name":"meta.method.parameters.groovy","begin":"(?=[^)])","end":"(?=\\))","patterns":[{"name":"meta.method.parameter.groovy","begin":"(?=[^,)])","end":"(?=,|\\))","patterns":[{"name":"punctuation.definition.separator.groovy","match":","},{"name":"meta.parameter.default.groovy","begin":"=","end":"(?=,|\\))","patterns":[{"include":"#groovy-code"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.groovy"}}},{"include":"#parameters"}]}]}],"beginCaptures":{"1":{"name":"entity.name.function.java"}}},{"name":"meta.method.paramerised-type.groovy","begin":"(?=\u003c)","end":"(?=\\s)","patterns":[{"name":"storage.type.parameters.groovy","begin":"\u003c","end":"\u003e","patterns":[{"include":"#types"},{"name":"punctuation.definition.seperator.groovy","match":","}]}]},{"name":"meta.throwables.groovy","begin":"throws","end":"(?={|;)|^(?=\\s*(?:[^{\\s]|$))","patterns":[{"include":"#object-types"}],"beginCaptures":{"0":{"name":"storage.modifier.groovy"}}},{"name":"meta.method.body.java","begin":"{","end":"(?=})","patterns":[{"include":"#groovy-code"}]}]},"methods":{"name":"meta.definition.method.groovy","begin":"(?x:(?\u003c=;|^|{)(?=\\s*\n (?:\n (?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final) # visibility/modifier\n |\n (?:def)\n |\n (?:\n (?:\n (?:void|boolean|byte|char|short|int|float|long|double)\n |\n (?:@?(?:[a-zA-Z]\\w*\\.)*[A-Z]+\\w*) # object type\n )\n [\\[\\]]*\n (?:\u003c.*\u003e)?\n ) \n \n )\n \\s+\n ([^=]+\\s+)?\\w+\\s*\\(\n\t\t\t))","end":"}|(?=[^{])","patterns":[{"include":"#method-content"}],"applyEndPatternLast":true},"nest_curly":{"begin":"\\{","end":"\\}","patterns":[{"include":"#nest_curly"}],"captures":{"0":{"name":"punctuation.section.scope.groovy"}}},"numbers":{"patterns":[{"name":"constant.numeric.groovy","match":"((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b"}]},"object-types":{"patterns":[{"name":"storage.type.generic.groovy","begin":"\\b((?:[a-z]\\w*\\.)*(?:[A-Z]+\\w*[a-z]+\\w*|UR[LI]))\u003c","end":"\u003e|[^\\w\\s,\\?\u003c\\[\\]]","patterns":[{"include":"#object-types"},{"name":"storage.type.generic.groovy","begin":"\u003c","end":"\u003e|[^\\w\\s,\\[\\]\u003c]"}]},{"name":"storage.type.object.array.groovy","begin":"\\b((?:[a-z]\\w*\\.)*[A-Z]+\\w*[a-z]+\\w*)(?=\\[)","end":"(?=[^\\]\\s])","patterns":[{"begin":"\\[","end":"\\]","patterns":[{"include":"#groovy"}]}]},{"name":"storage.type.groovy","match":"\\b(?:[a-zA-Z]\\w*\\.)*(?:[A-Z]+\\w*[a-z]+\\w*|UR[LI])\\b"}]},"object-types-inherited":{"patterns":[{"name":"entity.other.inherited-class.groovy","begin":"\\b((?:[a-zA-Z]\\w*\\.)*[A-Z]+\\w*[a-z]+\\w*)\u003c","end":"\u003e|[^\\w\\s,\\?\u003c\\[\\]]","patterns":[{"include":"#object-types-inherited"},{"name":"storage.type.generic.groovy","begin":"\u003c","end":"\u003e|[^\\w\\s,\\[\\]\u003c]"}]},{"name":"entity.other.inherited-class.groovy","match":"\\b(?:[a-zA-Z]\\w*(\\.))*[A-Z]+\\w*[a-z]+\\w*\\b","captures":{"1":{"name":"keyword.operator.dereference.groovy"}}}]},"parameters":{"patterns":[{"include":"#annotations"},{"include":"#storage-modifiers"},{"include":"#types"},{"name":"variable.parameter.method.groovy","match":"\\w+"}]},"parens":{"begin":"\\(","end":"\\)","patterns":[{"include":"#groovy-code"}]},"primitive-arrays":{"patterns":[{"name":"storage.type.primitive.array.groovy","match":"\\b(?:void|boolean|byte|char|short|int|float|long|double)(\\[\\])*\\b"}]},"primitive-types":{"patterns":[{"name":"storage.type.primitive.groovy","match":"\\b(?:void|boolean|byte|char|short|int|float|long|double)\\b"}]},"regexp":{"patterns":[{"name":"string.regexp.groovy","begin":"/(?=[^/]+/([^\u003e]|$))","end":"/","patterns":[{"name":"constant.character.escape.groovy","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.regexp.begin.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.regexp.end.groovy"}}},{"name":"string.regexp.compiled.groovy","begin":"~\"","end":"\"","patterns":[{"name":"constant.character.escape.groovy","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.regexp.begin.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.regexp.end.groovy"}}}]},"storage-modifiers":{"patterns":[{"name":"storage.modifier.access-control.groovy","match":"\\b(private|protected|public)\\b"},{"name":"storage.modifier.static.groovy","match":"\\b(static)\\b"},{"name":"storage.modifier.final.groovy","match":"\\b(final)\\b"},{"name":"storage.modifier.other.groovy","match":"\\b(native|synchronized|abstract|threadsafe|transient)\\b"}]},"string-quoted-double":{"name":"string.quoted.double.groovy","begin":"\"","end":"\"","patterns":[{"include":"#string-quoted-double-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.groovy"}}},"string-quoted-double-contents":{"patterns":[{"name":"constant.character.escape.groovy","match":"\\\\."},{"name":"variable.other.interpolated.groovy","begin":"\\$\\w","end":"(?=\\W)","patterns":[{"name":"variable.other.interpolated.groovy","match":"\\w"},{"name":"keyword.other.dereference.groovy","match":"\\."}],"applyEndPatternLast":true},{"name":"source.groovy.embedded.source","begin":"\\$\\{","end":"\\}","patterns":[{"include":"#nest_curly"}],"captures":{"0":{"name":"punctuation.section.embedded.groovy"}}}]},"string-quoted-double-multiline":{"name":"string.quoted.double.multiline.groovy","begin":"\"\"\"","end":"\"\"\"","patterns":[{"include":"#string-quoted-double-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.groovy"}}},"string-quoted-single":{"name":"string.quoted.single.groovy","begin":"'","end":"'","patterns":[{"include":"#string-quoted-single-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.groovy"}}},"string-quoted-single-contents":{"patterns":[{"name":"constant.character.escape.groovy","match":"\\\\."}]},"string-quoted-single-multiline":{"name":"string.quoted.single.multiline.groovy","begin":"'''","end":"'''","patterns":[{"include":"#string-quoted-single-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.groovy"}}},"strings":{"patterns":[{"include":"#string-quoted-double-multiline"},{"include":"#string-quoted-single-multiline"},{"include":"#string-quoted-double"},{"include":"#string-quoted-single"},{"include":"#regexp"}]},"structures":{"name":"meta.structure.groovy","begin":"\\[","end":"\\]","patterns":[{"include":"#groovy-code"},{"name":"punctuation.definition.separator.groovy","match":","}],"beginCaptures":{"0":{"name":"punctuation.definition.structure.begin.groovy"}},"endCaptures":{"0":{"name":"punctuation.definition.structure.end.groovy"}}},"support-functions":{"patterns":[{"name":"support.function.print.groovy","match":"(?x)\\b(?:sprintf|print(?:f|ln)?)\\b"},{"name":"support.function.testing.groovy","match":"(?x)\\b(?:shouldFail|fail(?:NotEquals)?|ass(?:ume|ert(?:S(?:cript|ame)|N(?:ot(?:Same|\n\t\t\t\t\tNull)|ull)|Contains|T(?:hat|oString|rue)|Inspect|Equals|False|Length|\n\t\t\t\t\tArrayEquals)))\\b"}]},"types":{"patterns":[{"name":"storage.type.def.groovy","match":"\\b(def)\\b"},{"include":"#primitive-types"},{"include":"#primitive-arrays"},{"include":"#object-types"}]},"values":{"patterns":[{"include":"#language-variables"},{"include":"#strings"},{"include":"#numbers"},{"include":"#constants"},{"include":"#types"},{"include":"#structures"},{"include":"#method-call"}]},"variables":{"patterns":[{"name":"meta.definition.variable.groovy","begin":"(?x:(?=\n (?:\n (?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final) # visibility/modifier\n |\n (?:def)\n |\n (?:void|boolean|byte|char|short|int|float|long|double)\n |\n (?:(?:[a-z]\\w*\\.)*[A-Z]+\\w*) # object type\n )\n \\s+\n [\\w\\d_\u003c\u003e\\[\\],\\s]+\n (?:=|$)\n \n \t\t\t))","end":";|$","patterns":[{"match":"\\s"},{"match":"([A-Z_0-9]+)\\s+(?=\\=)","captures":{"1":{"name":"constant.variable.groovy"}}},{"match":"(\\w[^\\s,]*)\\s+(?=\\=)","captures":{"1":{"name":"meta.definition.variable.name.groovy"}}},{"begin":"=","end":"$","patterns":[{"include":"#groovy-code"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.groovy"}}},{"match":"(\\w[^\\s=]*)(?=\\s*($|;))","captures":{"1":{"name":"meta.definition.variable.name.groovy"}}},{"include":"#groovy-code"}]}],"applyEndPatternLast":true}}}
|