github-linguist 7.11.1 → 7.12.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 +619 -363
- data/ext/linguist/lex.linguist_yy.h +425 -59
- data/ext/linguist/linguist.c +5 -35
- data/ext/linguist/linguist.h +0 -18
- data/ext/linguist/tokenizer.l +61 -36
- 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.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.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.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.blitzmax.json +1 -905
- data/grammars/source.bnf.json +1 -191
- data/grammars/source.boo.json +1 -448
- 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.cake.json +1 -13
- 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.csx.json +1 -13
- 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.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.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.css.json +1 -328
- data/grammars/source.js.json +1 -1897
- data/grammars/source.js.jsx.json +1 -2488
- 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.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.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.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.red.json +1 -644
- 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.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.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.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.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.cfml.basic.json +1 -735
- 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.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.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/generic.yml +17 -0
- data/lib/linguist/heuristics.yml +37 -17
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +41 -2
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/strategy/extension.rb +13 -5
- metadata +12 -6
- data/ext/linguist/strndup.c +0 -10
- data/grammars/source.perl6fe.json +0 -2769
- data/grammars/source.quoting.perl6fe.json +0 -2369
- data/grammars/source.regexp.perl6fe.json +0 -244
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"ReScript","scopeName":"source.rescript","patterns":[{"include":"#storage"},{"include":"#constant"},{"include":"#commentLine"},{"include":"#commentBlock"},{"include":"#character"},{"include":"#string"},{"include":"#attribute"},{"include":"#function"},{"include":"#list"},{"include":"#objectAccess"},{"include":"#array"},{"include":"#jsx"},{"include":"#operator"},{"include":"#assignment"},{"include":"#number"},{"include":"#openOrIncludeModule"},{"include":"#moduleDeclaration"},{"include":"#moduleAccess"},{"include":"#constructor"},{"include":"#keyword"},{"include":"#punctuations"}],"repository":{"RE_ATTRIBUTE":{"match":"[A-Za-z_][A-Za-z0-9_\\.]*"},"RE_IDENT":{"match":"[a-z_][0-9a-zA-Z_]*"},"RE_KEYWORDS":{"name":"keyword.control","match":"\\b(and|as|assert|begin|class|constraint|done|downto|exception|external|fun|functor|inherit|lazy|let|pub|mutable|new|nonrec|object|of|or|pri|rec|then|to|val|virtual|try|catch|finally|do|else|for|if|switch|while|import|library|export|module|in|raise|private)\\b"},"RE_LITERAL":{"name":"constant.language","match":"\\b(true|false)\\b"},"RE_MODULE_IDENT":{"name":"entity.name.namespace","match":"[A-Z_][0-9a-zA-Z_]*"},"array":{"patterns":[{"name":"punctuation.section.brackets.begin","match":"\\["},{"name":"punctuation.section.brackets.end","match":"\\]"}]},"assignment":{"patterns":[{"name":"keyword.operator.assignment","match":"="}]},"attribute":{"patterns":[{"match":"(@@?)([A-Za-z_][A-Za-z0-9_\\.]*)","captures":{"1":{"name":"storage.modifier punctuation.definition.annotation"},"2":{"name":"variable.annotation"}}},{"match":"(%%?)([A-Za-z_][A-Za-z0-9_\\.]*)","captures":{"1":{"name":"storage.modifier punctuation.definition.annotation"},"2":{"name":"variable.annotation"}}}]},"character":{"patterns":[{"name":"string.quoted.single","match":"'[\\x00-\\x7F]'"}]},"commentBlock":{"name":"comment.block","begin":"/\\*","end":"\\*/"},"commentLine":{"name":"comment.line","match":"//.*"},"constant":{"patterns":[{"include":"#RE_LITERAL"}]},"constructor":{"patterns":[{"name":"variable.function variable.other","match":"\\b[A-Z][0-9a-zA-Z_]*\\b"},{"match":"(#)(\\.\\.\\.)?[a-zA-Z][0-9a-zA-Z_]*\\b","captures":{"1":{"name":"punctuation.definition.keyword"},"2":{"name":"punctuation.definition.keyword"}}}]},"function":{"patterns":[{"name":"storage.type.function keyword.declaration.function","match":"=\u003e"}]},"jsx":{"patterns":[{"match":"\u003c\u003e|\u003c/\u003e|/\u003e"},{"match":"\u003c/([A-Z_][0-9a-zA-Z_]*)","captures":{"1":{"name":"entity.name.namespace"}}},{"match":"\u003c/([A-Z_][0-9a-zA-Z_]*)"},{"match":"\u003c([A-Z_][0-9a-zA-Z_]*)","captures":{"1":{"name":"entity.name.namespace"}}}]},"keyword":{"patterns":[{"include":"#RE_KEYWORDS"}]},"list":{"patterns":[{"match":"\\b(list)(\\{)","captures":{"1":{"name":"keyword"},"2":{"name":"punctuation.section.braces.begin"}}},{"name":"punctuation.section.braces.end","match":"\\}"}]},"moduleAccess":{"patterns":[{"match":"\\b([A-Z_][0-9a-zA-Z_]*)(\\.)","captures":{"1":{"name":"entity.name.namespace"},"2":{"name":"punctuation.accessor"}}}]},"moduleAccessEndsWithModule":{"patterns":[{"name":"entity.name.namespace","match":"[A-Z_][0-9a-zA-Z_]*"},{"match":"(\\.)([A-Z_][0-9a-zA-Z_]*)","captures":{"1":{"name":"punctuation.accessor"},"2":{"name":"entity.name.namespace"}}}]},"moduleDeclaration":{"patterns":[{"match":"\\b(module)\\s+(type\\s+)?(of\\s+)?([A-Z_][0-9a-zA-Z_]*)","patterns":[{"match":"\\s*:\\s*([A-Z_][0-9a-zA-Z_]*)","captures":{"1":{"name":"entity.name.namespace"}}}],"captures":{"1":{"name":"keyword"},"2":{"name":"keyword"},"3":{"name":"keyword"},"4":{"name":"entity.name.namespace"}}}]},"number":{"patterns":[{"name":"constant.numeric","match":"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]+)?([eE][-+]?[0-9_]+)?)?)\\b"}]},"objectAccess":{"patterns":[{"match":"\\b[a-z_][0-9a-zA-Z_]*(\\[)","captures":{"1":{"name":"punctuation.section.brackets.begin"}}},{"name":"punctuation.section.brackets.end","match":"\\]"}]},"openOrIncludeModule":{"patterns":[{"match":"\\b(open|include)\\s+([A-Z_][0-9a-zA-Z_]*((\\.)([A-Z_][0-9a-zA-Z_]*))*)","captures":{"1":{"name":"keyword"},"2":{"patterns":[{"include":"#moduleAccessEndsWithModule"}]}}},{"name":"keyword","match":"\\b(open|include)\\s*"}]},"operator":{"patterns":[{"name":"keyword.operator","match":"-\u003e|\\|\\||\u0026\u0026|\\+\\+|\\*\\*|\\+\\.|\\+|-\\.|-|\\*\\.|\\*|/\\.|/|\\.\\.\\.|\\.\\.|\\|\u003e|===|==|\\^|:=|!|\u003e=|\u003c="}]},"punctuations":{"patterns":[{"name":"punctuation.definition.keyword","match":"~"},{"name":"punctuation.terminator","match":";"},{"name":"punctuation.accessor","match":"\\."},{"name":"punctuation.separator","match":"\\,"},{"name":"punctuation.separator","match":"\\?|:"},{"name":"punctuation.separator","match":"\\|(?!\\|)"},{"name":"punctuation.section.braces.begin","match":"\\{"},{"name":"punctuation.section.braces.end","match":"\\}"},{"name":"punctuation.section.parens.begin","match":"\\("},{"name":"punctuation.section.parens.end","match":"\\)"}]},"storage":{"patterns":[{"name":"storage.type","match":"\\btype\\b"}]},"string":{"patterns":[{"name":"string.quoted.double","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape","match":"\\\\."}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end"}}},{"name":"string.template","begin":"([a-z_][0-9a-zA-Z_]*)?(`)","end":"`","patterns":[{"name":"meta.template.expression","begin":"\\$\\{","end":"\\}","patterns":[{"match":"[a-z_][0-9a-zA-Z_]*"},{"include":"#operator"},{"include":"#punctuations"}],"beginCaptures":{"0":{"name":"punctuation.section.interpolation.begin"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end"}}}],"beginCaptures":{"1":{"name":"variables.annotation"},"2":{"name":"punctuation.definition.string.template.begin"}},"endCaptures":{"1":{"name":"punctuation.definition.string.template.end"}}}]}}}
|
data/grammars/source.rexx.json
CHANGED
@@ -1,52 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "REXX",
|
3
|
-
"scopeName": "source.rexx",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "comment.rexx",
|
7
|
-
"begin": "/\\*",
|
8
|
-
"end": "\\*/"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"name": "constant.rexx",
|
12
|
-
"match": "(['\"])[01 ]+\\1(?i:b)"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"name": "constant.rexx",
|
16
|
-
"match": "(['\"])[0-9a-fA-F ]+\\1(?i:x)"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"name": "string.rexx",
|
20
|
-
"begin": "(['\"])",
|
21
|
-
"end": "\\1"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"name": "entity.name.function.rexx",
|
25
|
-
"match": "\\b[A-Za-z@#$!?_][A-Za-z@#$!?_0-9]*:"
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"name": "constant.numeric.rexx",
|
29
|
-
"match": "([0-9]+(\\.)?[0-9]*(?i:e[-+]?[0-9]+)?|[0-9]*(\\.)?[0-9]+)(?i:e[-+]?[0-9]+)?\\b"
|
30
|
-
},
|
31
|
-
{
|
32
|
-
"name": "constant.other.rexx",
|
33
|
-
"match": "[0-9\\.][A-Za-z0-9@#$¢.!?_]*"
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"name": "keyword.operator.rexx",
|
37
|
-
"match": "([\\+-/*%\u0026|()¬\\\\=\u003c\u003e])"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"name": "keyword.rexx",
|
41
|
-
"match": "\\b(?i:do|forever|while|until|to|by|for|end|exit|if|then|else|iterate|leave|nop|return|select|when|otherwise|call(\\s+(off|on)\\s+(error|failure(\\s+name)?|halt))?|signal(\\s+(off|on)\\s+(error|failure(\\s+name)?|halt|novalue|syntax))|address\\s+\\w+|arg|drop|interpret|numeric\\s+(digits|form(\\s+(scientific|engineering|value))?|fuzz)|options|parse(\\s+upper)?\\s+(external|numeric|source|value|var|version)?|with|procedure(\\s+expose)?|pull|push|queue|say|trace\\s+\\w+|upper)\\b(?!\\.)"
|
42
|
-
},
|
43
|
-
{
|
44
|
-
"name": "support.function.rexx",
|
45
|
-
"match": "\\b[A-Za-z@#$!?_0-9]+(?=\\()"
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"name": "variable.rexx",
|
49
|
-
"match": "\\b[A-Za-z@#$¢!?_][A-Za-z0-9@#$¢.!?_]*"
|
50
|
-
}
|
51
|
-
]
|
52
|
-
}
|
1
|
+
{"name":"REXX","scopeName":"source.rexx","patterns":[{"name":"comment.rexx","begin":"/\\*","end":"\\*/"},{"name":"constant.rexx","match":"(['\"])[01 ]+\\1(?i:b)"},{"name":"constant.rexx","match":"(['\"])[0-9a-fA-F ]+\\1(?i:x)"},{"name":"string.rexx","begin":"(['\"])","end":"\\1"},{"name":"entity.name.function.rexx","match":"\\b[A-Za-z@#$!?_][A-Za-z@#$!?_0-9]*:"},{"name":"constant.numeric.rexx","match":"([0-9]+(\\.)?[0-9]*(?i:e[-+]?[0-9]+)?|[0-9]*(\\.)?[0-9]+)(?i:e[-+]?[0-9]+)?\\b"},{"name":"constant.other.rexx","match":"[0-9\\.][A-Za-z0-9@#$¢.!?_]*"},{"name":"keyword.operator.rexx","match":"([\\+-/*%\u0026|()¬\\\\=\u003c\u003e])"},{"name":"keyword.rexx","match":"\\b(?i:do|forever|while|until|to|by|for|end|exit|if|then|else|iterate|leave|nop|return|select|when|otherwise|call(\\s+(off|on)\\s+(error|failure(\\s+name)?|halt))?|signal(\\s+(off|on)\\s+(error|failure(\\s+name)?|halt|novalue|syntax))|address\\s+\\w+|arg|drop|interpret|numeric\\s+(digits|form(\\s+(scientific|engineering|value))?|fuzz)|options|parse(\\s+upper)?\\s+(external|numeric|source|value|var|version)?|with|procedure(\\s+expose)?|pull|push|queue|say|trace\\s+\\w+|upper)\\b(?!\\.)"},{"name":"support.function.rexx","match":"\\b[A-Za-z@#$!?_0-9]+(?=\\()"},{"name":"variable.rexx","match":"\\b[A-Za-z@#$¢!?_][A-Za-z0-9@#$¢.!?_]*"}]}
|
data/grammars/source.ring.json
CHANGED
@@ -1,247 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "ring",
|
3
|
-
"scopeName": "source.ring",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#block_doc_comment"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"include": "#block_comment"
|
10
|
-
},
|
11
|
-
{
|
12
|
-
"include": "#line_doc_comment"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"include": "#line_comment"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"include": "#sigils"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"name": "meta.attribute.ring",
|
22
|
-
"begin": "#\\!?\\[",
|
23
|
-
"end": "\\]",
|
24
|
-
"patterns": [
|
25
|
-
{
|
26
|
-
"include": "#string_literal"
|
27
|
-
}
|
28
|
-
]
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"name": "string.quoted.single.ring",
|
32
|
-
"match": "'([^'\\\\]|\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))'"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"include": "#string_literal"
|
36
|
-
},
|
37
|
-
{
|
38
|
-
"name": "constant.numeric.float.ring",
|
39
|
-
"match": "\\b[0-9][0-9_]*\\.[0-9][0-9_]*([eE][+-][0-9_]+)?(f32|f64)?\\b"
|
40
|
-
},
|
41
|
-
{
|
42
|
-
"name": "constant.numeric.integer.decimal.ring",
|
43
|
-
"match": "\\b[0-9][0-9_]*([ui](8|16|32|64)?)?\\b"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"name": "storage.modifier.static.ring",
|
47
|
-
"match": "\\b(PRIVATE|private|Private)\\b"
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"name": "constant.language.boolean.ring",
|
51
|
-
"match": "(TRUE|true|True|FALSE|false|False)"
|
52
|
-
},
|
53
|
-
{
|
54
|
-
"name": "variable.name.special.ring",
|
55
|
-
"match": "\\b_[a-z][A-Za-z0-9_]*|\\s(i|j)\\s\\b"
|
56
|
-
},
|
57
|
-
{
|
58
|
-
"name": "keyword.control.ring",
|
59
|
-
"match": "\\b(EXIT|exit|Exit|LOOP|loop|Loop|BUT|but|But|ELSE|else|Else|IF|if|If|FOR|for|For|IN|in|In|TO|to|To|STEP|step|Step|NEXT|next|Next|SWITCH|switch|Switch|OFF|off|Off|ON|on|On|OTHER|other|Other|RETURN|return|Return|WHILE|while|While|DO|do|Do|END|end|End|AGAIN|again|Again|Try|try|Try|CATCH|catch|Catch|DONE|done|Done)\\b"
|
60
|
-
},
|
61
|
-
{
|
62
|
-
"name": "keyword.command.ring",
|
63
|
-
"match": "\\b(IF|if|If|TO|to|To|OR|or|Or|AND|and|And|NOT|not|Not|FOR|for|For|NEW|new|New|FUNC|func|Func|FROM|from|From|NEXT|next|Next|LOAD|load|Load|ELSE|else|Else|SEE|see|See|WHILE|while|While|OK|ok|Ok|CLASS|class|Class|BREAK|break|Break|RETURN|return|Return|BUT|but|But|END|end|End|GIVE|give|Give|BYE|bye|Bye|EXIT|exit|Exit|TRY|try|Try|CATCH|catch|Catch|DONE|done|Done|SWITCH|switch|Switch|ON|on|On|OTHER|other|Other|OFF|off|Off|IN|in|In|LOOP|loop|Loop|PACKAGE|package|Package|IMPORT|import|Import|PRIVATE|private|Private|STEP|step|Step|DO|do|Do|AGAIN|again|Again|CALL|call|Call)\\b"
|
64
|
-
},
|
65
|
-
{
|
66
|
-
"include": "#types"
|
67
|
-
},
|
68
|
-
{
|
69
|
-
"include": "#self"
|
70
|
-
},
|
71
|
-
{
|
72
|
-
"include": "#null"
|
73
|
-
},
|
74
|
-
{
|
75
|
-
"include": "#lifetime"
|
76
|
-
},
|
77
|
-
{
|
78
|
-
"include": "#ref_lifetime"
|
79
|
-
},
|
80
|
-
{
|
81
|
-
"name": "keyword.operator.assignment.ring",
|
82
|
-
"match": "(=|\\+=|-=)"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"name": "keyword.operator.comparison.ring",
|
86
|
-
"match": "(\\\u003c=|\u003e=|==|!=|NOT|not|Not|\\\u003c\u003e|\\\u003c|\u003e|\\$|\\sOR\\s|\\sAND\\s|\\sNOT\\s|\\sand\\s|\\sor\\s|\\snot\\s)"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"name": "support.function.std.ring",
|
90
|
-
"match": "\\b(len|add|del|get|clock|lower|upper|input|ascii|char|date|time|filename|getchar|system|random|timelist|adddays|diffdays|isstring|isnumber|islist|type|isnull|isobject|hex|dec|number|string|str2hex|hex2str|str2list|list2str|left|right|trim|copy|substr|lines|strcmp|eval|raise|assert|isalnum|isalpha|iscntrl|isdigit|isgraph|islower|isprint|ispunct|isspace|isupper|isxdigit|locals|globals|functions|cfunctions|islocal|isglobal|isfunction|iscfunction|packages|ispackage|classes|isclass|packageclasses|ispackageclass|classname|objectid|attributes|methods|isattribute|ismethod|isprivateattribute|isprivatemethod|addattribute|addmethod|getattribute|setattribute|mergemethods|list|find|min|max|insert|sort|reverse|binarysearch|sin|cos|tan|asin|acos|atan|atan2|sinh|cosh|tanh|exp|log|log10|ceil|floor|fabs|pow|sqrt|unsigned|decimals|murmur3hash|fopen|fclose|fflush|freopen|tempfile|tempname|fseek|ftell|rewind|fgetpos|fsetpos|clearerr|feof|ferror|perror|rename|remove|fgetc|fgets|fputc|fputs|ungetc|fread|fwrite|dir|read|write|fexists|ismsdos|iswindows|iswindows64|isunix|ismacosx|islinux|isfreebsd|isandroid|windowsnl|mysql_info|mysql_init|mysql_error|mysql_connect|mysql_close|mysql_query|mysql_result|mysql_insert_id|mysql_columns|mysql_result2|mysql_next_result|mysql_escape_string|mysql_autocommit|mysql_commit|mysql_rollback|odbc_init|odbc_drivers|odbc_datasources|odbc_close|odbc_connect|odbc_disconnect|odbc_execute|odbc_colcount|odbc_fetch|odbc_getdata|odbc_tables|odbc_columns|odbc_autocommit|odbc_commit|odbc_rollback|md5|sha1|sha256|sha512|sha384|sha224|encrypt|decrypt|randbytes|download|sendemail|loadlib|closelib|callgc|varptr|intvalue)!"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(",
|
94
|
-
"captures": {
|
95
|
-
"1": {
|
96
|
-
"name": "entity.name.function.ring"
|
97
|
-
}
|
98
|
-
}
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*).([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(",
|
102
|
-
"captures": {
|
103
|
-
"1": {
|
104
|
-
"name": "entity.name.method.ring"
|
105
|
-
}
|
106
|
-
}
|
107
|
-
},
|
108
|
-
{
|
109
|
-
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*).([a-zA-Z_][a-zA-Z0-9_]*)",
|
110
|
-
"captures": {
|
111
|
-
"1": {
|
112
|
-
"name": "variable.name.object.ring"
|
113
|
-
},
|
114
|
-
"2": {
|
115
|
-
"name": "variable.name.member.ring"
|
116
|
-
}
|
117
|
-
}
|
118
|
-
},
|
119
|
-
{
|
120
|
-
"begin": "\\b(FUNC|func|Func)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
|
121
|
-
"end": "[\\n]",
|
122
|
-
"patterns": [
|
123
|
-
{
|
124
|
-
"include": "$self"
|
125
|
-
}
|
126
|
-
],
|
127
|
-
"beginCaptures": {
|
128
|
-
"1": {
|
129
|
-
"name": "keyword.other.fn.ring"
|
130
|
-
},
|
131
|
-
"2": {
|
132
|
-
"name": "entity.name.function.ring"
|
133
|
-
}
|
134
|
-
}
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"begin": "\\b(CLASS|class|Class)\\s+([a-zA-Z_][a-zA-Z0-9_]*)(?:\\s+(FROM|from|From)\\s+([a-zA-Z_][a-zA-Z0-9_]*))?",
|
138
|
-
"end": "[\\n]",
|
139
|
-
"patterns": [
|
140
|
-
{
|
141
|
-
"include": "$self"
|
142
|
-
}
|
143
|
-
],
|
144
|
-
"beginCaptures": {
|
145
|
-
"1": {
|
146
|
-
"name": "keyword.class.ring"
|
147
|
-
},
|
148
|
-
"2": {
|
149
|
-
"name": "entity.name.class.ring"
|
150
|
-
},
|
151
|
-
"3": {
|
152
|
-
"name": "keyword.class.inherit.ring"
|
153
|
-
},
|
154
|
-
"4": {
|
155
|
-
"name": "entity.name.parent.class.ring"
|
156
|
-
}
|
157
|
-
}
|
158
|
-
},
|
159
|
-
{
|
160
|
-
"begin": "\\b(FUNC|func|Func)\\s+((?:(?:[a-zA-Z_][a-zA-Z0-9_]*):)?(?:[a-zA-Z_][a-zA-Z0-9_]*))",
|
161
|
-
"end": "[\\n]",
|
162
|
-
"patterns": [
|
163
|
-
{
|
164
|
-
"include": "$self"
|
165
|
-
}
|
166
|
-
],
|
167
|
-
"beginCaptures": {
|
168
|
-
"1": {
|
169
|
-
"name": "keyword.method.fn.ring"
|
170
|
-
},
|
171
|
-
"2": {
|
172
|
-
"name": "entity.name.method.ring"
|
173
|
-
}
|
174
|
-
}
|
175
|
-
},
|
176
|
-
{
|
177
|
-
"begin": "=",
|
178
|
-
"patterns": [
|
179
|
-
{
|
180
|
-
"include": "$self"
|
181
|
-
}
|
182
|
-
]
|
183
|
-
}
|
184
|
-
],
|
185
|
-
"repository": {
|
186
|
-
"block_comment": {
|
187
|
-
"name": "comment.block.ring",
|
188
|
-
"begin": "/\\*",
|
189
|
-
"end": "\\*/",
|
190
|
-
"patterns": [
|
191
|
-
{
|
192
|
-
"include": "#block_doc_comment"
|
193
|
-
},
|
194
|
-
{
|
195
|
-
"include": "#block_comment"
|
196
|
-
}
|
197
|
-
]
|
198
|
-
},
|
199
|
-
"block_doc_comment": {
|
200
|
-
"name": "comment.block.documentation.ring",
|
201
|
-
"begin": "/\\*[!\\*][^\\*]",
|
202
|
-
"end": "\\*/",
|
203
|
-
"patterns": [
|
204
|
-
{
|
205
|
-
"include": "#block_doc_comment"
|
206
|
-
},
|
207
|
-
{
|
208
|
-
"include": "#block_comment"
|
209
|
-
}
|
210
|
-
]
|
211
|
-
},
|
212
|
-
"escaped_character": {
|
213
|
-
"name": "constant.character.escape.ring",
|
214
|
-
"match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"
|
215
|
-
},
|
216
|
-
"line_comment": {
|
217
|
-
"name": "comment.line.double-slash.ring",
|
218
|
-
"match": "//[#].*$"
|
219
|
-
},
|
220
|
-
"line_doc_comment": {
|
221
|
-
"name": "comment.line.documentation.ring",
|
222
|
-
"match": "//[!/][^/].*$"
|
223
|
-
},
|
224
|
-
"null": {
|
225
|
-
"name": "variable.null.language.ring",
|
226
|
-
"match": "\\b(NULL|null|Null)\\b"
|
227
|
-
},
|
228
|
-
"self": {
|
229
|
-
"name": "variable.self.language.ring",
|
230
|
-
"match": "\\b(Self|SELF|self)\\b"
|
231
|
-
},
|
232
|
-
"sigils": {
|
233
|
-
"name": "keyword.operator.sigil.ring",
|
234
|
-
"match": "[@]|[:]{2}|[+]{2}(?=[a-zA-Z0-9_\\(\\[\\|\\\"]+)"
|
235
|
-
},
|
236
|
-
"string_literal": {
|
237
|
-
"name": "string.quoted.double.ring",
|
238
|
-
"begin": "\"",
|
239
|
-
"end": "\"",
|
240
|
-
"patterns": [
|
241
|
-
{
|
242
|
-
"include": "#escaped_character"
|
243
|
-
}
|
244
|
-
]
|
245
|
-
}
|
246
|
-
}
|
247
|
-
}
|
1
|
+
{"name":"ring","scopeName":"source.ring","patterns":[{"include":"#block_doc_comment"},{"include":"#block_comment"},{"include":"#line_doc_comment"},{"include":"#line_comment"},{"include":"#sigils"},{"name":"meta.attribute.ring","begin":"#\\!?\\[","end":"\\]","patterns":[{"include":"#string_literal"}]},{"name":"string.quoted.single.ring","match":"'([^'\\\\]|\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))'"},{"include":"#string_literal"},{"name":"constant.numeric.float.ring","match":"\\b[0-9][0-9_]*\\.[0-9][0-9_]*([eE][+-][0-9_]+)?(f32|f64)?\\b"},{"name":"constant.numeric.integer.decimal.ring","match":"\\b[0-9][0-9_]*([ui](8|16|32|64)?)?\\b"},{"name":"storage.modifier.static.ring","match":"\\b(PRIVATE|private|Private)\\b"},{"name":"constant.language.boolean.ring","match":"(TRUE|true|True|FALSE|false|False)"},{"name":"variable.name.special.ring","match":"\\b_[a-z][A-Za-z0-9_]*|\\s(i|j)\\s\\b"},{"name":"keyword.control.ring","match":"\\b(EXIT|exit|Exit|LOOP|loop|Loop|BUT|but|But|ELSE|else|Else|IF|if|If|FOR|for|For|IN|in|In|TO|to|To|STEP|step|Step|NEXT|next|Next|SWITCH|switch|Switch|OFF|off|Off|ON|on|On|OTHER|other|Other|RETURN|return|Return|WHILE|while|While|DO|do|Do|END|end|End|AGAIN|again|Again|Try|try|Try|CATCH|catch|Catch|DONE|done|Done)\\b"},{"name":"keyword.command.ring","match":"\\b(IF|if|If|TO|to|To|OR|or|Or|AND|and|And|NOT|not|Not|FOR|for|For|NEW|new|New|FUNC|func|Func|FROM|from|From|NEXT|next|Next|LOAD|load|Load|ELSE|else|Else|SEE|see|See|WHILE|while|While|OK|ok|Ok|CLASS|class|Class|BREAK|break|Break|RETURN|return|Return|BUT|but|But|END|end|End|GIVE|give|Give|BYE|bye|Bye|EXIT|exit|Exit|TRY|try|Try|CATCH|catch|Catch|DONE|done|Done|SWITCH|switch|Switch|ON|on|On|OTHER|other|Other|OFF|off|Off|IN|in|In|LOOP|loop|Loop|PACKAGE|package|Package|IMPORT|import|Import|PRIVATE|private|Private|STEP|step|Step|DO|do|Do|AGAIN|again|Again|CALL|call|Call)\\b"},{"include":"#types"},{"include":"#self"},{"include":"#null"},{"include":"#lifetime"},{"include":"#ref_lifetime"},{"name":"keyword.operator.assignment.ring","match":"(=|\\+=|-=)"},{"name":"keyword.operator.comparison.ring","match":"(\\\u003c=|\u003e=|==|!=|NOT|not|Not|\\\u003c\u003e|\\\u003c|\u003e|\\$|\\sOR\\s|\\sAND\\s|\\sNOT\\s|\\sand\\s|\\sor\\s|\\snot\\s)"},{"name":"support.function.std.ring","match":"\\b(len|add|del|get|clock|lower|upper|input|ascii|char|date|time|filename|getchar|system|random|timelist|adddays|diffdays|isstring|isnumber|islist|type|isnull|isobject|hex|dec|number|string|str2hex|hex2str|str2list|list2str|left|right|trim|copy|substr|lines|strcmp|eval|raise|assert|isalnum|isalpha|iscntrl|isdigit|isgraph|islower|isprint|ispunct|isspace|isupper|isxdigit|locals|globals|functions|cfunctions|islocal|isglobal|isfunction|iscfunction|packages|ispackage|classes|isclass|packageclasses|ispackageclass|classname|objectid|attributes|methods|isattribute|ismethod|isprivateattribute|isprivatemethod|addattribute|addmethod|getattribute|setattribute|mergemethods|list|find|min|max|insert|sort|reverse|binarysearch|sin|cos|tan|asin|acos|atan|atan2|sinh|cosh|tanh|exp|log|log10|ceil|floor|fabs|pow|sqrt|unsigned|decimals|murmur3hash|fopen|fclose|fflush|freopen|tempfile|tempname|fseek|ftell|rewind|fgetpos|fsetpos|clearerr|feof|ferror|perror|rename|remove|fgetc|fgets|fputc|fputs|ungetc|fread|fwrite|dir|read|write|fexists|ismsdos|iswindows|iswindows64|isunix|ismacosx|islinux|isfreebsd|isandroid|windowsnl|mysql_info|mysql_init|mysql_error|mysql_connect|mysql_close|mysql_query|mysql_result|mysql_insert_id|mysql_columns|mysql_result2|mysql_next_result|mysql_escape_string|mysql_autocommit|mysql_commit|mysql_rollback|odbc_init|odbc_drivers|odbc_datasources|odbc_close|odbc_connect|odbc_disconnect|odbc_execute|odbc_colcount|odbc_fetch|odbc_getdata|odbc_tables|odbc_columns|odbc_autocommit|odbc_commit|odbc_rollback|md5|sha1|sha256|sha512|sha384|sha224|encrypt|decrypt|randbytes|download|sendemail|loadlib|closelib|callgc|varptr|intvalue)!"},{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.ring"}}},{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*).([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.method.ring"}}},{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*).([a-zA-Z_][a-zA-Z0-9_]*)","captures":{"1":{"name":"variable.name.object.ring"},"2":{"name":"variable.name.member.ring"}}},{"begin":"\\b(FUNC|func|Func)\\s+([a-zA-Z_][a-zA-Z0-9_]*)","end":"[\\n]","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.fn.ring"},"2":{"name":"entity.name.function.ring"}}},{"begin":"\\b(CLASS|class|Class)\\s+([a-zA-Z_][a-zA-Z0-9_]*)(?:\\s+(FROM|from|From)\\s+([a-zA-Z_][a-zA-Z0-9_]*))?","end":"[\\n]","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.class.ring"},"2":{"name":"entity.name.class.ring"},"3":{"name":"keyword.class.inherit.ring"},"4":{"name":"entity.name.parent.class.ring"}}},{"begin":"\\b(FUNC|func|Func)\\s+((?:(?:[a-zA-Z_][a-zA-Z0-9_]*):)?(?:[a-zA-Z_][a-zA-Z0-9_]*))","end":"[\\n]","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.method.fn.ring"},"2":{"name":"entity.name.method.ring"}}},{"begin":"=","patterns":[{"include":"$self"}]}],"repository":{"block_comment":{"name":"comment.block.ring","begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_doc_comment"},{"include":"#block_comment"}]},"block_doc_comment":{"name":"comment.block.documentation.ring","begin":"/\\*[!\\*][^\\*]","end":"\\*/","patterns":[{"include":"#block_doc_comment"},{"include":"#block_comment"}]},"escaped_character":{"name":"constant.character.escape.ring","match":"\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"},"line_comment":{"name":"comment.line.double-slash.ring","match":"//[#].*$"},"line_doc_comment":{"name":"comment.line.documentation.ring","match":"//[!/][^/].*$"},"null":{"name":"variable.null.language.ring","match":"\\b(NULL|null|Null)\\b"},"self":{"name":"variable.self.language.ring","match":"\\b(Self|SELF|self)\\b"},"sigils":{"name":"keyword.operator.sigil.ring","match":"[@]|[:]{2}|[+]{2}(?=[a-zA-Z0-9_\\(\\[\\|\\\"]+)"},"string_literal":{"name":"string.quoted.double.ring","begin":"\"","end":"\"","patterns":[{"include":"#escaped_character"}]}}}
|
@@ -1,765 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "RPMSpec",
|
3
|
-
"scopeName": "source.rpm-spec",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "keyword.rpm-spec",
|
7
|
-
"match": "^# norootforbuild"
|
8
|
-
},
|
9
|
-
{
|
10
|
-
"include": "#comments"
|
11
|
-
},
|
12
|
-
{
|
13
|
-
"include": "#conditionals"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"include": "#commands"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"include": "#macros"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"include": "#metadata"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"include": "#sections"
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"include": "#modifiers"
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"include": "#variables"
|
32
|
-
},
|
33
|
-
{
|
34
|
-
"include": "#architectures"
|
35
|
-
},
|
36
|
-
{
|
37
|
-
"include": "#licenses"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"include": "#constants"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"include": "#operators"
|
44
|
-
}
|
45
|
-
],
|
46
|
-
"repository": {
|
47
|
-
"architectures": {
|
48
|
-
"patterns": [
|
49
|
-
{
|
50
|
-
"name": "constant.language.rpm-spec",
|
51
|
-
"match": "\\b(?:noarch|i386|i586|x86_64|ia64|local)\\b"
|
52
|
-
},
|
53
|
-
{
|
54
|
-
"name": "constant.language.rpm-spec",
|
55
|
-
"match": "\\b(?:s390x|s390|armv6l|armv7hl|armv7l)\\b"
|
56
|
-
},
|
57
|
-
{
|
58
|
-
"name": "constant.language.rpm-spec",
|
59
|
-
"match": "\\b(?:ppc64p7|ppc64le|ppc64|ppc|aarch64)\\b"
|
60
|
-
},
|
61
|
-
{
|
62
|
-
"name": "constant.language.rpm-spec",
|
63
|
-
"match": "\\b(?:alpha|sparc64|sparcv9|sparc)\\b"
|
64
|
-
}
|
65
|
-
]
|
66
|
-
},
|
67
|
-
"changelogs": {
|
68
|
-
"patterns": [
|
69
|
-
{
|
70
|
-
"include": "source.changelogs.rpm-spec"
|
71
|
-
}
|
72
|
-
]
|
73
|
-
},
|
74
|
-
"commands": {
|
75
|
-
"patterns": [
|
76
|
-
{
|
77
|
-
"name": "support.constant.rpm-spec",
|
78
|
-
"match": "^%__(?:aclocal|ar|as|autoconf)"
|
79
|
-
},
|
80
|
-
{
|
81
|
-
"name": "support.constant.rpm-spec",
|
82
|
-
"match": "^%__(?:autoheader|automake|awk)"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"name": "support.constant.rpm-spec",
|
86
|
-
"match": "^%__(?:bzip2|bzip|cat|cc|chgrp_Rhf|chgrp)"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"name": "support.constant.rpm-spec",
|
90
|
-
"match": "^%__(?:chmod|chown_Rhf|chown|cpio|cp)"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"name": "support.constant.rpm-spec",
|
94
|
-
"match": "^%__(?:cpp|cxx|grep|gzip|patch)"
|
95
|
-
},
|
96
|
-
{
|
97
|
-
"name": "support.constant.rpm-spec",
|
98
|
-
"match": "^%__(?:id_u|id|install|ld|libtoolize)"
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"name": "support.constant.rpm-spec",
|
102
|
-
"match": "^%__(?:ln_s|make|mkdir_p|mkdir|mv)"
|
103
|
-
},
|
104
|
-
{
|
105
|
-
"name": "support.constant.rpm-spec",
|
106
|
-
"match": "^%__(?:nm|objcopy|objdump|perl)"
|
107
|
-
},
|
108
|
-
{
|
109
|
-
"name": "support.constant.rpm-spec",
|
110
|
-
"match": "^%__(?:pgp|prelink_undo_cmd|python)"
|
111
|
-
},
|
112
|
-
{
|
113
|
-
"name": "support.constant.rpm-spec",
|
114
|
-
"match": "^%__(?:ranlib|rm|sed|strip|tar|unzip)"
|
115
|
-
},
|
116
|
-
{
|
117
|
-
"name": "support.constant.rpm-spec",
|
118
|
-
"match": "^%\\{__(?:aclocal|ar|as|autoconf)\\}"
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"name": "support.constant.rpm-spec",
|
122
|
-
"match": "^%\\{__(?:autoheader|automake|awk)\\}"
|
123
|
-
},
|
124
|
-
{
|
125
|
-
"name": "support.constant.rpm-spec",
|
126
|
-
"match": "^%\\{__(?:bzip2|bzip|cat|cc|chgrp_Rhf|chgrp)\\}"
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"name": "support.constant.rpm-spec",
|
130
|
-
"match": "^%\\{__(?:chmod|chown_Rhf|chown|cpio|cp)\\}"
|
131
|
-
},
|
132
|
-
{
|
133
|
-
"name": "support.constant.rpm-spec",
|
134
|
-
"match": "^%\\{__(?:cpp|cxx|grep|gzip|patch)\\}"
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"name": "support.constant.rpm-spec",
|
138
|
-
"match": "^%\\{__(?:id_u|id|install|ld|libtoolize)\\}"
|
139
|
-
},
|
140
|
-
{
|
141
|
-
"name": "support.constant.rpm-spec",
|
142
|
-
"match": "^%\\{__(?:ln_s|make|mkdir_p|mkdir|mv)\\}"
|
143
|
-
},
|
144
|
-
{
|
145
|
-
"name": "support.constant.rpm-spec",
|
146
|
-
"match": "^%\\{__(?:nm|objcopy|objdump|perl)\\}"
|
147
|
-
},
|
148
|
-
{
|
149
|
-
"name": "support.constant.rpm-spec",
|
150
|
-
"match": "^%\\{__(?:pgp|prelink_undo_cmd|python)\\}"
|
151
|
-
},
|
152
|
-
{
|
153
|
-
"name": "support.constant.rpm-spec",
|
154
|
-
"match": "^%\\{__(?:ranlib|rm|sed|strip|tar|unzip)\\}"
|
155
|
-
}
|
156
|
-
]
|
157
|
-
},
|
158
|
-
"comments": {
|
159
|
-
"patterns": [
|
160
|
-
{
|
161
|
-
"match": "(#)(?\u003c!C#|F#|M#)(.*)$",
|
162
|
-
"captures": {
|
163
|
-
"1": {
|
164
|
-
"name": "punctuation.comment.rpm-spec"
|
165
|
-
},
|
166
|
-
"2": {
|
167
|
-
"name": "comment.line.rpm-spec"
|
168
|
-
}
|
169
|
-
}
|
170
|
-
}
|
171
|
-
]
|
172
|
-
},
|
173
|
-
"conditionals": {
|
174
|
-
"patterns": [
|
175
|
-
{
|
176
|
-
"name": "keyword.control.rpm-spec",
|
177
|
-
"match": "%(?:ifarch|ifnarch|ifnos|ifos|if|else|endif)"
|
178
|
-
}
|
179
|
-
]
|
180
|
-
},
|
181
|
-
"constants": {
|
182
|
-
"patterns": [
|
183
|
-
{
|
184
|
-
"name": "contstant.numeric.rpm-spec",
|
185
|
-
"match": "[0-9]+"
|
186
|
-
}
|
187
|
-
]
|
188
|
-
},
|
189
|
-
"licenses": {
|
190
|
-
"patterns": [
|
191
|
-
{
|
192
|
-
"name": "constant.language.rpm-spec",
|
193
|
-
"match": "(?:AFL-2.1|AGPL-3.0|AGPL-3.0\\+|Apache-1.1|Apache-2.0)"
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"name": "constant.language.rpm-spec",
|
197
|
-
"match": "(?:X11|xinetd|Zlib|ZPL-2.0|ZPL-2.1)"
|
198
|
-
},
|
199
|
-
{
|
200
|
-
"name": "constant.language.rpm-spec",
|
201
|
-
"match": "(?:Apache-2.0+|APL-1.0|BSD-2-Clause|BSD-3-Clause|BSD-4-Clause)"
|
202
|
-
},
|
203
|
-
{
|
204
|
-
"name": "constant.language.rpm-spec",
|
205
|
-
"match": "(?:Artistic-1.0|Artistic-1.0+|Artistic-2.0|Beerware)"
|
206
|
-
},
|
207
|
-
{
|
208
|
-
"name": "constant.language.rpm-spec",
|
209
|
-
"match": "(?:CC-BY-ND-4.0|CC-BY-SA-2.5|CC-BY-SA-3.0)"
|
210
|
-
},
|
211
|
-
{
|
212
|
-
"name": "constant.language.rpm-spec",
|
213
|
-
"match": "(?:CC-BY-SA-3.0|CC-BY-SA-4.0|CDDL-1.0|CPL-1.0|EPL-1.0)"
|
214
|
-
},
|
215
|
-
{
|
216
|
-
"name": "constant.language.rpm-spec",
|
217
|
-
"match": "(?:ErlPL-1.1|GFDL-1.1|GFDL-1.1\\+|GFDL-1.2|GFDL-1.2\\+|GFDL-1.3)"
|
218
|
-
},
|
219
|
-
{
|
220
|
-
"name": "constant.language.rpm-spec",
|
221
|
-
"match": "(?:GFDL-1.3\\+|GPL-1.0\\+|GPL-2.0|GPL-2.0\\+|GPL-3.0|GPL-3.0\\+|IJG)"
|
222
|
-
},
|
223
|
-
{
|
224
|
-
"name": "constant.language.rpm-spec",
|
225
|
-
"match": "(?:LGPL-2.0\\+|LGPL-2.1|LGPL-2.1\\+|LGPL-3.0\\+|LPPL-1.3c)"
|
226
|
-
},
|
227
|
-
{
|
228
|
-
"name": "constant.language.rpm-spec",
|
229
|
-
"match": "(?:IPA|IPL-1.0|IPL-1.0|ISC|JSON|LGPL-2.0|MakeIndex|MIT)"
|
230
|
-
},
|
231
|
-
{
|
232
|
-
"name": "constant.language.rpm-spec",
|
233
|
-
"match": "(?:MPL-1.0|MPL-1.1|MPL-1.1\\+|MS-PL|NetCDF|OFL-1.1|OLDAP-2.8)"
|
234
|
-
},
|
235
|
-
{
|
236
|
-
"name": "constant.language.rpm-spec",
|
237
|
-
"match": "(?:OSL-1.1|PHP-3.01|Python-2.0|Qhull|QPL-1.0|QPL-1.0|Ruby)"
|
238
|
-
},
|
239
|
-
{
|
240
|
-
"name": "constant.language.rpm-spec",
|
241
|
-
"match": "(?:SUSE-BSD-3-Clause-with-non-nuclear-addition)"
|
242
|
-
},
|
243
|
-
{
|
244
|
-
"name": "constant.language.rpm-spec",
|
245
|
-
"match": "(?:SUSE-GPL-2.0\\+-with-sane-exception|SUSE-GPL-3.0-with-FLOSS-exception)"
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"name": "constant.language.rpm-spec",
|
249
|
-
"match": "(?:SUSE-GPL-3.0-with-font-exception|SUSE-GPL-3.0-with-openssl-exception)"
|
250
|
-
},
|
251
|
-
{
|
252
|
-
"name": "constant.language.rpm-spec",
|
253
|
-
"match": "(?:SUSE-GPL-3.0-with-template-exception|SUSE-GPL-3.0+-with-autoconf-exception)"
|
254
|
-
},
|
255
|
-
{
|
256
|
-
"name": "constant.language.rpm-spec",
|
257
|
-
"match": "(?:SUSE-GPL-3.0\\+-with-font-exception|SUSE-GPL-3.0\\+-with-openssl-exception)"
|
258
|
-
},
|
259
|
-
{
|
260
|
-
"name": "constant.language.rpm-spec",
|
261
|
-
"match": "(?:SUSE-IBPL-1.0|SUSE-IDPL-1.0|SUSE-IEEE|SUSE-Innernet-2.0|SUSE-Innernet-2.00)"
|
262
|
-
},
|
263
|
-
{
|
264
|
-
"name": "constant.language.rpm-spec",
|
265
|
-
"match": "(?:SUSE-LDPL-2.0|SUSE-LGPL-2.0-with-linking-exception)"
|
266
|
-
},
|
267
|
-
{
|
268
|
-
"name": "constant.language.rpm-spec",
|
269
|
-
"match": "(?:SUSE-LGPL-2.1-with-digia-exception-1.1)"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"name": "constant.language.rpm-spec",
|
273
|
-
"match": "(?:SUSE-LGPL-2.1-with-nokia-exception-1.1)"
|
274
|
-
},
|
275
|
-
{
|
276
|
-
"name": "constant.language.rpm-spec",
|
277
|
-
"match": "(?:SUSE-LGPL-2.1\\+-with-GCC-exception|SUSE-LGPL-3.0-with-openssl-exception)"
|
278
|
-
},
|
279
|
-
{
|
280
|
-
"name": "constant.language.rpm-spec",
|
281
|
-
"match": "(?:SUSE-Liberation|SUSE-Manpages|SUSE-Matplotlib|SUSE-MgOpen|SUSE-mirror)"
|
282
|
-
},
|
283
|
-
{
|
284
|
-
"name": "constant.language.rpm-spec",
|
285
|
-
"match": "(?:SUSE-mplus|SUSE-NonFree|SUSE-Oasis-Specification-Notice)"
|
286
|
-
},
|
287
|
-
{
|
288
|
-
"name": "constant.language.rpm-spec",
|
289
|
-
"match": "(?:SUSE-OpenPublication-1.0|SUSE-OldFSFDocLicense|SUSE-Permissive)"
|
290
|
-
},
|
291
|
-
{
|
292
|
-
"name": "constant.language.rpm-spec",
|
293
|
-
"match": "(?:SUSE-Permissive-Modify-By-Patch|SUSE-PHP-2.02|SUSE-Public-Domain)"
|
294
|
-
},
|
295
|
-
{
|
296
|
-
"name": "constant.language.rpm-spec",
|
297
|
-
"match": "(?:SUSE-Python-1.6|SUSE-QWT-1.0|SUSE-Redistributable-Content|SUSE-Repoze)"
|
298
|
-
},
|
299
|
-
{
|
300
|
-
"name": "constant.language.rpm-spec",
|
301
|
-
"match": "(?:SUSE-Scrot|SUSE-Sendmail|SUSE-SGI-FreeB-2.0|SUSE-SIP|SUSE-SLIB)"
|
302
|
-
},
|
303
|
-
{
|
304
|
-
"name": "constant.language.rpm-spec",
|
305
|
-
"match": "(?:SUSE-SNIA-1.0|SUSE-SNIA-1.1|SUSE-Sun-Laboratories|SUSE-TeX|SUSE-TGPPL-1.0)"
|
306
|
-
},
|
307
|
-
{
|
308
|
-
"name": "constant.language.rpm-spec",
|
309
|
-
"match": "(?:SUSE-Ubuntu-Font-License-1.0|SUSE-Xano|SUSE-Xenonsoft-1.00)"
|
310
|
-
},
|
311
|
-
{
|
312
|
-
"name": "constant.language.rpm-spec",
|
313
|
-
"match": "(?:SUSE-XFree86-with-font-exception|SUSE-XSL-Lint|TCL|Unicode|Vim|W3C|WTFPL)"
|
314
|
-
},
|
315
|
-
{
|
316
|
-
"name": "constant.language.rpm-spec",
|
317
|
-
"match": "(?:SUSE-Bitstream-Vera|OML|OPL-1.0|SUSE-Arphic)"
|
318
|
-
},
|
319
|
-
{
|
320
|
-
"name": "constant.language.rpm-spec",
|
321
|
-
"match": "(?:SUSE-BSD-Mark-Modifications|SUSE-CacertRoot)"
|
322
|
-
},
|
323
|
-
{
|
324
|
-
"name": "constant.language.rpm-spec",
|
325
|
-
"match": "(?:SUSE-Copyleft-Next-0.3.0|SUSE-CPL-0.5|SUSE-Curb|SUSE-DMTF)"
|
326
|
-
},
|
327
|
-
{
|
328
|
-
"name": "constant.language.rpm-spec",
|
329
|
-
"match": "(?:SUSE-Docbook-XSL|SUSE-Egenix-1.1.0|SUSE-EULA|SUSE-FHS)"
|
330
|
-
},
|
331
|
-
{
|
332
|
-
"name": "constant.language.rpm-spec",
|
333
|
-
"match": "(?:SUSE-Firmware|SUSE-FLTK|SUSE-Free-Art-1.3|SUSE-Freetype)"
|
334
|
-
},
|
335
|
-
{
|
336
|
-
"name": "constant.language.rpm-spec",
|
337
|
-
"match": "(?:SUSE-Gitslave|SUSE-GL2PS-2.0|SUSE-Gnuplot)"
|
338
|
-
},
|
339
|
-
{
|
340
|
-
"name": "constant.language.rpm-spec",
|
341
|
-
"match": "(?:SUSE-GPL-2.0-with-FLOSS-exception)"
|
342
|
-
},
|
343
|
-
{
|
344
|
-
"name": "constant.language.rpm-spec",
|
345
|
-
"match": "(?:SUSE-CC-Sampling-Plus-1.0|SUSE-GPL-2.0-with-linking-exception)"
|
346
|
-
},
|
347
|
-
{
|
348
|
-
"name": "constant.language.rpm-spec",
|
349
|
-
"match": "(?:SUSE-GPL-2.0-with-openssl-exception)"
|
350
|
-
},
|
351
|
-
{
|
352
|
-
"name": "constant.language.rpm-spec",
|
353
|
-
"match": "(?:SUSE-GPL-2.0-with-OSI-exception)"
|
354
|
-
},
|
355
|
-
{
|
356
|
-
"name": "constant.language.rpm-spec",
|
357
|
-
"match": "(?:SUSE-GPL-2.0-with-plugin-exception)"
|
358
|
-
},
|
359
|
-
{
|
360
|
-
"name": "constant.language.rpm-spec",
|
361
|
-
"match": "(?:SUSE-GPL-2.0\\+-with-openssl-exception)"
|
362
|
-
}
|
363
|
-
]
|
364
|
-
},
|
365
|
-
"macros": {
|
366
|
-
"patterns": [
|
367
|
-
{
|
368
|
-
"match": "^(%(?:setup|patch[0-9]*|configure|autosetup))",
|
369
|
-
"captures": {
|
370
|
-
"1": {
|
371
|
-
"name": "support.function.rpm-spec"
|
372
|
-
}
|
373
|
-
}
|
374
|
-
},
|
375
|
-
{
|
376
|
-
"name": "support.function.rpm-spec",
|
377
|
-
"match": "^%\\{?(?:desktop_database_postun|desktop_database_post)\\}?"
|
378
|
-
},
|
379
|
-
{
|
380
|
-
"name": "support.function.rpm-spec",
|
381
|
-
"match": "^%\\{?(?:fillup_and_insserv|fillup_only|find_lang)\\}?"
|
382
|
-
},
|
383
|
-
{
|
384
|
-
"name": "support.function.rpm-spec",
|
385
|
-
"match": "^%\\{?(?:icon_theme_cache_postun|icon_theme_cache_post)\\}?"
|
386
|
-
},
|
387
|
-
{
|
388
|
-
"name": "support.function.rpm-spec",
|
389
|
-
"match": "^%\\{?(?:insserv_cleanup|insserv_force_if_yast)\\}?"
|
390
|
-
},
|
391
|
-
{
|
392
|
-
"name": "support.function.rpm-spec",
|
393
|
-
"match": "^%\\{?(?:install_info_delete|install_info|gpg_verify)\\}?"
|
394
|
-
},
|
395
|
-
{
|
396
|
-
"name": "support.function.rpm-spec",
|
397
|
-
"match": "^%\\{?(?:perl_archlib|perl_gen_filelist)\\}?"
|
398
|
-
},
|
399
|
-
{
|
400
|
-
"name": "support.function.rpm-spec",
|
401
|
-
"match": "^%\\{?(?:perl_make_install|perl_process_packlist)\\}?"
|
402
|
-
},
|
403
|
-
{
|
404
|
-
"name": "support.function.rpm-spec",
|
405
|
-
"match": "^%\\{?(?:perl_sitearch|perl_sitelib)\\}?"
|
406
|
-
},
|
407
|
-
{
|
408
|
-
"name": "support.function.rpm-spec",
|
409
|
-
"match": "^%\\{?(?:perl_vendorarch|perl_vendorlib|perl_version)\\}?"
|
410
|
-
},
|
411
|
-
{
|
412
|
-
"name": "support.function.rpm-spec",
|
413
|
-
"match": "^%\\{?(?:py_incdir|py_libdir|py_requires|py_sitedir|py_ver)\\}?"
|
414
|
-
},
|
415
|
-
{
|
416
|
-
"name": "support.function.rpm-spec",
|
417
|
-
"match": "^%\\{?(?:remove_and_set|restart_on_update)\\}?"
|
418
|
-
},
|
419
|
-
{
|
420
|
-
"name": "support.function.rpm-spec",
|
421
|
-
"match": "^%\\{?(?:run_ldconfig|run_permissions)\\}?"
|
422
|
-
},
|
423
|
-
{
|
424
|
-
"name": "support.function.rpm-spec",
|
425
|
-
"match": "^%\\{?(?:service_add_pre|service_add_post)\\}?"
|
426
|
-
},
|
427
|
-
{
|
428
|
-
"name": "support.function.rpm-spec",
|
429
|
-
"match": "^%\\{?(?:service_del_preun|service_del_postun)\\}?"
|
430
|
-
},
|
431
|
-
{
|
432
|
-
"name": "support.function.rpm-spec",
|
433
|
-
"match": "^%\\{?(?:set_permissions|stop_on_removal)\\}?"
|
434
|
-
},
|
435
|
-
{
|
436
|
-
"name": "support.function.rpm-spec",
|
437
|
-
"match": "^%\\{?(?:suse_update_config|suse_update_desktop_file)\\}?"
|
438
|
-
},
|
439
|
-
{
|
440
|
-
"name": "support.function.rpm-spec",
|
441
|
-
"match": "^%\\{?(?:tcl_version|ul_version|verify_permissions)\\}?"
|
442
|
-
},
|
443
|
-
{
|
444
|
-
"name": "support.function.rpm-spec",
|
445
|
-
"match": "^%\\{?(?:create_subdir_filelist|create_exclude_filelist)\\}?"
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"name": "support.function.rpm-spec",
|
449
|
-
"match": "^%\\{?(?:makeinstall|make_jobs|update_menus|clean_menus)\\}?"
|
450
|
-
}
|
451
|
-
]
|
452
|
-
},
|
453
|
-
"metadata": {
|
454
|
-
"patterns": [
|
455
|
-
{
|
456
|
-
"name": "keyword.rpm-spec",
|
457
|
-
"match": "^(?:Icon|ExclusiveOs|ExcludeOs|NoSource|NoPatch):"
|
458
|
-
},
|
459
|
-
{
|
460
|
-
"name": "keyword.rpm-spec",
|
461
|
-
"match": "^(?:Conflicts|Obsoletes|Provides):"
|
462
|
-
},
|
463
|
-
{
|
464
|
-
"name": "keyword.rpm-spec",
|
465
|
-
"match": "^(?:Requires\\((?:preun|postun|pre|post)\\)|Requires):"
|
466
|
-
},
|
467
|
-
{
|
468
|
-
"name": "keyword.rpm-spec",
|
469
|
-
"match": "^(Enhances|Suggests|BuildConflicts|BuildRequires|Recommends):"
|
470
|
-
},
|
471
|
-
{
|
472
|
-
"name": "keyword.rpm-spec",
|
473
|
-
"match": "^(PreReq|Supplements|Epoch|Serial|Nosource|Nopatch):"
|
474
|
-
},
|
475
|
-
{
|
476
|
-
"name": "keyword.rpm-spec",
|
477
|
-
"match": "^(AutoReq|AutoProv|AutoReqProv):"
|
478
|
-
},
|
479
|
-
{
|
480
|
-
"name": "keyword.rpm-spec",
|
481
|
-
"match": "^(Copyright|Summary|Summary\\(.*\\)|Distribution):"
|
482
|
-
},
|
483
|
-
{
|
484
|
-
"name": "keyword.rpm-spec",
|
485
|
-
"match": "^(Vendor|Packager|Group|Source\\d*|Patch\\d*|BuildRoot|Prefix):"
|
486
|
-
},
|
487
|
-
{
|
488
|
-
"name": "keyword.rpm-spec",
|
489
|
-
"match": "^(Name|Version|Release|Url|URL):"
|
490
|
-
},
|
491
|
-
{
|
492
|
-
"name": "keyword.rpm-spec",
|
493
|
-
"match": "^(Source|Patch)[0-9]*:"
|
494
|
-
},
|
495
|
-
{
|
496
|
-
"begin": "^((?:BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):)",
|
497
|
-
"end": "$",
|
498
|
-
"patterns": [
|
499
|
-
{
|
500
|
-
"include": "#architectures"
|
501
|
-
}
|
502
|
-
],
|
503
|
-
"beginCaptures": {
|
504
|
-
"1": {
|
505
|
-
"name": "keyword.rpm-spec"
|
506
|
-
}
|
507
|
-
}
|
508
|
-
},
|
509
|
-
{
|
510
|
-
"begin": "^(License:)[ \\t]*",
|
511
|
-
"end": "$",
|
512
|
-
"patterns": [
|
513
|
-
{
|
514
|
-
"include": "#licenses"
|
515
|
-
}
|
516
|
-
],
|
517
|
-
"beginCaptures": {
|
518
|
-
"1": {
|
519
|
-
"name": "keyword.rpm-spec"
|
520
|
-
}
|
521
|
-
}
|
522
|
-
}
|
523
|
-
]
|
524
|
-
},
|
525
|
-
"modifiers": {
|
526
|
-
"patterns": [
|
527
|
-
{
|
528
|
-
"name": "storage.modifier.rpm-spec",
|
529
|
-
"match": "^%(?:define|global|undefine|docdir|doc)"
|
530
|
-
},
|
531
|
-
{
|
532
|
-
"match": "^(%config(?:\\(noreplace\\))?)[ \\t]+",
|
533
|
-
"captures": {
|
534
|
-
"1": {
|
535
|
-
"name": "storage.modifier.rpm-spec"
|
536
|
-
}
|
537
|
-
}
|
538
|
-
},
|
539
|
-
{
|
540
|
-
"match": "^(%defattr\\(.*\\))",
|
541
|
-
"captures": {
|
542
|
-
"1": {
|
543
|
-
"name": "storage.modifier.rpm-spec"
|
544
|
-
}
|
545
|
-
}
|
546
|
-
},
|
547
|
-
{
|
548
|
-
"match": "(%(?:attrib|attr|verify|noverify)\\(.*\\)) ",
|
549
|
-
"captures": {
|
550
|
-
"1": {
|
551
|
-
"name": "storage.modifier.rpm-spec"
|
552
|
-
}
|
553
|
-
}
|
554
|
-
},
|
555
|
-
{
|
556
|
-
"match": "(%(?:lang|caps)\\(.*\\)) ",
|
557
|
-
"captures": {
|
558
|
-
"1": {
|
559
|
-
"name": "storage.modifier.rpm-spec"
|
560
|
-
}
|
561
|
-
}
|
562
|
-
}
|
563
|
-
]
|
564
|
-
},
|
565
|
-
"operators": {
|
566
|
-
"patterns": [
|
567
|
-
{
|
568
|
-
"name": "keyword.operator.logical.rpm-spec",
|
569
|
-
"match": "(?:[\u003e=]?=|!=?|\u003c|\u003e|\u0026\u0026|\\|\\|)"
|
570
|
-
}
|
571
|
-
]
|
572
|
-
},
|
573
|
-
"sections": {
|
574
|
-
"patterns": [
|
575
|
-
{
|
576
|
-
"name": "entity.name.section.rpm-spec",
|
577
|
-
"match": "^%(?:description|package)"
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"begin": "^(%changelog)",
|
581
|
-
"end": "Z",
|
582
|
-
"patterns": [
|
583
|
-
{
|
584
|
-
"include": "#changelogs"
|
585
|
-
}
|
586
|
-
],
|
587
|
-
"beginCaptures": {
|
588
|
-
"1": {
|
589
|
-
"name": "entity.name.section.rpm-spec"
|
590
|
-
}
|
591
|
-
}
|
592
|
-
},
|
593
|
-
{
|
594
|
-
"begin": "^(%files)",
|
595
|
-
"end": "^$|Z",
|
596
|
-
"patterns": [
|
597
|
-
{
|
598
|
-
"include": "#std_section"
|
599
|
-
}
|
600
|
-
],
|
601
|
-
"beginCaptures": {
|
602
|
-
"1": {
|
603
|
-
"name": "entity.name.section.rpm-spec"
|
604
|
-
}
|
605
|
-
}
|
606
|
-
},
|
607
|
-
{
|
608
|
-
"begin": "^(%(?:build|check|clean|install|verifyscript))$",
|
609
|
-
"end": "^$|Z",
|
610
|
-
"patterns": [
|
611
|
-
{
|
612
|
-
"include": "#std_section"
|
613
|
-
}
|
614
|
-
],
|
615
|
-
"beginCaptures": {
|
616
|
-
"1": {
|
617
|
-
"name": "entity.name.section.rpm-spec"
|
618
|
-
}
|
619
|
-
}
|
620
|
-
},
|
621
|
-
{
|
622
|
-
"name": "entity.name.section.rpm-spec",
|
623
|
-
"match": "^%(?:triggerin|triggerpostun|triggerun|trigger) --"
|
624
|
-
},
|
625
|
-
{
|
626
|
-
"begin": "^(%(?:preun|prep|pretrans|pre|posttrans|postun|post|packagepreun))",
|
627
|
-
"end": "^$|Z",
|
628
|
-
"patterns": [
|
629
|
-
{
|
630
|
-
"include": "#std_section"
|
631
|
-
}
|
632
|
-
],
|
633
|
-
"beginCaptures": {
|
634
|
-
"1": {
|
635
|
-
"name": "entity.name.section.rpm-spec"
|
636
|
-
}
|
637
|
-
}
|
638
|
-
}
|
639
|
-
]
|
640
|
-
},
|
641
|
-
"shell_syntax": {
|
642
|
-
"patterns": [
|
643
|
-
{
|
644
|
-
"include": "source.shell"
|
645
|
-
}
|
646
|
-
]
|
647
|
-
},
|
648
|
-
"std_section": {
|
649
|
-
"patterns": [
|
650
|
-
{
|
651
|
-
"include": "#comments"
|
652
|
-
},
|
653
|
-
{
|
654
|
-
"include": "#metadata"
|
655
|
-
},
|
656
|
-
{
|
657
|
-
"include": "#conditionals"
|
658
|
-
},
|
659
|
-
{
|
660
|
-
"include": "#commands"
|
661
|
-
},
|
662
|
-
{
|
663
|
-
"include": "#macros"
|
664
|
-
},
|
665
|
-
{
|
666
|
-
"include": "#modifiers"
|
667
|
-
},
|
668
|
-
{
|
669
|
-
"include": "#variables"
|
670
|
-
},
|
671
|
-
{
|
672
|
-
"include": "#licenses"
|
673
|
-
},
|
674
|
-
{
|
675
|
-
"include": "#constants"
|
676
|
-
},
|
677
|
-
{
|
678
|
-
"include": "#shell_syntax"
|
679
|
-
}
|
680
|
-
]
|
681
|
-
},
|
682
|
-
"variables": {
|
683
|
-
"patterns": [
|
684
|
-
{
|
685
|
-
"match": "(%\\{with) ([a-zA-Z_][a-zA-Z0-9_:]*)(\\})",
|
686
|
-
"captures": {
|
687
|
-
"1": {
|
688
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
689
|
-
},
|
690
|
-
"2": {
|
691
|
-
"name": "variable.other.rpm-spec"
|
692
|
-
},
|
693
|
-
"3": {
|
694
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
695
|
-
}
|
696
|
-
}
|
697
|
-
},
|
698
|
-
{
|
699
|
-
"match": "(%\\{defined) ([a-zA-Z_][a-zA-Z0-9_:]*)(\\})",
|
700
|
-
"captures": {
|
701
|
-
"1": {
|
702
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
703
|
-
},
|
704
|
-
"2": {
|
705
|
-
"name": "variable.other.rpm-spec"
|
706
|
-
},
|
707
|
-
"3": {
|
708
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
709
|
-
}
|
710
|
-
}
|
711
|
-
},
|
712
|
-
{
|
713
|
-
"match": "(%\\{[!?]+)(_?[a-zA-Z]+[a-zA-Z0-9:_]*)(\\})",
|
714
|
-
"captures": {
|
715
|
-
"1": {
|
716
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
717
|
-
},
|
718
|
-
"2": {
|
719
|
-
"name": "variable.other.rpm-spec"
|
720
|
-
},
|
721
|
-
"3": {
|
722
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
723
|
-
}
|
724
|
-
}
|
725
|
-
},
|
726
|
-
{
|
727
|
-
"match": "(%\\{)(_?[a-zA-Z][a-zA-Z0-9_:]*)(\\})",
|
728
|
-
"captures": {
|
729
|
-
"1": {
|
730
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
731
|
-
},
|
732
|
-
"2": {
|
733
|
-
"name": "variable.other.rpm-spec"
|
734
|
-
},
|
735
|
-
"3": {
|
736
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
737
|
-
}
|
738
|
-
}
|
739
|
-
},
|
740
|
-
{
|
741
|
-
"match": "(%[!?]+)(_?[a-zA-Z][a-zA-Z0-9_:]*)",
|
742
|
-
"captures": {
|
743
|
-
"1": {
|
744
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
745
|
-
},
|
746
|
-
"2": {
|
747
|
-
"name": "variable.other.rpm-spec"
|
748
|
-
}
|
749
|
-
}
|
750
|
-
},
|
751
|
-
{
|
752
|
-
"match": "(%)(_?[a-zA-Z][a-zA-Z0-9_:]*)?",
|
753
|
-
"captures": {
|
754
|
-
"1": {
|
755
|
-
"name": "punctuation.other.bracket.rpm-spec"
|
756
|
-
},
|
757
|
-
"2": {
|
758
|
-
"name": "variable.other.rpm-spec"
|
759
|
-
}
|
760
|
-
}
|
761
|
-
}
|
762
|
-
]
|
763
|
-
}
|
764
|
-
}
|
765
|
-
}
|
1
|
+
{"name":"RPMSpec","scopeName":"source.rpm-spec","patterns":[{"name":"keyword.rpm-spec","match":"^# norootforbuild"},{"include":"#comments"},{"include":"#conditionals"},{"include":"#commands"},{"include":"#macros"},{"include":"#metadata"},{"include":"#sections"},{"include":"#modifiers"},{"include":"#variables"},{"include":"#architectures"},{"include":"#licenses"},{"include":"#constants"},{"include":"#operators"}],"repository":{"architectures":{"patterns":[{"name":"constant.language.rpm-spec","match":"\\b(?:noarch|i386|i586|x86_64|ia64|local)\\b"},{"name":"constant.language.rpm-spec","match":"\\b(?:s390x|s390|armv6l|armv7hl|armv7l)\\b"},{"name":"constant.language.rpm-spec","match":"\\b(?:ppc64p7|ppc64le|ppc64|ppc|aarch64)\\b"},{"name":"constant.language.rpm-spec","match":"\\b(?:alpha|sparc64|sparcv9|sparc)\\b"}]},"changelogs":{"patterns":[{"include":"source.changelogs.rpm-spec"}]},"commands":{"patterns":[{"name":"support.constant.rpm-spec","match":"^%__(?:aclocal|ar|as|autoconf)"},{"name":"support.constant.rpm-spec","match":"^%__(?:autoheader|automake|awk)"},{"name":"support.constant.rpm-spec","match":"^%__(?:bzip2|bzip|cat|cc|chgrp_Rhf|chgrp)"},{"name":"support.constant.rpm-spec","match":"^%__(?:chmod|chown_Rhf|chown|cpio|cp)"},{"name":"support.constant.rpm-spec","match":"^%__(?:cpp|cxx|grep|gzip|patch)"},{"name":"support.constant.rpm-spec","match":"^%__(?:id_u|id|install|ld|libtoolize)"},{"name":"support.constant.rpm-spec","match":"^%__(?:ln_s|make|mkdir_p|mkdir|mv)"},{"name":"support.constant.rpm-spec","match":"^%__(?:nm|objcopy|objdump|perl)"},{"name":"support.constant.rpm-spec","match":"^%__(?:pgp|prelink_undo_cmd|python)"},{"name":"support.constant.rpm-spec","match":"^%__(?:ranlib|rm|sed|strip|tar|unzip)"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:aclocal|ar|as|autoconf)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:autoheader|automake|awk)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:bzip2|bzip|cat|cc|chgrp_Rhf|chgrp)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:chmod|chown_Rhf|chown|cpio|cp)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:cpp|cxx|grep|gzip|patch)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:id_u|id|install|ld|libtoolize)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:ln_s|make|mkdir_p|mkdir|mv)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:nm|objcopy|objdump|perl)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:pgp|prelink_undo_cmd|python)\\}"},{"name":"support.constant.rpm-spec","match":"^%\\{__(?:ranlib|rm|sed|strip|tar|unzip)\\}"}]},"comments":{"patterns":[{"match":"(#)(?\u003c!C#|F#|M#)(.*)$","captures":{"1":{"name":"punctuation.comment.rpm-spec"},"2":{"name":"comment.line.rpm-spec"}}}]},"conditionals":{"patterns":[{"name":"keyword.control.rpm-spec","match":"%(?:ifarch|ifnarch|ifnos|ifos|if|else|endif)"}]},"constants":{"patterns":[{"name":"contstant.numeric.rpm-spec","match":"[0-9]+"}]},"licenses":{"patterns":[{"name":"constant.language.rpm-spec","match":"(?:AFL-2.1|AGPL-3.0|AGPL-3.0\\+|Apache-1.1|Apache-2.0)"},{"name":"constant.language.rpm-spec","match":"(?:X11|xinetd|Zlib|ZPL-2.0|ZPL-2.1)"},{"name":"constant.language.rpm-spec","match":"(?:Apache-2.0+|APL-1.0|BSD-2-Clause|BSD-3-Clause|BSD-4-Clause)"},{"name":"constant.language.rpm-spec","match":"(?:Artistic-1.0|Artistic-1.0+|Artistic-2.0|Beerware)"},{"name":"constant.language.rpm-spec","match":"(?:CC-BY-ND-4.0|CC-BY-SA-2.5|CC-BY-SA-3.0)"},{"name":"constant.language.rpm-spec","match":"(?:CC-BY-SA-3.0|CC-BY-SA-4.0|CDDL-1.0|CPL-1.0|EPL-1.0)"},{"name":"constant.language.rpm-spec","match":"(?:ErlPL-1.1|GFDL-1.1|GFDL-1.1\\+|GFDL-1.2|GFDL-1.2\\+|GFDL-1.3)"},{"name":"constant.language.rpm-spec","match":"(?:GFDL-1.3\\+|GPL-1.0\\+|GPL-2.0|GPL-2.0\\+|GPL-3.0|GPL-3.0\\+|IJG)"},{"name":"constant.language.rpm-spec","match":"(?:LGPL-2.0\\+|LGPL-2.1|LGPL-2.1\\+|LGPL-3.0\\+|LPPL-1.3c)"},{"name":"constant.language.rpm-spec","match":"(?:IPA|IPL-1.0|IPL-1.0|ISC|JSON|LGPL-2.0|MakeIndex|MIT)"},{"name":"constant.language.rpm-spec","match":"(?:MPL-1.0|MPL-1.1|MPL-1.1\\+|MS-PL|NetCDF|OFL-1.1|OLDAP-2.8)"},{"name":"constant.language.rpm-spec","match":"(?:OSL-1.1|PHP-3.01|Python-2.0|Qhull|QPL-1.0|QPL-1.0|Ruby)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-BSD-3-Clause-with-non-nuclear-addition)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-2.0\\+-with-sane-exception|SUSE-GPL-3.0-with-FLOSS-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-3.0-with-font-exception|SUSE-GPL-3.0-with-openssl-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-3.0-with-template-exception|SUSE-GPL-3.0+-with-autoconf-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-3.0\\+-with-font-exception|SUSE-GPL-3.0\\+-with-openssl-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-IBPL-1.0|SUSE-IDPL-1.0|SUSE-IEEE|SUSE-Innernet-2.0|SUSE-Innernet-2.00)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-LDPL-2.0|SUSE-LGPL-2.0-with-linking-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-LGPL-2.1-with-digia-exception-1.1)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-LGPL-2.1-with-nokia-exception-1.1)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-LGPL-2.1\\+-with-GCC-exception|SUSE-LGPL-3.0-with-openssl-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Liberation|SUSE-Manpages|SUSE-Matplotlib|SUSE-MgOpen|SUSE-mirror)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-mplus|SUSE-NonFree|SUSE-Oasis-Specification-Notice)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-OpenPublication-1.0|SUSE-OldFSFDocLicense|SUSE-Permissive)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Permissive-Modify-By-Patch|SUSE-PHP-2.02|SUSE-Public-Domain)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Python-1.6|SUSE-QWT-1.0|SUSE-Redistributable-Content|SUSE-Repoze)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Scrot|SUSE-Sendmail|SUSE-SGI-FreeB-2.0|SUSE-SIP|SUSE-SLIB)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-SNIA-1.0|SUSE-SNIA-1.1|SUSE-Sun-Laboratories|SUSE-TeX|SUSE-TGPPL-1.0)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Ubuntu-Font-License-1.0|SUSE-Xano|SUSE-Xenonsoft-1.00)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-XFree86-with-font-exception|SUSE-XSL-Lint|TCL|Unicode|Vim|W3C|WTFPL)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Bitstream-Vera|OML|OPL-1.0|SUSE-Arphic)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-BSD-Mark-Modifications|SUSE-CacertRoot)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Copyleft-Next-0.3.0|SUSE-CPL-0.5|SUSE-Curb|SUSE-DMTF)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Docbook-XSL|SUSE-Egenix-1.1.0|SUSE-EULA|SUSE-FHS)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Firmware|SUSE-FLTK|SUSE-Free-Art-1.3|SUSE-Freetype)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-Gitslave|SUSE-GL2PS-2.0|SUSE-Gnuplot)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-2.0-with-FLOSS-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-CC-Sampling-Plus-1.0|SUSE-GPL-2.0-with-linking-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-2.0-with-openssl-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-2.0-with-OSI-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-2.0-with-plugin-exception)"},{"name":"constant.language.rpm-spec","match":"(?:SUSE-GPL-2.0\\+-with-openssl-exception)"}]},"macros":{"patterns":[{"match":"^(%(?:setup|patch[0-9]*|configure|autosetup))","captures":{"1":{"name":"support.function.rpm-spec"}}},{"name":"support.function.rpm-spec","match":"^%\\{?(?:desktop_database_postun|desktop_database_post)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:fillup_and_insserv|fillup_only|find_lang)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:icon_theme_cache_postun|icon_theme_cache_post)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:insserv_cleanup|insserv_force_if_yast)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:install_info_delete|install_info|gpg_verify)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:perl_archlib|perl_gen_filelist)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:perl_make_install|perl_process_packlist)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:perl_sitearch|perl_sitelib)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:perl_vendorarch|perl_vendorlib|perl_version)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:py_incdir|py_libdir|py_requires|py_sitedir|py_ver)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:remove_and_set|restart_on_update)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:run_ldconfig|run_permissions)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:service_add_pre|service_add_post)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:service_del_preun|service_del_postun)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:set_permissions|stop_on_removal)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:suse_update_config|suse_update_desktop_file)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:tcl_version|ul_version|verify_permissions)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:create_subdir_filelist|create_exclude_filelist)\\}?"},{"name":"support.function.rpm-spec","match":"^%\\{?(?:makeinstall|make_jobs|update_menus|clean_menus)\\}?"}]},"metadata":{"patterns":[{"name":"keyword.rpm-spec","match":"^(?:Icon|ExclusiveOs|ExcludeOs|NoSource|NoPatch):"},{"name":"keyword.rpm-spec","match":"^(?:Conflicts|Obsoletes|Provides):"},{"name":"keyword.rpm-spec","match":"^(?:Requires\\((?:preun|postun|pre|post)\\)|Requires):"},{"name":"keyword.rpm-spec","match":"^(Enhances|Suggests|BuildConflicts|BuildRequires|Recommends):"},{"name":"keyword.rpm-spec","match":"^(PreReq|Supplements|Epoch|Serial|Nosource|Nopatch):"},{"name":"keyword.rpm-spec","match":"^(AutoReq|AutoProv|AutoReqProv):"},{"name":"keyword.rpm-spec","match":"^(Copyright|Summary|Summary\\(.*\\)|Distribution):"},{"name":"keyword.rpm-spec","match":"^(Vendor|Packager|Group|Source\\d*|Patch\\d*|BuildRoot|Prefix):"},{"name":"keyword.rpm-spec","match":"^(Name|Version|Release|Url|URL):"},{"name":"keyword.rpm-spec","match":"^(Source|Patch)[0-9]*:"},{"begin":"^((?:BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):)","end":"$","patterns":[{"include":"#architectures"}],"beginCaptures":{"1":{"name":"keyword.rpm-spec"}}},{"begin":"^(License:)[ \\t]*","end":"$","patterns":[{"include":"#licenses"}],"beginCaptures":{"1":{"name":"keyword.rpm-spec"}}}]},"modifiers":{"patterns":[{"name":"storage.modifier.rpm-spec","match":"^%(?:define|global|undefine|docdir|doc)"},{"match":"^(%config(?:\\(noreplace\\))?)[ \\t]+","captures":{"1":{"name":"storage.modifier.rpm-spec"}}},{"match":"^(%defattr\\(.*\\))","captures":{"1":{"name":"storage.modifier.rpm-spec"}}},{"match":"(%(?:attrib|attr|verify|noverify)\\(.*\\)) ","captures":{"1":{"name":"storage.modifier.rpm-spec"}}},{"match":"(%(?:lang|caps)\\(.*\\)) ","captures":{"1":{"name":"storage.modifier.rpm-spec"}}}]},"operators":{"patterns":[{"name":"keyword.operator.logical.rpm-spec","match":"(?:[\u003e=]?=|!=?|\u003c|\u003e|\u0026\u0026|\\|\\|)"}]},"sections":{"patterns":[{"name":"entity.name.section.rpm-spec","match":"^%(?:description|package)"},{"begin":"^(%changelog)","end":"Z","patterns":[{"include":"#changelogs"}],"beginCaptures":{"1":{"name":"entity.name.section.rpm-spec"}}},{"begin":"^(%files)","end":"^$|Z","patterns":[{"include":"#std_section"}],"beginCaptures":{"1":{"name":"entity.name.section.rpm-spec"}}},{"begin":"^(%(?:build|check|clean|install|verifyscript))$","end":"^$|Z","patterns":[{"include":"#std_section"}],"beginCaptures":{"1":{"name":"entity.name.section.rpm-spec"}}},{"name":"entity.name.section.rpm-spec","match":"^%(?:triggerin|triggerpostun|triggerun|trigger) --"},{"begin":"^(%(?:preun|prep|pretrans|pre|posttrans|postun|post|packagepreun))","end":"^$|Z","patterns":[{"include":"#std_section"}],"beginCaptures":{"1":{"name":"entity.name.section.rpm-spec"}}}]},"shell_syntax":{"patterns":[{"include":"source.shell"}]},"std_section":{"patterns":[{"include":"#comments"},{"include":"#metadata"},{"include":"#conditionals"},{"include":"#commands"},{"include":"#macros"},{"include":"#modifiers"},{"include":"#variables"},{"include":"#licenses"},{"include":"#constants"},{"include":"#shell_syntax"}]},"variables":{"patterns":[{"match":"(%\\{with) ([a-zA-Z_][a-zA-Z0-9_:]*)(\\})","captures":{"1":{"name":"punctuation.other.bracket.rpm-spec"},"2":{"name":"variable.other.rpm-spec"},"3":{"name":"punctuation.other.bracket.rpm-spec"}}},{"match":"(%\\{defined) ([a-zA-Z_][a-zA-Z0-9_:]*)(\\})","captures":{"1":{"name":"punctuation.other.bracket.rpm-spec"},"2":{"name":"variable.other.rpm-spec"},"3":{"name":"punctuation.other.bracket.rpm-spec"}}},{"match":"(%\\{[!?]+)(_?[a-zA-Z]+[a-zA-Z0-9:_]*)(\\})","captures":{"1":{"name":"punctuation.other.bracket.rpm-spec"},"2":{"name":"variable.other.rpm-spec"},"3":{"name":"punctuation.other.bracket.rpm-spec"}}},{"match":"(%\\{)(_?[a-zA-Z][a-zA-Z0-9_:]*)(\\})","captures":{"1":{"name":"punctuation.other.bracket.rpm-spec"},"2":{"name":"variable.other.rpm-spec"},"3":{"name":"punctuation.other.bracket.rpm-spec"}}},{"match":"(%[!?]+)(_?[a-zA-Z][a-zA-Z0-9_:]*)","captures":{"1":{"name":"punctuation.other.bracket.rpm-spec"},"2":{"name":"variable.other.rpm-spec"}}},{"match":"(%)(_?[a-zA-Z][a-zA-Z0-9_:]*)?","captures":{"1":{"name":"punctuation.other.bracket.rpm-spec"},"2":{"name":"variable.other.rpm-spec"}}}]}}}
|