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,71 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"ll",
|
4
|
+
"s"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
7
|
+
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
|
8
|
+
"keyEquivalent": "^~L",
|
9
|
+
"name": "LLVM",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"comment": "llvm instructions",
|
13
|
+
"match": "\\b(add|alloca|and|ashr|atomic|atomicrmw|bitcast|br|call|cmpxchg|eq|exact|extractelement|extractvalue|fadd|fcmp|fdiv|fence|fmul|fpext|fptosi|fptoui|fptrunc|frem|fsub|getelementptr|icmp|inbounds|indirectbr|insertelement|insertvalue|inttoptr|invoke|landingpad|load|lshr|mul|ne|nsw|nuw|oeq|oge|ogt|ole|olt|one|or|ord|phi|ptrtoint|resume|ret|sdiv|select|sext|sge|sgt|shl|shufflevector|sitofp|sle|slt|srem|store|sub|switch|to|trunc|udiv|ueq|uge|uge|ugt|ugt|uitofp|ule|ule|ult|ult|une|uno|unreachable|unwind|urem|va_arg|xor|zext)\\b(?!\\s*:)",
|
14
|
+
"name": "keyword.instruction.llvm"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"comment": "llvm keywords",
|
18
|
+
"match": "\\b(acq_rel|acquire|addrspace|alias|align|alignstack|alwaysinline|appending|attributes|asm|blockaddress|byval|c|cc|ccc|coldcc|common|constant|datalayout|declare|default|define|deplibs|dllexport|dllimport|except|extern_weak|external|false|fastcc|gc|global|hidden|inlinehint|inreg|internal|linkonce|linkonce_odr|metadata|module|monotonic|naked|nest|noalias|nocapture|noimplicitfloat|noinline|noredzone|noreturn|nounwind|null|opaque|optsize|personality|private|protected|ptx_device|ptx_kernel|readnone|readonly|release|section|seq_cst|sideeffect|signext|sret|ssp|sspreq|tail|target|thread_local|triple|true|type|undef|unnamed_addr|unordered|uwtable|volatile|weak|weak_odr|x86_fastcallcc|x86_stdcallcc|zeroext|zeroinitializer)\\b(?!\\s*:)",
|
19
|
+
"name": "storage.modifier.llvm"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"match": "([%@][-a-zA-Z$._][-a-zA-Z$._0-9]*(\\s*\\*)+)",
|
23
|
+
"name": "storage.type.llvm"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"match": "\\b(void|i\\d+\\**|half|float|double|fp128|x86_fp80|ppc_fp128|x86mmx|label|metadata)",
|
27
|
+
"name": "storage.type.language.llvm"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"match": "([%@][-a-zA-Z$._][-a-zA-Z$._0-9]*)",
|
31
|
+
"name": "variable.language.llvm"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"match": "([%]\\d+)",
|
35
|
+
"name": "variable.language.llvm"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"match": "(!\\d+)",
|
39
|
+
"name": "variable.metadata.llvm"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"match": "(![-a-zA-Z$._][-a-zA-Z$._0-9]*)",
|
43
|
+
"name": "variable.metadata.llvm"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"match": ";.*$",
|
47
|
+
"name": "comment.llvm"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"match": "\\b\\d+\\.\\d+\\b",
|
51
|
+
"name": "constant.numeric.float.llvm"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"match": "\\b(\\d+|0(x|X)[a-fA-F0-9]+)\\b",
|
55
|
+
"name": "constant.numeric.integer.llvm"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"begin": "\"",
|
59
|
+
"end": "\"",
|
60
|
+
"name": "string.quoted.double.llvm",
|
61
|
+
"patterns": [
|
62
|
+
{
|
63
|
+
"match": "\\\\..",
|
64
|
+
"name": "constant.character.escape.lvvm"
|
65
|
+
}
|
66
|
+
]
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"scopeName": "source.llvm",
|
70
|
+
"uuid": "BA22CCD7-4BFB-434E-9D80-79FB1758A944"
|
71
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"xm",
|
4
|
+
"x",
|
5
|
+
"xi",
|
6
|
+
"xmi"
|
7
|
+
],
|
8
|
+
"name": "Logos",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"match": "%(init|hook|subclass|group|class|new|ctor|end|config|orig|log)",
|
12
|
+
"name": "keyword.source.logos"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"captures": {
|
16
|
+
"1": {
|
17
|
+
"name": "keyword.source.logos"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"match": "%c\\(([A-Za-z$_]+)\\)"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"include": "source.objc"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"include": "source.c++"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"scopeName": "source.logos",
|
30
|
+
"uuid": "168b905c-d157-40e3-ae1d-3a79f5326ace"
|
31
|
+
}
|
@@ -0,0 +1,315 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"lgt"
|
4
|
+
],
|
5
|
+
"keyEquivalent": "^~L",
|
6
|
+
"name": "Logtalk",
|
7
|
+
"patterns": [
|
8
|
+
{
|
9
|
+
"begin": "/\\*",
|
10
|
+
"captures": {
|
11
|
+
"0": {
|
12
|
+
"name": "punctuation.definition.comment.logtalk"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"end": "\\*/",
|
16
|
+
"name": "comment.block.logtalk"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"begin": "(^[ \\t]+)?(?=%)",
|
20
|
+
"beginCaptures": {
|
21
|
+
"1": {
|
22
|
+
"name": "punctuation.whitespace.comment.leading.ruby"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"end": "(?!\\G)",
|
26
|
+
"patterns": [
|
27
|
+
{
|
28
|
+
"begin": "%",
|
29
|
+
"beginCaptures": {
|
30
|
+
"0": {
|
31
|
+
"name": "punctuation.definition.comment.logtalk"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"end": "\\n",
|
35
|
+
"name": "comment.line.percentage.logtalk"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"captures": {
|
41
|
+
"1": {
|
42
|
+
"name": "punctuation.definition.comment.logtalk"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"match": "(%).*$\\n?",
|
46
|
+
"name": "comment.line.percentage.logtalk"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"captures": {
|
50
|
+
"1": {
|
51
|
+
"name": "storage.type.opening.logtalk"
|
52
|
+
},
|
53
|
+
"2": {
|
54
|
+
"name": "punctuation.definition.storage.type.logtalk"
|
55
|
+
},
|
56
|
+
"4": {
|
57
|
+
"name": "entity.name.type.logtalk"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"match": "((:-)\\s(object|protocol|category|module))(?:\\()([^(,)]+)"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"captures": {
|
64
|
+
"1": {
|
65
|
+
"name": "punctuation.definition.storage.type.logtalk"
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"match": "(:-)\\s(end_(object|protocol|category))(?=[.])",
|
69
|
+
"name": "storage.type.closing.logtalk"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"match": "\\b(complements|extends|i(nstantiates|mp(orts|lements))|specializes)(?=[(])",
|
73
|
+
"name": "storage.type.relations.logtalk"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"captures": {
|
77
|
+
"1": {
|
78
|
+
"name": "punctuation.definition.storage.modifier.logtalk"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
"match": "(:-)\\s(e(lse|ndif)|dynamic|synchronized|threaded)(?=[.])",
|
82
|
+
"name": "storage.modifier.others.logtalk"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"captures": {
|
86
|
+
"1": {
|
87
|
+
"name": "punctuation.definition.storage.modifier.logtalk"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"match": "(:-)\\s(c(alls|oinductive)|e(lif|n(coding|sure_loaded)|xport)|i(f|n(clude|itialization|fo))|reexport|set_(logtalk|prolog)_flag|uses)(?=[(])",
|
91
|
+
"name": "storage.modifier.others.logtalk"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"captures": {
|
95
|
+
"1": {
|
96
|
+
"name": "punctuation.definition.storage.modifier.logtalk"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"match": "(:-)\\s(alias|info|d(ynamic|iscontiguous)|m(eta_(non_terminal|predicate)|ode|ultifile)|p(ublic|r(otected|ivate))|op|use(s|_module)|synchronized)(?=[(])",
|
100
|
+
"name": "storage.modifier.others.logtalk"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"match": "(:|::|\\^\\^)",
|
104
|
+
"name": "keyword.operator.message-sending.logtalk"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"match": "([{}])",
|
108
|
+
"name": "keyword.operator.external-call.logtalk"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"match": "(\\?|@)",
|
112
|
+
"name": "keyword.operator.mode.logtalk"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"match": "(@=<|@<|@>|@>=|==|\\\\==)",
|
116
|
+
"name": "keyword.operator.comparison.term.logtalk"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"match": "(=<|<|>|>=|=:=|=\\\\=)",
|
120
|
+
"name": "keyword.operator.comparison.arithmetic.logtalk"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"match": "(<<|>>|/\\\\|\\\\/|\\\\)",
|
124
|
+
"name": "keyword.operator.bitwise.logtalk"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"match": "\\b(e|pi|mod|rem)\\b(?![-!(^~])",
|
128
|
+
"name": "keyword.operator.evaluable.logtalk"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"match": "(\\*\\*|\\+|-|\\*|/|//)",
|
132
|
+
"name": "keyword.operator.evaluable.logtalk"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"match": "(:-|!|\\\\+|,|;|-->|->|=|\\=|\\.|=\\.\\.|\\^|\\bis\\b)",
|
136
|
+
"name": "keyword.operator.misc.logtalk"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"match": "\\b(a(bs|cos|sin|tan)|c(eiling|os)|exp|flo(at(_(integer|fractional)_part)?|or)|log|m(ax|in|od)|r(em|ound)|s(i(n|gn)|qrt)|truncate)(?=[(])",
|
140
|
+
"name": "support.function.evaluable.logtalk"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"match": "\\b(true|fail|repeat)\\b(?![-!(^~])",
|
144
|
+
"name": "support.function.control.logtalk"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"match": "\\b(ca(ll|tch)|ignore|throw|once)(?=[(])",
|
148
|
+
"name": "support.function.control.logtalk"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"match": "\\b((get|p(eek|ut))_(c(har|ode)|byte)|nl)(?=[(])",
|
152
|
+
"name": "support.function.chars-and-bytes-io.logtalk"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"match": "\\bnl\\b",
|
156
|
+
"name": "support.function.chars-and-bytes-io.logtalk"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"match": "\\b(atom_(length|c(hars|o(ncat|des)))|sub_atom|char_code|number_c(har|ode)s)(?=[(])",
|
160
|
+
"name": "support.function.atom-term-processing.logtalk"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"match": "\\b(var|atom(ic)?|integer|float|c(allable|ompound)|n(onvar|umber)|ground|acyclic_term)(?=[(])",
|
164
|
+
"name": "support.function.term-testing.logtalk"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"match": "\\b(compare)(?=[(])",
|
168
|
+
"name": "support.function.term-comparison.logtalk"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"match": "\\b(read(_term)?|write(q|_(canonical|term))?|(current_)?(char_conversion|op))(?=[(])",
|
172
|
+
"name": "support.function.term-io.logtalk"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"match": "\\b(arg|copy_term|functor|numbervars|term_variables)(?=[(])",
|
176
|
+
"name": "support.function.term-creation-and-decomposition.logtalk"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"match": "\\b(subsumes_term|unify_with_occurs_check)(?=[(])",
|
180
|
+
"name": "support.function.term-unification.logtalk"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"match": "\\b((se|curren)t_(in|out)put|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)(?=[(])",
|
184
|
+
"name": "support.function.stream-selection-and-control.logtalk"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"match": "\\b(flush_output|at_end_of_stream)\\b",
|
188
|
+
"name": "support.function.stream-selection-and-control.logtalk"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"match": "\\b((se|curren)t_prolog_flag)(?=[(])",
|
192
|
+
"name": "support.function.prolog-flags.logtalk"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"match": "\\b(logtalk_(compile|l(ibrary_path|oad|oad_context)))(?=[(])",
|
196
|
+
"name": "support.function.compiling-and-loading.logtalk"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"match": "\\b((abolish|define)_events|current_event)(?=[(])",
|
200
|
+
"name": "support.function.event-handling.logtalk"
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"match": "\\b((curren|se)t_logtalk_flag|halt)(?=[(])",
|
204
|
+
"name": "support.function.implementation-defined-hooks.logtalk"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"match": "\\b(halt)\\b",
|
208
|
+
"name": "support.function.implementation-defined-hooks.logtalk"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"match": "\\b((key)?(sort))(?=[(])",
|
212
|
+
"name": "support.function.sorting.logtalk"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"match": "\\b((c(reate|urrent)|abolish)_(object|protocol|category))(?=[(])",
|
216
|
+
"name": "support.function.entity-creation-and-abolishing.logtalk"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"match": "\\b((object|protocol|category)_property|co(mplements_object|nforms_to_protocol)|extends_(object|protocol|category)|imp(orts_category|lements_protocol)|(instantiat|specializ)es_class)(?=[(])",
|
220
|
+
"name": "support.function.reflection.logtalk"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"match": "\\b((for|retract)all)(?=[(])",
|
224
|
+
"name": "support.function.logtalk"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"match": "\\b(parameter|se(lf|nder)|this)(?=[(])",
|
228
|
+
"name": "support.function.execution-context.logtalk"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"match": "\\b(a(bolish|ssert(a|z))|clause|retract(all)?)(?=[(])",
|
232
|
+
"name": "support.function.database.logtalk"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"match": "\\b((bag|set)of|f(ind|or)all)(?=[(])",
|
236
|
+
"name": "support.function.all-solutions.logtalk"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"match": "\\b(threaded(_(call|once|ignore|exit|peek|wait|notify))?)(?=[(])",
|
240
|
+
"name": "support.function.multi-threading.logtalk"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"match": "\\b(current_predicate|predicate_property)(?=[(])",
|
244
|
+
"name": "support.function.reflection.logtalk"
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"match": "\\b(before|after)(?=[(])",
|
248
|
+
"name": "support.function.event-handler.logtalk"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"match": "\\b(expand_(goal|term)|(goal|term)_expansion|phrase)(?=[(])",
|
252
|
+
"name": "support.function.grammar-rule.logtalk"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"begin": "'",
|
256
|
+
"beginCaptures": {
|
257
|
+
"0": {
|
258
|
+
"name": "punctuation.definition.string.begin.logtalk"
|
259
|
+
}
|
260
|
+
},
|
261
|
+
"end": "'",
|
262
|
+
"endCaptures": {
|
263
|
+
"0": {
|
264
|
+
"name": "punctuation.definition.string.end.logtalk"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
"name": "string.quoted.single.logtalk",
|
268
|
+
"patterns": [
|
269
|
+
{
|
270
|
+
"match": "\\\\([\\\\abfnrtv\"']|(x[a-fA-F0-9]+|[0-7]+)\\\\)",
|
271
|
+
"name": "constant.character.escape.logtalk"
|
272
|
+
}
|
273
|
+
]
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"begin": "\"",
|
277
|
+
"beginCaptures": {
|
278
|
+
"0": {
|
279
|
+
"name": "punctuation.definition.string.begin.logtalk"
|
280
|
+
}
|
281
|
+
},
|
282
|
+
"end": "\"",
|
283
|
+
"endCaptures": {
|
284
|
+
"0": {
|
285
|
+
"name": "punctuation.definition.string.end.logtalk"
|
286
|
+
}
|
287
|
+
},
|
288
|
+
"name": "string.quoted.double.logtalk",
|
289
|
+
"patterns": [
|
290
|
+
{
|
291
|
+
"match": "\\\\.",
|
292
|
+
"name": "constant.character.escape.logtalk"
|
293
|
+
}
|
294
|
+
]
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"match": "\\b(0b[0-1]+|0o[0-7]+|0x\\h+)\\b",
|
298
|
+
"name": "constant.numeric.logtalk"
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"match": "\\b(0'.|0''|0'\")",
|
302
|
+
"name": "constant.numeric.logtalk"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"match": "\\b(\\d+\\.?\\d*((e|E)(\\+|-)?\\d+)?)\\b",
|
306
|
+
"name": "constant.numeric.logtalk"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"match": "\\b([A-Z_][A-Za-z0-9_]*)\\b",
|
310
|
+
"name": "variable.other.logtalk"
|
311
|
+
}
|
312
|
+
],
|
313
|
+
"scopeName": "source.logtalk",
|
314
|
+
"uuid": "C11FA1F2-6EDB-11D9-8798-000A95DAA580"
|
315
|
+
}
|
@@ -0,0 +1,214 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"ls"
|
4
|
+
],
|
5
|
+
"foldingStartMarker": "\\{\\s*$",
|
6
|
+
"foldingStopMarker": "^\\s*\\}",
|
7
|
+
"name": "LoomScript",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"include": "#comments"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"include": "#keywords"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"include": "#strings"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"begin": "import",
|
20
|
+
"beginCaptures": {
|
21
|
+
"0": {
|
22
|
+
"name": "keyword.other.import.loomscript"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"end": ";",
|
26
|
+
"endCaptures": {
|
27
|
+
"0": {
|
28
|
+
"name": "punctuation.terminator.loomscript"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"name": "meta.declaration.loomscript"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"begin": "(package)\\s+",
|
35
|
+
"beginCaptures": {
|
36
|
+
"1": {
|
37
|
+
"name": "storage.modifier.loomscript"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"end": "([\\w\\.]+)?",
|
41
|
+
"endCaptures": {
|
42
|
+
"1": {
|
43
|
+
"name": "entity.name.type.package.loomscript"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"name": "meta.package.loomscript"
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"repository": {
|
50
|
+
"comments": {
|
51
|
+
"patterns": [
|
52
|
+
{
|
53
|
+
"captures": {
|
54
|
+
"1": {
|
55
|
+
"name": "punctuation.definition.comment.loomscript"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"match": "(//).*$\\n?",
|
59
|
+
"name": "comment.line.double-slash.loomscript"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"begin": "/\\*",
|
63
|
+
"captures": {
|
64
|
+
"0": {
|
65
|
+
"name": "punctuation.definition.comment.loomscript"
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"end": "\\*/",
|
69
|
+
"name": "comment.block.loomscript"
|
70
|
+
}
|
71
|
+
]
|
72
|
+
},
|
73
|
+
"keywords": {
|
74
|
+
"patterns": [
|
75
|
+
{
|
76
|
+
"match": "\\b(true|false|null)\\b",
|
77
|
+
"name": "constant.language.loomscript"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b",
|
81
|
+
"name": "constant.numeric.loomscript"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"match": "\\bas\\b",
|
85
|
+
"name": "keyword.cast.loomscript"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"match": "\\b(if|else|while|do|for|each|in|case|switch|do|default|with|return)\\b",
|
89
|
+
"name": "keyword.control.loomscript"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"match": "\\b(exit|return|break|continue)\\b",
|
93
|
+
"name": "keyword.control.end.loomscript"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"match": "\\b(new)\\b",
|
97
|
+
"name": "keyword.control.new.loomscript"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"match": "\\?|:",
|
101
|
+
"name": "keyword.control.ternary.loomscript"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"match": "\\b(\\.\\.\\.|class|const|extends|function|get|implements|interface|package|set|namespace|var)\\b",
|
105
|
+
"name": "keyword.declaration.loomscript"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"match": "\\b(delete|is|typeof)\\b",
|
109
|
+
"name": "keyword.operator.loomscript"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"match": "(\\-|\\+|\\*|\\/|\\~\\/|%)",
|
113
|
+
"name": "keyword.operator.arithmetic.loomscript"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"match": "(=)",
|
117
|
+
"name": "keyword.operator.assignment.loomscript"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"match": "(([+*/%-]|\\~)=)",
|
121
|
+
"name": "keyword.operator.assignment.arithmetic.loomscript"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"match": "(<<|>>>?|~|\\^|\\||&)",
|
125
|
+
"name": "keyword.operator.bitwise.loomscript"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"match": "(===?|!==?|<=?|>=?)",
|
129
|
+
"name": "keyword.operator.comparison.loomscript"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"match": "(\\-\\-|\\+\\+)",
|
133
|
+
"name": "keyword.operator.increment-decrement.loomscript"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"match": "(!|&&|\\|\\|)",
|
137
|
+
"name": "keyword.operator.logical.loomscript"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"match": "((&|\\^|\\||<<|>>>?)=)",
|
141
|
+
"name": "keyword.operator.assignment.bitwise.loomscript"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"match": "\\b(\\*|Null)\\b",
|
145
|
+
"name": "keyword.special-type.loomscript"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"match": ";",
|
149
|
+
"name": "punctuation.terminator.loomscript"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"match": "\\b(dynamic|final|internal|native|override|private|protected|public|static)\\b",
|
153
|
+
"name": "storage.modifier.loomscript"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"match": "\\b(?:void|bool|int)\\b",
|
157
|
+
"name": "storage.type.primitive.loomscript"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"match": "\\b(this|super)\\b",
|
161
|
+
"name": "variable.language.loomscript"
|
162
|
+
}
|
163
|
+
]
|
164
|
+
},
|
165
|
+
"strings": {
|
166
|
+
"patterns": [
|
167
|
+
{
|
168
|
+
"begin": "\"",
|
169
|
+
"beginCaptures": {
|
170
|
+
"0": {
|
171
|
+
"name": "punctuation.definition.string.begin.loomscript"
|
172
|
+
}
|
173
|
+
},
|
174
|
+
"end": "\"",
|
175
|
+
"endCaptures": {
|
176
|
+
"0": {
|
177
|
+
"name": "punctuation.definition.string.end.loomscript"
|
178
|
+
}
|
179
|
+
},
|
180
|
+
"name": "string.quoted.double.loomscript",
|
181
|
+
"patterns": [
|
182
|
+
{
|
183
|
+
"match": "\\\\.",
|
184
|
+
"name": "constant.character.escape.loomscript"
|
185
|
+
}
|
186
|
+
]
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"begin": "'",
|
190
|
+
"beginCaptures": {
|
191
|
+
"0": {
|
192
|
+
"name": "punctuation.definition.string.begin.loomscript"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
"end": "'",
|
196
|
+
"endCaptures": {
|
197
|
+
"0": {
|
198
|
+
"name": "punctuation.definition.string.end.loomscript"
|
199
|
+
}
|
200
|
+
},
|
201
|
+
"name": "string.quoted.single.loomscript",
|
202
|
+
"patterns": [
|
203
|
+
{
|
204
|
+
"match": "\\\\.",
|
205
|
+
"name": "constant.character.escape.loomscript"
|
206
|
+
}
|
207
|
+
]
|
208
|
+
}
|
209
|
+
]
|
210
|
+
}
|
211
|
+
},
|
212
|
+
"scopeName": "source.loomscript",
|
213
|
+
"uuid": "ea894348-665e-4eea-a116-fdab8ed097a4"
|
214
|
+
}
|