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,19 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "ObjectScript CSP",
|
3
|
-
"scopeName": "source.objectscript_csp",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#inline-html"
|
7
|
-
}
|
8
|
-
],
|
9
|
-
"repository": {
|
10
|
-
"inline-html": {
|
11
|
-
"name": "meta.embedded.inline.html",
|
12
|
-
"patterns": [
|
13
|
-
{
|
14
|
-
"include": "text.html.basic"
|
15
|
-
}
|
16
|
-
]
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
1
|
+
{"name":"ObjectScript CSP","scopeName":"source.objectscript_csp","patterns":[{"include":"#inline-html"}],"repository":{"inline-html":{"name":"meta.embedded.inline.html","patterns":[{"include":"text.html.basic"}]}}}
|
@@ -1,226 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "ObjectScript Macros",
|
3
|
-
"scopeName": "source.objectscript_macros",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#include"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"include": "#dim"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"include": "#define"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"include": "#def1arg"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"include": "#ifdef"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"include": "#comment-line"
|
22
|
-
}
|
23
|
-
],
|
24
|
-
"repository": {
|
25
|
-
"comment-line": {
|
26
|
-
"patterns": [
|
27
|
-
{
|
28
|
-
"name": "comment.line.objectscript",
|
29
|
-
"match": "^///.*$"
|
30
|
-
},
|
31
|
-
{
|
32
|
-
"name": "comment.line.objectscript",
|
33
|
-
"match": "\\s+//.*$"
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"name": "comment.line.objectscript",
|
37
|
-
"match": "\\s+;.*$"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"name": "comment.line.objectscript",
|
41
|
-
"match": "^\\s*#;.*$"
|
42
|
-
},
|
43
|
-
{
|
44
|
-
"name": "comment.block.objectscript",
|
45
|
-
"begin": "/\\*",
|
46
|
-
"end": "\\*/",
|
47
|
-
"beginCaptures": {
|
48
|
-
"0": {
|
49
|
-
"name": "punctuation.definition.objectscript"
|
50
|
-
}
|
51
|
-
},
|
52
|
-
"endCaptures": {
|
53
|
-
"0": {
|
54
|
-
"name": "punctuation.definition.objectscript"
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
]
|
59
|
-
},
|
60
|
-
"continue": {
|
61
|
-
"patterns": [
|
62
|
-
{
|
63
|
-
"name": "keyword.control.objectscript",
|
64
|
-
"match": "(\\s+\\#\\#(?i)(continue)\\s*)"
|
65
|
-
}
|
66
|
-
]
|
67
|
-
},
|
68
|
-
"def1arg": {
|
69
|
-
"patterns": [
|
70
|
-
{
|
71
|
-
"name": "meta.preprocessor.objectscript",
|
72
|
-
"begin": "^\\s*(\\#\\s*(?:(?i)def1arg))\\s+((?\u003cid\u003e[a-zA-Z%][a-zA-Z0-9]*))(?:(\\()(\\s*\\g\u003cid\u003e\\s*)(\\)))",
|
73
|
-
"end": "(?\u003c!\\#\\#continue)\\n",
|
74
|
-
"patterns": [
|
75
|
-
{
|
76
|
-
"include": "#comment-line"
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"include": "#continue"
|
80
|
-
},
|
81
|
-
{
|
82
|
-
"include": "#digits"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"include": "#macros"
|
86
|
-
},
|
87
|
-
{
|
88
|
-
"include": "source.objectscript"
|
89
|
-
}
|
90
|
-
],
|
91
|
-
"beginCaptures": {
|
92
|
-
"1": {
|
93
|
-
"name": "keyword.control.objectscript"
|
94
|
-
},
|
95
|
-
"2": {
|
96
|
-
"name": "entity.name.objectscript"
|
97
|
-
},
|
98
|
-
"4": {
|
99
|
-
"name": "punctuation.definition.objectscript"
|
100
|
-
},
|
101
|
-
"5": {
|
102
|
-
"name": "variable.parameter.objectscript"
|
103
|
-
},
|
104
|
-
"6": {
|
105
|
-
"name": "punctuation.definition.objectscript"
|
106
|
-
}
|
107
|
-
}
|
108
|
-
}
|
109
|
-
]
|
110
|
-
},
|
111
|
-
"define": {
|
112
|
-
"patterns": [
|
113
|
-
{
|
114
|
-
"name": "meta.preprocessor.objectscript",
|
115
|
-
"begin": "^\\s*(\\#\\s*(?:(?i)define))\\s+((?\u003cid\u003e[a-zA-Z%][a-zA-Z0-9]*))(?:(\\()(\\s*\\g\u003cid\u003e\\s*((,)\\s*\\g\u003cid\u003e\\s*)*)(\\)))?",
|
116
|
-
"end": "(?\u003c!\\#\\#continue)\\n",
|
117
|
-
"patterns": [
|
118
|
-
{
|
119
|
-
"include": "#comment-line"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"include": "#continue"
|
123
|
-
},
|
124
|
-
{
|
125
|
-
"include": "#macros"
|
126
|
-
},
|
127
|
-
{
|
128
|
-
"include": "source.objectscript"
|
129
|
-
}
|
130
|
-
],
|
131
|
-
"beginCaptures": {
|
132
|
-
"1": {
|
133
|
-
"name": "keyword.control.objectscript"
|
134
|
-
},
|
135
|
-
"2": {
|
136
|
-
"name": "entity.name.objectscript"
|
137
|
-
},
|
138
|
-
"4": {
|
139
|
-
"name": "punctuation.definition.objectscript"
|
140
|
-
},
|
141
|
-
"5": {
|
142
|
-
"name": "variable.parameter.objectscript"
|
143
|
-
},
|
144
|
-
"7": {
|
145
|
-
"name": "punctuation.definition.objectscript"
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
149
|
-
]
|
150
|
-
},
|
151
|
-
"dim": {
|
152
|
-
"patterns": [
|
153
|
-
{
|
154
|
-
"name": "meta.preprocessor.objectscript",
|
155
|
-
"match": "^\\s*(\\#\\s*(?:(?i)dim))\\s+((?\u003cid\u003e[a-zA-Z%][a-zA-Z0-9]*))(?:\\s*(,)\\s*((\\g\u003cid\u003e)*))*(?:\\s+((?i)As)(?:\\s(\\g\u003cid\u003e(?:\\.\\g\u003cid\u003e)*)))?",
|
156
|
-
"captures": {
|
157
|
-
"1": {
|
158
|
-
"name": "keyword.control.objectscript"
|
159
|
-
},
|
160
|
-
"2": {
|
161
|
-
"name": "variable.name"
|
162
|
-
},
|
163
|
-
"4": {
|
164
|
-
"name": "punctuation.definition.objectscript"
|
165
|
-
},
|
166
|
-
"5": {
|
167
|
-
"name": "variable.name"
|
168
|
-
},
|
169
|
-
"7": {
|
170
|
-
"name": "keyword.control.objectscript"
|
171
|
-
},
|
172
|
-
"8": {
|
173
|
-
"name": "entity.name.class.objectscript"
|
174
|
-
}
|
175
|
-
}
|
176
|
-
}
|
177
|
-
]
|
178
|
-
},
|
179
|
-
"ifdef": {
|
180
|
-
"patterns": [
|
181
|
-
{
|
182
|
-
"contentName": "meta.preprocessor.objectscript",
|
183
|
-
"begin": "^\\s*(#\\s*(?i)(?:if|ifdef|ifndef|elif|else|undef|endif))\\b",
|
184
|
-
"end": "(?=(?:;|//|/\\*))|$",
|
185
|
-
"patterns": [
|
186
|
-
{
|
187
|
-
"include": "#digits"
|
188
|
-
},
|
189
|
-
{
|
190
|
-
"include": "#comment-line"
|
191
|
-
}
|
192
|
-
],
|
193
|
-
"beginCaptures": {
|
194
|
-
"1": {
|
195
|
-
"name": "keyword.control.objectscript"
|
196
|
-
}
|
197
|
-
}
|
198
|
-
}
|
199
|
-
]
|
200
|
-
},
|
201
|
-
"include": {
|
202
|
-
"patterns": [
|
203
|
-
{
|
204
|
-
"begin": "^\\s*(\\#\\s*(?:(?i)include))\\s+([a-zA-Z%][a-zA-Z0-9]*)",
|
205
|
-
"end": "(?=$)",
|
206
|
-
"beginCaptures": {
|
207
|
-
"1": {
|
208
|
-
"name": "keyword.other.objectscript"
|
209
|
-
},
|
210
|
-
"2": {
|
211
|
-
"name": "entity.name.objectscript"
|
212
|
-
}
|
213
|
-
}
|
214
|
-
}
|
215
|
-
]
|
216
|
-
},
|
217
|
-
"macros": {
|
218
|
-
"patterns": [
|
219
|
-
{
|
220
|
-
"name": "support.constant",
|
221
|
-
"match": "\\$\\$\\$[a-zA-Z]([a-zA-Z0-9])*"
|
222
|
-
}
|
223
|
-
]
|
224
|
-
}
|
225
|
-
}
|
226
|
-
}
|
1
|
+
{"name":"ObjectScript Macros","scopeName":"source.objectscript_macros","patterns":[{"include":"#include"},{"include":"#dim"},{"include":"#define"},{"include":"#def1arg"},{"include":"#ifdef"},{"include":"#comment-line"}],"repository":{"comment-line":{"patterns":[{"name":"comment.line.objectscript","match":"^///.*$"},{"name":"comment.line.objectscript","match":"\\s+//.*$"},{"name":"comment.line.objectscript","match":"\\s+;.*$"},{"name":"comment.line.objectscript","match":"^\\s*#;.*$"},{"name":"comment.block.objectscript","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.objectscript"}},"endCaptures":{"0":{"name":"punctuation.definition.objectscript"}}}]},"continue":{"patterns":[{"name":"keyword.control.objectscript","match":"(\\s+\\#\\#(?i)(continue)\\s*)"}]},"def1arg":{"patterns":[{"name":"meta.preprocessor.objectscript","begin":"^\\s*(\\#\\s*(?:(?i)def1arg))\\s+((?\u003cid\u003e[a-zA-Z%][a-zA-Z0-9]*))(?:(\\()(\\s*\\g\u003cid\u003e\\s*)(\\)))","end":"(?\u003c!\\#\\#continue)\\n","patterns":[{"include":"#comment-line"},{"include":"#continue"},{"include":"#digits"},{"include":"#macros"},{"include":"source.objectscript"}],"beginCaptures":{"1":{"name":"keyword.control.objectscript"},"2":{"name":"entity.name.objectscript"},"4":{"name":"punctuation.definition.objectscript"},"5":{"name":"variable.parameter.objectscript"},"6":{"name":"punctuation.definition.objectscript"}}}]},"define":{"patterns":[{"name":"meta.preprocessor.objectscript","begin":"^\\s*(\\#\\s*(?:(?i)define))\\s+((?\u003cid\u003e[a-zA-Z%][a-zA-Z0-9]*))(?:(\\()(\\s*\\g\u003cid\u003e\\s*((,)\\s*\\g\u003cid\u003e\\s*)*)(\\)))?","end":"(?\u003c!\\#\\#continue)\\n","patterns":[{"include":"#comment-line"},{"include":"#continue"},{"include":"#macros"},{"include":"source.objectscript"}],"beginCaptures":{"1":{"name":"keyword.control.objectscript"},"2":{"name":"entity.name.objectscript"},"4":{"name":"punctuation.definition.objectscript"},"5":{"name":"variable.parameter.objectscript"},"7":{"name":"punctuation.definition.objectscript"}}}]},"dim":{"patterns":[{"name":"meta.preprocessor.objectscript","match":"^\\s*(\\#\\s*(?:(?i)dim))\\s+((?\u003cid\u003e[a-zA-Z%][a-zA-Z0-9]*))(?:\\s*(,)\\s*((\\g\u003cid\u003e)*))*(?:\\s+((?i)As)(?:\\s(\\g\u003cid\u003e(?:\\.\\g\u003cid\u003e)*)))?","captures":{"1":{"name":"keyword.control.objectscript"},"2":{"name":"variable.name"},"4":{"name":"punctuation.definition.objectscript"},"5":{"name":"variable.name"},"7":{"name":"keyword.control.objectscript"},"8":{"name":"entity.name.class.objectscript"}}}]},"ifdef":{"patterns":[{"contentName":"meta.preprocessor.objectscript","begin":"^\\s*(#\\s*(?i)(?:if|ifdef|ifndef|elif|else|undef|endif))\\b","end":"(?=(?:;|//|/\\*))|$","patterns":[{"include":"#digits"},{"include":"#comment-line"}],"beginCaptures":{"1":{"name":"keyword.control.objectscript"}}}]},"include":{"patterns":[{"begin":"^\\s*(\\#\\s*(?:(?i)include))\\s+([a-zA-Z%][a-zA-Z0-9]*)","end":"(?=$)","beginCaptures":{"1":{"name":"keyword.other.objectscript"},"2":{"name":"entity.name.objectscript"}}}]},"macros":{"patterns":[{"name":"support.constant","match":"\\$\\$\\$[a-zA-Z]([a-zA-Z0-9])*"}]}}}
|
data/grammars/source.ocaml.json
CHANGED
@@ -1,1418 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "OCaml",
|
3
|
-
"scopeName": "source.ocaml",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "meta.module.binding",
|
7
|
-
"match": "\\b(let)\\s+(module)\\s+([A-Z][a-zA-Z0-9'_]*)\\s*(=)",
|
8
|
-
"captures": {
|
9
|
-
"1": {
|
10
|
-
"name": "keyword.other.module-binding.ocaml"
|
11
|
-
},
|
12
|
-
"2": {
|
13
|
-
"name": "keyword.other.module-definition.ocaml"
|
14
|
-
},
|
15
|
-
"3": {
|
16
|
-
"name": "support.other.module.ocaml"
|
17
|
-
},
|
18
|
-
"4": {
|
19
|
-
"name": "punctuation.separator.module-binding.ocmal"
|
20
|
-
}
|
21
|
-
}
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"name": "meta.module.openbinding",
|
25
|
-
"begin": "\\b(let)\\s+(open)\\s+([A-Z][a-zA-Z0-9'_]*)(?=(\\.[A-Z][a-zA-Z0-9_]*)*)",
|
26
|
-
"end": "(\\s|$)",
|
27
|
-
"patterns": [
|
28
|
-
{
|
29
|
-
"name": "support.other.module.ocaml",
|
30
|
-
"match": "(\\.)([A-Z][a-zA-Z0-9'_]*)",
|
31
|
-
"captures": {
|
32
|
-
"1": {
|
33
|
-
"name": "punctuation.separator.module-reference.ocaml"
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
],
|
38
|
-
"beginCaptures": {
|
39
|
-
"1": {
|
40
|
-
"name": "keyword.other.module-binding.ocaml"
|
41
|
-
},
|
42
|
-
"2": {
|
43
|
-
"name": "keyword.other.ocaml"
|
44
|
-
},
|
45
|
-
"3": {
|
46
|
-
"name": "support.other.module.ocaml"
|
47
|
-
}
|
48
|
-
}
|
49
|
-
},
|
50
|
-
{
|
51
|
-
"name": "meta.function.ocaml",
|
52
|
-
"begin": "\\b(let|and)\\s+(?!\\(\\*)((rec\\s+)([a-z_][a-zA-Z0-9_']*)\\b|([a-z_][a-zA-Z0-9_']*|\\([^)]+\\))(?=\\s)((?=\\s*=\\s*(?=fun(?:ction)\\b))|(?!\\s*=)))",
|
53
|
-
"end": "(?:(:)\\s*([^=]+))?(?:(=)|(=)\\s*(?=fun(?:ction)\\b))",
|
54
|
-
"patterns": [
|
55
|
-
{
|
56
|
-
"include": "#variables"
|
57
|
-
}
|
58
|
-
],
|
59
|
-
"beginCaptures": {
|
60
|
-
"1": {
|
61
|
-
"name": "keyword.other.function-definition.ocaml"
|
62
|
-
},
|
63
|
-
"3": {
|
64
|
-
"name": "keyword.other.funtion-definition.ocaml"
|
65
|
-
},
|
66
|
-
"4": {
|
67
|
-
"name": "entity.name.function.ocaml"
|
68
|
-
},
|
69
|
-
"5": {
|
70
|
-
"name": "entity.name.function.ocaml"
|
71
|
-
}
|
72
|
-
},
|
73
|
-
"endCaptures": {
|
74
|
-
"1": {
|
75
|
-
"name": "punctuation.separator.function.type-constraint.ocaml"
|
76
|
-
},
|
77
|
-
"2": {
|
78
|
-
"name": "storage.type.ocaml"
|
79
|
-
},
|
80
|
-
"3": {
|
81
|
-
"name": "keyword.operator.ocaml"
|
82
|
-
},
|
83
|
-
"4": {
|
84
|
-
"name": "keyword.operator.ocaml"
|
85
|
-
}
|
86
|
-
}
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"name": "meta.function.anonymous.ocaml",
|
90
|
-
"begin": "(\\(|\\s)(?=fun\\s)",
|
91
|
-
"end": "(\\))",
|
92
|
-
"patterns": [
|
93
|
-
{
|
94
|
-
"name": "meta.function.anonymous.definition.ocaml",
|
95
|
-
"begin": "(?\u003c=(\\(|\\s))(fun)\\s",
|
96
|
-
"end": "(-\u003e)",
|
97
|
-
"patterns": [
|
98
|
-
{
|
99
|
-
"include": "#variables"
|
100
|
-
}
|
101
|
-
],
|
102
|
-
"beginCaptures": {
|
103
|
-
"2": {
|
104
|
-
"name": "keyword.other.function-definition.ocaml"
|
105
|
-
}
|
106
|
-
},
|
107
|
-
"endCaptures": {
|
108
|
-
"1": {
|
109
|
-
"name": "punctuation.separator.function-definition.ocaml"
|
110
|
-
}
|
111
|
-
}
|
112
|
-
},
|
113
|
-
{
|
114
|
-
"include": "$self"
|
115
|
-
}
|
116
|
-
],
|
117
|
-
"beginCaptures": {
|
118
|
-
"1": {
|
119
|
-
"name": "punctuation.definition.function.anonymous.ocaml"
|
120
|
-
}
|
121
|
-
},
|
122
|
-
"endCaptures": {
|
123
|
-
"1": {
|
124
|
-
"name": "punctuation.definition.function.anonymous.ocaml"
|
125
|
-
}
|
126
|
-
}
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"name": "meta.type-definition-group.ocaml",
|
130
|
-
"begin": "^\\s*(?=type\\s)",
|
131
|
-
"end": "\\b(?=let|end|val)|^\\s*$",
|
132
|
-
"patterns": [
|
133
|
-
{
|
134
|
-
"name": "meta.type-definition.ocaml",
|
135
|
-
"begin": "\\b(type|and)\\s+([^=]*)(=)?",
|
136
|
-
"end": "(?=\\b(type|and|let|end|val)\\b)|(?=^\\s*$)",
|
137
|
-
"patterns": [
|
138
|
-
{
|
139
|
-
"include": "#typedefs"
|
140
|
-
}
|
141
|
-
],
|
142
|
-
"beginCaptures": {
|
143
|
-
"1": {
|
144
|
-
"name": "keyword.other.type-definition.ocaml"
|
145
|
-
},
|
146
|
-
"2": {
|
147
|
-
"name": "storage.type.ocaml"
|
148
|
-
},
|
149
|
-
"3": {
|
150
|
-
"name": "punctuation.separator.type-definition.ocaml"
|
151
|
-
}
|
152
|
-
}
|
153
|
-
}
|
154
|
-
]
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"name": "meta.pattern-match.ocaml",
|
158
|
-
"begin": "\\b(with|function)(?=(\\s*$|.*-\u003e))\\b|((?\u003c!\\S)(\\|)(?=(\\w|\\s).*-\u003e))",
|
159
|
-
"end": "(?:(-\u003e)|\\b(when)\\b|\\s(?=\\|))",
|
160
|
-
"patterns": [
|
161
|
-
{
|
162
|
-
"include": "#matchpatterns"
|
163
|
-
}
|
164
|
-
],
|
165
|
-
"beginCaptures": {
|
166
|
-
"1": {
|
167
|
-
"name": "keyword.control.match-definition.ocaml"
|
168
|
-
},
|
169
|
-
"2": {
|
170
|
-
"name": "keyword.other.function-definition.ocaml"
|
171
|
-
},
|
172
|
-
"3": {
|
173
|
-
"name": "keyword.control.match-definition.ocaml"
|
174
|
-
}
|
175
|
-
},
|
176
|
-
"endCaptures": {
|
177
|
-
"1": {
|
178
|
-
"name": "punctuation.separator.match-definition.ocaml"
|
179
|
-
},
|
180
|
-
"2": {
|
181
|
-
"name": "keyword.control.match-condition.ocaml"
|
182
|
-
}
|
183
|
-
}
|
184
|
-
},
|
185
|
-
{
|
186
|
-
"name": "meta.class.type-definition.ocaml",
|
187
|
-
"match": "^[ \\t]*(class\\s+type\\s+)((\\[\\s*('[A-Za-z][a-zA-Z0-9_']*(?:\\s*,\\s*'[A-Za-z][a-zA-Z0-9_']*)*)\\s*\\]\\s+)?[a-z_][a-zA-Z0-9'_]*)",
|
188
|
-
"captures": {
|
189
|
-
"1": {
|
190
|
-
"name": "keyword.other.class-type-definition.ocaml"
|
191
|
-
},
|
192
|
-
"2": {
|
193
|
-
"name": "entity.name.type.class-type.ocaml"
|
194
|
-
},
|
195
|
-
"4": {
|
196
|
-
"name": "storage.type.ocaml"
|
197
|
-
}
|
198
|
-
}
|
199
|
-
},
|
200
|
-
{
|
201
|
-
"name": "meta.class.ocaml",
|
202
|
-
"begin": "^[ \\t]*(class)(?:\\s+(?!(?:virtual)\\s+))((\\[\\s*('[A-Za-z][a-zA-Z0-9_']*(?:\\s*,\\s*'[A-Za-z][a-zA-Z0-9_']*)*)\\s*\\]\\s+)?[a-z_][a-zA-Z0-9'_]*)",
|
203
|
-
"end": "(=)",
|
204
|
-
"patterns": [
|
205
|
-
{
|
206
|
-
"include": "#variables"
|
207
|
-
}
|
208
|
-
],
|
209
|
-
"beginCaptures": {
|
210
|
-
"1": {
|
211
|
-
"name": "keyword.other.class-definition.ocaml"
|
212
|
-
},
|
213
|
-
"2": {
|
214
|
-
"name": "entity.name.type.class.ocaml"
|
215
|
-
},
|
216
|
-
"4": {
|
217
|
-
"name": "storage.type.ocaml"
|
218
|
-
}
|
219
|
-
},
|
220
|
-
"endCaptures": {
|
221
|
-
"1": {
|
222
|
-
"name": "keyword.operator.ocaml"
|
223
|
-
}
|
224
|
-
}
|
225
|
-
},
|
226
|
-
{
|
227
|
-
"name": "meta.class.virtual.ocaml",
|
228
|
-
"begin": "^[ \\t]*(class\\s+virtual\\s+)((\\[\\s*('[A-Za-z][a-zA-Z0-9_']*(?:\\s*,\\s*'[A-Za-z][a-zA-Z0-9_']*)*)\\s*\\]\\s+)?[a-z_][a-zA-Z0-9'_]*)",
|
229
|
-
"end": "(=)",
|
230
|
-
"patterns": [
|
231
|
-
{
|
232
|
-
"include": "#variables"
|
233
|
-
}
|
234
|
-
],
|
235
|
-
"beginCaptures": {
|
236
|
-
"1": {
|
237
|
-
"name": "keyword.other.class-definition.ocaml"
|
238
|
-
},
|
239
|
-
"2": {
|
240
|
-
"name": "entity.name.type.class.ocaml"
|
241
|
-
},
|
242
|
-
"4": {
|
243
|
-
"name": "storage.type.ocaml"
|
244
|
-
}
|
245
|
-
},
|
246
|
-
"endCaptures": {
|
247
|
-
"1": {
|
248
|
-
"name": "keyword.operator.ocaml"
|
249
|
-
}
|
250
|
-
}
|
251
|
-
},
|
252
|
-
{
|
253
|
-
"name": "meta.class.virtual.type-definition.ocaml",
|
254
|
-
"match": "^[ \\t]*(class\\s+type\\s+virtual)((\\[\\s*('[A-Za-z][a-zA-Z0-9_']*(?:\\s*,\\s*'[A-Za-z][a-zA-Z0-9_']*)*)\\s*\\]\\s+)?[a-z_][a-zA-Z0-9'_]*)",
|
255
|
-
"captures": {
|
256
|
-
"1": {
|
257
|
-
"name": "keyword.other.class-type-definition.ocaml"
|
258
|
-
},
|
259
|
-
"2": {
|
260
|
-
"name": "entity.name.type.class-type.ocaml"
|
261
|
-
},
|
262
|
-
"4": {
|
263
|
-
"name": "storage.type.ocaml"
|
264
|
-
}
|
265
|
-
}
|
266
|
-
},
|
267
|
-
{
|
268
|
-
"name": "meta.record.ocaml",
|
269
|
-
"begin": "(\\{)",
|
270
|
-
"end": "(\\})",
|
271
|
-
"patterns": [
|
272
|
-
{
|
273
|
-
"name": "keyword.other.language.ocaml",
|
274
|
-
"match": "\\bwith\\b"
|
275
|
-
},
|
276
|
-
{
|
277
|
-
"name": "meta.record.definition.ocaml",
|
278
|
-
"begin": "(\\bmutable\\s+)?\\b([a-z_][a-zA-Z0-9_']*)\\s*(:)",
|
279
|
-
"end": "(;|(?=}))",
|
280
|
-
"patterns": [
|
281
|
-
{
|
282
|
-
"include": "#typedefs"
|
283
|
-
}
|
284
|
-
],
|
285
|
-
"beginCaptures": {
|
286
|
-
"1": {
|
287
|
-
"name": "keyword.other.storage.modifier.ocaml"
|
288
|
-
},
|
289
|
-
"2": {
|
290
|
-
"name": "source.ocaml"
|
291
|
-
},
|
292
|
-
"3": {
|
293
|
-
"name": "punctuation.definition.record.ocaml"
|
294
|
-
}
|
295
|
-
},
|
296
|
-
"endCaptures": {
|
297
|
-
"1": {
|
298
|
-
"name": "keyword.operator.ocaml"
|
299
|
-
}
|
300
|
-
}
|
301
|
-
},
|
302
|
-
{
|
303
|
-
"include": "$self"
|
304
|
-
}
|
305
|
-
],
|
306
|
-
"beginCaptures": {
|
307
|
-
"1": {
|
308
|
-
"name": "punctuation.definition.record.ocaml"
|
309
|
-
}
|
310
|
-
},
|
311
|
-
"endCaptures": {
|
312
|
-
"1": {
|
313
|
-
"name": "punctuation.definition.record.ocaml"
|
314
|
-
}
|
315
|
-
}
|
316
|
-
},
|
317
|
-
{
|
318
|
-
"name": "meta.object.ocaml",
|
319
|
-
"begin": "\\b(object)\\s*(?:(\\()(_?[a-z]+)(\\)))?\\s*$",
|
320
|
-
"end": "\\b(end)\\b",
|
321
|
-
"patterns": [
|
322
|
-
{
|
323
|
-
"name": "meta.method.ocaml",
|
324
|
-
"begin": "\\b(method)\\s+(virtual\\s+)?(private\\s+)?([a-z_][a-zA-Z0-9'_]*)",
|
325
|
-
"end": "(=|:)",
|
326
|
-
"patterns": [
|
327
|
-
{
|
328
|
-
"include": "#variables"
|
329
|
-
}
|
330
|
-
],
|
331
|
-
"beginCaptures": {
|
332
|
-
"1": {
|
333
|
-
"name": "keyword.other.method-definition.ocaml"
|
334
|
-
},
|
335
|
-
"2": {
|
336
|
-
"name": "keyword.other.method-definition.ocaml"
|
337
|
-
},
|
338
|
-
"3": {
|
339
|
-
"name": "keyword.other.method-restriction.ocaml"
|
340
|
-
},
|
341
|
-
"4": {
|
342
|
-
"name": "entity.name.function.method.ocaml"
|
343
|
-
}
|
344
|
-
},
|
345
|
-
"endCaptures": {
|
346
|
-
"1": {
|
347
|
-
"name": "keyword.operator.ocaml"
|
348
|
-
}
|
349
|
-
}
|
350
|
-
},
|
351
|
-
{
|
352
|
-
"name": "meta.object.type-constraint.ocaml",
|
353
|
-
"begin": "(constraint)\\s+([a-z_'][a-zA-Z0-9'_]*)\\s+(=)",
|
354
|
-
"end": "(#[a-z_][a-zA-Z0-9'_]*)|(int|char|float|string|list|array|bool|unit|exn|option|int32|int64|nativeint|format4|lazy_t)|([a-z_][a-zA-Z0-9'_]*)\\s*$",
|
355
|
-
"beginCaptures": {
|
356
|
-
"1": {
|
357
|
-
"name": "keyword.other.language.ocaml"
|
358
|
-
},
|
359
|
-
"2": {
|
360
|
-
"name": "storage.type.ocaml"
|
361
|
-
},
|
362
|
-
"3": {
|
363
|
-
"name": "keyword.operator.ocaml"
|
364
|
-
}
|
365
|
-
},
|
366
|
-
"endCaptures": {
|
367
|
-
"1": {
|
368
|
-
"name": "storage.type.polymorphic-variant.ocaml"
|
369
|
-
},
|
370
|
-
"2": {
|
371
|
-
"name": "storage.type.ocaml"
|
372
|
-
},
|
373
|
-
"3": {
|
374
|
-
"name": "storage.type.ocaml"
|
375
|
-
}
|
376
|
-
}
|
377
|
-
},
|
378
|
-
{
|
379
|
-
"include": "$self"
|
380
|
-
}
|
381
|
-
],
|
382
|
-
"beginCaptures": {
|
383
|
-
"1": {
|
384
|
-
"name": "keyword.other.object-definition.ocaml"
|
385
|
-
},
|
386
|
-
"2": {
|
387
|
-
"name": "punctuation.definition.self-binding.ocaml"
|
388
|
-
},
|
389
|
-
"3": {
|
390
|
-
"name": "entity.name.type.self-binding.ocaml"
|
391
|
-
},
|
392
|
-
"4": {
|
393
|
-
"name": "punctuation.definition.self-binding.ocaml"
|
394
|
-
}
|
395
|
-
},
|
396
|
-
"endCaptures": {
|
397
|
-
"1": {
|
398
|
-
"name": "keyword.control.object.ocaml"
|
399
|
-
},
|
400
|
-
"2": {
|
401
|
-
"name": "punctuation.terminator.expression.ocaml"
|
402
|
-
}
|
403
|
-
}
|
404
|
-
},
|
405
|
-
{
|
406
|
-
"name": "meta.method-call.ocaml",
|
407
|
-
"match": "(?\u003c=\\w|\\)|')(#)[a-z_][a-zA-Z0-9'_]*",
|
408
|
-
"captures": {
|
409
|
-
"1": {
|
410
|
-
"name": "punctuation.separator.method-call.ocaml"
|
411
|
-
}
|
412
|
-
}
|
413
|
-
},
|
414
|
-
{
|
415
|
-
"name": "meta.module.ocaml",
|
416
|
-
"match": "^[ \\t]*(module)\\s+([A-Z_][a-zA-Z0-9'_]*)(?:\\s*(:)\\s*([A-Z][a-zA-Z0-9'_]*)?)?",
|
417
|
-
"captures": {
|
418
|
-
"1": {
|
419
|
-
"name": "keyword.other.module-definition.ocaml"
|
420
|
-
},
|
421
|
-
"2": {
|
422
|
-
"name": "entity.name.type.module.ocaml"
|
423
|
-
},
|
424
|
-
"3": {
|
425
|
-
"name": "punctuation.separator.module-definition.ocaml"
|
426
|
-
},
|
427
|
-
"4": {
|
428
|
-
"name": "entity.name.type.module-type.ocaml"
|
429
|
-
}
|
430
|
-
}
|
431
|
-
},
|
432
|
-
{
|
433
|
-
"name": "meta.module.type.ocaml",
|
434
|
-
"match": "^[ \\t]*(module\\s+type\\s+)([A-Z][a-zA-Z0-9'_]*)",
|
435
|
-
"captures": {
|
436
|
-
"1": {
|
437
|
-
"name": "keyword.other.module-type-definition.ocaml"
|
438
|
-
},
|
439
|
-
"2": {
|
440
|
-
"name": "entity.name.type.module-type.ocaml"
|
441
|
-
}
|
442
|
-
}
|
443
|
-
},
|
444
|
-
{
|
445
|
-
"name": "meta.module.signature.ocaml",
|
446
|
-
"begin": "\\b(sig)\\b",
|
447
|
-
"end": "\\b(end)\\b",
|
448
|
-
"patterns": [
|
449
|
-
{
|
450
|
-
"include": "#module-signature"
|
451
|
-
},
|
452
|
-
{
|
453
|
-
"include": "$self"
|
454
|
-
}
|
455
|
-
],
|
456
|
-
"beginCaptures": {
|
457
|
-
"1": {
|
458
|
-
"name": "keyword.other.module.signature.ocaml"
|
459
|
-
}
|
460
|
-
},
|
461
|
-
"endCaptures": {
|
462
|
-
"1": {
|
463
|
-
"name": "keyword.other.module.signature.ocaml"
|
464
|
-
},
|
465
|
-
"2": {
|
466
|
-
"name": "punctuation.terminator.expression.ocaml"
|
467
|
-
},
|
468
|
-
"3": {
|
469
|
-
"name": "keyword.operator.ocaml"
|
470
|
-
}
|
471
|
-
}
|
472
|
-
},
|
473
|
-
{
|
474
|
-
"name": "meta.module.structure.ocaml",
|
475
|
-
"begin": "\\b(struct)\\b",
|
476
|
-
"end": "\\b(end)\\b",
|
477
|
-
"patterns": [
|
478
|
-
{
|
479
|
-
"include": "$self"
|
480
|
-
}
|
481
|
-
],
|
482
|
-
"beginCaptures": {
|
483
|
-
"1": {
|
484
|
-
"name": "keyword.other.module.structure.ocaml"
|
485
|
-
}
|
486
|
-
},
|
487
|
-
"endCaptures": {
|
488
|
-
"1": {
|
489
|
-
"name": "keyword.other.module.structure.ocaml"
|
490
|
-
}
|
491
|
-
}
|
492
|
-
},
|
493
|
-
{
|
494
|
-
"include": "#moduleref"
|
495
|
-
},
|
496
|
-
{
|
497
|
-
"name": "meta.module.open.ocaml",
|
498
|
-
"begin": "\\b(open)\\s+([A-Z][a-zA-Z0-9'_]*)(?=(\\.[A-Z][a-zA-Z0-9_]*)*)",
|
499
|
-
"end": "(\\s|$)",
|
500
|
-
"patterns": [
|
501
|
-
{
|
502
|
-
"name": "support.other.module.ocaml",
|
503
|
-
"match": "(\\.)([A-Z][a-zA-Z0-9'_]*)",
|
504
|
-
"captures": {
|
505
|
-
"1": {
|
506
|
-
"name": "punctuation.separator.module-reference.ocaml"
|
507
|
-
}
|
508
|
-
}
|
509
|
-
}
|
510
|
-
],
|
511
|
-
"beginCaptures": {
|
512
|
-
"1": {
|
513
|
-
"name": "keyword.other.ocaml"
|
514
|
-
},
|
515
|
-
"2": {
|
516
|
-
"name": "support.other.module.ocaml"
|
517
|
-
}
|
518
|
-
}
|
519
|
-
},
|
520
|
-
{
|
521
|
-
"name": "meta.exception.ocaml",
|
522
|
-
"match": "\\b(exception)\\s+([A-Z][a-zA-Z0-9'_]*)\\b",
|
523
|
-
"captures": {
|
524
|
-
"1": {
|
525
|
-
"name": "keyword.other.ocaml"
|
526
|
-
},
|
527
|
-
"2": {
|
528
|
-
"name": "entity.name.type.exception.ocaml"
|
529
|
-
}
|
530
|
-
}
|
531
|
-
},
|
532
|
-
{
|
533
|
-
"name": "source.camlp4.embedded.ocaml",
|
534
|
-
"begin": "(?=(\\[\u003c)(?![^\\[]+?[^\u003e]]))",
|
535
|
-
"end": "(\u003e])",
|
536
|
-
"patterns": [
|
537
|
-
{
|
538
|
-
"include": "source.camlp4.ocaml"
|
539
|
-
}
|
540
|
-
],
|
541
|
-
"endCaptures": {
|
542
|
-
"1": {
|
543
|
-
"name": "punctuation.definition.camlp4-stream.ocaml"
|
544
|
-
}
|
545
|
-
}
|
546
|
-
},
|
547
|
-
{
|
548
|
-
"include": "#strings"
|
549
|
-
},
|
550
|
-
{
|
551
|
-
"include": "#constants"
|
552
|
-
},
|
553
|
-
{
|
554
|
-
"include": "#comments"
|
555
|
-
},
|
556
|
-
{
|
557
|
-
"include": "#lists"
|
558
|
-
},
|
559
|
-
{
|
560
|
-
"include": "#arrays"
|
561
|
-
},
|
562
|
-
{
|
563
|
-
"name": "meta.type-constraint.ocaml",
|
564
|
-
"begin": "(\\()(?=(~[a-z][a-zA-Z0-9_]*:|(\"(\\\\\"|[^\"])*\")|[^\\(\\)~\"])+(?\u003c!:)(:\u003e|:(?![:=])))",
|
565
|
-
"end": "(?\u003c!:)(:\u003e|:(?![:=]))(.*?)(\\))",
|
566
|
-
"patterns": [
|
567
|
-
{
|
568
|
-
"include": "$self"
|
569
|
-
}
|
570
|
-
],
|
571
|
-
"beginCaptures": {
|
572
|
-
"1": {
|
573
|
-
"name": "punctuation.section.type-constraint.ocaml"
|
574
|
-
}
|
575
|
-
},
|
576
|
-
"endCaptures": {
|
577
|
-
"1": {
|
578
|
-
"name": "punctuation.separator.type-constraint.ocaml"
|
579
|
-
},
|
580
|
-
"2": {
|
581
|
-
"name": "storage.type.ocaml"
|
582
|
-
},
|
583
|
-
"3": {
|
584
|
-
"name": "punctuation.section.type-constraint.ocaml"
|
585
|
-
}
|
586
|
-
}
|
587
|
-
},
|
588
|
-
{
|
589
|
-
"name": "keyword.other.directive.ocaml",
|
590
|
-
"match": "^[ \\t]*#[a-zA-Z]+"
|
591
|
-
},
|
592
|
-
{
|
593
|
-
"name": "keyword.other.directive.line-number.ocaml",
|
594
|
-
"match": "^[ \\t]*#[0-9]*"
|
595
|
-
},
|
596
|
-
{
|
597
|
-
"include": "#storagetypes"
|
598
|
-
},
|
599
|
-
{
|
600
|
-
"name": "keyword.other.storage.modifier.ocaml",
|
601
|
-
"match": "\\b(mutable|ref)\\b"
|
602
|
-
},
|
603
|
-
{
|
604
|
-
"name": "entity.name.type.variant.polymorphic.ocaml",
|
605
|
-
"match": "`[A-Za-z][a-zA-Z0-9'_]*\\b"
|
606
|
-
},
|
607
|
-
{
|
608
|
-
"name": "entity.name.type.variant.ocaml",
|
609
|
-
"match": "\\b[A-Z][a-zA-Z0-9'_]*\\b"
|
610
|
-
},
|
611
|
-
{
|
612
|
-
"name": "keyword.operator.symbol.ocaml",
|
613
|
-
"match": "!=|:=|\u003e|\u003c"
|
614
|
-
},
|
615
|
-
{
|
616
|
-
"name": "keyword.operator.infix.floating-point.ocaml",
|
617
|
-
"match": "[*+/-]\\."
|
618
|
-
},
|
619
|
-
{
|
620
|
-
"name": "keyword.operator.prefix.floating-point.ocaml",
|
621
|
-
"match": "~-\\."
|
622
|
-
},
|
623
|
-
{
|
624
|
-
"name": "punctuation.definition.list.constructor.ocaml",
|
625
|
-
"match": "::"
|
626
|
-
},
|
627
|
-
{
|
628
|
-
"name": "punctuation.terminator.expression.ocaml",
|
629
|
-
"match": ";;"
|
630
|
-
},
|
631
|
-
{
|
632
|
-
"name": "punctuation.separator.ocaml",
|
633
|
-
"match": ";"
|
634
|
-
},
|
635
|
-
{
|
636
|
-
"name": "punctuation.separator.function-return.ocaml",
|
637
|
-
"match": "-\u003e"
|
638
|
-
},
|
639
|
-
{
|
640
|
-
"name": "keyword.operator.infix.ocaml",
|
641
|
-
"match": "[=\u003c\u003e@^\u0026+\\-*/$%|][|!$%\u0026*+./:\u003c=\u003e?@^~-]*"
|
642
|
-
},
|
643
|
-
{
|
644
|
-
"name": "keyword.operator.prefix.ocaml",
|
645
|
-
"match": "\\bnot\\b|!|[!\\?~][!$%\u0026*+./:\u003c=\u003e?@^~-]+"
|
646
|
-
},
|
647
|
-
{
|
648
|
-
"name": "entity.name.tag.label.ocaml",
|
649
|
-
"match": "~[a-z][a-z0-9'_]*(:)?",
|
650
|
-
"captures": {
|
651
|
-
"1": {
|
652
|
-
"name": "punctuation.separator.argument-label.ocaml"
|
653
|
-
}
|
654
|
-
}
|
655
|
-
},
|
656
|
-
{
|
657
|
-
"name": "meta.begin-end-group.ocaml",
|
658
|
-
"begin": "\\b(begin)\\b",
|
659
|
-
"end": "\\b(end)\\b",
|
660
|
-
"patterns": [
|
661
|
-
{
|
662
|
-
"include": "$self"
|
663
|
-
}
|
664
|
-
],
|
665
|
-
"beginCaptures": {
|
666
|
-
"1": {
|
667
|
-
"name": "keyword.control.begin-end.ocaml"
|
668
|
-
}
|
669
|
-
},
|
670
|
-
"endCaptures": {
|
671
|
-
"1": {
|
672
|
-
"name": "keyword.control.begin-end.ocaml"
|
673
|
-
}
|
674
|
-
}
|
675
|
-
},
|
676
|
-
{
|
677
|
-
"name": "meta.for-loop.ocaml",
|
678
|
-
"begin": "\\b(for)\\b",
|
679
|
-
"end": "\\b(done)\\b",
|
680
|
-
"patterns": [
|
681
|
-
{
|
682
|
-
"name": "keyword.control.loop.ocaml",
|
683
|
-
"match": "\\bdo\\b"
|
684
|
-
},
|
685
|
-
{
|
686
|
-
"include": "$self"
|
687
|
-
}
|
688
|
-
],
|
689
|
-
"beginCaptures": {
|
690
|
-
"1": {
|
691
|
-
"name": "keyword.control.for-loop.ocaml"
|
692
|
-
}
|
693
|
-
},
|
694
|
-
"endCaptures": {
|
695
|
-
"1": {
|
696
|
-
"name": "keyword.control.for-loop.ocaml"
|
697
|
-
}
|
698
|
-
}
|
699
|
-
},
|
700
|
-
{
|
701
|
-
"name": "meta.while-loop.ocaml",
|
702
|
-
"begin": "\\b(while)\\b",
|
703
|
-
"end": "\\b(done)\\b",
|
704
|
-
"patterns": [
|
705
|
-
{
|
706
|
-
"name": "keyword.control.loop.ocaml",
|
707
|
-
"match": "\\bdo\\b"
|
708
|
-
},
|
709
|
-
{
|
710
|
-
"include": "$self"
|
711
|
-
}
|
712
|
-
],
|
713
|
-
"beginCaptures": {
|
714
|
-
"1": {
|
715
|
-
"name": "keyword.control.while-loop.ocaml"
|
716
|
-
}
|
717
|
-
},
|
718
|
-
"endCaptures": {
|
719
|
-
"1": {
|
720
|
-
"name": "keyword.control.while-loop.ocaml"
|
721
|
-
}
|
722
|
-
}
|
723
|
-
},
|
724
|
-
{
|
725
|
-
"name": "meta.paren-group.ocaml",
|
726
|
-
"begin": "\\(",
|
727
|
-
"end": "\\)",
|
728
|
-
"patterns": [
|
729
|
-
{
|
730
|
-
"include": "$self"
|
731
|
-
}
|
732
|
-
]
|
733
|
-
},
|
734
|
-
{
|
735
|
-
"name": "keyword.operator.ocaml",
|
736
|
-
"match": "\\b(and|land|lor|lsl|lsr|asr|lnot|lxor|mod|or)\\b"
|
737
|
-
},
|
738
|
-
{
|
739
|
-
"name": "keyword.control.ocaml",
|
740
|
-
"match": "\\b(downto|if|else|match|then|to|when|with|try)\\b"
|
741
|
-
},
|
742
|
-
{
|
743
|
-
"name": "keyword.other.ocaml",
|
744
|
-
"match": "\\b(as|assert|class|constraint|exception|functor|in|include|inherit|initializer|lazy|let|mod|module|mutable|new|object|open|private|rec|sig|struct|type|virtual)\\b"
|
745
|
-
},
|
746
|
-
{
|
747
|
-
"include": "#module-signature"
|
748
|
-
},
|
749
|
-
{
|
750
|
-
"name": "invalid.illegal.unrecognized-character.ocaml",
|
751
|
-
"match": "(’|‘|“|”)"
|
752
|
-
}
|
753
|
-
],
|
754
|
-
"repository": {
|
755
|
-
"arrays": {
|
756
|
-
"patterns": [
|
757
|
-
{
|
758
|
-
"name": "meta.array.ocaml",
|
759
|
-
"begin": "(\\[\\|)",
|
760
|
-
"end": "(\\|])",
|
761
|
-
"patterns": [
|
762
|
-
{
|
763
|
-
"include": "#arrays"
|
764
|
-
},
|
765
|
-
{
|
766
|
-
"include": "$self"
|
767
|
-
}
|
768
|
-
],
|
769
|
-
"beginCaptures": {
|
770
|
-
"1": {
|
771
|
-
"name": "punctuation.definition.array.begin.ocaml"
|
772
|
-
}
|
773
|
-
},
|
774
|
-
"endCaptures": {
|
775
|
-
"1": {
|
776
|
-
"name": "punctuation.definition.array.end.ocaml"
|
777
|
-
}
|
778
|
-
}
|
779
|
-
}
|
780
|
-
]
|
781
|
-
},
|
782
|
-
"comments": {
|
783
|
-
"patterns": [
|
784
|
-
{
|
785
|
-
"name": "comment.block.ocaml",
|
786
|
-
"begin": "\\(\\*",
|
787
|
-
"end": "\\*\\)",
|
788
|
-
"patterns": [
|
789
|
-
{
|
790
|
-
"include": "#comments"
|
791
|
-
}
|
792
|
-
],
|
793
|
-
"beginCaptures": {
|
794
|
-
"0": {
|
795
|
-
"name": "punctuation.definition.comment.begin.ocaml"
|
796
|
-
}
|
797
|
-
},
|
798
|
-
"endCaptures": {
|
799
|
-
"0": {
|
800
|
-
"name": "punctuation.definition.comment.end.ocaml"
|
801
|
-
}
|
802
|
-
}
|
803
|
-
}
|
804
|
-
]
|
805
|
-
},
|
806
|
-
"comments_inner": {
|
807
|
-
"patterns": [
|
808
|
-
{
|
809
|
-
"include": "#comments"
|
810
|
-
},
|
811
|
-
{
|
812
|
-
"name": "comment.block.string.quoted.double.ocaml",
|
813
|
-
"begin": "(?=[^\\\\])(\")",
|
814
|
-
"end": "\"",
|
815
|
-
"patterns": [
|
816
|
-
{
|
817
|
-
"name": "comment.block.string.constant.character.escape.ocaml",
|
818
|
-
"match": "\\\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\])"
|
819
|
-
}
|
820
|
-
]
|
821
|
-
}
|
822
|
-
]
|
823
|
-
},
|
824
|
-
"constants": {
|
825
|
-
"patterns": [
|
826
|
-
{
|
827
|
-
"name": "constant.language.pseudo-variable.ocaml",
|
828
|
-
"match": "(?:\\[\\s*(\\])|\\((\\))|\\(\\s*(\\)))",
|
829
|
-
"captures": {
|
830
|
-
"1": {
|
831
|
-
"name": "meta.empty-typing-pair.ocaml"
|
832
|
-
},
|
833
|
-
"2": {
|
834
|
-
"name": "meta.empty-typing-pair.parens.ocaml"
|
835
|
-
},
|
836
|
-
"3": {
|
837
|
-
"name": "meta.empty-typing-pair.ocaml"
|
838
|
-
}
|
839
|
-
}
|
840
|
-
},
|
841
|
-
{
|
842
|
-
"name": "constant.language.boolean.ocaml",
|
843
|
-
"match": "\\b(true|false)\\b"
|
844
|
-
},
|
845
|
-
{
|
846
|
-
"name": "constant.numeric.floating-point.ocaml",
|
847
|
-
"match": "\\b-?[0-9][0-9_]*((\\.([0-9][0-9_]*([eE][+-]??[0-9][0-9_]*)?)?)|([eE][+-]??[0-9][0-9_]*))"
|
848
|
-
},
|
849
|
-
{
|
850
|
-
"name": "constant.numeric.integer.nativeint.ocaml",
|
851
|
-
"match": "\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))n"
|
852
|
-
},
|
853
|
-
{
|
854
|
-
"name": "constant.numeric.integer.int64.ocaml",
|
855
|
-
"match": "\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))L"
|
856
|
-
},
|
857
|
-
{
|
858
|
-
"name": "constant.numeric.integer.int32.ocaml",
|
859
|
-
"match": "\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))l"
|
860
|
-
},
|
861
|
-
{
|
862
|
-
"name": "constant.numeric.integer.ocaml",
|
863
|
-
"match": "\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))"
|
864
|
-
},
|
865
|
-
{
|
866
|
-
"name": "constant.character.ocaml",
|
867
|
-
"match": "'(.|\\\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\]))'"
|
868
|
-
}
|
869
|
-
]
|
870
|
-
},
|
871
|
-
"definite_storagetypes": {
|
872
|
-
"patterns": [
|
873
|
-
{
|
874
|
-
"include": "#storagetypes"
|
875
|
-
},
|
876
|
-
{
|
877
|
-
"name": "storage.type.ocaml",
|
878
|
-
"match": "\\b[a-zA-Z0-9'_]+\\b"
|
879
|
-
}
|
880
|
-
]
|
881
|
-
},
|
882
|
-
"lists": {
|
883
|
-
"patterns": [
|
884
|
-
{
|
885
|
-
"name": "meta.list.ocaml",
|
886
|
-
"begin": "(\\[)(?!\\||\u003c|\u003e)",
|
887
|
-
"end": "(?\u003c!\\||\u003e)(])",
|
888
|
-
"patterns": [
|
889
|
-
{
|
890
|
-
"include": "#lists"
|
891
|
-
},
|
892
|
-
{
|
893
|
-
"include": "$self"
|
894
|
-
}
|
895
|
-
],
|
896
|
-
"beginCaptures": {
|
897
|
-
"1": {
|
898
|
-
"name": "punctuation.definition.list.begin.ocaml"
|
899
|
-
}
|
900
|
-
},
|
901
|
-
"endCaptures": {
|
902
|
-
"1": {
|
903
|
-
"name": "punctuation.definition.list.end.ocaml"
|
904
|
-
}
|
905
|
-
}
|
906
|
-
}
|
907
|
-
]
|
908
|
-
},
|
909
|
-
"matchpatterns": {
|
910
|
-
"patterns": [
|
911
|
-
{
|
912
|
-
"name": "constant.language.universal-match.ocaml",
|
913
|
-
"match": "\\b_\\b"
|
914
|
-
},
|
915
|
-
{
|
916
|
-
"name": "punctuation.separator.match-pattern.ocaml",
|
917
|
-
"match": "\\|(?=\\s*\\S)"
|
918
|
-
},
|
919
|
-
{
|
920
|
-
"name": "meta.match-option.ocaml",
|
921
|
-
"begin": "(\\()(?=(?!=.*?-\u003e).*?\\|)",
|
922
|
-
"end": "(\\))",
|
923
|
-
"patterns": [
|
924
|
-
{
|
925
|
-
"name": "punctuation.separator.match-option.ocaml",
|
926
|
-
"match": "\\|"
|
927
|
-
},
|
928
|
-
{
|
929
|
-
"include": "#matchpatterns"
|
930
|
-
}
|
931
|
-
],
|
932
|
-
"beginCaptures": {
|
933
|
-
"1": {
|
934
|
-
"name": "punctuation.definition.match-option.ocaml"
|
935
|
-
}
|
936
|
-
},
|
937
|
-
"endCaptures": {
|
938
|
-
"1": {
|
939
|
-
"name": "punctuation.definition.match-option.ocaml"
|
940
|
-
}
|
941
|
-
}
|
942
|
-
},
|
943
|
-
{
|
944
|
-
"include": "#moduleref"
|
945
|
-
},
|
946
|
-
{
|
947
|
-
"include": "#constants"
|
948
|
-
},
|
949
|
-
{
|
950
|
-
"include": "#variables"
|
951
|
-
},
|
952
|
-
{
|
953
|
-
"include": "$self"
|
954
|
-
}
|
955
|
-
]
|
956
|
-
},
|
957
|
-
"module-signature": {
|
958
|
-
"patterns": [
|
959
|
-
{
|
960
|
-
"name": "meta.module.signature.val.ocaml",
|
961
|
-
"begin": "(val)\\s+([a-z_][a-zA-Z0-9_']*)\\s*(:)",
|
962
|
-
"end": "(?=\\b(type|val|external|class|module|end)\\b)|^\\s*$",
|
963
|
-
"patterns": [
|
964
|
-
{
|
965
|
-
"name": "variable.parameter.ameter.optional.ocaml",
|
966
|
-
"match": "(\\?)([a-z][a-zA-Z0-9_]*)\\s*(:)",
|
967
|
-
"captures": {
|
968
|
-
"1": {
|
969
|
-
"name": "punctuation.definition.optional-parameter.ocaml"
|
970
|
-
},
|
971
|
-
"2": {
|
972
|
-
"name": "entity.name.tag.label.optional.ocaml"
|
973
|
-
},
|
974
|
-
"3": {
|
975
|
-
"name": "punctuation.separator.optional-parameter.ocaml"
|
976
|
-
}
|
977
|
-
}
|
978
|
-
},
|
979
|
-
{
|
980
|
-
"name": "variable.parameter.labeled.ocaml",
|
981
|
-
"begin": "([a-z][a-zA-Z0-9'_]*)\\s*(:)\\s*",
|
982
|
-
"end": "\\s",
|
983
|
-
"patterns": [
|
984
|
-
{
|
985
|
-
"include": "#definite_storagetypes"
|
986
|
-
}
|
987
|
-
],
|
988
|
-
"beginCaptures": {
|
989
|
-
"1": {
|
990
|
-
"name": "entity.name.tag.label.ocaml"
|
991
|
-
},
|
992
|
-
"2": {
|
993
|
-
"name": "punctuation.separator.label.ocaml"
|
994
|
-
},
|
995
|
-
"3": {
|
996
|
-
"name": "storage.type.ocaml"
|
997
|
-
}
|
998
|
-
}
|
999
|
-
},
|
1000
|
-
{
|
1001
|
-
"include": "#typedefs"
|
1002
|
-
}
|
1003
|
-
],
|
1004
|
-
"beginCaptures": {
|
1005
|
-
"1": {
|
1006
|
-
"name": "keyword.other.ocaml"
|
1007
|
-
},
|
1008
|
-
"2": {
|
1009
|
-
"name": "entity.name.type.value-signature.ocaml"
|
1010
|
-
},
|
1011
|
-
"3": {
|
1012
|
-
"name": "punctuation.separator.type-constraint.ocaml"
|
1013
|
-
}
|
1014
|
-
}
|
1015
|
-
},
|
1016
|
-
{
|
1017
|
-
"name": "meta.module.signature.external.ocaml",
|
1018
|
-
"begin": "(external)\\s+([a-z_][a-zA-Z0-9_']*)\\s*(:)",
|
1019
|
-
"end": "(?=\\b(type|val|external|class|module|let|end)\\b)|^\\s*$",
|
1020
|
-
"patterns": [
|
1021
|
-
{
|
1022
|
-
"name": "variable.parameter.optional.ocaml",
|
1023
|
-
"match": "(\\?)([a-z][a-zA-Z0-9_]*)\\s*(:)",
|
1024
|
-
"captures": {
|
1025
|
-
"1": {
|
1026
|
-
"name": "punctuation.definition.optional-parameter.ocaml"
|
1027
|
-
},
|
1028
|
-
"2": {
|
1029
|
-
"name": "entity.name.tag.label.optional.ocaml"
|
1030
|
-
},
|
1031
|
-
"3": {
|
1032
|
-
"name": "punctuation.separator.optional-parameter.ocaml"
|
1033
|
-
}
|
1034
|
-
}
|
1035
|
-
},
|
1036
|
-
{
|
1037
|
-
"name": "variable.parameter.labeled.ocaml",
|
1038
|
-
"begin": "(~)([a-z][a-zA-Z0-9'_]*)\\s*(:)\\s*",
|
1039
|
-
"end": "\\s",
|
1040
|
-
"patterns": [
|
1041
|
-
{
|
1042
|
-
"include": "#variables"
|
1043
|
-
}
|
1044
|
-
],
|
1045
|
-
"beginCaptures": {
|
1046
|
-
"1": {
|
1047
|
-
"name": "punctuation.definition.labeled-parameter.ocaml"
|
1048
|
-
},
|
1049
|
-
"2": {
|
1050
|
-
"name": "entity.name.tag.label.ocaml"
|
1051
|
-
},
|
1052
|
-
"3": {
|
1053
|
-
"name": "punctuation.separator.label.ocaml"
|
1054
|
-
}
|
1055
|
-
}
|
1056
|
-
},
|
1057
|
-
{
|
1058
|
-
"include": "#strings"
|
1059
|
-
},
|
1060
|
-
{
|
1061
|
-
"include": "#typedefs"
|
1062
|
-
}
|
1063
|
-
],
|
1064
|
-
"beginCaptures": {
|
1065
|
-
"1": {
|
1066
|
-
"name": "keyword.other.ocaml"
|
1067
|
-
},
|
1068
|
-
"2": {
|
1069
|
-
"name": "entity.name.type.external-signature.ocaml"
|
1070
|
-
},
|
1071
|
-
"3": {
|
1072
|
-
"name": "punctuation.separator.type-constraint.ocaml"
|
1073
|
-
}
|
1074
|
-
}
|
1075
|
-
}
|
1076
|
-
]
|
1077
|
-
},
|
1078
|
-
"moduleref": {
|
1079
|
-
"patterns": [
|
1080
|
-
{
|
1081
|
-
"name": "meta.module-reference.ocaml",
|
1082
|
-
"match": "\\b([A-Z][a-zA-Z0-9'_]*)(\\.)",
|
1083
|
-
"beginCaptures": {
|
1084
|
-
"1": {
|
1085
|
-
"name": "support.other.module.ocaml"
|
1086
|
-
},
|
1087
|
-
"2": {
|
1088
|
-
"name": "punctuation.separator.module-reference.ocaml"
|
1089
|
-
}
|
1090
|
-
}
|
1091
|
-
}
|
1092
|
-
]
|
1093
|
-
},
|
1094
|
-
"storagetypes": {
|
1095
|
-
"patterns": [
|
1096
|
-
{
|
1097
|
-
"name": "storage.type.ocaml",
|
1098
|
-
"match": "\\b(int|char|float|string|list|array|bool|unit|exn|option|int32|int64|nativeint|format4|lazy_t)\\b"
|
1099
|
-
},
|
1100
|
-
{
|
1101
|
-
"name": "storage.type.variant.polymorphic.ocaml",
|
1102
|
-
"match": "#[a-z_][a-zA-Z0-9_]*"
|
1103
|
-
}
|
1104
|
-
]
|
1105
|
-
},
|
1106
|
-
"strings": {
|
1107
|
-
"patterns": [
|
1108
|
-
{
|
1109
|
-
"name": "string.quoted.double.ocaml",
|
1110
|
-
"begin": "(?=[^\\\\])(\")",
|
1111
|
-
"end": "(\")",
|
1112
|
-
"patterns": [
|
1113
|
-
{
|
1114
|
-
"name": "punctuation.separator.string.ignore-eol.ocaml",
|
1115
|
-
"match": "\\\\$[ \\t]*"
|
1116
|
-
},
|
1117
|
-
{
|
1118
|
-
"name": "constant.character.string.escape.ocaml",
|
1119
|
-
"match": "\\\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\])"
|
1120
|
-
},
|
1121
|
-
{
|
1122
|
-
"name": "constant.character.regexp.escape.ocaml",
|
1123
|
-
"match": "\\\\[\\|\\(\\)1-9$^.*+?\\[\\]]"
|
1124
|
-
},
|
1125
|
-
{
|
1126
|
-
"name": "invalid.illegal.character.string.escape",
|
1127
|
-
"match": "\\\\(?!(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\]|[\\|\\(\\)1-9$^.*+?\\[\\]]|$[ \\t]*))(?:.)"
|
1128
|
-
}
|
1129
|
-
],
|
1130
|
-
"beginCaptures": {
|
1131
|
-
"1": {
|
1132
|
-
"name": "punctuation.definition.string.begin.ocaml"
|
1133
|
-
}
|
1134
|
-
},
|
1135
|
-
"endCaptures": {
|
1136
|
-
"1": {
|
1137
|
-
"name": "punctuation.definition.string.end.ocaml"
|
1138
|
-
}
|
1139
|
-
}
|
1140
|
-
}
|
1141
|
-
]
|
1142
|
-
},
|
1143
|
-
"typedefs": {
|
1144
|
-
"patterns": [
|
1145
|
-
{
|
1146
|
-
"name": "punctuation.separator.variant-definition.ocaml",
|
1147
|
-
"match": "\\|"
|
1148
|
-
},
|
1149
|
-
{
|
1150
|
-
"include": "#comments_inner"
|
1151
|
-
},
|
1152
|
-
{
|
1153
|
-
"name": "meta.paren-group.ocaml",
|
1154
|
-
"begin": "\\(",
|
1155
|
-
"end": "\\)",
|
1156
|
-
"patterns": [
|
1157
|
-
{
|
1158
|
-
"include": "#typedefs"
|
1159
|
-
}
|
1160
|
-
]
|
1161
|
-
},
|
1162
|
-
{
|
1163
|
-
"name": "keyword.other.ocaml",
|
1164
|
-
"match": "\\bof\\b"
|
1165
|
-
},
|
1166
|
-
{
|
1167
|
-
"include": "#storagetypes"
|
1168
|
-
},
|
1169
|
-
{
|
1170
|
-
"name": "storage.type.ocaml",
|
1171
|
-
"match": "(?\u003c=\\s|\\()['a-z_][a-zA-Z0-9_]*\\b"
|
1172
|
-
},
|
1173
|
-
{
|
1174
|
-
"name": "meta.module.type.ocaml",
|
1175
|
-
"match": "\\b((?:[A-Z][a-zA-Z0-9'_]*)(?:\\.[A-Z][a-zA-Z0-9'_]+)*)(\\.[a-zA-Z0-9'_]+)",
|
1176
|
-
"captures": {
|
1177
|
-
"1": {
|
1178
|
-
"name": "support.other.module.ocaml"
|
1179
|
-
},
|
1180
|
-
"2": {
|
1181
|
-
"name": "storage.type.module.ocaml"
|
1182
|
-
}
|
1183
|
-
}
|
1184
|
-
},
|
1185
|
-
{
|
1186
|
-
"name": "meta.polymorphic-variant.definition.ocaml",
|
1187
|
-
"begin": "(\\[(\u003e|\u003c)?)",
|
1188
|
-
"end": "(\\])",
|
1189
|
-
"patterns": [
|
1190
|
-
{
|
1191
|
-
"include": "#typedefs"
|
1192
|
-
}
|
1193
|
-
],
|
1194
|
-
"beginCaptures": {
|
1195
|
-
"1": {
|
1196
|
-
"name": "punctuation.definition.polymorphic-variant.ocaml"
|
1197
|
-
}
|
1198
|
-
},
|
1199
|
-
"endCaptures": {
|
1200
|
-
"1": {
|
1201
|
-
"name": "punctuation.definition.polymorphic-variant.ocaml"
|
1202
|
-
}
|
1203
|
-
}
|
1204
|
-
},
|
1205
|
-
{
|
1206
|
-
"include": "$self"
|
1207
|
-
},
|
1208
|
-
{
|
1209
|
-
"name": "punctuation.separator.algebraic-type.ocaml",
|
1210
|
-
"match": "\\|"
|
1211
|
-
}
|
1212
|
-
]
|
1213
|
-
},
|
1214
|
-
"variables": {
|
1215
|
-
"patterns": [
|
1216
|
-
{
|
1217
|
-
"name": "variable.parameter.unit.ocaml",
|
1218
|
-
"match": "\\(\\)"
|
1219
|
-
},
|
1220
|
-
{
|
1221
|
-
"include": "#constants"
|
1222
|
-
},
|
1223
|
-
{
|
1224
|
-
"include": "#moduleref"
|
1225
|
-
},
|
1226
|
-
{
|
1227
|
-
"name": "variable.parameter.labeled.ocaml",
|
1228
|
-
"begin": "(~)([a-z][a-zA-Z0-9'_]*)(\\s*:\\s*)?",
|
1229
|
-
"end": "(?=(-\u003e|\\s))",
|
1230
|
-
"patterns": [
|
1231
|
-
{
|
1232
|
-
"include": "#variables"
|
1233
|
-
}
|
1234
|
-
],
|
1235
|
-
"beginCaptures": {
|
1236
|
-
"1": {
|
1237
|
-
"name": "punctuation.definition.labeled-parameter.ocaml"
|
1238
|
-
},
|
1239
|
-
"2": {
|
1240
|
-
"name": "entity.name.tag.label.ocaml"
|
1241
|
-
},
|
1242
|
-
"3": {
|
1243
|
-
"name": "punctuation.separator.label.ocaml"
|
1244
|
-
}
|
1245
|
-
}
|
1246
|
-
},
|
1247
|
-
{
|
1248
|
-
"name": "variable.parameter.optional.ocaml",
|
1249
|
-
"match": "(\\?)([a-z][a-zA-Z0-9_]*)",
|
1250
|
-
"captures": {
|
1251
|
-
"1": {
|
1252
|
-
"name": "punctuation.definition.optional-parameter.ocaml"
|
1253
|
-
},
|
1254
|
-
"2": {
|
1255
|
-
"name": "entity.name.tag.label.optional.ocaml"
|
1256
|
-
}
|
1257
|
-
}
|
1258
|
-
},
|
1259
|
-
{
|
1260
|
-
"name": "variable.parameter.optional.ocaml",
|
1261
|
-
"begin": "(\\?)(\\()([a-z_][a-zA-Z0-9'_]*)\\s*(=)",
|
1262
|
-
"end": "(\\))",
|
1263
|
-
"patterns": [
|
1264
|
-
{
|
1265
|
-
"include": "$self"
|
1266
|
-
}
|
1267
|
-
],
|
1268
|
-
"beginCaptures": {
|
1269
|
-
"1": {
|
1270
|
-
"name": "punctuation.definition.optional-parameter.ocaml"
|
1271
|
-
},
|
1272
|
-
"2": {
|
1273
|
-
"name": "punctuation.definition.optional-parameter.ocaml"
|
1274
|
-
},
|
1275
|
-
"3": {
|
1276
|
-
"name": "entity.name.tag.label.optional.ocaml"
|
1277
|
-
},
|
1278
|
-
"4": {
|
1279
|
-
"name": "punctuation.separator.optional-parameter-assignment.ocaml"
|
1280
|
-
}
|
1281
|
-
},
|
1282
|
-
"endCaptures": {
|
1283
|
-
"1": {
|
1284
|
-
"name": "punctuation.definition.optional-parameter.ocaml"
|
1285
|
-
}
|
1286
|
-
}
|
1287
|
-
},
|
1288
|
-
{
|
1289
|
-
"name": "meta.parameter.type-constrained.ocaml",
|
1290
|
-
"begin": "(\\()(?=(~[a-z][a-zA-Z0-9_]*:|(\"(\\\\\"|[^\"])*\")|[^\\(\\)~\"])+(?\u003c!:)(:\u003e|:(?![:=])))",
|
1291
|
-
"end": "(\\))",
|
1292
|
-
"patterns": [
|
1293
|
-
{
|
1294
|
-
"name": "storage.type.ocaml",
|
1295
|
-
"begin": "(?\u003c!:)(:\u003e|:(?![:=]))",
|
1296
|
-
"end": "(?=\\))",
|
1297
|
-
"patterns": [
|
1298
|
-
{
|
1299
|
-
"name": "meta.paren.group",
|
1300
|
-
"begin": "\\(",
|
1301
|
-
"end": "\\)"
|
1302
|
-
}
|
1303
|
-
],
|
1304
|
-
"beginCaptures": {
|
1305
|
-
"1": {
|
1306
|
-
"name": "punctuation.separator.type-constraint.ocaml"
|
1307
|
-
}
|
1308
|
-
}
|
1309
|
-
},
|
1310
|
-
{
|
1311
|
-
"include": "#variables"
|
1312
|
-
}
|
1313
|
-
],
|
1314
|
-
"beginCaptures": {
|
1315
|
-
"1": {
|
1316
|
-
"name": "punctuation.section.type-constraint.ocaml"
|
1317
|
-
}
|
1318
|
-
},
|
1319
|
-
"endCaptures": {
|
1320
|
-
"1": {
|
1321
|
-
"name": "punctuation.section.type-constraint.ocaml"
|
1322
|
-
}
|
1323
|
-
}
|
1324
|
-
},
|
1325
|
-
{
|
1326
|
-
"include": "#comments_inner"
|
1327
|
-
},
|
1328
|
-
{
|
1329
|
-
"name": "meta.paren-group.ocaml",
|
1330
|
-
"begin": "\\(",
|
1331
|
-
"end": "\\)",
|
1332
|
-
"patterns": [
|
1333
|
-
{
|
1334
|
-
"include": "#variables"
|
1335
|
-
}
|
1336
|
-
]
|
1337
|
-
},
|
1338
|
-
{
|
1339
|
-
"name": "variable.parameter.tuple.ocaml",
|
1340
|
-
"begin": "(\\()",
|
1341
|
-
"end": "(\\))",
|
1342
|
-
"patterns": [
|
1343
|
-
{
|
1344
|
-
"include": "#matchpatterns"
|
1345
|
-
},
|
1346
|
-
{
|
1347
|
-
"include": "#variables"
|
1348
|
-
},
|
1349
|
-
{
|
1350
|
-
"name": "punctuation.separator.tuple.ocaml",
|
1351
|
-
"match": ","
|
1352
|
-
}
|
1353
|
-
],
|
1354
|
-
"beginCaptures": {
|
1355
|
-
"1": {
|
1356
|
-
"name": "punctuation.definition.tuple.ocaml"
|
1357
|
-
}
|
1358
|
-
},
|
1359
|
-
"endCaptures": {
|
1360
|
-
"1": {
|
1361
|
-
"name": "punctuation.definition.tuple.ocaml"
|
1362
|
-
}
|
1363
|
-
}
|
1364
|
-
},
|
1365
|
-
{
|
1366
|
-
"name": "variable.parameter.record.ocaml",
|
1367
|
-
"begin": "(\\{)",
|
1368
|
-
"end": "(\\})",
|
1369
|
-
"patterns": [
|
1370
|
-
{
|
1371
|
-
"include": "#moduleref"
|
1372
|
-
},
|
1373
|
-
{
|
1374
|
-
"name": "meta.recordfield.match.ocaml",
|
1375
|
-
"begin": "\\b([a-z][a-zA-Z0-9'_]*)\\s*(=)",
|
1376
|
-
"end": "(;)|(?=\\})",
|
1377
|
-
"patterns": [
|
1378
|
-
{
|
1379
|
-
"include": "#matchpatterns"
|
1380
|
-
}
|
1381
|
-
],
|
1382
|
-
"beginCaptures": {
|
1383
|
-
"1": {
|
1384
|
-
"name": "entity.name.tag.record.ocaml"
|
1385
|
-
},
|
1386
|
-
"2": {
|
1387
|
-
"name": "punctuation.separator.record.field-assignment.ocaml"
|
1388
|
-
}
|
1389
|
-
},
|
1390
|
-
"endCaptures": {
|
1391
|
-
"1": {
|
1392
|
-
"name": "punctuation.separator.record.ocaml"
|
1393
|
-
}
|
1394
|
-
}
|
1395
|
-
}
|
1396
|
-
],
|
1397
|
-
"beginCaptures": {
|
1398
|
-
"1": {
|
1399
|
-
"name": "punctuation.definition.record.ocaml"
|
1400
|
-
}
|
1401
|
-
},
|
1402
|
-
"endCaptures": {
|
1403
|
-
"1": {
|
1404
|
-
"name": "punctuation.definition.record.ocaml"
|
1405
|
-
}
|
1406
|
-
}
|
1407
|
-
},
|
1408
|
-
{
|
1409
|
-
"include": "#storagetypes"
|
1410
|
-
},
|
1411
|
-
{
|
1412
|
-
"name": "variable.parameter.ocaml",
|
1413
|
-
"match": "\\b[a-z_][a-zA-Z0-9'_]*"
|
1414
|
-
}
|
1415
|
-
]
|
1416
|
-
}
|
1417
|
-
}
|
1418
|
-
}
|
1
|
+
{"name":"OCaml","scopeName":"source.ocaml","patterns":[{"name":"meta.module.binding","match":"\\b(let)\\s+(module)\\s+([A-Z][a-zA-Z0-9'_]*)\\s*(=)","captures":{"1":{"name":"keyword.other.module-binding.ocaml"},"2":{"name":"keyword.other.module-definition.ocaml"},"3":{"name":"support.other.module.ocaml"},"4":{"name":"punctuation.separator.module-binding.ocmal"}}},{"name":"meta.module.openbinding","begin":"\\b(let)\\s+(open)\\s+([A-Z][a-zA-Z0-9'_]*)(?=(\\.[A-Z][a-zA-Z0-9_]*)*)","end":"(\\s|$)","patterns":[{"name":"support.other.module.ocaml","match":"(\\.)([A-Z][a-zA-Z0-9'_]*)","captures":{"1":{"name":"punctuation.separator.module-reference.ocaml"}}}],"beginCaptures":{"1":{"name":"keyword.other.module-binding.ocaml"},"2":{"name":"keyword.other.ocaml"},"3":{"name":"support.other.module.ocaml"}}},{"name":"meta.function.ocaml","begin":"\\b(let|and)\\s+(?!\\(\\*)((rec\\s+)([a-z_][a-zA-Z0-9_']*)\\b|([a-z_][a-zA-Z0-9_']*|\\([^)]+\\))(?=\\s)((?=\\s*=\\s*(?=fun(?:ction)\\b))|(?!\\s*=)))","end":"(?:(:)\\s*([^=]+))?(?:(=)|(=)\\s*(?=fun(?:ction)\\b))","patterns":[{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.other.function-definition.ocaml"},"3":{"name":"keyword.other.funtion-definition.ocaml"},"4":{"name":"entity.name.function.ocaml"},"5":{"name":"entity.name.function.ocaml"}},"endCaptures":{"1":{"name":"punctuation.separator.function.type-constraint.ocaml"},"2":{"name":"storage.type.ocaml"},"3":{"name":"keyword.operator.ocaml"},"4":{"name":"keyword.operator.ocaml"}}},{"name":"meta.function.anonymous.ocaml","begin":"(\\(|\\s)(?=fun\\s)","end":"(\\))","patterns":[{"name":"meta.function.anonymous.definition.ocaml","begin":"(?\u003c=(\\(|\\s))(fun)\\s","end":"(-\u003e)","patterns":[{"include":"#variables"}],"beginCaptures":{"2":{"name":"keyword.other.function-definition.ocaml"}},"endCaptures":{"1":{"name":"punctuation.separator.function-definition.ocaml"}}},{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.function.anonymous.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.function.anonymous.ocaml"}}},{"name":"meta.type-definition-group.ocaml","begin":"^\\s*(?=type\\s)","end":"\\b(?=let|end|val)|^\\s*$","patterns":[{"name":"meta.type-definition.ocaml","begin":"\\b(type|and)\\s+([^=]*)(=)?","end":"(?=\\b(type|and|let|end|val)\\b)|(?=^\\s*$)","patterns":[{"include":"#typedefs"}],"beginCaptures":{"1":{"name":"keyword.other.type-definition.ocaml"},"2":{"name":"storage.type.ocaml"},"3":{"name":"punctuation.separator.type-definition.ocaml"}}}]},{"name":"meta.pattern-match.ocaml","begin":"\\b(with|function)(?=(\\s*$|.*-\u003e))\\b|((?\u003c!\\S)(\\|)(?=(\\w|\\s).*-\u003e))","end":"(?:(-\u003e)|\\b(when)\\b|\\s(?=\\|))","patterns":[{"include":"#matchpatterns"}],"beginCaptures":{"1":{"name":"keyword.control.match-definition.ocaml"},"2":{"name":"keyword.other.function-definition.ocaml"},"3":{"name":"keyword.control.match-definition.ocaml"}},"endCaptures":{"1":{"name":"punctuation.separator.match-definition.ocaml"},"2":{"name":"keyword.control.match-condition.ocaml"}}},{"name":"meta.class.type-definition.ocaml","match":"^[ \\t]*(class\\s+type\\s+)((\\[\\s*('[A-Za-z][a-zA-Z0-9_']*(?:\\s*,\\s*'[A-Za-z][a-zA-Z0-9_']*)*)\\s*\\]\\s+)?[a-z_][a-zA-Z0-9'_]*)","captures":{"1":{"name":"keyword.other.class-type-definition.ocaml"},"2":{"name":"entity.name.type.class-type.ocaml"},"4":{"name":"storage.type.ocaml"}}},{"name":"meta.class.ocaml","begin":"^[ \\t]*(class)(?:\\s+(?!(?:virtual)\\s+))((\\[\\s*('[A-Za-z][a-zA-Z0-9_']*(?:\\s*,\\s*'[A-Za-z][a-zA-Z0-9_']*)*)\\s*\\]\\s+)?[a-z_][a-zA-Z0-9'_]*)","end":"(=)","patterns":[{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.other.class-definition.ocaml"},"2":{"name":"entity.name.type.class.ocaml"},"4":{"name":"storage.type.ocaml"}},"endCaptures":{"1":{"name":"keyword.operator.ocaml"}}},{"name":"meta.class.virtual.ocaml","begin":"^[ \\t]*(class\\s+virtual\\s+)((\\[\\s*('[A-Za-z][a-zA-Z0-9_']*(?:\\s*,\\s*'[A-Za-z][a-zA-Z0-9_']*)*)\\s*\\]\\s+)?[a-z_][a-zA-Z0-9'_]*)","end":"(=)","patterns":[{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.other.class-definition.ocaml"},"2":{"name":"entity.name.type.class.ocaml"},"4":{"name":"storage.type.ocaml"}},"endCaptures":{"1":{"name":"keyword.operator.ocaml"}}},{"name":"meta.class.virtual.type-definition.ocaml","match":"^[ \\t]*(class\\s+type\\s+virtual)((\\[\\s*('[A-Za-z][a-zA-Z0-9_']*(?:\\s*,\\s*'[A-Za-z][a-zA-Z0-9_']*)*)\\s*\\]\\s+)?[a-z_][a-zA-Z0-9'_]*)","captures":{"1":{"name":"keyword.other.class-type-definition.ocaml"},"2":{"name":"entity.name.type.class-type.ocaml"},"4":{"name":"storage.type.ocaml"}}},{"name":"meta.record.ocaml","begin":"(\\{)","end":"(\\})","patterns":[{"name":"keyword.other.language.ocaml","match":"\\bwith\\b"},{"name":"meta.record.definition.ocaml","begin":"(\\bmutable\\s+)?\\b([a-z_][a-zA-Z0-9_']*)\\s*(:)","end":"(;|(?=}))","patterns":[{"include":"#typedefs"}],"beginCaptures":{"1":{"name":"keyword.other.storage.modifier.ocaml"},"2":{"name":"source.ocaml"},"3":{"name":"punctuation.definition.record.ocaml"}},"endCaptures":{"1":{"name":"keyword.operator.ocaml"}}},{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.record.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.record.ocaml"}}},{"name":"meta.object.ocaml","begin":"\\b(object)\\s*(?:(\\()(_?[a-z]+)(\\)))?\\s*$","end":"\\b(end)\\b","patterns":[{"name":"meta.method.ocaml","begin":"\\b(method)\\s+(virtual\\s+)?(private\\s+)?([a-z_][a-zA-Z0-9'_]*)","end":"(=|:)","patterns":[{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.other.method-definition.ocaml"},"2":{"name":"keyword.other.method-definition.ocaml"},"3":{"name":"keyword.other.method-restriction.ocaml"},"4":{"name":"entity.name.function.method.ocaml"}},"endCaptures":{"1":{"name":"keyword.operator.ocaml"}}},{"name":"meta.object.type-constraint.ocaml","begin":"(constraint)\\s+([a-z_'][a-zA-Z0-9'_]*)\\s+(=)","end":"(#[a-z_][a-zA-Z0-9'_]*)|(int|char|float|string|list|array|bool|unit|exn|option|int32|int64|nativeint|format4|lazy_t)|([a-z_][a-zA-Z0-9'_]*)\\s*$","beginCaptures":{"1":{"name":"keyword.other.language.ocaml"},"2":{"name":"storage.type.ocaml"},"3":{"name":"keyword.operator.ocaml"}},"endCaptures":{"1":{"name":"storage.type.polymorphic-variant.ocaml"},"2":{"name":"storage.type.ocaml"},"3":{"name":"storage.type.ocaml"}}},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.object-definition.ocaml"},"2":{"name":"punctuation.definition.self-binding.ocaml"},"3":{"name":"entity.name.type.self-binding.ocaml"},"4":{"name":"punctuation.definition.self-binding.ocaml"}},"endCaptures":{"1":{"name":"keyword.control.object.ocaml"},"2":{"name":"punctuation.terminator.expression.ocaml"}}},{"name":"meta.method-call.ocaml","match":"(?\u003c=\\w|\\)|')(#)[a-z_][a-zA-Z0-9'_]*","captures":{"1":{"name":"punctuation.separator.method-call.ocaml"}}},{"name":"meta.module.ocaml","match":"^[ \\t]*(module)\\s+([A-Z_][a-zA-Z0-9'_]*)(?:\\s*(:)\\s*([A-Z][a-zA-Z0-9'_]*)?)?","captures":{"1":{"name":"keyword.other.module-definition.ocaml"},"2":{"name":"entity.name.type.module.ocaml"},"3":{"name":"punctuation.separator.module-definition.ocaml"},"4":{"name":"entity.name.type.module-type.ocaml"}}},{"name":"meta.module.type.ocaml","match":"^[ \\t]*(module\\s+type\\s+)([A-Z][a-zA-Z0-9'_]*)","captures":{"1":{"name":"keyword.other.module-type-definition.ocaml"},"2":{"name":"entity.name.type.module-type.ocaml"}}},{"name":"meta.module.signature.ocaml","begin":"\\b(sig)\\b","end":"\\b(end)\\b","patterns":[{"include":"#module-signature"},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.module.signature.ocaml"}},"endCaptures":{"1":{"name":"keyword.other.module.signature.ocaml"},"2":{"name":"punctuation.terminator.expression.ocaml"},"3":{"name":"keyword.operator.ocaml"}}},{"name":"meta.module.structure.ocaml","begin":"\\b(struct)\\b","end":"\\b(end)\\b","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.module.structure.ocaml"}},"endCaptures":{"1":{"name":"keyword.other.module.structure.ocaml"}}},{"include":"#moduleref"},{"name":"meta.module.open.ocaml","begin":"\\b(open)\\s+([A-Z][a-zA-Z0-9'_]*)(?=(\\.[A-Z][a-zA-Z0-9_]*)*)","end":"(\\s|$)","patterns":[{"name":"support.other.module.ocaml","match":"(\\.)([A-Z][a-zA-Z0-9'_]*)","captures":{"1":{"name":"punctuation.separator.module-reference.ocaml"}}}],"beginCaptures":{"1":{"name":"keyword.other.ocaml"},"2":{"name":"support.other.module.ocaml"}}},{"name":"meta.exception.ocaml","match":"\\b(exception)\\s+([A-Z][a-zA-Z0-9'_]*)\\b","captures":{"1":{"name":"keyword.other.ocaml"},"2":{"name":"entity.name.type.exception.ocaml"}}},{"name":"source.camlp4.embedded.ocaml","begin":"(?=(\\[\u003c)(?![^\\[]+?[^\u003e]]))","end":"(\u003e])","patterns":[{"include":"source.camlp4.ocaml"}],"endCaptures":{"1":{"name":"punctuation.definition.camlp4-stream.ocaml"}}},{"include":"#strings"},{"include":"#constants"},{"include":"#comments"},{"include":"#lists"},{"include":"#arrays"},{"name":"meta.type-constraint.ocaml","begin":"(\\()(?=(~[a-z][a-zA-Z0-9_]*:|(\"(\\\\\"|[^\"])*\")|[^\\(\\)~\"])+(?\u003c!:)(:\u003e|:(?![:=])))","end":"(?\u003c!:)(:\u003e|:(?![:=]))(.*?)(\\))","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.section.type-constraint.ocaml"}},"endCaptures":{"1":{"name":"punctuation.separator.type-constraint.ocaml"},"2":{"name":"storage.type.ocaml"},"3":{"name":"punctuation.section.type-constraint.ocaml"}}},{"name":"keyword.other.directive.ocaml","match":"^[ \\t]*#[a-zA-Z]+"},{"name":"keyword.other.directive.line-number.ocaml","match":"^[ \\t]*#[0-9]*"},{"include":"#storagetypes"},{"name":"keyword.other.storage.modifier.ocaml","match":"\\b(mutable|ref)\\b"},{"name":"entity.name.type.variant.polymorphic.ocaml","match":"`[A-Za-z][a-zA-Z0-9'_]*\\b"},{"name":"entity.name.type.variant.ocaml","match":"\\b[A-Z][a-zA-Z0-9'_]*\\b"},{"name":"keyword.operator.symbol.ocaml","match":"!=|:=|\u003e|\u003c"},{"name":"keyword.operator.infix.floating-point.ocaml","match":"[*+/-]\\."},{"name":"keyword.operator.prefix.floating-point.ocaml","match":"~-\\."},{"name":"punctuation.definition.list.constructor.ocaml","match":"::"},{"name":"punctuation.terminator.expression.ocaml","match":";;"},{"name":"punctuation.separator.ocaml","match":";"},{"name":"punctuation.separator.function-return.ocaml","match":"-\u003e"},{"name":"keyword.operator.infix.ocaml","match":"[=\u003c\u003e@^\u0026+\\-*/$%|][|!$%\u0026*+./:\u003c=\u003e?@^~-]*"},{"name":"keyword.operator.prefix.ocaml","match":"\\bnot\\b|!|[!\\?~][!$%\u0026*+./:\u003c=\u003e?@^~-]+"},{"name":"entity.name.tag.label.ocaml","match":"~[a-z][a-z0-9'_]*(:)?","captures":{"1":{"name":"punctuation.separator.argument-label.ocaml"}}},{"name":"meta.begin-end-group.ocaml","begin":"\\b(begin)\\b","end":"\\b(end)\\b","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.control.begin-end.ocaml"}},"endCaptures":{"1":{"name":"keyword.control.begin-end.ocaml"}}},{"name":"meta.for-loop.ocaml","begin":"\\b(for)\\b","end":"\\b(done)\\b","patterns":[{"name":"keyword.control.loop.ocaml","match":"\\bdo\\b"},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.control.for-loop.ocaml"}},"endCaptures":{"1":{"name":"keyword.control.for-loop.ocaml"}}},{"name":"meta.while-loop.ocaml","begin":"\\b(while)\\b","end":"\\b(done)\\b","patterns":[{"name":"keyword.control.loop.ocaml","match":"\\bdo\\b"},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.control.while-loop.ocaml"}},"endCaptures":{"1":{"name":"keyword.control.while-loop.ocaml"}}},{"name":"meta.paren-group.ocaml","begin":"\\(","end":"\\)","patterns":[{"include":"$self"}]},{"name":"keyword.operator.ocaml","match":"\\b(and|land|lor|lsl|lsr|asr|lnot|lxor|mod|or)\\b"},{"name":"keyword.control.ocaml","match":"\\b(downto|if|else|match|then|to|when|with|try)\\b"},{"name":"keyword.other.ocaml","match":"\\b(as|assert|class|constraint|exception|functor|in|include|inherit|initializer|lazy|let|mod|module|mutable|new|object|open|private|rec|sig|struct|type|virtual)\\b"},{"include":"#module-signature"},{"name":"invalid.illegal.unrecognized-character.ocaml","match":"(’|‘|“|”)"}],"repository":{"arrays":{"patterns":[{"name":"meta.array.ocaml","begin":"(\\[\\|)","end":"(\\|])","patterns":[{"include":"#arrays"},{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.array.begin.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.array.end.ocaml"}}}]},"comments":{"patterns":[{"name":"comment.block.ocaml","begin":"\\(\\*","end":"\\*\\)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.ocaml"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.ocaml"}}}]},"comments_inner":{"patterns":[{"include":"#comments"},{"name":"comment.block.string.quoted.double.ocaml","begin":"(?=[^\\\\])(\")","end":"\"","patterns":[{"name":"comment.block.string.constant.character.escape.ocaml","match":"\\\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\])"}]}]},"constants":{"patterns":[{"name":"constant.language.pseudo-variable.ocaml","match":"(?:\\[\\s*(\\])|\\((\\))|\\(\\s*(\\)))","captures":{"1":{"name":"meta.empty-typing-pair.ocaml"},"2":{"name":"meta.empty-typing-pair.parens.ocaml"},"3":{"name":"meta.empty-typing-pair.ocaml"}}},{"name":"constant.language.boolean.ocaml","match":"\\b(true|false)\\b"},{"name":"constant.numeric.floating-point.ocaml","match":"\\b-?[0-9][0-9_]*((\\.([0-9][0-9_]*([eE][+-]??[0-9][0-9_]*)?)?)|([eE][+-]??[0-9][0-9_]*))"},{"name":"constant.numeric.integer.nativeint.ocaml","match":"\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))n"},{"name":"constant.numeric.integer.int64.ocaml","match":"\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))L"},{"name":"constant.numeric.integer.int32.ocaml","match":"\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))l"},{"name":"constant.numeric.integer.ocaml","match":"\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))"},{"name":"constant.character.ocaml","match":"'(.|\\\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\]))'"}]},"definite_storagetypes":{"patterns":[{"include":"#storagetypes"},{"name":"storage.type.ocaml","match":"\\b[a-zA-Z0-9'_]+\\b"}]},"lists":{"patterns":[{"name":"meta.list.ocaml","begin":"(\\[)(?!\\||\u003c|\u003e)","end":"(?\u003c!\\||\u003e)(])","patterns":[{"include":"#lists"},{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.list.begin.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.list.end.ocaml"}}}]},"matchpatterns":{"patterns":[{"name":"constant.language.universal-match.ocaml","match":"\\b_\\b"},{"name":"punctuation.separator.match-pattern.ocaml","match":"\\|(?=\\s*\\S)"},{"name":"meta.match-option.ocaml","begin":"(\\()(?=(?!=.*?-\u003e).*?\\|)","end":"(\\))","patterns":[{"name":"punctuation.separator.match-option.ocaml","match":"\\|"},{"include":"#matchpatterns"}],"beginCaptures":{"1":{"name":"punctuation.definition.match-option.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.match-option.ocaml"}}},{"include":"#moduleref"},{"include":"#constants"},{"include":"#variables"},{"include":"$self"}]},"module-signature":{"patterns":[{"name":"meta.module.signature.val.ocaml","begin":"(val)\\s+([a-z_][a-zA-Z0-9_']*)\\s*(:)","end":"(?=\\b(type|val|external|class|module|end)\\b)|^\\s*$","patterns":[{"name":"variable.parameter.ameter.optional.ocaml","match":"(\\?)([a-z][a-zA-Z0-9_]*)\\s*(:)","captures":{"1":{"name":"punctuation.definition.optional-parameter.ocaml"},"2":{"name":"entity.name.tag.label.optional.ocaml"},"3":{"name":"punctuation.separator.optional-parameter.ocaml"}}},{"name":"variable.parameter.labeled.ocaml","begin":"([a-z][a-zA-Z0-9'_]*)\\s*(:)\\s*","end":"\\s","patterns":[{"include":"#definite_storagetypes"}],"beginCaptures":{"1":{"name":"entity.name.tag.label.ocaml"},"2":{"name":"punctuation.separator.label.ocaml"},"3":{"name":"storage.type.ocaml"}}},{"include":"#typedefs"}],"beginCaptures":{"1":{"name":"keyword.other.ocaml"},"2":{"name":"entity.name.type.value-signature.ocaml"},"3":{"name":"punctuation.separator.type-constraint.ocaml"}}},{"name":"meta.module.signature.external.ocaml","begin":"(external)\\s+([a-z_][a-zA-Z0-9_']*)\\s*(:)","end":"(?=\\b(type|val|external|class|module|let|end)\\b)|^\\s*$","patterns":[{"name":"variable.parameter.optional.ocaml","match":"(\\?)([a-z][a-zA-Z0-9_]*)\\s*(:)","captures":{"1":{"name":"punctuation.definition.optional-parameter.ocaml"},"2":{"name":"entity.name.tag.label.optional.ocaml"},"3":{"name":"punctuation.separator.optional-parameter.ocaml"}}},{"name":"variable.parameter.labeled.ocaml","begin":"(~)([a-z][a-zA-Z0-9'_]*)\\s*(:)\\s*","end":"\\s","patterns":[{"include":"#variables"}],"beginCaptures":{"1":{"name":"punctuation.definition.labeled-parameter.ocaml"},"2":{"name":"entity.name.tag.label.ocaml"},"3":{"name":"punctuation.separator.label.ocaml"}}},{"include":"#strings"},{"include":"#typedefs"}],"beginCaptures":{"1":{"name":"keyword.other.ocaml"},"2":{"name":"entity.name.type.external-signature.ocaml"},"3":{"name":"punctuation.separator.type-constraint.ocaml"}}}]},"moduleref":{"patterns":[{"name":"meta.module-reference.ocaml","match":"\\b([A-Z][a-zA-Z0-9'_]*)(\\.)","beginCaptures":{"1":{"name":"support.other.module.ocaml"},"2":{"name":"punctuation.separator.module-reference.ocaml"}}}]},"storagetypes":{"patterns":[{"name":"storage.type.ocaml","match":"\\b(int|char|float|string|list|array|bool|unit|exn|option|int32|int64|nativeint|format4|lazy_t)\\b"},{"name":"storage.type.variant.polymorphic.ocaml","match":"#[a-z_][a-zA-Z0-9_]*"}]},"strings":{"patterns":[{"name":"string.quoted.double.ocaml","begin":"(?=[^\\\\])(\")","end":"(\")","patterns":[{"name":"punctuation.separator.string.ignore-eol.ocaml","match":"\\\\$[ \\t]*"},{"name":"constant.character.string.escape.ocaml","match":"\\\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\])"},{"name":"constant.character.regexp.escape.ocaml","match":"\\\\[\\|\\(\\)1-9$^.*+?\\[\\]]"},{"name":"invalid.illegal.character.string.escape","match":"\\\\(?!(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\]|[\\|\\(\\)1-9$^.*+?\\[\\]]|$[ \\t]*))(?:.)"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.ocaml"}}}]},"typedefs":{"patterns":[{"name":"punctuation.separator.variant-definition.ocaml","match":"\\|"},{"include":"#comments_inner"},{"name":"meta.paren-group.ocaml","begin":"\\(","end":"\\)","patterns":[{"include":"#typedefs"}]},{"name":"keyword.other.ocaml","match":"\\bof\\b"},{"include":"#storagetypes"},{"name":"storage.type.ocaml","match":"(?\u003c=\\s|\\()['a-z_][a-zA-Z0-9_]*\\b"},{"name":"meta.module.type.ocaml","match":"\\b((?:[A-Z][a-zA-Z0-9'_]*)(?:\\.[A-Z][a-zA-Z0-9'_]+)*)(\\.[a-zA-Z0-9'_]+)","captures":{"1":{"name":"support.other.module.ocaml"},"2":{"name":"storage.type.module.ocaml"}}},{"name":"meta.polymorphic-variant.definition.ocaml","begin":"(\\[(\u003e|\u003c)?)","end":"(\\])","patterns":[{"include":"#typedefs"}],"beginCaptures":{"1":{"name":"punctuation.definition.polymorphic-variant.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.polymorphic-variant.ocaml"}}},{"include":"$self"},{"name":"punctuation.separator.algebraic-type.ocaml","match":"\\|"}]},"variables":{"patterns":[{"name":"variable.parameter.unit.ocaml","match":"\\(\\)"},{"include":"#constants"},{"include":"#moduleref"},{"name":"variable.parameter.labeled.ocaml","begin":"(~)([a-z][a-zA-Z0-9'_]*)(\\s*:\\s*)?","end":"(?=(-\u003e|\\s))","patterns":[{"include":"#variables"}],"beginCaptures":{"1":{"name":"punctuation.definition.labeled-parameter.ocaml"},"2":{"name":"entity.name.tag.label.ocaml"},"3":{"name":"punctuation.separator.label.ocaml"}}},{"name":"variable.parameter.optional.ocaml","match":"(\\?)([a-z][a-zA-Z0-9_]*)","captures":{"1":{"name":"punctuation.definition.optional-parameter.ocaml"},"2":{"name":"entity.name.tag.label.optional.ocaml"}}},{"name":"variable.parameter.optional.ocaml","begin":"(\\?)(\\()([a-z_][a-zA-Z0-9'_]*)\\s*(=)","end":"(\\))","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.definition.optional-parameter.ocaml"},"2":{"name":"punctuation.definition.optional-parameter.ocaml"},"3":{"name":"entity.name.tag.label.optional.ocaml"},"4":{"name":"punctuation.separator.optional-parameter-assignment.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.optional-parameter.ocaml"}}},{"name":"meta.parameter.type-constrained.ocaml","begin":"(\\()(?=(~[a-z][a-zA-Z0-9_]*:|(\"(\\\\\"|[^\"])*\")|[^\\(\\)~\"])+(?\u003c!:)(:\u003e|:(?![:=])))","end":"(\\))","patterns":[{"name":"storage.type.ocaml","begin":"(?\u003c!:)(:\u003e|:(?![:=]))","end":"(?=\\))","patterns":[{"name":"meta.paren.group","begin":"\\(","end":"\\)"}],"beginCaptures":{"1":{"name":"punctuation.separator.type-constraint.ocaml"}}},{"include":"#variables"}],"beginCaptures":{"1":{"name":"punctuation.section.type-constraint.ocaml"}},"endCaptures":{"1":{"name":"punctuation.section.type-constraint.ocaml"}}},{"include":"#comments_inner"},{"name":"meta.paren-group.ocaml","begin":"\\(","end":"\\)","patterns":[{"include":"#variables"}]},{"name":"variable.parameter.tuple.ocaml","begin":"(\\()","end":"(\\))","patterns":[{"include":"#matchpatterns"},{"include":"#variables"},{"name":"punctuation.separator.tuple.ocaml","match":","}],"beginCaptures":{"1":{"name":"punctuation.definition.tuple.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.tuple.ocaml"}}},{"name":"variable.parameter.record.ocaml","begin":"(\\{)","end":"(\\})","patterns":[{"include":"#moduleref"},{"name":"meta.recordfield.match.ocaml","begin":"\\b([a-z][a-zA-Z0-9'_]*)\\s*(=)","end":"(;)|(?=\\})","patterns":[{"include":"#matchpatterns"}],"beginCaptures":{"1":{"name":"entity.name.tag.record.ocaml"},"2":{"name":"punctuation.separator.record.field-assignment.ocaml"}},"endCaptures":{"1":{"name":"punctuation.separator.record.ocaml"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.record.ocaml"}},"endCaptures":{"1":{"name":"punctuation.definition.record.ocaml"}}},{"include":"#storagetypes"},{"name":"variable.parameter.ocaml","match":"\\b[a-z_][a-zA-Z0-9'_]*"}]}}}
|