github-linguist-grammars 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/grammars/file.lasso.json +713 -0
- data/grammars/module.ceylon.json +54 -0
- data/grammars/objdump.x86asm.json +73 -0
- data/grammars/source.Inform7.json +45 -0
- data/grammars/source.Kotlin.json +774 -0
- data/grammars/source.LS.json +104 -0
- data/grammars/source.MCPOST.json +68 -0
- data/grammars/source.MOD.json +70 -0
- data/grammars/source.abap.json +176 -0
- data/grammars/source.abl.json +138 -0
- data/grammars/source.actionscript.3.json +1571 -0
- data/grammars/source.acucobol.json +16 -0
- data/grammars/source.ada.json +140 -0
- data/grammars/source.agda.json +254 -0
- data/grammars/source.ahk.json +171 -0
- data/grammars/source.alloy.json +44 -0
- data/grammars/source.ampl.json +157 -0
- data/grammars/source.antlr.json +300 -0
- data/grammars/source.apache-config.json +352 -0
- data/grammars/source.apache-config.mod_perl.json +70 -0
- data/grammars/source.apl.json +442 -0
- data/grammars/source.applescript.json +1385 -0
- data/grammars/source.apt.json +25 -0
- data/grammars/source.asm.x86.json +182 -0
- data/grammars/source.asp.json +157 -0
- data/grammars/source.aspectj.json +963 -0
- data/grammars/source.ats.json +170 -0
- data/grammars/source.autoit.3.json +132 -0
- data/grammars/source.awk.json +388 -0
- data/grammars/source.befunge.json +38 -0
- data/grammars/source.bf.json +36 -0
- data/grammars/source.bison.json +59 -0
- data/grammars/source.blitzmax.json +912 -0
- data/grammars/source.boo.json +452 -0
- data/grammars/source.brightauthorproject.json +29 -0
- data/grammars/source.brightscript.json +158 -0
- data/grammars/source.bro.json +409 -0
- data/grammars/source.bsv.json +283 -0
- data/grammars/source.c++.json +364 -0
- data/grammars/source.c++.qt.json +37 -0
- data/grammars/source.c.ec.json +39 -0
- data/grammars/source.c.json +727 -0
- data/grammars/source.c.platform.json +154 -0
- data/grammars/source.cache.cmake.json +75 -0
- data/grammars/source.cake.json +16 -0
- data/grammars/source.camlp4.ocaml.json +63 -0
- data/grammars/source.capnp.json +93 -0
- data/grammars/source.ceylon.json +77 -0
- data/grammars/source.cfscript.cfc.json +170 -0
- data/grammars/source.cfscript.json +744 -0
- data/grammars/source.chapel.json +240 -0
- data/grammars/source.cirru.json +66 -0
- data/grammars/source.clarion.json +159 -0
- data/grammars/source.clips.json +80 -0
- data/grammars/source.clojure.json +397 -0
- data/grammars/source.cm.json +54 -0
- data/grammars/source.cmake.json +181 -0
- data/grammars/source.cobol.json +528 -0
- data/grammars/source.coffee.json +678 -0
- data/grammars/source.compiled-papyrus.json +11 -0
- data/grammars/source.cool.json +103 -0
- data/grammars/source.coq.json +62 -0
- data/grammars/source.crystal.json +2760 -0
- data/grammars/source.cs.json +556 -0
- data/grammars/source.css.json +630 -0
- data/grammars/source.css.less.json +276 -0
- data/grammars/source.css.mss.json +256 -0
- data/grammars/source.csx.json +16 -0
- data/grammars/source.cuda-c++.json +137 -0
- data/grammars/source.cython.json +2108 -0
- data/grammars/source.d.json +722 -0
- data/grammars/source.dart.json +763 -0
- data/grammars/source.desktop.json +90 -0
- data/grammars/source.diff.json +162 -0
- data/grammars/source.dockerfile.json +89 -0
- data/grammars/source.dosbatch.json +70 -0
- data/grammars/source.dot.json +126 -0
- data/grammars/source.dylan.json +217 -0
- data/grammars/source.eiffel.json +138 -0
- data/grammars/source.elixir.json +737 -0
- data/grammars/source.elm.json +355 -0
- data/grammars/source.erazor.json +126 -0
- data/grammars/source.erlang.json +1674 -0
- data/grammars/source.essl.json +50 -0
- data/grammars/source.factor.json +260 -0
- data/grammars/source.fan.json +188 -0
- data/grammars/source.fancy.json +270 -0
- data/grammars/source.fish.json +214 -0
- data/grammars/source.forth.json +101 -0
- data/grammars/source.fortran.json +499 -0
- data/grammars/source.fortran.modern.json +226 -0
- data/grammars/source.fsharp.json +403 -0
- data/grammars/source.gap.json +167 -0
- data/grammars/source.gcode.json +25 -0
- data/grammars/source.gdscript.json +154 -0
- data/grammars/source.gfm.json +1270 -0
- data/grammars/source.glsl.json +71 -0
- data/grammars/source.gnuplot.json +276 -0
- data/grammars/source.go.json +552 -0
- data/grammars/source.golo.json +182 -0
- data/grammars/source.gosu.2.json +163 -0
- data/grammars/source.grace.json +679 -0
- data/grammars/source.groovy.gradle.json +73 -0
- data/grammars/source.groovy.json +1385 -0
- data/grammars/source.harbour.json +450 -0
- data/grammars/source.haskell.json +449 -0
- data/grammars/source.haxe.2.json +1243 -0
- data/grammars/source.hss.1.json +464 -0
- data/grammars/source.httpspec.json +287 -0
- data/grammars/source.hxml.json +26 -0
- data/grammars/source.hy.json +270 -0
- data/grammars/source.idl-dlm.json +112 -0
- data/grammars/source.idl.json +267 -0
- data/grammars/source.idris.json +537 -0
- data/grammars/source.ini.json +113 -0
- data/grammars/source.inno.json +65 -0
- data/grammars/source.io.json +164 -0
- data/grammars/source.ioke.json +272 -0
- data/grammars/source.isabelle.root.json +68 -0
- data/grammars/source.isabelle.theory.json +106 -0
- data/grammars/source.j.json +49 -0
- data/grammars/source.jade.json +1009 -0
- data/grammars/source.jasmin.json +299 -0
- data/grammars/source.java-properties.json +97 -0
- data/grammars/source.java.json +1026 -0
- data/grammars/source.jcl.json +49 -0
- data/grammars/source.jflex.json +490 -0
- data/grammars/source.jq.json +218 -0
- data/grammars/source.js.json +948 -0
- data/grammars/source.js.jsx.json +2937 -0
- data/grammars/source.js.objj.json +424 -0
- data/grammars/source.js.regexp.json +150 -0
- data/grammars/source.js.regexp.replacement.json +30 -0
- data/grammars/source.json.json +149 -0
- data/grammars/source.julia.json +407 -0
- data/grammars/source.lean.json +145 -0
- data/grammars/source.lid.json +23 -0
- data/grammars/source.lilypond.json +623 -0
- data/grammars/source.lisp.json +111 -0
- data/grammars/source.litcoffee.json +669 -0
- data/grammars/source.livescript.json +616 -0
- data/grammars/source.llvm.json +71 -0
- data/grammars/source.logos.json +31 -0
- data/grammars/source.logtalk.json +315 -0
- data/grammars/source.loomscript.json +214 -0
- data/grammars/source.lsl.json +216 -0
- data/grammars/source.lua.json +191 -0
- data/grammars/source.makefile.json +474 -0
- data/grammars/source.makegen.json +13 -0
- data/grammars/source.man.json +53 -0
- data/grammars/source.mask.json +701 -0
- data/grammars/source.mata.json +133 -0
- data/grammars/source.mathematica.json +429 -0
- data/grammars/source.matlab.json +776 -0
- data/grammars/source.mercury.json +251 -0
- data/grammars/source.ml.json +291 -0
- data/grammars/source.modelica.json +142 -0
- data/grammars/source.modula2.json +103 -0
- data/grammars/source.monkey.json +701 -0
- data/grammars/source.moonscript.json +149 -0
- data/grammars/source.mupad.json +149 -0
- data/grammars/source.nant-build.json +86 -0
- data/grammars/source.ncl.json +66 -0
- data/grammars/source.nemerle.json +137 -0
- data/grammars/source.nesc.json +27 -0
- data/grammars/source.netlinx.erb.json +47 -0
- data/grammars/source.netlinx.json +768 -0
- data/grammars/source.nginx.json +797 -0
- data/grammars/source.nim.json +1150 -0
- data/grammars/source.nim_filter.json +133 -0
- data/grammars/source.nimcfg.json +116 -0
- data/grammars/source.ninja.json +66 -0
- data/grammars/source.nit.json +238 -0
- data/grammars/source.nix.json +1200 -0
- data/grammars/source.nmml.json +87 -0
- data/grammars/source.nsis.json +150 -0
- data/grammars/source.objc++.json +19 -0
- data/grammars/source.objc.json +918 -0
- data/grammars/source.objc.platform.json +277 -0
- data/grammars/source.ocaml.json +1426 -0
- data/grammars/source.ocamllex.json +305 -0
- data/grammars/source.ocamlyacc.json +346 -0
- data/grammars/source.octave.json +451 -0
- data/grammars/source.ooc.json +692 -0
- data/grammars/source.opa.json +206 -0
- data/grammars/source.opal.json +415 -0
- data/grammars/source.opalsysdefs.json +70 -0
- data/grammars/source.opencobol.json +65 -0
- data/grammars/source.ox.json +97 -0
- data/grammars/source.oz.json +84 -0
- data/grammars/source.papyrus-assembly.json +266 -0
- data/grammars/source.papyrus.json +231 -0
- data/grammars/source.parrot.pir.json +117 -0
- data/grammars/source.pascal.json +150 -0
- data/grammars/source.perl.6.json +310 -0
- data/grammars/source.perl.json +2413 -0
- data/grammars/source.php.zephir.json +362 -0
- data/grammars/source.pig_latin.json +172 -0
- data/grammars/source.pike.json +62 -0
- data/grammars/source.plsql.oracle.json +642 -0
- data/grammars/source.po.json +232 -0
- data/grammars/source.pogoscript.json +85 -0
- data/grammars/source.postscript.json +231 -0
- data/grammars/source.powershell.json +755 -0
- data/grammars/source.processing.json +885 -0
- data/grammars/source.prolog.eclipse.json +206 -0
- data/grammars/source.prolog.json +292 -0
- data/grammars/source.protobuf.json +395 -0
- data/grammars/source.pubspec.json +13 -0
- data/grammars/source.puppet.json +494 -0
- data/grammars/source.purescript.json +818 -0
- data/grammars/source.pyjade.json +1010 -0
- data/grammars/source.python.django.json +34 -0
- data/grammars/source.python.json +1960 -0
- data/grammars/source.python.salt.json +13 -0
- data/grammars/source.qmake.json +217 -0
- data/grammars/source.qml.json +195 -0
- data/grammars/source.r.json +203 -0
- data/grammars/source.racket.json +119 -0
- data/grammars/source.rebol.json +647 -0
- data/grammars/source.red.json +652 -0
- data/grammars/source.regexp.babel.json +190 -0
- data/grammars/source.regexp.python.json +187 -0
- data/grammars/source.regexp.spin.json +188 -0
- data/grammars/source.ruby.json +1956 -0
- data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
- data/grammars/source.rust.json +269 -0
- data/grammars/source.sas.json +322 -0
- data/grammars/source.sas_log.json +26 -0
- data/grammars/source.sass.json +248 -0
- data/grammars/source.sbt.json +36 -0
- data/grammars/source.scad.json +152 -0
- data/grammars/source.scala.json +739 -0
- data/grammars/source.scaml.json +466 -0
- data/grammars/source.scheme.json +370 -0
- data/grammars/source.scilab.json +103 -0
- data/grammars/source.scss.json +1321 -0
- data/grammars/source.shell.json +1212 -0
- data/grammars/source.smali.json +1668 -0
- data/grammars/source.smalltalk.json +135 -0
- data/grammars/source.smt.json +173 -0
- data/grammars/source.sp.json +118 -0
- data/grammars/source.sparql.json +23 -0
- data/grammars/source.spin.json +936 -0
- data/grammars/source.sqf.json +112 -0
- data/grammars/source.sql.json +473 -0
- data/grammars/source.stata.json +208 -0
- data/grammars/source.strings.json +53 -0
- data/grammars/source.stylus.json +1021 -0
- data/grammars/source.swift.json +965 -0
- data/grammars/source.systemverilog.json +1050 -0
- data/grammars/source.tcl.json +277 -0
- data/grammars/source.tea.json +180 -0
- data/grammars/source.thrift.json +704 -0
- data/grammars/source.toml.json +327 -0
- data/grammars/source.ts.json +1094 -0
- data/grammars/source.tsx.json +1324 -0
- data/grammars/source.turtle.json +505 -0
- data/grammars/source.txl.json +62 -0
- data/grammars/source.ucfconstraints.json +72 -0
- data/grammars/source.vala.json +814 -0
- data/grammars/source.varnish.vcl.json +343 -0
- data/grammars/source.vbnet.json +338 -0
- data/grammars/source.verilog.json +302 -0
- data/grammars/source.vhdl.json +1349 -0
- data/grammars/source.viml.json +224 -0
- data/grammars/source.webidl.json +814 -0
- data/grammars/source.x10.json +68 -0
- data/grammars/source.x86asm.json +47 -0
- data/grammars/source.xc.json +379 -0
- data/grammars/source.xq.json +241 -0
- data/grammars/source.xquery.json +193 -0
- data/grammars/source.xtend.json +733 -0
- data/grammars/source.yaml.json +334 -0
- data/grammars/source.yaml.salt.json +348 -0
- data/grammars/text.bibtex.json +251 -0
- data/grammars/text.cfml.basic.json +736 -0
- data/grammars/text.dart-analysis-output.json +162 -0
- data/grammars/text.dart-doccomments.json +19 -0
- data/grammars/text.elixir.json +45 -0
- data/grammars/text.gherkin.feature.json +135 -0
- data/grammars/text.groff.json +113 -0
- data/grammars/text.haml.json +299 -0
- data/grammars/text.html.abl.json +24 -0
- data/grammars/text.html.asciidoc.json +492 -0
- data/grammars/text.html.asdoc.json +541 -0
- data/grammars/text.html.asp.json +58 -0
- data/grammars/text.html.basic.json +552 -0
- data/grammars/text.html.cfm.json +811 -0
- data/grammars/text.html.creole.json +329 -0
- data/grammars/text.html.django.json +69 -0
- data/grammars/text.html.elixir.json +18 -0
- data/grammars/text.html.erb.json +157 -0
- data/grammars/text.html.erlang.yaws.json +72 -0
- data/grammars/text.html.factor.json +27 -0
- data/grammars/text.html.handlebars.json +783 -0
- data/grammars/text.html.jsp.json +1203 -0
- data/grammars/text.html.liquid.json +35 -0
- data/grammars/text.html.mako.json +729 -0
- data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
- data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
- data/grammars/text.html.mediawiki.json +972 -0
- data/grammars/text.html.php.json +2607 -0
- data/grammars/text.html.slash.json +313 -0
- data/grammars/text.html.smarty.json +216 -0
- data/grammars/text.html.ssp.json +49 -0
- data/grammars/text.html.tcl.json +44 -0
- data/grammars/text.html.twig.json +1353 -0
- data/grammars/text.html.vue.json +642 -0
- data/grammars/text.idl-idldoc.json +14 -0
- data/grammars/text.junit-test-report.json +92 -0
- data/grammars/text.log.latex.json +86 -0
- data/grammars/text.python.console.json +25 -0
- data/grammars/text.python.traceback.json +46 -0
- data/grammars/text.rdoc.json +48 -0
- data/grammars/text.restructuredtext.json +561 -0
- data/grammars/text.robot.json +73 -0
- data/grammars/text.shell-session.json +48 -0
- data/grammars/text.slim.json +527 -0
- data/grammars/text.tex.json +271 -0
- data/grammars/text.tex.latex.beamer.json +63 -0
- data/grammars/text.tex.latex.haskell.json +56 -0
- data/grammars/text.tex.latex.json +1013 -0
- data/grammars/text.tex.latex.memoir.json +99 -0
- data/grammars/text.tex.latex.rd.json +117 -0
- data/grammars/text.xml.ant.json +202 -0
- data/grammars/text.xml.flex-config.json +2634 -0
- data/grammars/text.xml.genshi.json +34 -0
- data/grammars/text.xml.json +364 -0
- data/grammars/text.xml.pom.json +774 -0
- data/grammars/text.xml.xsl.json +94 -0
- data/grammars/text.zone_file.json +72 -0
- data/lib/linguist/grammars.rb +13 -0
- metadata +389 -0
@@ -0,0 +1,216 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"esl",
|
4
|
+
"lsl"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "\\{\\s*$",
|
7
|
+
"foldingStopMarker": "^\\s*\\}",
|
8
|
+
"keyEquivalent": "^~L",
|
9
|
+
"name": "Second Life LSL",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"include": "#round-brackets"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"begin": "//",
|
16
|
+
"end": "$\\n?",
|
17
|
+
"name": "comment.line.double-slash.lsl"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(|-)?[0-9]+)?)\\b",
|
21
|
+
"name": "constant.numeric.lsl"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"comment": "LSL Flow-control keywords",
|
25
|
+
"match": "\\b(default|state|for|do|while|if|else|jump|return )\\b",
|
26
|
+
"name": "keyword.control.lsl"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"comment": "LSL Types",
|
30
|
+
"match": "\\b(integer|float|string|key|vector|rotation|list|function)\\b",
|
31
|
+
"name": "storage.type.lsl"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"comment": "LSL Constants",
|
35
|
+
"match": "\\b(PI|TWO_PI|NULL_KEY|SCRIPTED)\\b",
|
36
|
+
"name": "constant.language.lsl"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"comment": "LSL Events",
|
40
|
+
"match": "\\b(at_rot_target|at_target|attach|changed|collision|collision_end|collision_start|control|dataserver|email|http_response|land_collision|land_collision_end|land_collision_start|link_message|listen|money|moving_end|moving_start|no_sensor|not_at_rot_target|not_at_target|object_rez|on_rez|remote_data|run_time_permissions|sensor|state_entry|state_exit|timer|touch|touch_end|touch_start)\\b",
|
41
|
+
"name": "constant.language.lsl.events"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"comment": "LSL Functions ll*",
|
45
|
+
"match": "\\b(llAbs|llAcos|llAddToLandBanList|llAddToLandPassList|llAdjustSoundVolume|llAllowInventoryDrop|llAngleBetween|llApplyImpulse|llApplyRotationalImpulse|llAsin|llAtan2|llAttachToAvatar|llAvatarOnSitTarget|llAxes2Rot|llAxisAngle2Rot|llBase64ToInteger|llBase64ToString|llBreakAllLinks|llBreakLink|llCeil|llClearCameraParams|llCloseRemoteDataChannel|llCloud|llCollisionFilter|llCollisionSound|llCollisionSprite|llCos|llCreateLink|llCSV2List|llDeleteSubList|llDeleteSubString|llDetachFromAvatar|llDetectedGrab|llDetectedGroup|llDetectedKey|llDetectedLinkNumber|llDetectedName|llDetectedOwner|llDetectedPos|llDetectedRot|llDetectedType|llDetectedVel|llDialog|llDie|llDumpList2String|llEdgeOfWorld|llEjectFromLand|llEmail|llEscapeURL|llEuler2Rot|llFabs|llFloor|llForceMouselook|llFrand|llGetAccel|llGetAgentInfo|llGetAgentSize|llGetAlpha|llGetAndResetTime|llGetAnimation|llGetAnimationList|llGetAttached|llGetBoundingBox|llGetCameraPos|llGetCameraRot|llGetCenterOfMass|llGetColor|llGetCreator|llGetDate|llGetEnergy|llGetForce|llGetFreeMemory|llGetGeometricCenter|llGetGMTclock|llGetInventoryCreator|llGetInventoryKey|llGetInventoryName|llGetInventoryNumber|llGetInventoryPermMask|llGetInventoryType|llGetKey|llGetLandOwnerAt|llGetLinkKey|llGetLinkName|llGetLinkNumber|llGetListEntryType|llGetListLength|llGetLocalPos|llGetLocalRot|llGetMass|llGetNextEmail|llGetNotecardLine|llGetNumberOfNotecardLines|llGetNumberOfPrims|llGetNumberOfSides|llGetObjectDesc|llGetObjectMass|llGetObjectName|llGetObjectPermMask|llGetOmega|llGetOwner|llGetOwnerKey|llGetParcelFlags|llGetPermissions|llGetPermissionsKey|llGetPos|llGetPrimitiveParams|llGetRegionCorner|llGetRegionFlags|llGetRegionFPS|llGetRegionName|llGetRegionTimeDilation|llGetRootPosition|llGetRootRotation|llGetRot|llGetScale|llGetScriptName|llGetScriptState|llGetSimulatorHostname|llGetStartParameter|llGetStatus|llGetSubString|llGetSunDirection|llGetTexture|llGetTextureOffset|llGetTextureRot|llGetTextureScale|llGetTime|llGetTimeOfDay|llGetTimestamp|llGetTorque|llGetUnixTime|llGetVel|llGetWallclock|llGiveInventory|llGiveInventoryList|llGiveMoney|llGround|llGroundContour|llGroundNormal|llGroundRepel|llGroundSlope|llHTTPRequest|llInsertString|llInstantMessage|llIntegerToBase64|llKey2Name|llList2CSV|llList2Float|llList2Integer|llList2Key|llList2List|llList2ListStrided|llList2Rot|llList2String|llList2Vector|llListen|llListenControl|llListenRemove|llListFindList|llListInsertList|llListRandomize|llListReplaceList|llListSort|llListStatistics|llLoadURL|llLog|llLog10|llLookAt|llLoopSound|llLoopSoundMaster|llLoopSoundSlave|llMapDestination|llMD5String|llMessageLinked|llMinEventDelay|llModifyLand|llModPow|llMoveToTarget|llOffsetTexture|llOpenRemoteDataChannel|llOverMyLand|llOwnerSay|llParcelMediaCommandList|llParcelMediaQuery|llParseString2List|llParseStringKeepNulls|llParticleSystem|llPassCollisions|llPassTouches|llPlaySound|llPlaySoundSlave|llPointAt|llPow|llPreloadSound|llPushObject|llReleaseCamera|llReleaseControls|llRemoteDataReply|llRemoteDataSetRegion|llRemoteLoadScriptPin|llRemoveFromLandBanList|llRemoveFromLandPassList|llRemoveInventory|llRemoveVehicleFlags|llRequestAgentData|llRequestInventoryData|llRequestPermissions|llRequestSimulatorData|llResetOtherScript|llResetScript|llResetTime|llRezAtRoot|llRezObject|llRot2Angle|llRot2Axis|llRot2Euler|llRot2Fwd|llRot2Left|llRot2Up|llRotateTexture|llRotBetween|llRotLookAt|llRotTarget|llRotTargetRemove|llRound|llSameGroup|llSay|llScaleTexture|llScriptDanger|llSendRemoteData|llSensor|llSensorRemove|llSensorRepeat|llSetAlpha|llSetBuoyancy|llSetCameraAtOffset|llSetCameraEyeOffset|llSetCameraParams|llSetColor|llSetDamage|llSetForce|llSetForceAndTorque|llSetHoverHeight|llSetLinkAlpha|llSetLinkColor|llSetLocalRot|llSetObjectDesc|llSetObjectName|llSetParcelMusicURL|llSetPayPrice|llSetPos|llSetPrimitiveParams|llSetRemoteScriptAccessPin|llSetRot|llSetScale|llSetScriptState|llSetSitText|llSetSoundQueueing|llSetStatus|llSetText|llSetTexture|llSetTextureAnim|llSetTimerEvent|llSetTorque|llSetTouchText|llSetVehicleFlags|llSetVehicleFloatParam|llSetVehicleRotationParam|llSetVehicleType|llSetVehicleVectorParam|llShout|llSin|llSitTarget|llSleep|llSqrt|llStartAnimation|llStopAnimation|llStopHover|llStopLookAt|llStopMoveToTarget|llStopPointAt|llStopSound|llStringLength|llStringToBase64|llSubStringIndex|llTakeControls|llTan|llTarget|llTargetOmega|llTargetRemove|llTeleportAgentHome|llToLower|llToUpper|llTriggerSound|llTriggerSoundLimited|llUnescapeURL|llUnSit|llVecDist|llVecMag|llVecNorm|llVolumeDetect|llWater|llWhisper|llWind|llXorBase64StringsCorrect)\\b",
|
46
|
+
"name": "support.function.lsl"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"comment": "LSL Function Constants",
|
50
|
+
"match": "\\b(ACTIVE|AGENT|AGENT_ALWAYS_RUN|AGENT_ATTACHMENTS|AGENT_AWAY|AGENT_BUSY|AGENT_CROUCHING|AGENT_FLYING|AGENT_IN_AIR|AGENT_MOUSELOOK|AGENT_ON_OBJECT|AGENT_SCRIPTED|AGENT_SITTING|AGENT_TYPING|AGENT_WALKING|ALL_SIDES|ANIM_ON|ATTACH_BACK|ATTACH_BELLY|ATTACH_CHEST|ATTACH_CHIN|ATTACH_HEAD|ATTACH_LEAR|ATTACH_LEYE|ATTACH_LFOOT|ATTACH_LHAND|ATTACH_LHIP|ATTACH_LLARM|ATTACH_LLLEG|ATTACH_LPEC|ATTACH_LSHOULDER|ATTACH_LUARM|ATTACH_LULEG|ATTACH_MOUTH|ATTACH_NOSE|ATTACH_PELVIS|ATTACH_REAR|ATTACH_REYE|ATTACH_RFOOT|ATTACH_RHAND|ATTACH_RHIP|ATTACH_RLARM|ATTACH_RLLEG|ATTACH_RPEC|ATTACH_RSHOULDER|ATTACH_RUARM|ATTACH_RULEG|CAMERA_ACTIVE|CAMERA_BEHINDNESS_ANGLE|CAMERA_BEHINDNESS_LAG|CAMERA_DISTANCE|CAMERA_FOCUS|CAMERA_FOCUS_LAG|CAMERA_FOCUS_LOCKED|CAMERA_FOCUS_OFFSET|CAMERA_FOCUS_THRESHOLD|CAMERA_PITCH|CAMERA_POSITION|CAMERA_POSITION_LAG|CAMERA_POSITION_LOCKED|CAMERA_POSITION_THRESHOLD|CHANGED_ALLOWED_DROP|CHANGED_COLOR|CHANGED_INVENTORY|CHANGED_LINK|CHANGED_OWNER|CHANGED_REGION|CHANGED_SCALE|CHANGED_SHAPE|CHANGED_TELEPORT|CHANGED_TEXTURE|CONTROL_BACK|CONTROL_DOWN|CONTROL_FWD|CONTROL_LBUTTON|CONTROL_LEFT|CONTROL_ML_LBUTTON|CONTROL_RIGHT|CONTROL_ROT_LEFT|CONTROL_ROT_RIGHT|CONTROL_UP|DATA_BORN|DATA_NAME|DATA_ONLINE|DATA_RATING|DATA_SIM_POS|DATA_SIM_RATING|DATA_SIM_STATUS|DEBUG_CHANNEL|DEG_TO_RAD|EOF|FALSE|HTTP_BODY_MAXLENGTH|HTTP_BODY_TRUNCATED|HTTP_METHOD|HTTP_MIMETYPE|INVENTORY_ALL|INVENTORY_ANIMATION|INVENTORY_BODYPART|INVENTORY_CLOTHING|INVENTORY_GESTURE|INVENTORY_LANDMARK|INVENTORY_NONE|INVENTORY_NOTECARD|INVENTORY_OBJECT|INVENTORY_SCRIPT|INVENTORY_SOUND|INVENTORY_TEXTURE|LAND_LARGE_BRUSH|LAND_LEVEL|LAND_LOWER|LAND_MEDIUM_BRUSH|LAND_NOISE|LAND_RAISE|LAND_REVERT|LAND_SMALL_BRUSH|LAND_SMOOTH|LINK_ALL_CHILDREN|LINK_ALL_OTHERS|LINK_ROOT|LINK_SET|LINK_THIS|LIST_STAT_GEOMETRIC_MEAN|LIST_STAT_MAX|LIST_STAT_MEAN|LIST_STAT_MEDIAN|LIST_STAT_MIN|LIST_STAT_NUM_COUNT|LIST_STAT_RANGE|LIST_STAT_STD_DEV|LIST_STAT_SUM|LIST_STAT_SUM_SQUARES|LOOP|MASK_BASE|MASK_EVERYONE|MASK_GROUP|MASK_NEXT|MASK_OWNER|NULL_KEY|PARCEL_FLAG_ALLOW_CREATE_OBJECTS|PARCEL_FLAG_ALLOW_DAMAGE|PARCEL_FLAG_ALLOW_FLY|PARCEL_FLAG_ALLOW_LANDMARK|PARCEL_FLAG_ALLOW_SCRIPTS|PARCEL_FLAG_ALLOW_TERRAFORM|PARCEL_FLAG_LOCAL_SOUND_ONLY|PARCEL_FLAG_USE_ACCESS_GROUP|PARCEL_FLAG_USE_ACCESS_LIST|PARCEL_FLAG_USE_BAN_LIST|PARCEL_FLAG_USE_LAND_PASS_LIST|PARCEL_MEDIA_COMMAND_AGENT|PARCEL_MEDIA_COMMAND_AUTO_ALIGN|PARCEL_MEDIA_COMMAND_LOOP|PARCEL_MEDIA_COMMAND_PAUSE|PARCEL_MEDIA_COMMAND_PLAY|PARCEL_MEDIA_COMMAND_STOP|PARCEL_MEDIA_COMMAND_TEXTURE|PARCEL_MEDIA_COMMAND_TIME|PARCEL_MEDIA_COMMAND_UNLOAD|PARCEL_MEDIA_COMMAND_URL|PASSIVE|PAY_DEFAULT|PAY_HIDE|PERM_ALL|PERM_COPY|PERM_MODIFY|PERM_MOVE|PERM_TRANSFER|PERMISSION_ATTACH|PERMISSION_CHANGE_LINKS|PERMISSION_CONTROL_CAMERA|PERMISSION_DEBIT|PERMISSION_TAKE_CONTROLS|PERMISSION_TRACK_CAMERA|PERMISSION_TRIGGER_ANIMATION|PI|PI_BY_TWO|PING_PONG|PRIM_BUMP_BARK|PRIM_BUMP_BLOBS|PRIM_BUMP_BRICKS|PRIM_BUMP_BRIGHT|PRIM_BUMP_CHECKER|PRIM_BUMP_CONCRETE|PRIM_BUMP_DARK|PRIM_BUMP_DISKS|PRIM_BUMP_GRAVEL|PRIM_BUMP_LARGETILE|PRIM_BUMP_NONE|PRIM_BUMP_SHINY|PRIM_BUMP_SIDING|PRIM_BUMP_STONE|PRIM_BUMP_STUCCO|PRIM_BUMP_SUCTION|PRIM_BUMP_TILE|PRIM_BUMP_WEAVE|PRIM_BUMP_WOOD|PRIM_CAST_SHADOWS|PRIM_COLOR|PRIM_FLEXIBLE|PRIM_FULLBRIGHT|PRIM_HOLE_CIRCLE|PRIM_HOLE_DEFAULT|PRIM_HOLE_SQUARE|PRIM_HOLE_TRIANGLE|PRIM_MATERIAL|PRIM_MATERIAL_FLESH|PRIM_MATERIAL_GLASS|PRIM_MATERIAL_LIGHT|PRIM_MATERIAL_METAL|PRIM_MATERIAL_PLASTIC|PRIM_MATERIAL_RUBBER|PRIM_MATERIAL_STONE|PRIM_MATERIAL_WOOD|PRIM_PHANTOM|PRIM_PHYSICS|PRIM_POINT_LIGHT|PRIM_POSITION|PRIM_ROTATION|PRIM_SHINY_HIGH|PRIM_SHINY_LOW|PRIM_SHINY_MEDIUM|PRIM_SHINY_NONE|PRIM_SIZE|PRIM_TEMP_ON_REZ|PRIM_TEXGEN|PRIM_TEXGEN_DEFAULT|PRIM_TEXGEN_PLANAR|PRIM_TEXTURE|PRIM_TYPE|PRIM_TYPE_BOX|PRIM_TYPE_CYLINDER|PRIM_TYPE_PRISM|PRIM_TYPE_RING|PRIM_TYPE_SPHERE|PRIM_TYPE_TORUS|PRIM_TYPE_TUBE|PSYS_PART_BOUNCE_MASK|PSYS_PART_EMISSIVE_MASK|PSYS_PART_END_ALPHA|PSYS_PART_END_COLOR|PSYS_PART_END_SCALE|PSYS_PART_FLAGS|PSYS_PART_FOLLOW_SRC_MASK|PSYS_PART_FOLLOW_VELOCITY_MASK|PSYS_PART_INTERP_COLOR_MASK|PSYS_PART_INTERP_SCALE_MASK|PSYS_PART_MAX_AGE|PSYS_PART_START_ALPHA|PSYS_PART_START_COLOR|PSYS_PART_START_SCALE|PSYS_PART_TARGET_LINEAR_MASK|PSYS_PART_TARGET_POS_MASK|PSYS_PART_WIND_MASK|PSYS_SRC_ACCEL|PSYS_SRC_ANGLE_BEGIN|PSYS_SRC_ANGLE_END|PSYS_SRC_BURST_PART_COUNT|PSYS_SRC_BURST_RADIUS|PSYS_SRC_BURST_RATE|PSYS_SRC_BURST_SPEED_MAX|PSYS_SRC_BURST_SPEED_MIN|PSYS_SRC_INNERANGLE|PSYS_SRC_MAX_AGE|PSYS_SRC_OMEGA|PSYS_SRC_OUTERANGLE|PSYS_SRC_PATTERN|PSYS_SRC_PATTERN_ANGLE|PSYS_SRC_PATTERN_ANGLE_CONE|PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY|PSYS_SRC_PATTERN_DROP|PSYS_SRC_PATTERN_EXPLODE|PSYS_SRC_TARGET_KEY|PSYS_SRC_TEXTURE|PUBLIC_CHANNEL|RAD_TO_DEG|REGION_FLAG_ALLOW_DAMAGE|REGION_FLAG_ALLOW_DIRECT_TELEPORT|REGION_FLAG_BLOCK_FLY|REGION_FLAG_BLOCK_TERRAFORM|REGION_FLAG_DISABLE_COLLISIONS|REGION_FLAG_DISABLE_PHYSICS|REGION_FLAG_FIXED_SUN|REGION_FLAG_SANDBOX|REMOTE_DATA_CHANNEL|REMOTE_DATA_REPLY|REMOTE_DATA_REQUEST|REVERSE|ROTATE|SCALE|SCRIPTED|SMOOTH|SQRT2|STATUS_BLOCK_GRAB|STATUS_CAST_SHADOWS|STATUS_DIE_AT_EDGE|STATUS_PHANTOM|STATUS_PHYSICS|STATUS_RETURN_AT_EDGE|STATUS_ROTATE_X|STATUS_ROTATE_Y|STATUS_ROTATE_Z|STATUS_SANDBOX|TRUE|TWO_PI|TYPE_FLOAT|TYPE_INTEGER|TYPE_INVALID|TYPE_KEY|TYPE_ROTATION|TYPE_STRING|TYPE_VECTOR|VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY|VEHICLE_ANGULAR_DEFLECTION_TIMESCALE|VEHICLE_ANGULAR_FRICTION_TIMESCALE|VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE|VEHICLE_ANGULAR_MOTOR_DIRECTION|VEHICLE_ANGULAR_MOTOR_TIMESCALE|VEHICLE_BANKING_EFFICIENCY|VEHICLE_BANKING_MIX|VEHICLE_BANKING_TIMESCALE|VEHICLE_BUOYANCY|VEHICLE_FLAG_CAMERA_DECOUPLED|VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT|VEHICLE_FLAG_HOVER_TERRAIN_ONLY|VEHICLE_FLAG_HOVER_UP_ONLY|VEHICLE_FLAG_HOVER_WATER_ONLY|VEHICLE_FLAG_LIMIT_MOTOR_UP|VEHICLE_FLAG_LIMIT_ROLL_ONLY|VEHICLE_FLAG_MOUSELOOK_BANK|VEHICLE_FLAG_MOUSELOOK_STEER|VEHICLE_FLAG_NO_DEFLECTION_UP|VEHICLE_HOVER_EFFICIENCY|VEHICLE_HOVER_HEIGHT|VEHICLE_HOVER_TIMESCALE|VEHICLE_LINEAR_DEFLECTION_EFFICIENCY|VEHICLE_LINEAR_DEFLECTION_TIMESCALE|VEHICLE_LINEAR_FRICTION_TIMESCALE|VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE|VEHICLE_LINEAR_MOTOR_DIRECTION|VEHICLE_LINEAR_MOTOR_OFFSET|VEHICLE_LINEAR_MOTOR_TIMESCALE|VEHICLE_REFERENCE_FRAME|VEHICLE_TYPE_AIRPLANE|VEHICLE_TYPE_BALLOON|VEHICLE_TYPE_BOAT|VEHICLE_TYPE_CAR|VEHICLE_TYPE_NONE|VEHICLE_TYPE_SLED|VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY|VEHICLE_VERTICAL_ATTRACTION_TIMESCALE|ZERO_ROTATION|ZERO_VECTOR)\\b",
|
51
|
+
"name": "support.constant.lsl"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"match": "\\b\\w+ *(?=\\()",
|
55
|
+
"name": "entity.name.function.lsl"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"match": "\\b\\w+\\b",
|
59
|
+
"name": "variable.other.lsl"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"begin": "\"",
|
63
|
+
"end": "\"",
|
64
|
+
"name": "string.quoted.double.lsl",
|
65
|
+
"patterns": [
|
66
|
+
{
|
67
|
+
"match": "\\\\[a-zA-Z]",
|
68
|
+
"name": "constant.character.untitled"
|
69
|
+
}
|
70
|
+
]
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"include": "#leading-space"
|
74
|
+
}
|
75
|
+
],
|
76
|
+
"repository": {
|
77
|
+
"leading-space": {
|
78
|
+
"patterns": [
|
79
|
+
{
|
80
|
+
"begin": "^(?=(\\t| ))",
|
81
|
+
"end": "(?=[^\\t\\s])",
|
82
|
+
"name": "meta.leading-tabs",
|
83
|
+
"patterns": [
|
84
|
+
{
|
85
|
+
"captures": {
|
86
|
+
"1": {
|
87
|
+
"name": "meta.odd-tab.group1.spaces"
|
88
|
+
},
|
89
|
+
"10": {
|
90
|
+
"name": "meta.even-tab.group10.spaces"
|
91
|
+
},
|
92
|
+
"11": {
|
93
|
+
"name": "meta.odd-tab.group11.spaces"
|
94
|
+
},
|
95
|
+
"2": {
|
96
|
+
"name": "meta.even-tab.group2.spaces"
|
97
|
+
},
|
98
|
+
"3": {
|
99
|
+
"name": "meta.odd-tab.group3.spaces"
|
100
|
+
},
|
101
|
+
"4": {
|
102
|
+
"name": "meta.even-tab.group4.spaces"
|
103
|
+
},
|
104
|
+
"5": {
|
105
|
+
"name": "meta.odd-tab.group5.spaces"
|
106
|
+
},
|
107
|
+
"6": {
|
108
|
+
"name": "meta.even-tab.group6.spaces"
|
109
|
+
},
|
110
|
+
"7": {
|
111
|
+
"name": "meta.odd-tab.group7.spaces"
|
112
|
+
},
|
113
|
+
"8": {
|
114
|
+
"name": "meta.even-tab.group8.spaces"
|
115
|
+
},
|
116
|
+
"9": {
|
117
|
+
"name": "meta.odd-tab.group9.spaces"
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"match": "( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"captures": {
|
124
|
+
"1": {
|
125
|
+
"name": "meta.odd-tab.group1.tab"
|
126
|
+
},
|
127
|
+
"10": {
|
128
|
+
"name": "meta.even-tab.group10.tab"
|
129
|
+
},
|
130
|
+
"11": {
|
131
|
+
"name": "meta.odd-tab.group11.tab"
|
132
|
+
},
|
133
|
+
"2": {
|
134
|
+
"name": "meta.even-tab.group2.tab"
|
135
|
+
},
|
136
|
+
"3": {
|
137
|
+
"name": "meta.odd-tab.group3.tab"
|
138
|
+
},
|
139
|
+
"4": {
|
140
|
+
"name": "meta.even-tab.group4.tab"
|
141
|
+
},
|
142
|
+
"5": {
|
143
|
+
"name": "meta.odd-tab.group5.tab"
|
144
|
+
},
|
145
|
+
"6": {
|
146
|
+
"name": "meta.even-tab.group6.tab"
|
147
|
+
},
|
148
|
+
"7": {
|
149
|
+
"name": "meta.odd-tab.group7.tab"
|
150
|
+
},
|
151
|
+
"8": {
|
152
|
+
"name": "meta.even-tab.group8.tab"
|
153
|
+
},
|
154
|
+
"9": {
|
155
|
+
"name": "meta.odd-tab.group9.tab"
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"match": "(\\t)(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?"
|
159
|
+
}
|
160
|
+
]
|
161
|
+
}
|
162
|
+
]
|
163
|
+
},
|
164
|
+
"round-brackets": {
|
165
|
+
"patterns": [
|
166
|
+
{
|
167
|
+
"begin": "(\\{)",
|
168
|
+
"captures": {
|
169
|
+
"1": {
|
170
|
+
"name": "meta.brace.curly"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"end": "(\\}\\n?)",
|
174
|
+
"name": "meta.group.braces.curly",
|
175
|
+
"patterns": [
|
176
|
+
{
|
177
|
+
"include": "$base"
|
178
|
+
}
|
179
|
+
]
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"begin": "(\\()",
|
183
|
+
"captures": {
|
184
|
+
"1": {
|
185
|
+
"name": "meta.brace.round"
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"end": "(\\))",
|
189
|
+
"name": "meta.group.braces.round",
|
190
|
+
"patterns": [
|
191
|
+
{
|
192
|
+
"include": "$base"
|
193
|
+
}
|
194
|
+
]
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"begin": "(\\[)",
|
198
|
+
"captures": {
|
199
|
+
"1": {
|
200
|
+
"name": "meta.brace.square"
|
201
|
+
}
|
202
|
+
},
|
203
|
+
"end": "(\\])",
|
204
|
+
"name": "meta.group.braces.square",
|
205
|
+
"patterns": [
|
206
|
+
{
|
207
|
+
"include": "$base"
|
208
|
+
}
|
209
|
+
]
|
210
|
+
}
|
211
|
+
]
|
212
|
+
}
|
213
|
+
},
|
214
|
+
"scopeName": "source.lsl",
|
215
|
+
"uuid": "21B2E01B-B911-4B99-975E-4787BEAE6697"
|
216
|
+
}
|
@@ -0,0 +1,191 @@
|
|
1
|
+
{
|
2
|
+
"comment": "Lua Syntax: version 0.8",
|
3
|
+
"fileTypes": [
|
4
|
+
"lua"
|
5
|
+
],
|
6
|
+
"firstLineMatch": "\\A#!.*?\\blua\\b",
|
7
|
+
"keyEquivalent": "^~L",
|
8
|
+
"name": "Lua",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"captures": {
|
12
|
+
"1": {
|
13
|
+
"name": "keyword.control.lua"
|
14
|
+
},
|
15
|
+
"2": {
|
16
|
+
"name": "entity.name.function.scope.lua"
|
17
|
+
},
|
18
|
+
"3": {
|
19
|
+
"name": "entity.name.function.lua"
|
20
|
+
},
|
21
|
+
"4": {
|
22
|
+
"name": "punctuation.definition.parameters.begin.lua"
|
23
|
+
},
|
24
|
+
"5": {
|
25
|
+
"name": "variable.parameter.function.lua"
|
26
|
+
},
|
27
|
+
"6": {
|
28
|
+
"name": "punctuation.definition.parameters.end.lua"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"match": "\\b(function)(?:\\s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]\\w*)\\s*)?(\\()([^)]*)(\\))",
|
32
|
+
"name": "meta.function.lua"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"match": "(?<![\\d.])\\s0x[a-fA-F\\d]+|\\b\\d+(\\.\\d+)?([eE]-?\\d+)?|\\.\\d+([eE]-?\\d+)?",
|
36
|
+
"name": "constant.numeric.lua"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"begin": "'",
|
40
|
+
"beginCaptures": {
|
41
|
+
"0": {
|
42
|
+
"name": "punctuation.definition.string.begin.lua"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"end": "'",
|
46
|
+
"endCaptures": {
|
47
|
+
"0": {
|
48
|
+
"name": "punctuation.definition.string.end.lua"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"name": "string.quoted.single.lua",
|
52
|
+
"patterns": [
|
53
|
+
{
|
54
|
+
"match": "\\\\.",
|
55
|
+
"name": "constant.character.escape.lua"
|
56
|
+
}
|
57
|
+
]
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"begin": "\"",
|
61
|
+
"beginCaptures": {
|
62
|
+
"0": {
|
63
|
+
"name": "punctuation.definition.string.begin.lua"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"end": "\"",
|
67
|
+
"endCaptures": {
|
68
|
+
"0": {
|
69
|
+
"name": "punctuation.definition.string.end.lua"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"name": "string.quoted.double.lua",
|
73
|
+
"patterns": [
|
74
|
+
{
|
75
|
+
"match": "\\\\.",
|
76
|
+
"name": "constant.character.escape.lua"
|
77
|
+
}
|
78
|
+
]
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"begin": "(?<=\\.cdef)\\s*(\\[(=*)\\[)",
|
82
|
+
"beginCaptures": {
|
83
|
+
"0": {
|
84
|
+
"name": "string.quoted.other.multiline.lua"
|
85
|
+
},
|
86
|
+
"1": {
|
87
|
+
"name": "punctuation.definition.string.begin.lua"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"contentName": "meta.embedded.lua",
|
91
|
+
"end": "(\\]\\2\\])",
|
92
|
+
"endCaptures": {
|
93
|
+
"0": {
|
94
|
+
"name": "string.quoted.other.multiline.lua"
|
95
|
+
},
|
96
|
+
"1": {
|
97
|
+
"name": "punctuation.definition.string.end.lua"
|
98
|
+
}
|
99
|
+
},
|
100
|
+
"patterns": [
|
101
|
+
{
|
102
|
+
"include": "source.c"
|
103
|
+
}
|
104
|
+
]
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"begin": "(?<!--)\\[(=*)\\[",
|
108
|
+
"beginCaptures": {
|
109
|
+
"0": {
|
110
|
+
"name": "punctuation.definition.string.begin.lua"
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"end": "\\]\\1\\]",
|
114
|
+
"endCaptures": {
|
115
|
+
"0": {
|
116
|
+
"name": "punctuation.definition.string.end.lua"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"name": "string.quoted.other.multiline.lua"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"begin": "--\\[(=*)\\[",
|
123
|
+
"captures": {
|
124
|
+
"0": {
|
125
|
+
"name": "punctuation.definition.comment.lua"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"end": "\\]\\1\\]",
|
129
|
+
"name": "comment.block.lua"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"begin": "(^[ \\t]+)?(?=--(?!\\[\\[))",
|
133
|
+
"beginCaptures": {
|
134
|
+
"1": {
|
135
|
+
"name": "punctuation.whitespace.comment.leading.lua"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"end": "(?!\\G)",
|
139
|
+
"patterns": [
|
140
|
+
{
|
141
|
+
"begin": "--",
|
142
|
+
"beginCaptures": {
|
143
|
+
"0": {
|
144
|
+
"name": "punctuation.definition.comment.lua"
|
145
|
+
}
|
146
|
+
},
|
147
|
+
"end": "\\n",
|
148
|
+
"name": "comment.line.double-dash.lua"
|
149
|
+
}
|
150
|
+
]
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"match": "\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\\b",
|
154
|
+
"name": "keyword.control.lua"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"match": "(?<![^.]\\.|:)\\b(false|nil|true|_G|_VERSION|math\\.(pi|huge))\\b|(?<![.])\\.{3}(?!\\.)",
|
158
|
+
"name": "constant.language.lua"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"match": "(?<![^.]\\.|:)\\b(self)\\b",
|
162
|
+
"name": "variable.language.self.lua"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"match": "(?<![^.]\\.|:)\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\b(?=\\s*(?:[({\"']|\\[\\[))",
|
166
|
+
"name": "support.function.lua"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"match": "(?<![^.]\\.|:)\\b(coroutine\\.(create|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\\.(concat|insert|maxn|remove|sort)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(cpath|loaded|loadlib|path|preload|seeall)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\\b(?=\\s*(?:[({\"']|\\[\\[))",
|
170
|
+
"name": "support.function.library.lua"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"match": "\\b(and|or|not)\\b",
|
174
|
+
"name": "keyword.operator.lua"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"match": "\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
|
178
|
+
"name": "support.function.any-method.lua"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"match": "(?<=[^.]\\.|:)\\b([A-Za-z_]\\w*)",
|
182
|
+
"name": "variable.other.lua"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"match": "\\+|-|%|#|\\*|\\/|\\^|==?|~=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)",
|
186
|
+
"name": "keyword.operator.lua"
|
187
|
+
}
|
188
|
+
],
|
189
|
+
"scopeName": "source.lua",
|
190
|
+
"uuid": "93E017CC-6F27-11D9-90EB-000D93589AF7"
|
191
|
+
}
|
@@ -0,0 +1,474 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"Makefile",
|
4
|
+
"makefile",
|
5
|
+
"GNUmakefile",
|
6
|
+
"OCamlMakefile"
|
7
|
+
],
|
8
|
+
"name": "Makefile",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"include": "#comment"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"include": "#variable-assignment"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"include": "#recipe"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"include": "#directives"
|
21
|
+
}
|
22
|
+
],
|
23
|
+
"repository": {
|
24
|
+
"comment": {
|
25
|
+
"begin": "(^[ \\t]+)?(?=#)",
|
26
|
+
"beginCaptures": {
|
27
|
+
"1": {
|
28
|
+
"name": "punctuation.whitespace.comment.leading.makefile"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"end": "(?!\\G)",
|
32
|
+
"patterns": [
|
33
|
+
{
|
34
|
+
"begin": "#",
|
35
|
+
"beginCaptures": {
|
36
|
+
"0": {
|
37
|
+
"name": "punctuation.definition.comment.makefile"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"end": "\\n",
|
41
|
+
"name": "comment.line.number-sign.makefile",
|
42
|
+
"patterns": [
|
43
|
+
{
|
44
|
+
"match": "\\\\\\n",
|
45
|
+
"name": "constant.character.escape.continuation.makefile"
|
46
|
+
}
|
47
|
+
]
|
48
|
+
}
|
49
|
+
]
|
50
|
+
},
|
51
|
+
"directives": {
|
52
|
+
"patterns": [
|
53
|
+
{
|
54
|
+
"begin": "^[ ]*([s\\-]?include)\\b",
|
55
|
+
"beginCaptures": {
|
56
|
+
"1": {
|
57
|
+
"name": "keyword.control.include.makefile"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"end": "^",
|
61
|
+
"patterns": [
|
62
|
+
{
|
63
|
+
"include": "#comment"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"include": "#variables"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"match": "%",
|
70
|
+
"name": "constant.other.placeholder.makefile"
|
71
|
+
}
|
72
|
+
]
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"begin": "^[ ]*(vpath)\\b",
|
76
|
+
"beginCaptures": {
|
77
|
+
"1": {
|
78
|
+
"name": "keyword.control.vpath.makefile"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
"end": "^",
|
82
|
+
"patterns": [
|
83
|
+
{
|
84
|
+
"include": "#comment"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"include": "#variables"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"match": "%",
|
91
|
+
"name": "constant.other.placeholder.makefile"
|
92
|
+
}
|
93
|
+
]
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"begin": "^(?:(override)\\s*)?(define)\\s*([^\\s]+)\\s*(=|\\?=|:=|\\+=)?(?=\\s)",
|
97
|
+
"captures": {
|
98
|
+
"1": {
|
99
|
+
"name": "keyword.control.override.makefile"
|
100
|
+
},
|
101
|
+
"2": {
|
102
|
+
"name": "keyword.control.define.makefile"
|
103
|
+
},
|
104
|
+
"3": {
|
105
|
+
"name": "variable.other.makefile"
|
106
|
+
},
|
107
|
+
"4": {
|
108
|
+
"name": "punctuation.separator.key-value.makefile"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"end": "^(endef)\\b",
|
112
|
+
"name": "meta.scope.conditional.makefile",
|
113
|
+
"patterns": [
|
114
|
+
{
|
115
|
+
"begin": "\\G(?!\\n)",
|
116
|
+
"end": "^",
|
117
|
+
"patterns": [
|
118
|
+
{
|
119
|
+
"include": "#comment"
|
120
|
+
}
|
121
|
+
]
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"include": "#variables"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"include": "#comment"
|
128
|
+
}
|
129
|
+
]
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"begin": "^[ ]*(export)\\b",
|
133
|
+
"beginCaptures": {
|
134
|
+
"1": {
|
135
|
+
"name": "keyword.control.$1.makefile"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"end": "^",
|
139
|
+
"patterns": [
|
140
|
+
{
|
141
|
+
"include": "#comment"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"include": "#variable-assignment"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"match": "[^\\s]+",
|
148
|
+
"name": "variable.other.makefile"
|
149
|
+
}
|
150
|
+
]
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"begin": "^[ ]*(override|private)\\b",
|
154
|
+
"beginCaptures": {
|
155
|
+
"1": {
|
156
|
+
"name": "keyword.control.$1.makefile"
|
157
|
+
}
|
158
|
+
},
|
159
|
+
"end": "^",
|
160
|
+
"patterns": [
|
161
|
+
{
|
162
|
+
"include": "#comment"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"include": "#variable-assignment"
|
166
|
+
}
|
167
|
+
]
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"begin": "^[ ]*(unexport|undefine)\\b",
|
171
|
+
"beginCaptures": {
|
172
|
+
"1": {
|
173
|
+
"name": "keyword.control.$1.makefile"
|
174
|
+
}
|
175
|
+
},
|
176
|
+
"end": "^",
|
177
|
+
"patterns": [
|
178
|
+
{
|
179
|
+
"include": "#comment"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"match": "[^\\s]+",
|
183
|
+
"name": "variable.other.makefile"
|
184
|
+
}
|
185
|
+
]
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"begin": "^(ifdef|ifndef)\\s*([^\\s]+)(?=\\s)",
|
189
|
+
"captures": {
|
190
|
+
"1": {
|
191
|
+
"name": "keyword.control.$1.makefile"
|
192
|
+
},
|
193
|
+
"2": {
|
194
|
+
"name": "variable.other.makefile"
|
195
|
+
},
|
196
|
+
"3": {
|
197
|
+
"name": "punctuation.separator.key-value.makefile"
|
198
|
+
}
|
199
|
+
},
|
200
|
+
"end": "^(endif)\\b",
|
201
|
+
"name": "meta.scope.conditional.makefile",
|
202
|
+
"patterns": [
|
203
|
+
{
|
204
|
+
"begin": "\\G(?!\\n)",
|
205
|
+
"end": "^",
|
206
|
+
"patterns": [
|
207
|
+
{
|
208
|
+
"include": "#comment"
|
209
|
+
}
|
210
|
+
]
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"include": "$self"
|
214
|
+
}
|
215
|
+
]
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"begin": "^(ifeq|ifneq)(?=\\s)",
|
219
|
+
"captures": {
|
220
|
+
"1": {
|
221
|
+
"name": "keyword.control.$1.makefile"
|
222
|
+
}
|
223
|
+
},
|
224
|
+
"end": "^(endif)\\b",
|
225
|
+
"name": "meta.scope.conditional.makefile",
|
226
|
+
"patterns": [
|
227
|
+
{
|
228
|
+
"begin": "\\G",
|
229
|
+
"end": "^",
|
230
|
+
"name": "meta.scope.condition.makefile",
|
231
|
+
"patterns": [
|
232
|
+
{
|
233
|
+
"include": "#variables"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"include": "#comment"
|
237
|
+
}
|
238
|
+
]
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"begin": "^else(?=\\s)",
|
242
|
+
"beginCaptures": {
|
243
|
+
"0": {
|
244
|
+
"name": "keyword.control.else.makefile"
|
245
|
+
}
|
246
|
+
},
|
247
|
+
"end": "^"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"include": "$self"
|
251
|
+
}
|
252
|
+
]
|
253
|
+
}
|
254
|
+
]
|
255
|
+
},
|
256
|
+
"interpolation": {
|
257
|
+
"begin": "(?=`)",
|
258
|
+
"end": "(?!\\G)",
|
259
|
+
"name": "meta.embedded.line.shell",
|
260
|
+
"patterns": [
|
261
|
+
{
|
262
|
+
"begin": "`",
|
263
|
+
"beginCaptures": {
|
264
|
+
"0": {
|
265
|
+
"name": "punctuation.definition.string.makefile"
|
266
|
+
}
|
267
|
+
},
|
268
|
+
"contentName": "source.shell",
|
269
|
+
"end": "(`)",
|
270
|
+
"endCaptures": {
|
271
|
+
"0": {
|
272
|
+
"name": "punctuation.definition.string.makefile"
|
273
|
+
},
|
274
|
+
"1": {
|
275
|
+
"name": "source.shell"
|
276
|
+
}
|
277
|
+
},
|
278
|
+
"name": "string.interpolated.backtick.makefile",
|
279
|
+
"patterns": [
|
280
|
+
{
|
281
|
+
"include": "source.shell"
|
282
|
+
}
|
283
|
+
]
|
284
|
+
}
|
285
|
+
]
|
286
|
+
},
|
287
|
+
"recipe": {
|
288
|
+
"begin": "^(?!\\t)([^:]*)(:)(?!\\=)",
|
289
|
+
"beginCaptures": {
|
290
|
+
"1": {
|
291
|
+
"patterns": [
|
292
|
+
{
|
293
|
+
"captures": {
|
294
|
+
"1": {
|
295
|
+
"name": "support.function.target.$1.makefile"
|
296
|
+
}
|
297
|
+
},
|
298
|
+
"match": "^\\s*(\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\s*$"
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"begin": "(?=\\S)",
|
302
|
+
"end": "(?=\\s|$)",
|
303
|
+
"name": "entity.name.function.target.makefile",
|
304
|
+
"patterns": [
|
305
|
+
{
|
306
|
+
"include": "#variables"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"match": "%",
|
310
|
+
"name": "constant.other.placeholder.makefile"
|
311
|
+
}
|
312
|
+
]
|
313
|
+
}
|
314
|
+
]
|
315
|
+
},
|
316
|
+
"2": {
|
317
|
+
"name": "punctuation.separator.key-value.makefile"
|
318
|
+
}
|
319
|
+
},
|
320
|
+
"end": "^(?!\\t)",
|
321
|
+
"name": "meta.scope.target.makefile",
|
322
|
+
"patterns": [
|
323
|
+
{
|
324
|
+
"begin": "\\G",
|
325
|
+
"end": "^",
|
326
|
+
"name": "meta.scope.prerequisites.makefile",
|
327
|
+
"patterns": [
|
328
|
+
{
|
329
|
+
"match": "\\\\\\n",
|
330
|
+
"name": "constant.character.escape.continuation.makefile"
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"match": "%|\\*",
|
334
|
+
"name": "constant.other.placeholder.makefile"
|
335
|
+
},
|
336
|
+
{
|
337
|
+
"include": "#comment"
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"include": "#variables"
|
341
|
+
}
|
342
|
+
]
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"begin": "^\\t",
|
346
|
+
"name": "meta.scope.recipe.makefile",
|
347
|
+
"patterns": [
|
348
|
+
{
|
349
|
+
"captures": {
|
350
|
+
"0": {
|
351
|
+
"patterns": [
|
352
|
+
{
|
353
|
+
"match": "\\\\\\n",
|
354
|
+
"name": "constant.character.escape.continuation.makefile"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"include": "#variables"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"include": "source.shell"
|
361
|
+
}
|
362
|
+
]
|
363
|
+
}
|
364
|
+
},
|
365
|
+
"match": ".+\\n?"
|
366
|
+
}
|
367
|
+
],
|
368
|
+
"while": "^\\t"
|
369
|
+
}
|
370
|
+
]
|
371
|
+
},
|
372
|
+
"variable-assignment": {
|
373
|
+
"begin": "(^[ ]*|\\G\\s*)([^\\s]+)\\s*(=|\\?=|:=|\\+=)",
|
374
|
+
"beginCaptures": {
|
375
|
+
"2": {
|
376
|
+
"name": "variable.other.makefile"
|
377
|
+
},
|
378
|
+
"3": {
|
379
|
+
"name": "punctuation.separator.key-value.makefile"
|
380
|
+
}
|
381
|
+
},
|
382
|
+
"end": "\\n",
|
383
|
+
"patterns": [
|
384
|
+
{
|
385
|
+
"match": "\\\\\\n",
|
386
|
+
"name": "constant.character.escape.continuation.makefile"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"include": "#comment"
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"include": "#variables"
|
393
|
+
},
|
394
|
+
{
|
395
|
+
"include": "#interpolation"
|
396
|
+
}
|
397
|
+
]
|
398
|
+
},
|
399
|
+
"variables": {
|
400
|
+
"patterns": [
|
401
|
+
{
|
402
|
+
"captures": {
|
403
|
+
"1": {
|
404
|
+
"name": "punctuation.definition.variable.makefile"
|
405
|
+
}
|
406
|
+
},
|
407
|
+
"match": "(\\$?\\$)[@%<?^+*]",
|
408
|
+
"name": "variable.language.makefile"
|
409
|
+
},
|
410
|
+
{
|
411
|
+
"begin": "\\$?\\$\\(",
|
412
|
+
"captures": {
|
413
|
+
"0": {
|
414
|
+
"name": "punctuation.definition.variable.makefile"
|
415
|
+
}
|
416
|
+
},
|
417
|
+
"end": "\\)",
|
418
|
+
"name": "string.interpolated.makefile",
|
419
|
+
"patterns": [
|
420
|
+
{
|
421
|
+
"include": "#variables"
|
422
|
+
},
|
423
|
+
{
|
424
|
+
"match": "\\G(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*\\))",
|
425
|
+
"name": "variable.language.makefile"
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"begin": "\\G(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value)\\s",
|
429
|
+
"beginCaptures": {
|
430
|
+
"1": {
|
431
|
+
"name": "support.function.$1.makefile"
|
432
|
+
}
|
433
|
+
},
|
434
|
+
"end": "(?=\\))",
|
435
|
+
"name": "meta.scope.function-call.makefile",
|
436
|
+
"patterns": [
|
437
|
+
{
|
438
|
+
"include": "#variables"
|
439
|
+
},
|
440
|
+
{
|
441
|
+
"match": "%|\\*",
|
442
|
+
"name": "constant.other.placeholder.makefile"
|
443
|
+
}
|
444
|
+
]
|
445
|
+
},
|
446
|
+
{
|
447
|
+
"begin": "\\G(origin|flavor)\\s(?=[^\\s)]+\\s*\\))",
|
448
|
+
"contentName": "variable.other.makefile",
|
449
|
+
"end": "\\)",
|
450
|
+
"name": "meta.scope.function-call.makefile",
|
451
|
+
"patterns": [
|
452
|
+
{
|
453
|
+
"include": "#variables"
|
454
|
+
}
|
455
|
+
]
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"begin": "\\G(?!\\))",
|
459
|
+
"end": "(?=\\))",
|
460
|
+
"name": "variable.other.makefile",
|
461
|
+
"patterns": [
|
462
|
+
{
|
463
|
+
"include": "#variables"
|
464
|
+
}
|
465
|
+
]
|
466
|
+
}
|
467
|
+
]
|
468
|
+
}
|
469
|
+
]
|
470
|
+
}
|
471
|
+
},
|
472
|
+
"scopeName": "source.makefile",
|
473
|
+
"uuid": "FF1825E8-6B1C-11D9-B883-000D93589AF6"
|
474
|
+
}
|