github-linguist 5.3.3 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +5 -2
- data/ext/linguist/linguist.c +18 -7
- data/grammars/annotation.liquidhaskell.haskell.json +969 -862
- data/grammars/config.xcompose.json +22 -25
- data/grammars/file.lasso.json +296 -309
- data/grammars/hint.haskell.json +867 -766
- data/grammars/hint.message.haskell.json +867 -766
- data/grammars/hint.type.haskell.json +867 -766
- data/grammars/objdump.x86asm.json +20 -24
- data/grammars/source.Kotlin.json +220 -225
- data/grammars/source.LS.json +36 -55
- data/grammars/source.MCPOST.json +24 -38
- data/grammars/source.MOD.json +26 -41
- data/grammars/source.SASLog.json +9 -16
- data/grammars/source.abap.json +48 -56
- data/grammars/source.abl.json +8 -14
- data/grammars/source.abnf.json +88 -98
- data/grammars/source.actionscript.3.json +398 -429
- data/grammars/source.acucobol.json +5 -8
- data/grammars/source.ada.json +46 -53
- data/grammars/source.afm.json +548 -554
- data/grammars/source.agc.json +34 -37
- data/grammars/source.agda.json +79 -91
- data/grammars/source.ahk.json +62 -66
- data/grammars/source.alloy.json +16 -20
- data/grammars/source.ampl.json +41 -47
- data/grammars/source.angelscript.json +71 -80
- data/grammars/source.antlr.json +131 -136
- data/grammars/source.apache-config.json +93 -99
- data/grammars/source.apache-config.mod_perl.json +19 -24
- data/grammars/source.apl.json +1038 -1029
- data/grammars/source.applescript.json +501 -523
- data/grammars/source.apt.json +9 -16
- data/grammars/source.asn.json +27 -31
- data/grammars/source.asp.json +61 -67
- data/grammars/source.aspectj.json +385 -391
- data/grammars/source.assembly.json +49 -55
- data/grammars/source.ats.json +45 -121
- data/grammars/source.autoit.json +64 -69
- data/grammars/source.awk.json +172 -176
- data/grammars/source.ballerina.json +48 -395
- data/grammars/source.batchfile.json +269 -269
- data/grammars/source.befunge.json +17 -21
- data/grammars/source.bf.json +5 -11
- data/grammars/source.bison.json +10 -14
- data/grammars/source.blitzmax.json +300 -305
- data/grammars/source.boo.json +189 -193
- data/grammars/source.brightauthorproject.json +8 -13
- data/grammars/source.brightscript.json +37 -47
- data/grammars/source.bro.json +134 -140
- data/grammars/source.bsl.json +152 -193
- data/grammars/source.bsv.json +96 -102
- data/grammars/source.c++.json +176 -193
- data/grammars/source.c++.qt.json +13 -21
- data/grammars/source.c.ec.json +15 -21
- data/grammars/source.c.json +237 -251
- data/grammars/source.c.platform.json +153 -159
- data/grammars/source.c2hs.json +3 -6
- data/grammars/source.cabal.json +17 -20
- data/grammars/source.cache.cmake.json +18 -23
- data/grammars/source.cake.json +4 -7
- data/grammars/source.camlp4.ocaml.json +24 -27
- data/grammars/source.capnp.json +33 -38
- data/grammars/source.ceylon.json +44 -50
- data/grammars/source.cfscript.cfc.json +78 -86
- data/grammars/source.cfscript.json +513 -520
- data/grammars/source.changelogs.rpm-spec.json +8 -16
- data/grammars/source.chapel.json +109 -87
- data/grammars/source.cirru.json +25 -30
- data/grammars/source.clarion.json +41 -54
- data/grammars/source.clean.json +90 -95
- data/grammars/source.click.json +25 -28
- data/grammars/source.clips.json +10 -23
- data/grammars/source.clojure.json +151 -168
- data/grammars/source.cm.json +14 -19
- data/grammars/source.cmake.json +53 -61
- data/grammars/source.cobol.json +165 -180
- data/grammars/source.coffee.json +454 -462
- data/grammars/source.cool.json +36 -43
- data/grammars/source.coq.json +17 -21
- data/grammars/source.crystal.json +889 -983
- data/grammars/source.cs.json +739 -740
- data/grammars/source.csound-document.json +69 -73
- data/grammars/source.csound-score.json +52 -55
- data/grammars/source.csound.json +167 -171
- data/grammars/source.css.json +683 -688
- data/grammars/source.css.less.json +211 -511
- data/grammars/source.css.mss.json +94 -101
- data/grammars/source.css.postcss.sugarss.json +260 -0
- data/grammars/source.csx.json +4 -7
- data/grammars/source.cuda-c++.json +47 -81
- data/grammars/source.cwl.json +103 -0
- data/grammars/source.cython.json +536 -582
- data/grammars/source.d.json +243 -252
- data/grammars/source.dart.json +161 -166
- data/grammars/source.data-weave.json +901 -905
- data/grammars/source.desktop.json +29 -33
- data/grammars/source.diff.json +43 -52
- data/grammars/source.disasm.json +15 -16
- data/grammars/source.ditroff.desc.json +73 -84
- data/grammars/source.ditroff.json +60 -61
- data/grammars/source.dm.json +202 -213
- data/grammars/source.dmf.json +44 -47
- data/grammars/source.dockerfile.json +29 -34
- data/grammars/source.dot.json +46 -55
- data/grammars/source.dylan.json +63 -68
- data/grammars/source.ebnf.json +55 -62
- data/grammars/source.eiffel.json +57 -62
- data/grammars/source.elixir.json +321 -366
- data/grammars/source.emacs.lisp.json +458 -249
- data/grammars/source.erazor.json +49 -57
- data/grammars/source.erlang.json +508 -515
- data/grammars/source.essl.json +17 -30
- data/grammars/source.factor.json +85 -91
- data/grammars/source.fan.json +92 -96
- data/grammars/source.fancy.json +93 -118
- data/grammars/source.fish.json +74 -98
- data/grammars/source.fontforge.json +142 -146
- data/grammars/source.forth.json +42 -57
- data/grammars/source.fortran.json +193 -231
- data/grammars/source.fortran.modern.json +77 -103
- data/grammars/source.fsharp.fsi.json +1 -6
- data/grammars/source.fsharp.fsl.json +1 -6
- data/grammars/source.fsharp.fsx.json +1 -6
- data/grammars/source.fsharp.json +148 -153
- data/grammars/source.gap.json +60 -70
- data/grammars/source.gcode.json +9 -16
- data/grammars/source.gdb.json +63 -79
- data/grammars/source.gdb.session.json +27 -28
- data/grammars/source.gdbregs.json +7 -8
- data/grammars/source.gdscript.json +92 -96
- data/grammars/source.gerber.json +38 -56
- data/grammars/source.gfm.json +447 -462
- data/grammars/source.glsl.json +58 -83
- data/grammars/source.gn.json +188 -193
- data/grammars/source.gnuplot.json +104 -120
- data/grammars/source.go.json +169 -181
- data/grammars/source.golo.json +82 -87
- data/grammars/source.gosu.2.json +58 -68
- data/grammars/source.grace.json +266 -270
- data/grammars/source.graphql.json +586 -596
- data/grammars/source.groovy.gradle.json +18 -22
- data/grammars/source.groovy.json +422 -433
- data/grammars/source.harbour.json +129 -173
- data/grammars/source.haskell.json +871 -772
- data/grammars/source.haxe.2.json +402 -413
- data/grammars/source.hlsl.json +6 -16
- data/grammars/source.hsc2hs.json +1 -4
- data/grammars/source.hsig.json +871 -770
- data/grammars/source.hss.1.json +122 -144
- data/grammars/source.httpspec.json +119 -123
- data/grammars/source.hxml.json +8 -15
- data/grammars/source.ideal.json +125 -125
- data/grammars/source.idl-dlm.json +25 -32
- data/grammars/source.idl.json +59 -80
- data/grammars/source.idris.json +171 -185
- data/grammars/source.inform7.json +117 -121
- data/grammars/source.ini.json +37 -43
- data/grammars/source.io.json +65 -73
- data/grammars/source.ioke.json +72 -78
- data/grammars/source.isabelle.root.json +26 -30
- data/grammars/source.isabelle.theory.json +46 -50
- data/grammars/source.j.json +18 -21
- data/grammars/source.jasmin.json +45 -50
- data/grammars/source.java-properties.json +31 -41
- data/grammars/source.java.json +333 -342
- data/grammars/source.jcl.json +15 -18
- data/grammars/source.jflex.json +166 -172
- data/grammars/source.jison.json +331 -334
- data/grammars/source.jisonlex-injection.json +1 -2
- data/grammars/source.jisonlex.json +148 -151
- data/grammars/source.jolie.json +37 -43
- data/grammars/source.jq.json +80 -87
- data/grammars/source.js.json +798 -818
- data/grammars/source.js.jsx.json +2115 -2225
- data/grammars/source.js.objj.json +167 -172
- data/grammars/source.js.regexp.json +50 -50
- data/grammars/source.js.regexp.replacement.json +7 -7
- data/grammars/source.jsdoc.json +94 -94
- data/grammars/source.json.json +61 -71
- data/grammars/source.julia.console.json +5 -6
- data/grammars/source.julia.json +237 -234
- data/grammars/source.lean.json +55 -67
- data/grammars/source.lid.json +6 -10
- data/grammars/source.lilypond.json +181 -195
- data/grammars/source.lisp.json +40 -50
- data/grammars/source.litcoffee.json +169 -183
- data/grammars/source.livescript.json +207 -220
- data/grammars/source.llvm.json +28 -38
- data/grammars/source.logos.json +7 -14
- data/grammars/source.logtalk.json +136 -141
- data/grammars/source.loomscript.json +77 -83
- data/grammars/source.lsl.json +90 -106
- data/grammars/source.lua.json +100 -109
- data/grammars/source.makefile.json +181 -188
- data/grammars/source.makegen.json +3 -7
- data/grammars/source.mask.json +260 -265
- data/grammars/source.mata.json +38 -46
- data/grammars/source.mathematica.json +155 -167
- data/grammars/source.matlab.json +407 -684
- data/grammars/source.maxscript.json +293 -281
- data/grammars/source.mercury.json +179 -184
- data/grammars/source.meson.json +52 -58
- data/grammars/source.meta-info.json +64 -74
- data/grammars/source.ml.json +107 -113
- data/grammars/source.modelica.json +51 -59
- data/grammars/source.modula2.json +33 -42
- data/grammars/source.monkey.json +234 -241
- data/grammars/source.moonscript.json +51 -56
- data/grammars/source.mql5.json +74 -101
- data/grammars/source.mupad.json +30 -72
- data/grammars/source.ncl.json +1 -14
- data/grammars/source.ne.json +39 -42
- data/grammars/source.nemerle.json +58 -63
- data/grammars/source.nesc.json +9 -15
- data/grammars/source.netlinx.erb.json +13 -25
- data/grammars/source.netlinx.json +231 -292
- data/grammars/source.nextflow-groovy.json +1360 -0
- data/grammars/source.nextflow.json +74 -0
- data/grammars/source.nginx.json +274 -287
- data/grammars/source.nim.json +442 -483
- data/grammars/source.nim_filter.json +6 -26
- data/grammars/source.nimcfg.json +38 -51
- data/grammars/source.ninja.json +64 -70
- data/grammars/source.nit.json +60 -64
- data/grammars/source.nix.json +269 -273
- data/grammars/source.nmml.json +31 -37
- data/grammars/source.nsis.json +66 -72
- data/grammars/source.nu.json +129 -139
- data/grammars/source.nut.json +129 -133
- data/grammars/source.objc++.json +3 -10
- data/grammars/source.objc.json +303 -314
- data/grammars/source.objc.platform.json +145 -151
- data/grammars/source.ocaml.json +506 -514
- data/grammars/source.ocamllex.json +108 -115
- data/grammars/source.ocamlyacc.json +116 -123
- data/grammars/source.ooc.json +148 -155
- data/grammars/source.opa.json +39 -49
- data/grammars/source.opal.json +84 -89
- data/grammars/source.opalsysdefs.json +9 -13
- data/grammars/source.opencobol.json +22 -25
- data/grammars/source.opentype.json +148 -152
- data/grammars/source.ox.json +36 -44
- data/grammars/source.oz.json +31 -38
- data/grammars/source.p4.json +49 -59
- data/grammars/source.pan.json +273 -278
- data/grammars/source.papyrus.skyrim.json +705 -781
- data/grammars/source.parrot.pir.json +59 -65
- data/grammars/source.pascal.json +54 -61
- data/grammars/source.pawn.json +835 -849
- data/grammars/source.pcb.board.json +153 -158
- data/grammars/source.pcb.schematic.json +134 -138
- data/grammars/source.pcb.sexp.json +64 -74
- data/grammars/source.pep8.json +28 -32
- data/grammars/source.perl.6.json +83 -92
- data/grammars/source.perl.json +711 -737
- data/grammars/source.perl6fe.json +1204 -1218
- data/grammars/source.php.zephir.json +80 -89
- data/grammars/source.pic.json +137 -142
- data/grammars/source.pig_latin.json +76 -80
- data/grammars/source.pike.json +23 -36
- data/grammars/source.po.json +74 -84
- data/grammars/source.pogoscript.json +23 -29
- data/grammars/source.pony.json +98 -108
- data/grammars/source.postcss.json +370 -0
- data/grammars/source.postscript.json +88 -97
- data/grammars/source.pov-ray sdl.json +36 -42
- data/grammars/source.powershell.json +175 -197
- data/grammars/source.processing.json +236 -249
- data/grammars/source.prolog.eclipse.json +33 -38
- data/grammars/source.prolog.json +66 -72
- data/grammars/source.protobuf.json +88 -94
- data/grammars/source.puppet.json +144 -151
- data/grammars/source.purescript.json +268 -289
- data/grammars/source.pyjade.json +256 -281
- data/grammars/source.python.django.json +13 -18
- data/grammars/source.python.json +3319 -3367
- data/grammars/source.python.salt.json +3 -7
- data/grammars/source.qmake.json +83 -90
- data/grammars/source.qml.json +57 -78
- data/grammars/source.quoting.perl6fe.json +666 -669
- data/grammars/source.r.json +75 -84
- data/grammars/source.racket.json +17 -38
- data/grammars/source.rascal.json +77 -80
- data/grammars/source.reason.hover.type.json +1 -1
- data/grammars/source.reason.json +1025 -1080
- data/grammars/source.rebol.json +167 -177
- data/grammars/source.red.json +169 -177
- data/grammars/source.regexp.babel.json +74 -77
- data/grammars/source.regexp.extended.json +4 -5
- data/grammars/source.regexp.json +260 -264
- data/grammars/source.regexp.perl6fe.json +108 -111
- data/grammars/source.regexp.python.json +210 -215
- data/grammars/source.regexp.spin.json +63 -72
- data/grammars/source.renpy.json +617 -687
- data/grammars/source.rexx.json +25 -32
- data/grammars/source.ring.json +84 -114
- data/grammars/source.rpm-spec.json +392 -401
- data/grammars/source.ruby.gemfile.json +9 -12
- data/grammars/source.ruby.json +862 -952
- data/grammars/source.ruby.rspec.cucumber.steps.json +90 -103
- data/grammars/source.rust.json +223 -281
- data/grammars/source.sas.json +88 -105
- data/grammars/source.sass.json +100 -108
- data/grammars/source.sbt.json +16 -23
- data/grammars/source.scad.json +60 -67
- data/grammars/source.scala.json +215 -228
- data/grammars/source.scaml.json +120 -135
- data/grammars/source.scheme.json +119 -136
- data/grammars/source.scilab.json +40 -47
- data/grammars/source.scss.json +369 -403
- data/grammars/source.sdbl.json +14 -25
- data/grammars/source.shaderlab.json +24 -27
- data/grammars/source.shell.json +409 -440
- data/grammars/source.shen.json +75 -94
- data/grammars/source.smali.json +232 -293
- data/grammars/source.smalltalk.json +60 -75
- data/grammars/source.smt.json +67 -82
- data/grammars/source.solidity.json +35 -54
- data/grammars/source.sp.json +40 -45
- data/grammars/source.sparql.json +3 -8
- data/grammars/source.spin.json +277 -297
- data/grammars/source.sqf.json +34 -44
- data/grammars/source.sql.json +142 -156
- data/grammars/source.stan.json +201 -160
- data/grammars/source.stata.json +57 -68
- data/grammars/source.strings.json +26 -30
- data/grammars/source.stylus.json +558 -565
- data/grammars/source.supercollider.json +33 -40
- data/grammars/source.swift.json +999 -1077
- data/grammars/source.systemverilog.json +351 -365
- data/grammars/source.tcl.json +77 -94
- data/grammars/source.tea.json +61 -67
- data/grammars/source.terra.json +25 -32
- data/grammars/source.terraform.json +68 -88
- data/grammars/source.thrift.json +300 -306
- data/grammars/source.tl.json +112 -117
- data/grammars/source.tla.json +65 -69
- data/grammars/source.toc.json +21 -25
- data/grammars/source.toml.json +117 -122
- data/grammars/source.ts.json +2838 -2774
- data/grammars/source.tsx.json +180 -184
- data/grammars/source.turing.json +970 -974
- data/grammars/source.turtle.json +124 -140
- data/grammars/source.txl.json +23 -37
- data/grammars/source.ucfconstraints.json +16 -21
- data/grammars/source.ur.json +15 -27
- data/grammars/source.vala.json +221 -235
- data/grammars/source.varnish.vcl.json +117 -129
- data/grammars/source.vbnet.json +69 -106
- data/grammars/source.verilog.json +101 -107
- data/grammars/source.vhdl.json +437 -445
- data/grammars/source.viml.json +540 -550
- data/grammars/source.wavefront.mtl.json +274 -277
- data/grammars/source.wavefront.obj.json +781 -784
- data/grammars/source.wdl.json +66 -46
- data/grammars/source.webassembly.json +97 -102
- data/grammars/source.webidl.json +311 -326
- data/grammars/source.x10.json +28 -32
- data/grammars/source.x86asm.json +21 -26
- data/grammars/source.xc.json +164 -172
- data/grammars/source.xq.json +81 -92
- data/grammars/source.xtend.json +199 -208
- data/grammars/source.yaml-ext.json +118 -124
- data/grammars/source.yaml.json +155 -174
- data/grammars/source.yaml.salt.json +113 -116
- data/grammars/source.yang.json +10 -13
- data/grammars/source.yara.json +98 -0
- data/grammars/text.bibtex.json +95 -100
- data/grammars/text.cfml.basic.json +403 -404
- data/grammars/text.elixir.json +18 -23
- data/grammars/text.error-list.json +15 -16
- data/grammars/text.find-refs.json +487 -488
- data/grammars/text.gherkin.feature.json +45 -53
- data/grammars/text.haml.json +176 -189
- data/grammars/text.hamlc.json +82 -88
- data/grammars/text.html.abl.json +16 -21
- data/grammars/text.html.asciidoc.json +139 -153
- data/grammars/text.html.asdoc.json +145 -155
- data/grammars/text.html.asp.json +23 -28
- data/grammars/text.html.basic.json +323 -338
- data/grammars/text.html.cfm.json +316 -325
- data/grammars/text.html.creole.json +177 -189
- data/grammars/text.html.django.json +27 -33
- data/grammars/text.html.ecr.json +21 -25
- data/grammars/text.html.elixir.json +3 -9
- data/grammars/text.html.erb.json +81 -85
- data/grammars/text.html.erlang.yaws.json +24 -29
- data/grammars/text.html.factor.json +5 -11
- data/grammars/text.html.ftl.json +16 -25
- data/grammars/text.html.handlebars.json +579 -598
- data/grammars/text.html.javadoc.json +426 -0
- data/grammars/text.html.js.json +11 -17
- data/grammars/text.html.jsp.json +377 -384
- data/grammars/text.html.liquid.json +8 -18
- data/grammars/text.html.mako.json +257 -275
- data/grammars/text.html.markdown.source.gfm.apib.json +419 -427
- data/grammars/text.html.markdown.source.gfm.mson.json +405 -414
- data/grammars/text.html.mediawiki.json +318 -344
- data/grammars/text.html.php.blade.json +2134 -2140
- data/grammars/text.html.php.json +980 -1013
- data/grammars/text.html.slash.json +101 -107
- data/grammars/text.html.smarty.json +75 -83
- data/grammars/text.html.soy.json +250 -253
- data/grammars/text.html.ssp.json +18 -24
- data/grammars/text.html.tcl.json +17 -24
- data/grammars/text.html.twig.json +712 -718
- data/grammars/text.idl-idldoc.json +5 -9
- data/grammars/text.jade.json +213 -235
- data/grammars/text.junit-test-report.json +25 -28
- data/grammars/text.log.latex.json +44 -46
- data/grammars/text.marko.json +370 -401
- data/grammars/text.python.console.json +3 -7
- data/grammars/text.python.traceback.json +2 -5
- data/grammars/text.rdoc.json +15 -19
- data/grammars/text.restructuredtext.clean.json +8 -11
- data/grammars/text.restructuredtext.json +886 -873
- data/grammars/text.robot.json +26 -36
- data/grammars/text.roff.json +2852 -2915
- data/grammars/text.runoff.json +56 -69
- data/grammars/text.sfd.json +151 -155
- data/grammars/text.shell-session.json +5 -8
- data/grammars/text.slim.json +184 -210
- data/grammars/text.srt.json +54 -57
- data/grammars/text.tex.json +98 -105
- data/grammars/text.tex.latex.beamer.json +14 -20
- data/grammars/text.tex.latex.haskell.json +883 -782
- data/grammars/text.tex.latex.json +281 -291
- data/grammars/text.tex.latex.memoir.json +39 -46
- data/grammars/text.tex.latex.rd.json +32 -38
- data/grammars/text.xml.ant.json +62 -69
- data/grammars/text.xml.flex-config.json +1009 -1013
- data/grammars/text.xml.genshi.json +10 -16
- data/grammars/text.xml.json +117 -130
- data/grammars/text.xml.pom.json +235 -240
- data/grammars/text.xml.xsl.json +31 -37
- data/grammars/text.zone_file.json +24 -29
- data/lib/linguist/blob.rb +10 -1
- data/lib/linguist/blob_helper.rb +4 -1
- data/lib/linguist/file_blob.rb +5 -0
- data/lib/linguist/generated.rb +16 -0
- data/lib/linguist/heuristics.rb +23 -11
- data/lib/linguist/language.rb +3 -6
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +74 -12
- data/lib/linguist/lazy_blob.rb +15 -1
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1666 -3381
- data/lib/linguist/shebang.rb +2 -0
- data/lib/linguist/strategy/modeline.rb +2 -0
- data/lib/linguist/vendor.yml +5 -6
- data/lib/linguist/version.rb +1 -1
- metadata +12 -11
- data/grammars/source.elm.json +0 -381
- data/grammars/source.nant-build.json +0 -86
- data/grammars/source.octave.json +0 -451
- data/grammars/text.html.mediawiki.elm-build-output.json +0 -111
- data/grammars/text.html.mediawiki.elm-documentation.json +0 -22
- data/grammars/text.html.vue.json +0 -936
data/grammars/source.nim.json
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
{
|
2
|
-
"fileTypes": [
|
3
|
-
"nim",
|
4
|
-
"nims"
|
5
|
-
],
|
6
2
|
"name": "Nim",
|
3
|
+
"scopeName": "source.nim",
|
7
4
|
"patterns": [
|
8
5
|
{
|
6
|
+
"name": "comment.line.number-sign.multi-comment.nim",
|
9
7
|
"begin": "(\\#\\[\\s*(TODO|todo)?)",
|
8
|
+
"end": "(.*]\\#)",
|
10
9
|
"captures": {
|
11
10
|
"1": {
|
12
11
|
"name": "punctuation.definition.multi-comment.nim"
|
@@ -14,35 +13,45 @@
|
|
14
13
|
"2": {
|
15
14
|
"name": "invalid.illegal.TODO.nim"
|
16
15
|
}
|
17
|
-
}
|
18
|
-
"comment": "A multiline comment.",
|
19
|
-
"end": "(.*]\\#)",
|
20
|
-
"name": "comment.line.number-sign.multi-comment.nim"
|
16
|
+
}
|
21
17
|
},
|
22
18
|
{
|
19
|
+
"name": "comment.line.number-sign.multi-doc-comment.nim",
|
20
|
+
"begin": "(\\#\\#\\[\\s*(TODO|todo)?)",
|
21
|
+
"end": "(.*]\\#\\#)",
|
23
22
|
"captures": {
|
24
23
|
"1": {
|
25
|
-
"name": "punctuation.definition.doc-comment.nim"
|
24
|
+
"name": "punctuation.definition.multi-doc-comment.nim"
|
26
25
|
},
|
27
26
|
"2": {
|
28
27
|
"name": "invalid.illegal.TODO.nim"
|
29
28
|
}
|
30
|
-
}
|
31
|
-
|
29
|
+
}
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"name": "comment.line.number-sign.doc-comment.nim",
|
32
33
|
"match": "(##\\s*(TODO|todo)?).+$\\n?",
|
33
|
-
"
|
34
|
+
"captures": {
|
35
|
+
"1": {
|
36
|
+
"name": "punctuation.definition.doc-comment.nim"
|
37
|
+
},
|
38
|
+
"2": {
|
39
|
+
"name": "invalid.illegal.TODO.nim"
|
40
|
+
}
|
41
|
+
}
|
34
42
|
},
|
35
43
|
{
|
44
|
+
"name": "comment.line.number-sign.doc-comment.empty.nim",
|
45
|
+
"match": "(##\\s*)$\\n?",
|
36
46
|
"captures": {
|
37
47
|
"1": {
|
38
48
|
"name": "punctuation.definition.doc-comment.empty.nim"
|
39
49
|
}
|
40
|
-
}
|
41
|
-
"comment": "An empty documentation comment.",
|
42
|
-
"match": "(##\\s*)$\\n?",
|
43
|
-
"name": "comment.line.number-sign.doc-comment.empty.nim"
|
50
|
+
}
|
44
51
|
},
|
45
52
|
{
|
53
|
+
"name": "comment.line.number-sign.comment.nim",
|
54
|
+
"match": "(#\\s*(TODO|todo)?).*$\\n?",
|
46
55
|
"captures": {
|
47
56
|
"1": {
|
48
57
|
"name": "punctuation.definition.comment.nim"
|
@@ -50,17 +59,24 @@
|
|
50
59
|
"2": {
|
51
60
|
"name": "invalid.illegal.TODO.nim"
|
52
61
|
}
|
53
|
-
}
|
54
|
-
"comment": "A regular comment",
|
55
|
-
"match": "(#\\s*(TODO|todo)?).*$\\n?",
|
56
|
-
"name": "comment.line.number-sign.comment.nim"
|
62
|
+
}
|
57
63
|
},
|
58
64
|
{
|
59
|
-
"comment": "C",
|
60
65
|
"name": "source.c.embedded.nim",
|
61
66
|
"patterns": [
|
62
67
|
{
|
63
68
|
"begin": "\\{\\.(emit:) ?(\\\"\\\"\\\")",
|
69
|
+
"end": "(\\\"\\\"\\\")\\.?",
|
70
|
+
"patterns": [
|
71
|
+
{
|
72
|
+
"name": "keyword.operator.nim",
|
73
|
+
"begin": "\\`",
|
74
|
+
"end": "\\`"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"include": "source.c"
|
78
|
+
}
|
79
|
+
],
|
64
80
|
"captures": {
|
65
81
|
"1": {
|
66
82
|
"name": "keyword.other.nim"
|
@@ -69,31 +85,28 @@
|
|
69
85
|
"name": "comment.syntax.nim"
|
70
86
|
}
|
71
87
|
},
|
72
|
-
"end": "(\\\"\\\"\\\")\\.?",
|
73
88
|
"endCaptures": {
|
74
89
|
"1": {
|
75
90
|
"name": "comment.syntax.nim"
|
76
91
|
}
|
77
|
-
}
|
78
|
-
"patterns": [
|
79
|
-
{
|
80
|
-
"begin": "\\`",
|
81
|
-
"end": "\\`",
|
82
|
-
"name": "keyword.operator.nim"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"include": "source.c"
|
86
|
-
}
|
87
|
-
]
|
92
|
+
}
|
88
93
|
}
|
89
94
|
]
|
90
95
|
},
|
91
96
|
{
|
92
|
-
"comment": "assembly",
|
93
97
|
"name": "source.asm.embedded.nim",
|
94
98
|
"patterns": [
|
95
99
|
{
|
96
100
|
"begin": "(asm )(\\\"\\\"\\\")",
|
101
|
+
"end": "\\\"\\\"\\\"",
|
102
|
+
"patterns": [
|
103
|
+
{
|
104
|
+
"name": "keyword.operator.nim",
|
105
|
+
"begin": "\\`",
|
106
|
+
"end": "\\`"
|
107
|
+
},
|
108
|
+
{}
|
109
|
+
],
|
97
110
|
"captures": {
|
98
111
|
"1": {
|
99
112
|
"name": "keyword.other.nim"
|
@@ -102,87 +115,55 @@
|
|
102
115
|
"name": "comment.syntax.nim"
|
103
116
|
}
|
104
117
|
},
|
105
|
-
"end": "\\\"\\\"\\\"",
|
106
118
|
"endCaptures": {
|
107
119
|
"0": {
|
108
120
|
"name": "comment.syntax.nim"
|
109
121
|
}
|
110
|
-
}
|
111
|
-
"patterns": [
|
112
|
-
{
|
113
|
-
"begin": "\\`",
|
114
|
-
"end": "\\`",
|
115
|
-
"name": "keyword.operator.nim"
|
116
|
-
},
|
117
|
-
{
|
118
|
-
"include": "source.asm"
|
119
|
-
}
|
120
|
-
]
|
122
|
+
}
|
121
123
|
}
|
122
124
|
]
|
123
125
|
},
|
124
126
|
{
|
125
|
-
"comment": "A nim procedure or method declaration",
|
126
127
|
"name": "meta.proc.nim",
|
127
128
|
"patterns": [
|
128
129
|
{
|
129
|
-
"begin": "(
|
130
|
-
"beginCaptures": {
|
131
|
-
"1": {
|
132
|
-
"name": "storage.type.proc.nim"
|
133
|
-
},
|
134
|
-
"2": {
|
135
|
-
"name": "entity.name.function.nim"
|
136
|
-
},
|
137
|
-
"5": {
|
138
|
-
"name": "keyword.operator.secondary.kw-public.nim"
|
139
|
-
}
|
140
|
-
},
|
130
|
+
"begin": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(proc|method|template|macro|iterator|converter)\\s+((\\`[^\\s\\`]+\\`)|([\\w\\x{80}-\\x{10FFFF}]+))(\\*)?",
|
141
131
|
"end": "(\\=)",
|
142
|
-
"endCaptures": {
|
143
|
-
"1": {
|
144
|
-
"name": "keyword.operator.nim"
|
145
|
-
}
|
146
|
-
},
|
147
132
|
"patterns": [
|
148
133
|
{
|
149
|
-
"comment": "Generic",
|
150
134
|
"match": "\\[[\\w\\x{80}-\\x{10FFFF}]+\\]"
|
151
135
|
},
|
152
136
|
{
|
153
137
|
"begin": "\\{",
|
154
|
-
"comment": "Pattern",
|
155
138
|
"end": "\\}",
|
156
139
|
"patterns": [
|
157
140
|
{
|
141
|
+
"name": "string.something.nim",
|
158
142
|
"begin": "\\\"",
|
159
|
-
"end": "\\\""
|
160
|
-
"name": "string.something.nim"
|
143
|
+
"end": "\\\""
|
161
144
|
},
|
162
145
|
{
|
163
|
-
"
|
164
|
-
"
|
146
|
+
"name": "entity.other.attribute-name.pattern.nim",
|
147
|
+
"match": "([\\w\\x{80}-\\x{10FFFF}]+)"
|
165
148
|
}
|
166
149
|
]
|
167
150
|
},
|
168
151
|
{
|
169
152
|
"begin": "\\(",
|
170
|
-
"comment": "Parameters",
|
171
153
|
"end": "\\)",
|
172
154
|
"patterns": [
|
173
155
|
{
|
174
156
|
"begin": "\\{",
|
175
|
-
"comment": "Pattern",
|
176
157
|
"end": "\\}",
|
177
158
|
"patterns": [
|
178
159
|
{
|
160
|
+
"name": "string.something.nim",
|
179
161
|
"begin": "\\\"",
|
180
|
-
"end": "\\\""
|
181
|
-
"name": "string.something.nim"
|
162
|
+
"end": "\\\""
|
182
163
|
},
|
183
164
|
{
|
184
|
-
"
|
185
|
-
"
|
165
|
+
"name": "entity.other.attribute-name.pattern.nim",
|
166
|
+
"match": "([\\[\\]\\w\\x{80}-\\x{10FFFF}]+)"
|
186
167
|
}
|
187
168
|
]
|
188
169
|
},
|
@@ -194,250 +175,237 @@
|
|
194
175
|
{
|
195
176
|
"include": "source.nim"
|
196
177
|
}
|
197
|
-
]
|
178
|
+
],
|
179
|
+
"beginCaptures": {
|
180
|
+
"1": {
|
181
|
+
"name": "storage.type.proc.nim"
|
182
|
+
},
|
183
|
+
"2": {
|
184
|
+
"name": "entity.name.function.nim"
|
185
|
+
},
|
186
|
+
"5": {
|
187
|
+
"name": "keyword.operator.secondary.kw-public.nim"
|
188
|
+
}
|
189
|
+
},
|
190
|
+
"endCaptures": {
|
191
|
+
"1": {
|
192
|
+
"name": "keyword.operator.nim"
|
193
|
+
}
|
194
|
+
}
|
198
195
|
}
|
199
196
|
]
|
200
197
|
},
|
201
198
|
{
|
199
|
+
"name": "pragma",
|
202
200
|
"begin": "\\{\\.",
|
203
|
-
"comment": "Pragmas",
|
204
201
|
"end": "\\.?\\}",
|
205
|
-
"name": "pragma",
|
206
202
|
"patterns": [
|
207
203
|
{
|
204
|
+
"name": "string.something.nim",
|
208
205
|
"begin": "\\\"",
|
209
|
-
"end": "\\\""
|
210
|
-
"name": "string.something.nim"
|
206
|
+
"end": "\\\""
|
211
207
|
},
|
212
208
|
{
|
213
|
-
"
|
214
|
-
"
|
209
|
+
"name": "entity.other.attribute-name.pragma.nim",
|
210
|
+
"match": "([\\w\\x{80}-\\x{10FFFF}]+)"
|
215
211
|
}
|
216
212
|
]
|
217
213
|
},
|
218
214
|
{
|
215
|
+
"name": "comment.line.discarded.nim",
|
219
216
|
"begin": "discard \\\"\\\"\\\"",
|
220
|
-
"
|
221
|
-
"end": "\\\"\\\"\\\"",
|
222
|
-
"name": "comment.line.discarded.nim"
|
217
|
+
"end": "\\\"\\\"\\\""
|
223
218
|
},
|
224
219
|
{
|
225
|
-
"
|
226
|
-
"match": "(
|
227
|
-
"name": "constant.numeric.float.decimal.nim"
|
220
|
+
"name": "constant.numeric.float.decimal.nim",
|
221
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(\\d[_\\d]*((\\.[_\\d]+([eE][\\+\\-]?\\d[_\\d]*)?)|([eE][\\+\\-]?\\d[_\\d]*)))('?([fF](32|64|128))|[fFdD])?"
|
228
222
|
},
|
229
223
|
{
|
230
|
-
"
|
231
|
-
"match": "(
|
232
|
-
"name": "constant.numeric.integer.hexadecimal.nim"
|
224
|
+
"name": "constant.numeric.integer.hexadecimal.nim",
|
225
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(0[xX][0-9A-Fa-f][_0-9A-Fa-f]*)('?(([iIuUfF](8|16|32|64))|[uUfFdD]))?"
|
233
226
|
},
|
234
227
|
{
|
235
|
-
"
|
236
|
-
"match": "(
|
237
|
-
"name": "constant.numeric.integer.octal.nim"
|
228
|
+
"name": "constant.numeric.integer.octal.nim",
|
229
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(0[ocC][0-7][_0-7]*)('?(([iIuUfF](8|16|32|64))|[uUfFdD]))?"
|
238
230
|
},
|
239
231
|
{
|
240
|
-
"
|
241
|
-
"match": "(
|
242
|
-
"name": "constant.numeric.integer.binary.nim"
|
232
|
+
"name": "constant.numeric.integer.binary.nim",
|
233
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(0(b|B)[01][_01]*)('?(([iIuUfF](8|16|32|64))|[uUfFdD]))?"
|
243
234
|
},
|
244
235
|
{
|
245
|
-
"
|
246
|
-
"match": "(
|
247
|
-
"name": "constant.numeric.integer.decimal.nim"
|
236
|
+
"name": "constant.numeric.integer.decimal.nim",
|
237
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(\\d[_\\d]*)('?(([iIuUfF](8|16|32|64))|[uUfFdD]))?"
|
248
238
|
},
|
249
239
|
{
|
250
|
-
"
|
251
|
-
"match": "(
|
252
|
-
"name": "constant.language.nim"
|
240
|
+
"name": "constant.language.nim",
|
241
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(true|false|inf|nil)(?![\\w\\x{80}-\\x{10FFFF}])"
|
253
242
|
},
|
254
243
|
{
|
255
244
|
"begin": "(?:^|\\s+|=)(when|if)\\b",
|
245
|
+
"end": "(?=:)",
|
246
|
+
"patterns": [
|
247
|
+
{
|
248
|
+
"include": "source.nim"
|
249
|
+
}
|
250
|
+
],
|
256
251
|
"captures": {
|
257
252
|
"1": {
|
258
253
|
"name": "keyword.control.primary.nim"
|
259
254
|
}
|
260
255
|
},
|
261
|
-
"comment": "Primary branching keywords",
|
262
|
-
"end": "(?=:)",
|
263
256
|
"endCaptures": {
|
264
257
|
"1": {
|
265
258
|
"name": "control.variable.parameter.nim"
|
266
259
|
}
|
267
|
-
}
|
260
|
+
}
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"begin": "(?:^|\\s+|=)(case)\\b",
|
264
|
+
"end": "(?=\\bof\\b)",
|
268
265
|
"patterns": [
|
269
266
|
{
|
270
267
|
"include": "source.nim"
|
271
268
|
}
|
272
|
-
]
|
273
|
-
},
|
274
|
-
{
|
275
|
-
"begin": "(?:^|\\s+|=)(case)\\b",
|
269
|
+
],
|
276
270
|
"captures": {
|
277
271
|
"1": {
|
278
272
|
"name": "keyword.control.primary.nim"
|
279
273
|
}
|
280
274
|
},
|
281
|
-
"comment": "Primary branching keyword 'case'",
|
282
|
-
"end": "(?=\\bof\\b)",
|
283
275
|
"endCaptures": {
|
284
276
|
"1": {
|
285
277
|
"name": "control.variable.parameter.nim"
|
286
278
|
}
|
287
|
-
}
|
279
|
+
}
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"begin": "(?:^|\\s+)(of|else|elif)\\b",
|
283
|
+
"end": "(?=:)",
|
288
284
|
"patterns": [
|
289
285
|
{
|
290
286
|
"include": "source.nim"
|
291
287
|
}
|
292
|
-
]
|
293
|
-
},
|
294
|
-
{
|
295
|
-
"begin": "(?:^|\\s+)(of|else|elif)\\b",
|
288
|
+
],
|
296
289
|
"captures": {
|
297
290
|
"1": {
|
298
291
|
"name": "keyword.control.secondary.nim"
|
299
292
|
}
|
300
293
|
},
|
301
|
-
"comment": "Secondary branching keywords and their conditions",
|
302
|
-
"end": "(?=:)",
|
303
294
|
"endCaptures": {
|
304
295
|
"1": {
|
305
296
|
"name": "control.variable.parameter.nim"
|
306
297
|
}
|
307
|
-
}
|
308
|
-
"patterns": [
|
309
|
-
{
|
310
|
-
"include": "source.nim"
|
311
|
-
}
|
312
|
-
]
|
298
|
+
}
|
313
299
|
},
|
314
300
|
{
|
315
|
-
"
|
316
|
-
"match": "(
|
317
|
-
"name": "keyword.control.nim"
|
301
|
+
"name": "keyword.control.nim",
|
302
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(await|block|break|continue|do|end|except|finally|raise|return|try|while|yield)(?![\\w\\x{80}-\\x{10FFFF}])"
|
318
303
|
},
|
319
304
|
{
|
320
|
-
"
|
321
|
-
"match": "((
|
322
|
-
"name": "keyword.operator.boolean.nim"
|
305
|
+
"name": "keyword.operator.boolean.nim",
|
306
|
+
"match": "((?\u003c![\\w\\x{80}-\\x{10FFFF}])(and|in|is|isnot|not|notin|or|xor)(?![\\w\\x{80}-\\x{10FFFF}]))"
|
323
307
|
},
|
324
308
|
{
|
325
|
-
"
|
326
|
-
"match": "((
|
327
|
-
"name": "keyword.other.nim"
|
309
|
+
"name": "keyword.other.nim",
|
310
|
+
"match": "((?\u003c![\\w\\x{80}-\\x{10FFFF}])(addr|as|atomic|bind|cast|const|converter|defer|discard|distinct|div|enum|export|include|let|mixin|object|of|ptr|ref|shl|shr|static|type|var)(?![\\w\\x{80}-\\x{10FFFF}]))"
|
328
311
|
},
|
329
312
|
{
|
330
|
-
"
|
331
|
-
"match": "(\\b()\\b|(
|
332
|
-
"name": "keyword.operator.nim"
|
313
|
+
"name": "keyword.operator.nim",
|
314
|
+
"match": "(\\b()\\b|(=|\\+|-|\\*|/|\u003c|\u003e|@|\\$|~|\u0026|%|!|\\?|\\^|\\.|:|\\\\)+)"
|
333
315
|
},
|
334
316
|
{
|
317
|
+
"name": "meta.forloop.nim",
|
335
318
|
"begin": "(for)\\s+",
|
336
|
-
"captures": {
|
337
|
-
"1": {
|
338
|
-
"name": "keyword.control.nim"
|
339
|
-
}
|
340
|
-
},
|
341
|
-
"comment": "in keyword in a 'for' loop",
|
342
319
|
"end": "(?=:)",
|
343
|
-
"name": "meta.forloop.nim",
|
344
320
|
"patterns": [
|
345
321
|
{
|
322
|
+
"match": "\\ [\\w\\x{80}-\\x{10FFFF},]+\\s+(in)\\s+",
|
346
323
|
"captures": {
|
347
324
|
"1": {
|
348
325
|
"name": "keyword.control.nim"
|
349
326
|
}
|
350
|
-
}
|
351
|
-
"match": "\\ [\\w\\x{80}-\\x{10FFFF},]+\\s+(in)\\s+"
|
327
|
+
}
|
352
328
|
},
|
353
329
|
{
|
354
330
|
"include": "source.nim"
|
355
331
|
}
|
356
|
-
]
|
332
|
+
],
|
333
|
+
"captures": {
|
334
|
+
"1": {
|
335
|
+
"name": "keyword.control.nim"
|
336
|
+
}
|
337
|
+
}
|
357
338
|
},
|
358
339
|
{
|
340
|
+
"match": "((import)\\s+[\\.|\\w|\\/]+,?)",
|
359
341
|
"captures": {
|
360
342
|
"2": {
|
361
343
|
"name": "keyword.control.nim"
|
362
344
|
}
|
363
|
-
}
|
364
|
-
"comment": "Import syntax",
|
365
|
-
"match": "((import)\\s+[\\.|\\w|\\/]+,?)"
|
345
|
+
}
|
366
346
|
},
|
367
347
|
{
|
348
|
+
"match": "(from)\\s+[\\/\\w]+\\s+(?=import)",
|
368
349
|
"captures": {
|
369
350
|
"1": {
|
370
351
|
"name": "keyword.control.nim"
|
371
352
|
}
|
372
|
-
}
|
373
|
-
"match": "(from)\\s+[\\/\\w]+\\s+(?=import)"
|
353
|
+
}
|
374
354
|
},
|
375
355
|
{
|
376
356
|
"begin": "(var|let)\\s*\\(",
|
357
|
+
"end": "\\)",
|
377
358
|
"captures": {
|
378
359
|
"1": {
|
379
360
|
"name": "keyword.other.nim"
|
380
361
|
}
|
381
|
-
}
|
382
|
-
"comment": "Destructure syntax",
|
383
|
-
"end": "\\)"
|
362
|
+
}
|
384
363
|
},
|
385
364
|
{
|
386
|
-
"
|
387
|
-
"match": "((
|
388
|
-
"name": "keyword.invalid.nim"
|
365
|
+
"name": "keyword.invalid.nim",
|
366
|
+
"match": "((?\u003c![\\w\\x{80}-\\x{10FFFF}])(generic|interface|lambda|out|shared|with|without)(?![\\w\\x{80}-\\x{10FFFF}]))"
|
389
367
|
},
|
390
368
|
{
|
391
|
-
"
|
392
|
-
"match": "(
|
393
|
-
"name": "keyword.other.common.function.nim"
|
369
|
+
"name": "keyword.other.common.function.nim",
|
370
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(new|GC_ref|GC_unref|assert|echo|defined|declared|newException|countup|countdown|len|high|low)(?![\\w\\x{80}-\\x{10FFFF}])"
|
394
371
|
},
|
395
372
|
{
|
396
|
-
"
|
397
|
-
"match": "(
|
398
|
-
"name": "storage.type.concrete.nim"
|
373
|
+
"name": "storage.type.concrete.nim",
|
374
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(((uint|int|float)(8|16|32|64)?)|clong|culong|cchar|cschar|cshort|cint|csize|clonglong|cfloat|cdouble|clongdouble|cuchar|cushort|cuint|culonglong|cstringArray|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed)(?![\\w\\x{80}-\\x{10FFFF}])"
|
399
375
|
},
|
400
376
|
{
|
401
|
-
"
|
402
|
-
"match": "(
|
403
|
-
"name": "storage.type.generic.nim"
|
377
|
+
"name": "storage.type.generic.nim",
|
378
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(range|array|seq|tuple|natural|set|ref|ptr|pointer)(?![\\w\\x{80}-\\x{10FFFF}])"
|
404
379
|
},
|
405
380
|
{
|
406
|
-
"
|
407
|
-
"match": "(
|
408
|
-
"name": "storage.type.function.nim"
|
381
|
+
"name": "storage.type.function.nim",
|
382
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(proc|iterator|method|template|macro)(?![\\w\\x{80}-\\x{10FFFF}])"
|
409
383
|
},
|
410
384
|
{
|
411
|
-
"
|
412
|
-
"match": "(
|
413
|
-
"name": "storage.type.generic.nim"
|
385
|
+
"name": "storage.type.generic.nim",
|
386
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(openarray|varargs|void)(?![\\w\\x{80}-\\x{10FFFF}])"
|
414
387
|
},
|
415
388
|
{
|
416
|
-
"
|
417
|
-
"match": "(
|
418
|
-
"name": "support.constant.nim"
|
389
|
+
"name": "support.constant.nim",
|
390
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])([A-Z][A-Z0-9_]+)(?![\\w\\x{80}-\\x{10FFFF}])"
|
419
391
|
},
|
420
392
|
{
|
421
|
-
"
|
422
|
-
"match": "(
|
423
|
-
"name": "support.type.nim"
|
393
|
+
"name": "support.type.nim",
|
394
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])([A-Z]\\w+)(?![\\w\\x{80}-\\x{10FFFF}])"
|
424
395
|
},
|
425
396
|
{
|
426
|
-
"
|
427
|
-
"match": "(
|
428
|
-
"name": "support.function.any-method.nim"
|
397
|
+
"name": "support.function.any-method.nim",
|
398
|
+
"match": "(?\u003c![\\w\\x{80}-\\x{10FFFF}])(\\w+)(?![\\w\\x{80}-\\x{10FFFF}])(?=\\()"
|
429
399
|
},
|
430
400
|
{
|
401
|
+
"name": "string.quoted.triple.nim",
|
431
402
|
"begin": "r?\\\"\\\"\\\"",
|
432
|
-
"
|
433
|
-
"end": "\\\"\\\"\\\"[^\\\"]",
|
434
|
-
"name": "string.quoted.triple.nim"
|
403
|
+
"end": "\\\"\\\"\\\"[^\\\"]"
|
435
404
|
},
|
436
405
|
{
|
406
|
+
"name": "string.quoted.double.raw.nim",
|
437
407
|
"begin": "r\\\"",
|
438
|
-
"comment": "Raw Double Quoted String",
|
439
408
|
"end": "\\\"",
|
440
|
-
"name": "string.quoted.double.raw.nim",
|
441
409
|
"patterns": [
|
442
410
|
{
|
443
411
|
"match": "\\\"\\\""
|
@@ -445,10 +413,9 @@
|
|
445
413
|
]
|
446
414
|
},
|
447
415
|
{
|
416
|
+
"name": "string.quoted.double.nim",
|
448
417
|
"begin": "\\\"",
|
449
|
-
"comment": "Double Quoted String",
|
450
418
|
"end": "\\\"",
|
451
|
-
"name": "string.quoted.double.nim",
|
452
419
|
"patterns": [
|
453
420
|
{
|
454
421
|
"include": "#escaped_char"
|
@@ -456,67 +423,65 @@
|
|
456
423
|
]
|
457
424
|
},
|
458
425
|
{
|
426
|
+
"name": "string.quoted.single.nim",
|
459
427
|
"begin": "\\'",
|
460
|
-
"comment": "Single quoted character literal",
|
461
428
|
"end": "\\'",
|
462
|
-
"name": "string.quoted.single.nim",
|
463
429
|
"patterns": [
|
464
430
|
{
|
465
|
-
"
|
466
|
-
"
|
431
|
+
"name": "invalid.illegal.character.nim",
|
432
|
+
"match": "\\\\n"
|
467
433
|
},
|
468
434
|
{
|
469
435
|
"include": "#escaped_char"
|
470
436
|
},
|
471
437
|
{
|
472
|
-
"
|
473
|
-
"
|
438
|
+
"name": "invalid.illegal.character.nim",
|
439
|
+
"match": "([^\\'][^\\']+?)"
|
474
440
|
}
|
475
441
|
]
|
476
442
|
},
|
477
443
|
{
|
478
444
|
"begin": "([\\w\\x{80}-\\x{10FFFF}\\`]+)\\s*(?=\\(|\\[.+?\\]\\s*\\()",
|
479
|
-
"captures": {
|
480
|
-
"1": {
|
481
|
-
"name": "support.function.any-method.nim"
|
482
|
-
}
|
483
|
-
},
|
484
|
-
"comment": "Call syntax",
|
485
445
|
"end": "\\)",
|
486
446
|
"patterns": [
|
487
447
|
{
|
488
448
|
"include": "source.nim"
|
489
449
|
}
|
490
|
-
]
|
491
|
-
},
|
492
|
-
{
|
450
|
+
],
|
493
451
|
"captures": {
|
494
452
|
"1": {
|
495
453
|
"name": "support.function.any-method.nim"
|
496
454
|
}
|
497
|
-
}
|
498
|
-
|
455
|
+
}
|
456
|
+
},
|
457
|
+
{
|
499
458
|
"match": "([\\w\\x{80}-\\x{10FFFF}]+)(?=\\s+[\\w](?![\\w\\x{80}-\\x{10FFFF}]+((?!\\n)\\s)+))",
|
500
459
|
"patterns": [
|
501
460
|
{
|
502
461
|
"include": "source.nim"
|
503
462
|
}
|
504
|
-
]
|
505
|
-
},
|
506
|
-
{
|
463
|
+
],
|
507
464
|
"captures": {
|
508
465
|
"1": {
|
509
466
|
"name": "support.function.any-method.nim"
|
510
467
|
}
|
511
|
-
}
|
468
|
+
}
|
469
|
+
},
|
470
|
+
{
|
512
471
|
"match": "([\\w\\x{80}-\\x{10FFFF}]+)(?=\\s+[\\\"\\'\\`])",
|
513
472
|
"patterns": [
|
514
473
|
{
|
515
474
|
"include": "source.nim"
|
516
475
|
}
|
517
|
-
]
|
476
|
+
],
|
477
|
+
"captures": {
|
478
|
+
"1": {
|
479
|
+
"name": "support.function.any-method.nim"
|
480
|
+
}
|
481
|
+
}
|
518
482
|
},
|
519
483
|
{
|
484
|
+
"match": "(tmpl(i)?)(?=( (nim|html|xml|js|css|glsl|md))?\\\"\\\"\\\")",
|
520
485
|
"captures": {
|
521
486
|
"1": {
|
522
487
|
"name": "storage.type.function.nim"
|
@@ -524,46 +489,37 @@
|
|
524
489
|
"2": {
|
525
490
|
"name": "keyword.operator.nim"
|
526
491
|
}
|
527
|
-
}
|
528
|
-
"comment": "tmpl specifier",
|
529
|
-
"match": "(tmpl(i)?)(?=( (nim|html|xml|js|css|glsl|md))?\\\"\\\"\\\")"
|
492
|
+
}
|
530
493
|
},
|
531
494
|
{
|
532
495
|
"name": "source.nim.embedded.nim",
|
533
496
|
"patterns": [
|
534
497
|
{
|
535
498
|
"begin": "(nim)(\\\"\\\"\\\")",
|
536
|
-
"captures": {
|
537
|
-
"1": {
|
538
|
-
"name": "storage.type.function.nim"
|
539
|
-
},
|
540
|
-
"2": {
|
541
|
-
"name": "comment.syntax.nim"
|
542
|
-
}
|
543
|
-
},
|
544
499
|
"end": "\\\"\\\"\\\"",
|
545
|
-
"endCaptures": {
|
546
|
-
"0": {
|
547
|
-
"name": "comment.syntax.nim"
|
548
|
-
}
|
549
|
-
},
|
550
500
|
"patterns": [
|
551
501
|
{
|
552
|
-
"begin": "(
|
502
|
+
"begin": "(?\u003c!\\$)(\\$)\\(",
|
503
|
+
"end": "\\)",
|
504
|
+
"patterns": [
|
505
|
+
{
|
506
|
+
"include": "source.nim"
|
507
|
+
}
|
508
|
+
],
|
553
509
|
"captures": {
|
554
510
|
"1": {
|
555
511
|
"name": "keyword.operator.nim"
|
556
512
|
}
|
557
|
-
}
|
558
|
-
|
513
|
+
}
|
514
|
+
},
|
515
|
+
{
|
516
|
+
"begin": "(?\u003c!\\$)(\\$)\\{",
|
517
|
+
"end": "\\}",
|
559
518
|
"patterns": [
|
560
519
|
{
|
561
520
|
"include": "source.nim"
|
562
521
|
}
|
563
|
-
]
|
564
|
-
},
|
565
|
-
{
|
566
|
-
"begin": "(?<!\\$)(\\$)\\{",
|
522
|
+
],
|
567
523
|
"captures": {
|
568
524
|
"1": {
|
569
525
|
"name": "keyword.operator.nim"
|
@@ -571,16 +527,16 @@
|
|
571
527
|
"2": {
|
572
528
|
"name": "keyword.operator.nim"
|
573
529
|
}
|
574
|
-
}
|
575
|
-
|
530
|
+
}
|
531
|
+
},
|
532
|
+
{
|
533
|
+
"begin": "(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
534
|
+
"end": "(\\{|\\n)",
|
576
535
|
"patterns": [
|
577
536
|
{
|
578
537
|
"include": "source.nim"
|
579
538
|
}
|
580
|
-
]
|
581
|
-
},
|
582
|
-
{
|
583
|
-
"begin": "(?<!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
539
|
+
],
|
584
540
|
"captures": {
|
585
541
|
"1": {
|
586
542
|
"name": "keyword.operator.nim"
|
@@ -589,34 +545,20 @@
|
|
589
545
|
"name": "keyword.control.nim"
|
590
546
|
}
|
591
547
|
},
|
592
|
-
"end": "(\\{|\\n)",
|
593
548
|
"endCaptures": {
|
594
549
|
"1": {
|
595
550
|
"name": "plain"
|
596
551
|
}
|
597
|
-
}
|
598
|
-
"patterns": [
|
599
|
-
{
|
600
|
-
"include": "source.nim"
|
601
|
-
}
|
602
|
-
]
|
552
|
+
}
|
603
553
|
},
|
604
554
|
{
|
605
|
-
"
|
606
|
-
"
|
555
|
+
"name": "keyword.operator.nim",
|
556
|
+
"match": "(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"
|
607
557
|
},
|
608
558
|
{
|
609
559
|
"include": "source.nim"
|
610
560
|
}
|
611
|
-
]
|
612
|
-
}
|
613
|
-
]
|
614
|
-
},
|
615
|
-
{
|
616
|
-
"name": "source.html.embedded.nim",
|
617
|
-
"patterns": [
|
618
|
-
{
|
619
|
-
"begin": "(html)(\\\"\\\"\\\")",
|
561
|
+
],
|
620
562
|
"captures": {
|
621
563
|
"1": {
|
622
564
|
"name": "storage.type.function.nim"
|
@@ -625,29 +567,43 @@
|
|
625
567
|
"name": "comment.syntax.nim"
|
626
568
|
}
|
627
569
|
},
|
628
|
-
"end": "\\\"\\\"\\\"",
|
629
570
|
"endCaptures": {
|
630
571
|
"0": {
|
631
572
|
"name": "comment.syntax.nim"
|
632
573
|
}
|
633
|
-
}
|
574
|
+
}
|
575
|
+
}
|
576
|
+
]
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"name": "source.html.embedded.nim",
|
580
|
+
"patterns": [
|
581
|
+
{
|
582
|
+
"begin": "(html)(\\\"\\\"\\\")",
|
583
|
+
"end": "\\\"\\\"\\\"",
|
634
584
|
"patterns": [
|
635
585
|
{
|
636
|
-
"begin": "(
|
586
|
+
"begin": "(?\u003c!\\$)(\\$)\\(",
|
587
|
+
"end": "\\)",
|
588
|
+
"patterns": [
|
589
|
+
{
|
590
|
+
"include": "source.nim"
|
591
|
+
}
|
592
|
+
],
|
637
593
|
"captures": {
|
638
594
|
"1": {
|
639
595
|
"name": "keyword.operator.nim"
|
640
596
|
}
|
641
|
-
}
|
642
|
-
|
597
|
+
}
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"begin": "(?\u003c!\\$)(\\$)\\{",
|
601
|
+
"end": "\\}",
|
643
602
|
"patterns": [
|
644
603
|
{
|
645
604
|
"include": "source.nim"
|
646
605
|
}
|
647
|
-
]
|
648
|
-
},
|
649
|
-
{
|
650
|
-
"begin": "(?<!\\$)(\\$)\\{",
|
606
|
+
],
|
651
607
|
"captures": {
|
652
608
|
"1": {
|
653
609
|
"name": "keyword.operator.nim"
|
@@ -655,16 +611,16 @@
|
|
655
611
|
"2": {
|
656
612
|
"name": "keyword.operator.nim"
|
657
613
|
}
|
658
|
-
}
|
659
|
-
|
614
|
+
}
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"begin": "(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
618
|
+
"end": "(\\{|\\n)",
|
660
619
|
"patterns": [
|
661
620
|
{
|
662
621
|
"include": "source.nim"
|
663
622
|
}
|
664
|
-
]
|
665
|
-
},
|
666
|
-
{
|
667
|
-
"begin": "(?<!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
623
|
+
],
|
668
624
|
"captures": {
|
669
625
|
"1": {
|
670
626
|
"name": "keyword.operator.nim"
|
@@ -673,34 +629,20 @@
|
|
673
629
|
"name": "keyword.control.nim"
|
674
630
|
}
|
675
631
|
},
|
676
|
-
"end": "(\\{|\\n)",
|
677
632
|
"endCaptures": {
|
678
633
|
"1": {
|
679
634
|
"name": "plain"
|
680
635
|
}
|
681
|
-
}
|
682
|
-
"patterns": [
|
683
|
-
{
|
684
|
-
"include": "source.nim"
|
685
|
-
}
|
686
|
-
]
|
636
|
+
}
|
687
637
|
},
|
688
638
|
{
|
689
|
-
"
|
690
|
-
"
|
639
|
+
"name": "keyword.operator.nim",
|
640
|
+
"match": "(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"
|
691
641
|
},
|
692
642
|
{
|
693
643
|
"include": "text.xml"
|
694
644
|
}
|
695
|
-
]
|
696
|
-
}
|
697
|
-
]
|
698
|
-
},
|
699
|
-
{
|
700
|
-
"name": "source.xml.embedded.nim",
|
701
|
-
"patterns": [
|
702
|
-
{
|
703
|
-
"begin": "(xml)(\\\"\\\"\\\")",
|
645
|
+
],
|
704
646
|
"captures": {
|
705
647
|
"1": {
|
706
648
|
"name": "storage.type.function.nim"
|
@@ -709,29 +651,43 @@
|
|
709
651
|
"name": "comment.syntax.nim"
|
710
652
|
}
|
711
653
|
},
|
712
|
-
"end": "\\\"\\\"\\\"",
|
713
654
|
"endCaptures": {
|
714
655
|
"0": {
|
715
656
|
"name": "comment.syntax.nim"
|
716
657
|
}
|
717
|
-
}
|
658
|
+
}
|
659
|
+
}
|
660
|
+
]
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"name": "source.xml.embedded.nim",
|
664
|
+
"patterns": [
|
665
|
+
{
|
666
|
+
"begin": "(xml)(\\\"\\\"\\\")",
|
667
|
+
"end": "\\\"\\\"\\\"",
|
718
668
|
"patterns": [
|
719
669
|
{
|
720
|
-
"begin": "(
|
670
|
+
"begin": "(?\u003c!\\$)(\\$)\\(",
|
671
|
+
"end": "\\)",
|
672
|
+
"patterns": [
|
673
|
+
{
|
674
|
+
"include": "source.nim"
|
675
|
+
}
|
676
|
+
],
|
721
677
|
"captures": {
|
722
678
|
"1": {
|
723
679
|
"name": "keyword.operator.nim"
|
724
680
|
}
|
725
|
-
}
|
726
|
-
|
681
|
+
}
|
682
|
+
},
|
683
|
+
{
|
684
|
+
"begin": "(?\u003c!\\$)(\\$)\\{",
|
685
|
+
"end": "\\}",
|
727
686
|
"patterns": [
|
728
687
|
{
|
729
688
|
"include": "source.nim"
|
730
689
|
}
|
731
|
-
]
|
732
|
-
},
|
733
|
-
{
|
734
|
-
"begin": "(?<!\\$)(\\$)\\{",
|
690
|
+
],
|
735
691
|
"captures": {
|
736
692
|
"1": {
|
737
693
|
"name": "keyword.operator.nim"
|
@@ -739,16 +695,16 @@
|
|
739
695
|
"2": {
|
740
696
|
"name": "keyword.operator.nim"
|
741
697
|
}
|
742
|
-
}
|
743
|
-
|
698
|
+
}
|
699
|
+
},
|
700
|
+
{
|
701
|
+
"begin": "(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
702
|
+
"end": "(\\{|\\n)",
|
744
703
|
"patterns": [
|
745
704
|
{
|
746
705
|
"include": "source.nim"
|
747
706
|
}
|
748
|
-
]
|
749
|
-
},
|
750
|
-
{
|
751
|
-
"begin": "(?<!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
707
|
+
],
|
752
708
|
"captures": {
|
753
709
|
"1": {
|
754
710
|
"name": "keyword.operator.nim"
|
@@ -757,34 +713,20 @@
|
|
757
713
|
"name": "keyword.control.nim"
|
758
714
|
}
|
759
715
|
},
|
760
|
-
"end": "(\\{|\\n)",
|
761
716
|
"endCaptures": {
|
762
717
|
"1": {
|
763
718
|
"name": "plain"
|
764
719
|
}
|
765
|
-
}
|
766
|
-
"patterns": [
|
767
|
-
{
|
768
|
-
"include": "source.nim"
|
769
|
-
}
|
770
|
-
]
|
720
|
+
}
|
771
721
|
},
|
772
722
|
{
|
773
|
-
"
|
774
|
-
"
|
723
|
+
"name": "keyword.operator.nim",
|
724
|
+
"match": "(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"
|
775
725
|
},
|
776
726
|
{
|
777
727
|
"include": "text.xml"
|
778
728
|
}
|
779
|
-
]
|
780
|
-
}
|
781
|
-
]
|
782
|
-
},
|
783
|
-
{
|
784
|
-
"name": "source.js.embedded.nim",
|
785
|
-
"patterns": [
|
786
|
-
{
|
787
|
-
"begin": "(js)(\\\"\\\"\\\")",
|
729
|
+
],
|
788
730
|
"captures": {
|
789
731
|
"1": {
|
790
732
|
"name": "storage.type.function.nim"
|
@@ -793,29 +735,43 @@
|
|
793
735
|
"name": "comment.syntax.nim"
|
794
736
|
}
|
795
737
|
},
|
796
|
-
"end": "\\\"\\\"\\\"",
|
797
738
|
"endCaptures": {
|
798
739
|
"0": {
|
799
740
|
"name": "comment.syntax.nim"
|
800
741
|
}
|
801
|
-
}
|
742
|
+
}
|
743
|
+
}
|
744
|
+
]
|
745
|
+
},
|
746
|
+
{
|
747
|
+
"name": "source.js.embedded.nim",
|
748
|
+
"patterns": [
|
749
|
+
{
|
750
|
+
"begin": "(js)(\\\"\\\"\\\")",
|
751
|
+
"end": "\\\"\\\"\\\"",
|
802
752
|
"patterns": [
|
803
753
|
{
|
804
|
-
"begin": "(
|
754
|
+
"begin": "(?\u003c!\\$)(\\$)\\(",
|
755
|
+
"end": "\\)",
|
756
|
+
"patterns": [
|
757
|
+
{
|
758
|
+
"include": "source.nim"
|
759
|
+
}
|
760
|
+
],
|
805
761
|
"captures": {
|
806
762
|
"1": {
|
807
763
|
"name": "keyword.operator.nim"
|
808
764
|
}
|
809
|
-
}
|
810
|
-
|
765
|
+
}
|
766
|
+
},
|
767
|
+
{
|
768
|
+
"begin": "(?\u003c!\\$)(\\$)\\{",
|
769
|
+
"end": "\\}",
|
811
770
|
"patterns": [
|
812
771
|
{
|
813
772
|
"include": "source.nim"
|
814
773
|
}
|
815
|
-
]
|
816
|
-
},
|
817
|
-
{
|
818
|
-
"begin": "(?<!\\$)(\\$)\\{",
|
774
|
+
],
|
819
775
|
"captures": {
|
820
776
|
"1": {
|
821
777
|
"name": "keyword.operator.nim"
|
@@ -823,16 +779,16 @@
|
|
823
779
|
"2": {
|
824
780
|
"name": "keyword.operator.nim"
|
825
781
|
}
|
826
|
-
}
|
827
|
-
|
782
|
+
}
|
783
|
+
},
|
784
|
+
{
|
785
|
+
"begin": "(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
786
|
+
"end": "(\\{|\\n)",
|
828
787
|
"patterns": [
|
829
788
|
{
|
830
789
|
"include": "source.nim"
|
831
790
|
}
|
832
|
-
]
|
833
|
-
},
|
834
|
-
{
|
835
|
-
"begin": "(?<!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
791
|
+
],
|
836
792
|
"captures": {
|
837
793
|
"1": {
|
838
794
|
"name": "keyword.operator.nim"
|
@@ -841,34 +797,20 @@
|
|
841
797
|
"name": "keyword.control.nim"
|
842
798
|
}
|
843
799
|
},
|
844
|
-
"end": "(\\{|\\n)",
|
845
800
|
"endCaptures": {
|
846
801
|
"1": {
|
847
802
|
"name": "plain"
|
848
803
|
}
|
849
|
-
}
|
850
|
-
"patterns": [
|
851
|
-
{
|
852
|
-
"include": "source.nim"
|
853
|
-
}
|
854
|
-
]
|
804
|
+
}
|
855
805
|
},
|
856
806
|
{
|
857
|
-
"
|
858
|
-
"
|
807
|
+
"name": "keyword.operator.nim",
|
808
|
+
"match": "(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"
|
859
809
|
},
|
860
810
|
{
|
861
811
|
"include": "source.js"
|
862
812
|
}
|
863
|
-
]
|
864
|
-
}
|
865
|
-
]
|
866
|
-
},
|
867
|
-
{
|
868
|
-
"name": "source.css.embedded.nim",
|
869
|
-
"patterns": [
|
870
|
-
{
|
871
|
-
"begin": "(css)(\\\"\\\"\\\")",
|
813
|
+
],
|
872
814
|
"captures": {
|
873
815
|
"1": {
|
874
816
|
"name": "storage.type.function.nim"
|
@@ -877,29 +819,43 @@
|
|
877
819
|
"name": "comment.syntax.nim"
|
878
820
|
}
|
879
821
|
},
|
880
|
-
"end": "\\\"\\\"\\\"",
|
881
822
|
"endCaptures": {
|
882
823
|
"0": {
|
883
824
|
"name": "comment.syntax.nim"
|
884
825
|
}
|
885
|
-
}
|
826
|
+
}
|
827
|
+
}
|
828
|
+
]
|
829
|
+
},
|
830
|
+
{
|
831
|
+
"name": "source.css.embedded.nim",
|
832
|
+
"patterns": [
|
833
|
+
{
|
834
|
+
"begin": "(css)(\\\"\\\"\\\")",
|
835
|
+
"end": "\\\"\\\"\\\"",
|
886
836
|
"patterns": [
|
887
837
|
{
|
888
|
-
"begin": "(
|
838
|
+
"begin": "(?\u003c!\\$)(\\$)\\(",
|
839
|
+
"end": "\\)",
|
840
|
+
"patterns": [
|
841
|
+
{
|
842
|
+
"include": "source.nim"
|
843
|
+
}
|
844
|
+
],
|
889
845
|
"captures": {
|
890
846
|
"1": {
|
891
847
|
"name": "keyword.operator.nim"
|
892
848
|
}
|
893
|
-
}
|
894
|
-
|
849
|
+
}
|
850
|
+
},
|
851
|
+
{
|
852
|
+
"begin": "(?\u003c!\\$)(\\$)\\{",
|
853
|
+
"end": "\\}",
|
895
854
|
"patterns": [
|
896
855
|
{
|
897
856
|
"include": "source.nim"
|
898
857
|
}
|
899
|
-
]
|
900
|
-
},
|
901
|
-
{
|
902
|
-
"begin": "(?<!\\$)(\\$)\\{",
|
858
|
+
],
|
903
859
|
"captures": {
|
904
860
|
"1": {
|
905
861
|
"name": "keyword.operator.nim"
|
@@ -907,16 +863,16 @@
|
|
907
863
|
"2": {
|
908
864
|
"name": "keyword.operator.nim"
|
909
865
|
}
|
910
|
-
}
|
911
|
-
|
866
|
+
}
|
867
|
+
},
|
868
|
+
{
|
869
|
+
"begin": "(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
870
|
+
"end": "(\\{|\\n)",
|
912
871
|
"patterns": [
|
913
872
|
{
|
914
873
|
"include": "source.nim"
|
915
874
|
}
|
916
|
-
]
|
917
|
-
},
|
918
|
-
{
|
919
|
-
"begin": "(?<!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
875
|
+
],
|
920
876
|
"captures": {
|
921
877
|
"1": {
|
922
878
|
"name": "keyword.operator.nim"
|
@@ -925,34 +881,20 @@
|
|
925
881
|
"name": "keyword.control.nim"
|
926
882
|
}
|
927
883
|
},
|
928
|
-
"end": "(\\{|\\n)",
|
929
884
|
"endCaptures": {
|
930
885
|
"1": {
|
931
886
|
"name": "plain"
|
932
887
|
}
|
933
|
-
}
|
934
|
-
"patterns": [
|
935
|
-
{
|
936
|
-
"include": "source.nim"
|
937
|
-
}
|
938
|
-
]
|
888
|
+
}
|
939
889
|
},
|
940
890
|
{
|
941
|
-
"
|
942
|
-
"
|
891
|
+
"name": "keyword.operator.nim",
|
892
|
+
"match": "(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"
|
943
893
|
},
|
944
894
|
{
|
945
895
|
"include": "source.css"
|
946
896
|
}
|
947
|
-
]
|
948
|
-
}
|
949
|
-
]
|
950
|
-
},
|
951
|
-
{
|
952
|
-
"name": "source.glsl.embedded.nim",
|
953
|
-
"patterns": [
|
954
|
-
{
|
955
|
-
"begin": "(glsl)(\\\"\\\"\\\")",
|
897
|
+
],
|
956
898
|
"captures": {
|
957
899
|
"1": {
|
958
900
|
"name": "storage.type.function.nim"
|
@@ -961,29 +903,43 @@
|
|
961
903
|
"name": "comment.syntax.nim"
|
962
904
|
}
|
963
905
|
},
|
964
|
-
"end": "\\\"\\\"\\\"",
|
965
906
|
"endCaptures": {
|
966
907
|
"0": {
|
967
908
|
"name": "comment.syntax.nim"
|
968
909
|
}
|
969
|
-
}
|
910
|
+
}
|
911
|
+
}
|
912
|
+
]
|
913
|
+
},
|
914
|
+
{
|
915
|
+
"name": "source.glsl.embedded.nim",
|
916
|
+
"patterns": [
|
917
|
+
{
|
918
|
+
"begin": "(glsl)(\\\"\\\"\\\")",
|
919
|
+
"end": "\\\"\\\"\\\"",
|
970
920
|
"patterns": [
|
971
921
|
{
|
972
|
-
"begin": "(
|
922
|
+
"begin": "(?\u003c!\\$)(\\$)\\(",
|
923
|
+
"end": "\\)",
|
924
|
+
"patterns": [
|
925
|
+
{
|
926
|
+
"include": "source.nim"
|
927
|
+
}
|
928
|
+
],
|
973
929
|
"captures": {
|
974
930
|
"1": {
|
975
931
|
"name": "keyword.operator.nim"
|
976
932
|
}
|
977
|
-
}
|
978
|
-
|
933
|
+
}
|
934
|
+
},
|
935
|
+
{
|
936
|
+
"begin": "(?\u003c!\\$)(\\$)\\{",
|
937
|
+
"end": "\\}",
|
979
938
|
"patterns": [
|
980
939
|
{
|
981
940
|
"include": "source.nim"
|
982
941
|
}
|
983
|
-
]
|
984
|
-
},
|
985
|
-
{
|
986
|
-
"begin": "(?<!\\$)(\\$)\\{",
|
942
|
+
],
|
987
943
|
"captures": {
|
988
944
|
"1": {
|
989
945
|
"name": "keyword.operator.nim"
|
@@ -991,16 +947,16 @@
|
|
991
947
|
"2": {
|
992
948
|
"name": "keyword.operator.nim"
|
993
949
|
}
|
994
|
-
}
|
995
|
-
|
950
|
+
}
|
951
|
+
},
|
952
|
+
{
|
953
|
+
"begin": "(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
954
|
+
"end": "(\\{|\\n)",
|
996
955
|
"patterns": [
|
997
956
|
{
|
998
957
|
"include": "source.nim"
|
999
958
|
}
|
1000
|
-
]
|
1001
|
-
},
|
1002
|
-
{
|
1003
|
-
"begin": "(?<!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
959
|
+
],
|
1004
960
|
"captures": {
|
1005
961
|
"1": {
|
1006
962
|
"name": "keyword.operator.nim"
|
@@ -1009,34 +965,20 @@
|
|
1009
965
|
"name": "keyword.control.nim"
|
1010
966
|
}
|
1011
967
|
},
|
1012
|
-
"end": "(\\{|\\n)",
|
1013
968
|
"endCaptures": {
|
1014
969
|
"1": {
|
1015
970
|
"name": "plain"
|
1016
971
|
}
|
1017
|
-
}
|
1018
|
-
"patterns": [
|
1019
|
-
{
|
1020
|
-
"include": "source.nim"
|
1021
|
-
}
|
1022
|
-
]
|
972
|
+
}
|
1023
973
|
},
|
1024
974
|
{
|
1025
|
-
"
|
1026
|
-
"
|
975
|
+
"name": "keyword.operator.nim",
|
976
|
+
"match": "(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"
|
1027
977
|
},
|
1028
978
|
{
|
1029
979
|
"include": "source.glsl"
|
1030
980
|
}
|
1031
|
-
]
|
1032
|
-
}
|
1033
|
-
]
|
1034
|
-
},
|
1035
|
-
{
|
1036
|
-
"name": "source.markdown.embedded.nim",
|
1037
|
-
"patterns": [
|
1038
|
-
{
|
1039
|
-
"begin": "(md)(\\\"\\\"\\\")",
|
981
|
+
],
|
1040
982
|
"captures": {
|
1041
983
|
"1": {
|
1042
984
|
"name": "storage.type.function.nim"
|
@@ -1045,29 +987,43 @@
|
|
1045
987
|
"name": "comment.syntax.nim"
|
1046
988
|
}
|
1047
989
|
},
|
1048
|
-
"end": "\\\"\\\"\\\"",
|
1049
990
|
"endCaptures": {
|
1050
991
|
"0": {
|
1051
992
|
"name": "comment.syntax.nim"
|
1052
993
|
}
|
1053
|
-
}
|
994
|
+
}
|
995
|
+
}
|
996
|
+
]
|
997
|
+
},
|
998
|
+
{
|
999
|
+
"name": "source.markdown.embedded.nim",
|
1000
|
+
"patterns": [
|
1001
|
+
{
|
1002
|
+
"begin": "(md)(\\\"\\\"\\\")",
|
1003
|
+
"end": "\\\"\\\"\\\"",
|
1054
1004
|
"patterns": [
|
1055
1005
|
{
|
1056
|
-
"begin": "(
|
1006
|
+
"begin": "(?\u003c!\\$)(\\$)\\(",
|
1007
|
+
"end": "\\)",
|
1008
|
+
"patterns": [
|
1009
|
+
{
|
1010
|
+
"include": "source.nim"
|
1011
|
+
}
|
1012
|
+
],
|
1057
1013
|
"captures": {
|
1058
1014
|
"1": {
|
1059
1015
|
"name": "keyword.operator.nim"
|
1060
1016
|
}
|
1061
|
-
}
|
1062
|
-
|
1017
|
+
}
|
1018
|
+
},
|
1019
|
+
{
|
1020
|
+
"begin": "(?\u003c!\\$)(\\$)\\{",
|
1021
|
+
"end": "\\}",
|
1063
1022
|
"patterns": [
|
1064
1023
|
{
|
1065
1024
|
"include": "source.nim"
|
1066
1025
|
}
|
1067
|
-
]
|
1068
|
-
},
|
1069
|
-
{
|
1070
|
-
"begin": "(?<!\\$)(\\$)\\{",
|
1026
|
+
],
|
1071
1027
|
"captures": {
|
1072
1028
|
"1": {
|
1073
1029
|
"name": "keyword.operator.nim"
|
@@ -1075,16 +1031,16 @@
|
|
1075
1031
|
"2": {
|
1076
1032
|
"name": "keyword.operator.nim"
|
1077
1033
|
}
|
1078
|
-
}
|
1079
|
-
|
1034
|
+
}
|
1035
|
+
},
|
1036
|
+
{
|
1037
|
+
"begin": "(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
1038
|
+
"end": "(\\{|\\n)",
|
1080
1039
|
"patterns": [
|
1081
1040
|
{
|
1082
1041
|
"include": "source.nim"
|
1083
1042
|
}
|
1084
|
-
]
|
1085
|
-
},
|
1086
|
-
{
|
1087
|
-
"begin": "(?<!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )",
|
1043
|
+
],
|
1088
1044
|
"captures": {
|
1089
1045
|
"1": {
|
1090
1046
|
"name": "keyword.operator.nim"
|
@@ -1093,26 +1049,31 @@
|
|
1093
1049
|
"name": "keyword.control.nim"
|
1094
1050
|
}
|
1095
1051
|
},
|
1096
|
-
"end": "(\\{|\\n)",
|
1097
1052
|
"endCaptures": {
|
1098
1053
|
"1": {
|
1099
1054
|
"name": "plain"
|
1100
1055
|
}
|
1101
|
-
}
|
1102
|
-
"patterns": [
|
1103
|
-
{
|
1104
|
-
"include": "source.nim"
|
1105
|
-
}
|
1106
|
-
]
|
1056
|
+
}
|
1107
1057
|
},
|
1108
1058
|
{
|
1109
|
-
"
|
1110
|
-
"
|
1059
|
+
"name": "keyword.operator.nim",
|
1060
|
+
"match": "(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"
|
1111
1061
|
},
|
1112
|
-
{
|
1113
|
-
|
1062
|
+
{}
|
1063
|
+
],
|
1064
|
+
"captures": {
|
1065
|
+
"1": {
|
1066
|
+
"name": "storage.type.function.nim"
|
1067
|
+
},
|
1068
|
+
"2": {
|
1069
|
+
"name": "comment.syntax.nim"
|
1114
1070
|
}
|
1115
|
-
|
1071
|
+
},
|
1072
|
+
"endCaptures": {
|
1073
|
+
"0": {
|
1074
|
+
"name": "comment.syntax.nim"
|
1075
|
+
}
|
1076
|
+
}
|
1116
1077
|
}
|
1117
1078
|
]
|
1118
1079
|
}
|
@@ -1121,64 +1082,62 @@
|
|
1121
1082
|
"escaped_char": {
|
1122
1083
|
"patterns": [
|
1123
1084
|
{
|
1124
|
-
"
|
1125
|
-
"
|
1085
|
+
"name": "constant.character.escape.newline.nim",
|
1086
|
+
"match": "\\\\[nN]"
|
1126
1087
|
},
|
1127
1088
|
{
|
1128
|
-
"
|
1129
|
-
"
|
1089
|
+
"name": "constant.character.escape.carriagereturn.nim",
|
1090
|
+
"match": "\\\\[cC]|\\\\[rR]"
|
1130
1091
|
},
|
1131
1092
|
{
|
1132
|
-
"
|
1133
|
-
"
|
1093
|
+
"name": "constant.character.escape.linefeed.nim",
|
1094
|
+
"match": "\\\\[lL]"
|
1134
1095
|
},
|
1135
1096
|
{
|
1136
|
-
"
|
1137
|
-
"
|
1097
|
+
"name": "constant.character.escape.formfeed.nim",
|
1098
|
+
"match": "\\\\[fF]"
|
1138
1099
|
},
|
1139
1100
|
{
|
1140
|
-
"
|
1141
|
-
"
|
1101
|
+
"name": "constant.character.escape.tabulator.nim",
|
1102
|
+
"match": "\\\\[tT]"
|
1142
1103
|
},
|
1143
1104
|
{
|
1144
|
-
"
|
1145
|
-
"
|
1105
|
+
"name": "constant.character.escape.verticaltabulator.nim",
|
1106
|
+
"match": "\\\\[vV]"
|
1146
1107
|
},
|
1147
1108
|
{
|
1148
|
-
"
|
1149
|
-
"
|
1109
|
+
"name": "constant.character.escape.double-quote.nim",
|
1110
|
+
"match": "\\\\\\\""
|
1150
1111
|
},
|
1151
1112
|
{
|
1152
|
-
"
|
1153
|
-
"
|
1113
|
+
"name": "constant.character.escape.single-quote.nim",
|
1114
|
+
"match": "\\\\'"
|
1154
1115
|
},
|
1155
1116
|
{
|
1156
|
-
"
|
1157
|
-
"
|
1117
|
+
"name": "constant.character.escape.chardecimalvalue.nim",
|
1118
|
+
"match": "\\\\[0-9]+"
|
1158
1119
|
},
|
1159
1120
|
{
|
1160
|
-
"
|
1161
|
-
"
|
1121
|
+
"name": "constant.character.escape.alert.nim",
|
1122
|
+
"match": "\\\\[aA]"
|
1162
1123
|
},
|
1163
1124
|
{
|
1164
|
-
"
|
1165
|
-
"
|
1125
|
+
"name": "constant.character.escape.backspace.nim",
|
1126
|
+
"match": "\\\\[bB]"
|
1166
1127
|
},
|
1167
1128
|
{
|
1168
|
-
"
|
1169
|
-
"
|
1129
|
+
"name": "constant.character.escape.escape.nim",
|
1130
|
+
"match": "\\\\[eE]"
|
1170
1131
|
},
|
1171
1132
|
{
|
1172
|
-
"
|
1173
|
-
"
|
1133
|
+
"name": "constant.character.escape.hex.nim",
|
1134
|
+
"match": "\\\\[xX][0-9A-Fa-f]{2}"
|
1174
1135
|
},
|
1175
1136
|
{
|
1176
|
-
"
|
1177
|
-
"
|
1137
|
+
"name": "constant.character.escape.backslash.nim",
|
1138
|
+
"match": "\\\\\\\\"
|
1178
1139
|
}
|
1179
1140
|
]
|
1180
1141
|
}
|
1181
|
-
}
|
1182
|
-
|
1183
|
-
"uuid": "fa6f2c1c-dd3f-4bcd-b2be-d05312be4080"
|
1184
|
-
}
|
1142
|
+
}
|
1143
|
+
}
|