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,217 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"dylan"
|
4
|
+
],
|
5
|
+
"keyEquivalent": "^~D",
|
6
|
+
"name": "Dylan",
|
7
|
+
"patterns": [
|
8
|
+
{
|
9
|
+
"begin": "(?<=^|\\s|\\()/\\*",
|
10
|
+
"end": "\\*/",
|
11
|
+
"name": "comment.block.dylan",
|
12
|
+
"patterns": [
|
13
|
+
{
|
14
|
+
"include": "#comment-block"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"begin": "(^[ \\t]+)?(?=//)",
|
20
|
+
"beginCaptures": {
|
21
|
+
"1": {
|
22
|
+
"name": "punctuation.whitespace.comment.leading.dylan"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"end": "(?!\\G)",
|
26
|
+
"patterns": [
|
27
|
+
{
|
28
|
+
"begin": "//",
|
29
|
+
"beginCaptures": {
|
30
|
+
"0": {
|
31
|
+
"name": "punctuation.definition.comment.dylan"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"end": "\\n",
|
35
|
+
"name": "comment.line.double-slash.dylan"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"begin": "^(module|synopsis|author|copyright|version|files|executable|library):",
|
41
|
+
"contentName": "meta.preprocessor.dylan",
|
42
|
+
"end": "^\\s*$",
|
43
|
+
"name": "keyword.control.preprocessor.dylan",
|
44
|
+
"patterns": [
|
45
|
+
{
|
46
|
+
"match": "^(module|synopsis|author|copyright|version|files|executable|library):",
|
47
|
+
"name": "keyword.control.preprocessor.dylan"
|
48
|
+
}
|
49
|
+
]
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"captures": {
|
53
|
+
"1": {
|
54
|
+
"name": "keyword.other.dylan"
|
55
|
+
},
|
56
|
+
"2": {
|
57
|
+
"name": "storage.modifier.dylan"
|
58
|
+
},
|
59
|
+
"3": {
|
60
|
+
"name": "storage.modifier.dylan"
|
61
|
+
},
|
62
|
+
"4": {
|
63
|
+
"name": "storage.type.function.dylan"
|
64
|
+
},
|
65
|
+
"5": {
|
66
|
+
"name": "entity.name.function.dylan"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"match": "^(define)\\s+((?:(?:sealed|open|inline[-a-z]*)\\s+)+)?(?:(domain)|(method|function|generic)\\s+)([\\\\_A-Za-z0-9/!?*%$\\-\\<\\>=]*)",
|
70
|
+
"name": "meta.function.dylan"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"captures": {
|
74
|
+
"1": {
|
75
|
+
"name": "keyword.other.dylan"
|
76
|
+
},
|
77
|
+
"2": {
|
78
|
+
"name": "storage.modifier.dylan"
|
79
|
+
},
|
80
|
+
"3": {
|
81
|
+
"name": "storage.type.class.dylan"
|
82
|
+
},
|
83
|
+
"4": {
|
84
|
+
"name": "entity.name.type.dylan"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
"match": "^(define)\\s+((?:(?:sealed|open|abstract|concrete|primary|free)\\s+)+)?(class)\\s+([_A-Za-z0-9/!?*%$\\-\\<\\>]*)",
|
88
|
+
"name": "meta.class.dylan"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"captures": {
|
92
|
+
"1": {
|
93
|
+
"name": "keyword.other.dylan"
|
94
|
+
},
|
95
|
+
"2": {
|
96
|
+
"name": "entity.name.other.dylan"
|
97
|
+
},
|
98
|
+
"3": {
|
99
|
+
"name": "storage.type.namespace.dylan"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"match": "^(define)\\s+((library|module)\\s+[_A-Za-z0-9/!?*%$\\-\\<\\>]+)",
|
103
|
+
"name": "meta.namespace.dylan"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"captures": {
|
107
|
+
"1": {
|
108
|
+
"name": "keyword.other.dylan"
|
109
|
+
},
|
110
|
+
"2": {
|
111
|
+
"name": "storage.type.dylan"
|
112
|
+
},
|
113
|
+
"3": {
|
114
|
+
"name": "entity.name.other.dylan"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
"match": "^(define)\\s+(constant|variable)\\s+([_A-Za-z0-9/!?*%$\\-\\<\\>]+)",
|
118
|
+
"name": "meta.variable.dylan"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"captures": {
|
122
|
+
"1": {
|
123
|
+
"name": "keyword.other.dylan"
|
124
|
+
},
|
125
|
+
"2": {
|
126
|
+
"name": "storage.type.dylan"
|
127
|
+
},
|
128
|
+
"3": {
|
129
|
+
"name": "entity.name.other.dylan"
|
130
|
+
}
|
131
|
+
},
|
132
|
+
"match": "^(define)\\s+(macro)\\s+([_A-Za-z0-9/!?*%$\\-\\<\\>]+)",
|
133
|
+
"name": "meta.macro.dylan"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"captures": {
|
137
|
+
"1": {
|
138
|
+
"name": "keyword.other.dylan"
|
139
|
+
},
|
140
|
+
"2": {
|
141
|
+
"name": "entity.name.other.dylan"
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"match": "^(define)\\s+([_A-Za-z0-9/!?*%$\\-\\<\\>\\s]+)",
|
145
|
+
"name": "meta.definition.dylan"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"match": "(#t|#f|#next|#rest|#key|#all-keys|#include)",
|
149
|
+
"name": "constant.language.dylan"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"match": "\\b((#x[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
|
153
|
+
"name": "constant.numeric.dylan"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"match": "'(\\\\<[0-9a-fA-F]*>|\\\\.|.)'",
|
157
|
+
"name": "constant.character.dylan"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"begin": "\"",
|
161
|
+
"end": "\"",
|
162
|
+
"name": "string.quoted.double.dylan",
|
163
|
+
"patterns": [
|
164
|
+
{
|
165
|
+
"include": "#escape"
|
166
|
+
}
|
167
|
+
]
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"begin": "(#)\"",
|
171
|
+
"beginCaptures": {
|
172
|
+
"1": {
|
173
|
+
"name": "keyword.operator.dylan"
|
174
|
+
}
|
175
|
+
},
|
176
|
+
"end": "\"",
|
177
|
+
"name": "string.quoted.other.dylan",
|
178
|
+
"patterns": [
|
179
|
+
{
|
180
|
+
"include": "#escape"
|
181
|
+
}
|
182
|
+
]
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"match": "(?<=^|[,.()\\s])(above|afterwards|begin|below|block|by|case|cleanup|else|elseif|exception|finally|for|from|keyed-by|if|in|otherwise|select|then|to|unless|until:?|using|when|while:?)(?=$|[;,()\\s])",
|
186
|
+
"name": "keyword.control.dylan"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"match": "(?<=^|[,;\\s])end(?=$|[;,)\\s])",
|
190
|
+
"name": "keyword.control.dylan"
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"match": "(?<=^|[,.(\\s])(class|constant|create|default:|define|each-subclass|exclude:|export|export:|function|generic|import:|inherited|init-function:|init-keyword:|init-value:|instance|keyword|let(\\s+handler)?|library|local|macro|method|module|prefix:|rename:|required|required-init-keyword:|sealed|setter:|slot|type:|use|variable|virtual)(?=$|[;,.()\\s])",
|
194
|
+
"name": "keyword.other.dylan"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"match": "<(abort|array|boolean|byte-string|character|class|collection|complex|condition|deque|double-float|empty-list|error|explicit-key-collection|extended-float|float|function|generic-function|integer|list|method|mutable-collection|mutable-explicit-key-collection|mutable-sequence|number|object-table|object|pair|range|rational|real|restart|sealed-object-error|sequence|serious-condition|simple-error|simple-object-vector|simple-restart|simple-vector|simple-warning|single-float|singleton|stretchy-collection|stretchy-vector|string|symbol|table|type-error|type|unicode-string|vector|warning)>",
|
198
|
+
"name": "support.class.dylan"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"match": "(?<=^|[~,.(\\[\\s])(abort|abs|add|add!|add-method|add-new|add-new!|all-superclasses|always|any\\?|applicable-method\\?|apply|aref|aref-setter|as|as-lowercase|as-lowercase!|as-uppercase|as-uppercase!|ash|backward-iteration-protocol|break|ceiling|ceiling/|cerror|check-type|choose|choose-by|complement|compose|concatenate|concatenate-as|condition-format-arguments|condition-format-string|conjoin|copy-sequence|curry|default-handler|dimension|dimensions|direct-subclasses|direct-superclasses|disjoin|do|do-handlers|element|element-setter|empty\\?|error|even\\?|every\\?|false-or|fill!|find-key|find-method|first|first-setter|floor|floor/|forward-iteration-protocol|function-arguments|function-return-values|function-specializers|gcd|generic-function-mandatory-keywords|generic-function-methods|head|head-setter|identity|initialize|instance\\?|integral\\?|intersection|key-sequence|key-test|last|last-setter|lcm|limited|list|logand|logbit\\?|logior|lognot|logxor|make|map|map-as|map-into|max|member\\?|merge-hash-codes|min|modulo|negative|negative\\?|next-method|object-class|object-hash|odd\\?|one-of|pair|pop|pop-last|positive\\?|push|push-last|range|rank|rcurry|reduce|reduce1|remainder|remove|remove!|remove-duplicates|remove-duplicates!|remove-key!|remove-method|replace-elements!|replace-subsequence!|restart-query|return-allowed\\?|return-description|return-query|reverse|reverse!|round|round/|row-major-index|second|second-setter|shallow-copy|signal|singleton|size|size-setter|slot-initialized\\?|sort|sort!|sorted-applicable-methods|subsequence-position|subtype\\?|table-protocol|tail|tail-setter|third|third-setter|truncate|truncate/|type-error-expected-type|type-error-value|type-for-copy|type-union|union|values|vector|zero\\?)(?=$|[;,.()\\s\\]])",
|
202
|
+
"name": "support.function.dylan"
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"repository": {
|
206
|
+
"comment-block": {
|
207
|
+
"begin": "(?<=^|\\s|\\()/\\*",
|
208
|
+
"end": "\\*/"
|
209
|
+
},
|
210
|
+
"escape": {
|
211
|
+
"match": "\\\\(<[0-9a-fA-F]*>|.)",
|
212
|
+
"name": "constant.character.escape.dylan"
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"scopeName": "source.dylan",
|
216
|
+
"uuid": "475B8369-3520-4B4C-BBA1-1D1229C6F397"
|
217
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"e"
|
4
|
+
],
|
5
|
+
"keyEquivalent": "^~E",
|
6
|
+
"name": "Eiffel",
|
7
|
+
"patterns": [
|
8
|
+
{
|
9
|
+
"begin": "(^[ \\t]+)?(?=--)",
|
10
|
+
"beginCaptures": {
|
11
|
+
"1": {
|
12
|
+
"name": "punctuation.whitespace.comment.leading.eiffel"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"end": "(?!\\G)",
|
16
|
+
"patterns": [
|
17
|
+
{
|
18
|
+
"begin": "--",
|
19
|
+
"beginCaptures": {
|
20
|
+
"0": {
|
21
|
+
"name": "punctuation.definition.comment.eiffel"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"end": "\\n",
|
25
|
+
"name": "comment.line.double-dash.eiffel"
|
26
|
+
}
|
27
|
+
]
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"match": "\\b(Indexing|indexing|deferred|expanded|class|inherit|rename|as|export|undefine|redefine|select|all|create|creation|feature|prefix|infix|separate|frozen|obsolete|local|is|unique|do|once|external|alias|require|ensure|invariant|variant|rescue|retry|like|check|if|else|elseif|then|inspect|when|from|loop|until|debug|not|or|and|xor|implies|old|end)\\b",
|
31
|
+
"name": "keyword.control.eiffel"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"match": "[a-zA-Z_]+",
|
35
|
+
"name": "variable.other.eiffel"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"match": "\\b(True|true|False|false|Void|void|Result|result)\\b",
|
39
|
+
"name": "constant.language.eiffel"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"begin": "feature",
|
43
|
+
"end": "end",
|
44
|
+
"name": "meta.features.eiffel"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"begin": "(do|once)",
|
48
|
+
"end": "(ensure|end)",
|
49
|
+
"name": "meta.effective_routine_body.eiffel"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"begin": "rescue",
|
53
|
+
"end": "end",
|
54
|
+
"name": "meta.rescue.eiffel"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"begin": "\"",
|
58
|
+
"beginCaptures": {
|
59
|
+
"0": {
|
60
|
+
"name": "punctuation.definition.string.begin.eiffel"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"end": "\"",
|
64
|
+
"endCaptures": {
|
65
|
+
"0": {
|
66
|
+
"name": "punctuation.definition.string.end.eiffel"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"name": "string.quoted.double.eiffel",
|
70
|
+
"patterns": [
|
71
|
+
{
|
72
|
+
"match": "\\\\.",
|
73
|
+
"name": "constant.character.escape.eiffel"
|
74
|
+
}
|
75
|
+
]
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"match": "[0-9]+",
|
79
|
+
"name": "constant.numeric.eiffel"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"match": "\\b(deferred|expanded)\\b",
|
83
|
+
"name": "storage.modifier.eiffel"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"begin": "^\\s*\n\t\t\t\t\t((?:\\b(deferred|expanded)\\b\\s*)*) # modifier\n\t\t\t\t\t(class)\\s+\n\t\t\t\t\t(\\w+)\\s* # identifier",
|
87
|
+
"captures": {
|
88
|
+
"1": {
|
89
|
+
"name": "storage.modifier.eiffel"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
"end": "(?=end)",
|
93
|
+
"name": "meta.definition.class.eiffel",
|
94
|
+
"patterns": [
|
95
|
+
{
|
96
|
+
"begin": "\\b(extends)\\b\\s+",
|
97
|
+
"captures": {
|
98
|
+
"1": {
|
99
|
+
"name": "storage.modifier.java"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"end": "(?={|implements)",
|
103
|
+
"name": "meta.definition.class.extends.java",
|
104
|
+
"patterns": [
|
105
|
+
{
|
106
|
+
"include": "#all-types"
|
107
|
+
}
|
108
|
+
]
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"begin": "\\b(implements)\\b\\s+",
|
112
|
+
"captures": {
|
113
|
+
"1": {
|
114
|
+
"name": "storage.modifier.java"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
"end": "(?={|extends)",
|
118
|
+
"name": "meta.definition.class.implements.java",
|
119
|
+
"patterns": [
|
120
|
+
{
|
121
|
+
"include": "#all-types"
|
122
|
+
}
|
123
|
+
]
|
124
|
+
}
|
125
|
+
]
|
126
|
+
}
|
127
|
+
],
|
128
|
+
"repository": {
|
129
|
+
"number": {
|
130
|
+
"match": "[0-9]+"
|
131
|
+
},
|
132
|
+
"variable": {
|
133
|
+
"match": "[a-zA-Z0-9_]+"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"scopeName": "source.eiffel",
|
137
|
+
"uuid": "34672373-DED9-45B8-AF7E-2E4B6C3D6B76"
|
138
|
+
}
|
@@ -0,0 +1,737 @@
|
|
1
|
+
{
|
2
|
+
"comment": "Textmate bundle for Elixir Programming Language.",
|
3
|
+
"fileTypes": [
|
4
|
+
"ex",
|
5
|
+
"exs"
|
6
|
+
],
|
7
|
+
"firstLineMatch": "^#!/.*\\belixir",
|
8
|
+
"foldingStartMarker": "(after|else|catch|rescue|\\-\\>|\\{|\\[|do)\\s*$",
|
9
|
+
"foldingStopMarker": "^\\s*((\\}|\\]|after|else|catch|rescue)\\s*$|end\\b)",
|
10
|
+
"keyEquivalent": "^~E",
|
11
|
+
"name": "Elixir",
|
12
|
+
"patterns": [
|
13
|
+
{
|
14
|
+
"captures": {
|
15
|
+
"1": {
|
16
|
+
"name": "keyword.control.module.elixir"
|
17
|
+
},
|
18
|
+
"2": {
|
19
|
+
"name": "entity.name.type.module.elixir"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"match": "^\\s*(defmodule)\\s+(([A-Z]\\w*\\s*(\\.)\\s*)*[A-Z]\\w*)",
|
23
|
+
"name": "meta.module.elixir"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"begin": "@(module|type)?doc (~[a-z])?\"\"\"",
|
27
|
+
"comment": "@doc with heredocs is treated as documentation",
|
28
|
+
"end": "\\s*\"\"\"",
|
29
|
+
"name": "comment.documentation.heredoc",
|
30
|
+
"patterns": [
|
31
|
+
{
|
32
|
+
"include": "#interpolated_elixir"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"include": "#escaped_char"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"begin": "@(module|type)?doc ~[A-Z]\"\"\"",
|
41
|
+
"comment": "@doc with heredocs is treated as documentation",
|
42
|
+
"end": "\\s*\"\"\"",
|
43
|
+
"name": "comment.documentation.heredoc"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"begin": "@(module|type)?doc (~[a-z])?'''",
|
47
|
+
"comment": "@doc with heredocs is treated as documentation",
|
48
|
+
"end": "\\s*'''",
|
49
|
+
"name": "comment.documentation.heredoc",
|
50
|
+
"patterns": [
|
51
|
+
{
|
52
|
+
"include": "#interpolated_elixir"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"include": "#escaped_char"
|
56
|
+
}
|
57
|
+
]
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"begin": "@(module|type)?doc ~[A-Z]'''",
|
61
|
+
"comment": "@doc with heredocs is treated as documentation",
|
62
|
+
"end": "\\s*'''",
|
63
|
+
"name": "comment.documentation.heredoc"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"comment": "@doc false is treated as documentation",
|
67
|
+
"match": "@(module|type)?doc false",
|
68
|
+
"name": "comment.documentation.false"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"begin": "@(module|type)?doc \"",
|
72
|
+
"comment": "@doc with string is treated as documentation",
|
73
|
+
"end": "\"",
|
74
|
+
"name": "comment.documentation.string",
|
75
|
+
"patterns": [
|
76
|
+
{
|
77
|
+
"include": "#interpolated_elixir"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"include": "#escaped_char"
|
81
|
+
}
|
82
|
+
]
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"match": "(?<!\\.)\\b(do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defmacrop?|defdelegate|defcallback|defmacrocallback|defexception|defoverridable|exit|after|rescue|catch|else|raise|throw|import|require|alias|use|quote|unquote|super)\\b(?![?!])",
|
86
|
+
"name": "keyword.control.elixir"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"comment": " as above, just doesn't need a 'end' and does a logic operation",
|
90
|
+
"match": "(?<!\\.)\\b(and|not|or|when|xor|in|inlist|inbits)\\b",
|
91
|
+
"name": "keyword.operator.elixir"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"match": "\\b(nil|true|false)\\b(?![?!])",
|
95
|
+
"name": "constant.language.elixir"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"match": "\\b(__(CALLER|ENV|MODULE|DIR)__)\\b(?![?!])",
|
99
|
+
"name": "variable.language.elixir"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"captures": {
|
103
|
+
"1": {
|
104
|
+
"name": "punctuation.definition.variable.elixir"
|
105
|
+
}
|
106
|
+
},
|
107
|
+
"match": "(@)[a-zA-Z_]\\w*",
|
108
|
+
"name": "variable.other.readwrite.module.elixir"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"captures": {
|
112
|
+
"1": {
|
113
|
+
"name": "punctuation.definition.variable.elixir"
|
114
|
+
}
|
115
|
+
},
|
116
|
+
"match": "(&)\\d*",
|
117
|
+
"name": "variable.other.anonymous.elixir"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"match": "\\b[A-Z]\\w*\\b",
|
121
|
+
"name": "variable.other.constant.elixir"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"match": "\\b(0x\\h(?>_?\\h)*|\\d(?>_?\\d)*(\\.(?![^[:space:][:digit:]])(?>_?\\d)*)?([eE][-+]?\\d(?>_?\\d)*)?|0b[01]+|0o[0-7]+)\\b",
|
125
|
+
"name": "constant.numeric.elixir"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"begin": ":'",
|
129
|
+
"captures": {
|
130
|
+
"0": {
|
131
|
+
"name": "punctuation.definition.constant.elixir"
|
132
|
+
}
|
133
|
+
},
|
134
|
+
"end": "'",
|
135
|
+
"name": "constant.other.symbol.single-quoted.elixir",
|
136
|
+
"patterns": [
|
137
|
+
{
|
138
|
+
"include": "#interpolated_elixir"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"include": "#escaped_char"
|
142
|
+
}
|
143
|
+
]
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"begin": ":\"",
|
147
|
+
"captures": {
|
148
|
+
"0": {
|
149
|
+
"name": "punctuation.definition.constant.elixir"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"end": "\"",
|
153
|
+
"name": "constant.other.symbol.double-quoted.elixir",
|
154
|
+
"patterns": [
|
155
|
+
{
|
156
|
+
"include": "#interpolated_elixir"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"include": "#escaped_char"
|
160
|
+
}
|
161
|
+
]
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"begin": "(?>''')",
|
165
|
+
"beginCaptures": {
|
166
|
+
"0": {
|
167
|
+
"name": "punctuation.definition.string.begin.elixir"
|
168
|
+
}
|
169
|
+
},
|
170
|
+
"comment": "Single-quoted heredocs",
|
171
|
+
"end": "^\\s*'''",
|
172
|
+
"endCaptures": {
|
173
|
+
"0": {
|
174
|
+
"name": "punctuation.definition.string.end.elixir"
|
175
|
+
}
|
176
|
+
},
|
177
|
+
"name": "support.function.variable.quoted.single.heredoc.elixir",
|
178
|
+
"patterns": [
|
179
|
+
{
|
180
|
+
"include": "#interpolated_elixir"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"include": "#escaped_char"
|
184
|
+
}
|
185
|
+
]
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"begin": "'",
|
189
|
+
"beginCaptures": {
|
190
|
+
"0": {
|
191
|
+
"name": "punctuation.definition.string.begin.elixir"
|
192
|
+
}
|
193
|
+
},
|
194
|
+
"comment": "single quoted string (allows for interpolation)",
|
195
|
+
"end": "'",
|
196
|
+
"endCaptures": {
|
197
|
+
"0": {
|
198
|
+
"name": "punctuation.definition.string.end.elixir"
|
199
|
+
}
|
200
|
+
},
|
201
|
+
"name": "support.function.variable.quoted.single.elixir",
|
202
|
+
"patterns": [
|
203
|
+
{
|
204
|
+
"include": "#interpolated_elixir"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"include": "#escaped_char"
|
208
|
+
}
|
209
|
+
]
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"begin": "(?>\"\"\")",
|
213
|
+
"beginCaptures": {
|
214
|
+
"0": {
|
215
|
+
"name": "punctuation.definition.string.begin.elixir"
|
216
|
+
}
|
217
|
+
},
|
218
|
+
"comment": "Double-quoted heredocs",
|
219
|
+
"end": "^\\s*\"\"\"",
|
220
|
+
"endCaptures": {
|
221
|
+
"0": {
|
222
|
+
"name": "punctuation.definition.string.end.elixir"
|
223
|
+
}
|
224
|
+
},
|
225
|
+
"name": "string.quoted.double.heredoc.elixir",
|
226
|
+
"patterns": [
|
227
|
+
{
|
228
|
+
"include": "#interpolated_elixir"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"include": "#escaped_char"
|
232
|
+
}
|
233
|
+
]
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"begin": "\"",
|
237
|
+
"beginCaptures": {
|
238
|
+
"0": {
|
239
|
+
"name": "punctuation.definition.string.begin.elixir"
|
240
|
+
}
|
241
|
+
},
|
242
|
+
"comment": "double quoted string (allows for interpolation)",
|
243
|
+
"end": "\"",
|
244
|
+
"endCaptures": {
|
245
|
+
"0": {
|
246
|
+
"name": "punctuation.definition.string.end.elixir"
|
247
|
+
}
|
248
|
+
},
|
249
|
+
"name": "string.quoted.double.elixir",
|
250
|
+
"patterns": [
|
251
|
+
{
|
252
|
+
"include": "#interpolated_elixir"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"include": "#escaped_char"
|
256
|
+
}
|
257
|
+
]
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"begin": "~[a-z](?>\"\"\")",
|
261
|
+
"beginCaptures": {
|
262
|
+
"0": {
|
263
|
+
"name": "punctuation.definition.string.begin.elixir"
|
264
|
+
}
|
265
|
+
},
|
266
|
+
"comment": "Double-quoted heredocs sigils",
|
267
|
+
"end": "^\\s*\"\"\"",
|
268
|
+
"endCaptures": {
|
269
|
+
"0": {
|
270
|
+
"name": "punctuation.definition.string.end.elixir"
|
271
|
+
}
|
272
|
+
},
|
273
|
+
"name": "string.quoted.double.heredoc.elixir",
|
274
|
+
"patterns": [
|
275
|
+
{
|
276
|
+
"include": "#interpolated_elixir"
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"include": "#escaped_char"
|
280
|
+
}
|
281
|
+
]
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"begin": "~[a-z]\\{",
|
285
|
+
"beginCaptures": {
|
286
|
+
"0": {
|
287
|
+
"name": "punctuation.definition.string.begin.elixir"
|
288
|
+
}
|
289
|
+
},
|
290
|
+
"comment": "sigil (allow for interpolation)",
|
291
|
+
"end": "\\}[a-z]*",
|
292
|
+
"endCaptures": {
|
293
|
+
"0": {
|
294
|
+
"name": "punctuation.definition.string.end.elixir"
|
295
|
+
}
|
296
|
+
},
|
297
|
+
"name": "string.interpolated.elixir",
|
298
|
+
"patterns": [
|
299
|
+
{
|
300
|
+
"include": "#interpolated_elixir"
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"include": "#escaped_char"
|
304
|
+
}
|
305
|
+
]
|
306
|
+
},
|
307
|
+
{
|
308
|
+
"begin": "~[a-z]\\[",
|
309
|
+
"beginCaptures": {
|
310
|
+
"0": {
|
311
|
+
"name": "punctuation.definition.string.begin.elixir"
|
312
|
+
}
|
313
|
+
},
|
314
|
+
"comment": "sigil (allow for interpolation)",
|
315
|
+
"end": "\\][a-z]*",
|
316
|
+
"endCaptures": {
|
317
|
+
"0": {
|
318
|
+
"name": "punctuation.definition.string.end.elixir"
|
319
|
+
}
|
320
|
+
},
|
321
|
+
"name": "string.interpolated.elixir",
|
322
|
+
"patterns": [
|
323
|
+
{
|
324
|
+
"include": "#interpolated_elixir"
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"include": "#escaped_char"
|
328
|
+
}
|
329
|
+
]
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"begin": "~[a-z]\\<",
|
333
|
+
"beginCaptures": {
|
334
|
+
"0": {
|
335
|
+
"name": "punctuation.definition.string.begin.elixir"
|
336
|
+
}
|
337
|
+
},
|
338
|
+
"comment": "sigil (allow for interpolation)",
|
339
|
+
"end": "\\>[a-z]*",
|
340
|
+
"endCaptures": {
|
341
|
+
"0": {
|
342
|
+
"name": "punctuation.definition.string.end.elixir"
|
343
|
+
}
|
344
|
+
},
|
345
|
+
"name": "string.interpolated.elixir",
|
346
|
+
"patterns": [
|
347
|
+
{
|
348
|
+
"include": "#interpolated_elixir"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"include": "#escaped_char"
|
352
|
+
}
|
353
|
+
]
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"begin": "~[a-z]\\(",
|
357
|
+
"beginCaptures": {
|
358
|
+
"0": {
|
359
|
+
"name": "punctuation.definition.string.begin.elixir"
|
360
|
+
}
|
361
|
+
},
|
362
|
+
"comment": "sigil (allow for interpolation)",
|
363
|
+
"end": "\\)[a-z]*",
|
364
|
+
"endCaptures": {
|
365
|
+
"0": {
|
366
|
+
"name": "punctuation.definition.string.end.elixir"
|
367
|
+
}
|
368
|
+
},
|
369
|
+
"name": "string.interpolated.elixir",
|
370
|
+
"patterns": [
|
371
|
+
{
|
372
|
+
"include": "#interpolated_elixir"
|
373
|
+
},
|
374
|
+
{
|
375
|
+
"include": "#escaped_char"
|
376
|
+
}
|
377
|
+
]
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"begin": "~[a-z]([^\\w])",
|
381
|
+
"beginCaptures": {
|
382
|
+
"0": {
|
383
|
+
"name": "punctuation.definition.string.begin.elixir"
|
384
|
+
}
|
385
|
+
},
|
386
|
+
"comment": "sigil (allow for interpolation)",
|
387
|
+
"end": "\\1[a-z]*",
|
388
|
+
"endCaptures": {
|
389
|
+
"0": {
|
390
|
+
"name": "punctuation.definition.string.end.elixir"
|
391
|
+
}
|
392
|
+
},
|
393
|
+
"name": "string.interpolated.elixir",
|
394
|
+
"patterns": [
|
395
|
+
{
|
396
|
+
"include": "#interpolated_elixir"
|
397
|
+
},
|
398
|
+
{
|
399
|
+
"include": "#escaped_char"
|
400
|
+
},
|
401
|
+
{
|
402
|
+
"include": "#escaped_char"
|
403
|
+
}
|
404
|
+
]
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"begin": "~[A-Z](?>\"\"\")",
|
408
|
+
"beginCaptures": {
|
409
|
+
"0": {
|
410
|
+
"name": "punctuation.definition.string.begin.elixir"
|
411
|
+
}
|
412
|
+
},
|
413
|
+
"comment": "Double-quoted heredocs sigils",
|
414
|
+
"end": "^\\s*\"\"\"",
|
415
|
+
"endCaptures": {
|
416
|
+
"0": {
|
417
|
+
"name": "punctuation.definition.string.end.elixir"
|
418
|
+
}
|
419
|
+
},
|
420
|
+
"name": "string.quoted.other.literal.upper.elixir"
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"begin": "~[A-Z]\\{",
|
424
|
+
"beginCaptures": {
|
425
|
+
"0": {
|
426
|
+
"name": "punctuation.definition.string.begin.elixir"
|
427
|
+
}
|
428
|
+
},
|
429
|
+
"comment": "sigil (without interpolation)",
|
430
|
+
"end": "\\}[a-z]*",
|
431
|
+
"endCaptures": {
|
432
|
+
"0": {
|
433
|
+
"name": "punctuation.definition.string.end.elixir"
|
434
|
+
}
|
435
|
+
},
|
436
|
+
"name": "string.quoted.other.literal.upper.elixir"
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"begin": "~[A-Z]\\[",
|
440
|
+
"beginCaptures": {
|
441
|
+
"0": {
|
442
|
+
"name": "punctuation.definition.string.begin.elixir"
|
443
|
+
}
|
444
|
+
},
|
445
|
+
"comment": "sigil (without interpolation)",
|
446
|
+
"end": "\\][a-z]*",
|
447
|
+
"endCaptures": {
|
448
|
+
"0": {
|
449
|
+
"name": "punctuation.definition.string.end.elixir"
|
450
|
+
}
|
451
|
+
},
|
452
|
+
"name": "string.quoted.other.literal.upper.elixir"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"begin": "~[A-Z]\\<",
|
456
|
+
"beginCaptures": {
|
457
|
+
"0": {
|
458
|
+
"name": "punctuation.definition.string.begin.elixir"
|
459
|
+
}
|
460
|
+
},
|
461
|
+
"comment": "sigil (without interpolation)",
|
462
|
+
"end": "\\>[a-z]*",
|
463
|
+
"endCaptures": {
|
464
|
+
"0": {
|
465
|
+
"name": "punctuation.definition.string.end.elixir"
|
466
|
+
}
|
467
|
+
},
|
468
|
+
"name": "string.quoted.other.literal.upper.elixir"
|
469
|
+
},
|
470
|
+
{
|
471
|
+
"begin": "~[A-Z]\\(",
|
472
|
+
"beginCaptures": {
|
473
|
+
"0": {
|
474
|
+
"name": "punctuation.definition.string.begin.elixir"
|
475
|
+
}
|
476
|
+
},
|
477
|
+
"comment": "sigil (without interpolation)",
|
478
|
+
"end": "\\)[a-z]*",
|
479
|
+
"endCaptures": {
|
480
|
+
"0": {
|
481
|
+
"name": "punctuation.definition.string.end.elixir"
|
482
|
+
}
|
483
|
+
},
|
484
|
+
"name": "string.quoted.other.literal.upper.elixir"
|
485
|
+
},
|
486
|
+
{
|
487
|
+
"begin": "~[A-Z]([^\\w])",
|
488
|
+
"beginCaptures": {
|
489
|
+
"0": {
|
490
|
+
"name": "punctuation.definition.string.begin.elixir"
|
491
|
+
}
|
492
|
+
},
|
493
|
+
"comment": "sigil (without interpolation)",
|
494
|
+
"end": "\\1[a-z]*",
|
495
|
+
"endCaptures": {
|
496
|
+
"0": {
|
497
|
+
"name": "punctuation.definition.string.end.elixir"
|
498
|
+
}
|
499
|
+
},
|
500
|
+
"name": "string.quoted.other.literal.upper.elixir"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"captures": {
|
504
|
+
"1": {
|
505
|
+
"name": "punctuation.definition.constant.elixir"
|
506
|
+
}
|
507
|
+
},
|
508
|
+
"comment": "symbols",
|
509
|
+
"match": "(?<!:)(:)(?>[a-zA-Z_][\\w@]*(?>[?!]|=(?![>=]))?|\\<\\>|===?|!==?|<<>>|<<<|>>>|~~~|::|<\\-|\\|>|=>|~|~=|=|/|\\\\\\\\|\\*\\*?|\\.\\.?\\.?|>=?|<=?|&&?&?|\\+\\+?|\\-\\-?|\\|\\|?\\|?|\\!|@|\\%?\\{\\}|%|\\[\\]|\\^(\\^\\^)?)",
|
510
|
+
"name": "constant.other.symbol.elixir"
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"captures": {
|
514
|
+
"1": {
|
515
|
+
"name": "punctuation.definition.constant.elixir"
|
516
|
+
}
|
517
|
+
},
|
518
|
+
"comment": "symbols",
|
519
|
+
"match": "(?>[a-zA-Z_][\\w@]*(?>[?!])?)(:)(?!:)",
|
520
|
+
"name": "constant.other.keywords.elixir"
|
521
|
+
},
|
522
|
+
{
|
523
|
+
"captures": {
|
524
|
+
"1": {
|
525
|
+
"name": "punctuation.definition.comment.elixir"
|
526
|
+
}
|
527
|
+
},
|
528
|
+
"match": "(?:^[ \\t]+)?(#).*$\\n?",
|
529
|
+
"name": "comment.line.number-sign.elixir"
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"comment": "\n\t\t\tmatches questionmark-letters.\n\n\t\t\texamples (1st alternation = hex):\n\t\t\t?\\x1 ?\\x61\n\n\t\t\texamples (2rd alternation = escaped):\n\t\t\t?\\n ?\\b\n\n\t\t\texamples (3rd alternation = normal):\n\t\t\t?a ?A ?0 \n\t\t\t?* ?\" ?( \n\t\t\t?. ?#\n\t\t\t\n\t\t\tthe negative lookbehind prevents against matching\n\t\t\tp(42.tainted?)\n\t\t\t",
|
533
|
+
"match": "(?<!\\w)\\?(\\\\(x\\h{1,2}(?!\\h)\\b|[^xMC])|[^\\s\\\\])",
|
534
|
+
"name": "constant.numeric.elixir"
|
535
|
+
},
|
536
|
+
{
|
537
|
+
"begin": "(?<=\\{|do|\\{\\s|do\\s)(\\|)",
|
538
|
+
"captures": {
|
539
|
+
"1": {
|
540
|
+
"name": "punctuation.separator.variable.elixir"
|
541
|
+
}
|
542
|
+
},
|
543
|
+
"end": "(\\|)",
|
544
|
+
"patterns": [
|
545
|
+
{
|
546
|
+
"match": "[_a-zA-Z][_a-zA-Z0-9]*",
|
547
|
+
"name": "variable.other.block.elixir"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"match": ",",
|
551
|
+
"name": "punctuation.separator.variable.elixir"
|
552
|
+
}
|
553
|
+
]
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"match": "\\+=|\\-=|\\|\\|=|~=|&&=",
|
557
|
+
"name": "keyword.operator.assignment.augmented.elixir"
|
558
|
+
},
|
559
|
+
{
|
560
|
+
"match": "===?|!==?|<=?|>=?",
|
561
|
+
"name": "keyword.operator.comparison.elixir"
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"match": "(\\|\\|\\||&&&|^^^|<<<|>>>|~~~)",
|
565
|
+
"name": "keyword.operator.bitwise.elixir"
|
566
|
+
},
|
567
|
+
{
|
568
|
+
"match": "(?<=[ \\t])!+|\\bnot\\b|&&|\\band\\b|\\|\\||\\bor\\b|\\bxor\\b",
|
569
|
+
"name": "keyword.operator.logical.elixir"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"match": "(\\*|\\+|\\-|/)",
|
573
|
+
"name": "keyword.operator.arithmetic.elixir"
|
574
|
+
},
|
575
|
+
{
|
576
|
+
"match": "\\||\\+\\+|\\-\\-|\\*\\*|\\\\\\\\|\\<\\-|\\<\\>|\\<\\<|\\>\\>|\\:\\:|\\.\\.|\\|>|~|=>",
|
577
|
+
"name": "keyword.operator.other.elixir"
|
578
|
+
},
|
579
|
+
{
|
580
|
+
"match": "=",
|
581
|
+
"name": "keyword.operator.assignment.elixir"
|
582
|
+
},
|
583
|
+
{
|
584
|
+
"match": ":",
|
585
|
+
"name": "punctuation.separator.other.elixir"
|
586
|
+
},
|
587
|
+
{
|
588
|
+
"match": "\\;",
|
589
|
+
"name": "punctuation.separator.statement.elixir"
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"match": ",",
|
593
|
+
"name": "punctuation.separator.object.elixir"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"match": "\\.",
|
597
|
+
"name": "punctuation.separator.method.elixir"
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"match": "\\{|\\}",
|
601
|
+
"name": "punctuation.section.scope.elixir"
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"match": "\\[|\\]",
|
605
|
+
"name": "punctuation.section.array.elixir"
|
606
|
+
},
|
607
|
+
{
|
608
|
+
"match": "\\(|\\)",
|
609
|
+
"name": "punctuation.section.function.elixir"
|
610
|
+
}
|
611
|
+
],
|
612
|
+
"repository": {
|
613
|
+
"escaped_char": {
|
614
|
+
"match": "\\\\(x[\\da-fA-F]{1,2}|.)",
|
615
|
+
"name": "constant.character.escape.elixir"
|
616
|
+
},
|
617
|
+
"interpolated_elixir": {
|
618
|
+
"patterns": [
|
619
|
+
{
|
620
|
+
"captures": {
|
621
|
+
"0": {
|
622
|
+
"name": "punctuation.section.embedded.elixir"
|
623
|
+
},
|
624
|
+
"1": {
|
625
|
+
"name": "source.elixir.embedded.source.empty"
|
626
|
+
}
|
627
|
+
},
|
628
|
+
"match": "#\\{(\\})",
|
629
|
+
"name": "source.elixir.embedded.source"
|
630
|
+
},
|
631
|
+
{
|
632
|
+
"begin": "#\\{",
|
633
|
+
"captures": {
|
634
|
+
"0": {
|
635
|
+
"name": "punctuation.section.embedded.elixir"
|
636
|
+
}
|
637
|
+
},
|
638
|
+
"end": "\\}",
|
639
|
+
"name": "source.elixir.embedded.source",
|
640
|
+
"patterns": [
|
641
|
+
{
|
642
|
+
"include": "#nest_curly_and_self"
|
643
|
+
},
|
644
|
+
{
|
645
|
+
"include": "$self"
|
646
|
+
}
|
647
|
+
]
|
648
|
+
}
|
649
|
+
]
|
650
|
+
},
|
651
|
+
"nest_curly_and_self": {
|
652
|
+
"patterns": [
|
653
|
+
{
|
654
|
+
"begin": "\\{",
|
655
|
+
"captures": {
|
656
|
+
"0": {
|
657
|
+
"name": "punctuation.section.scope.elixir"
|
658
|
+
}
|
659
|
+
},
|
660
|
+
"end": "\\}",
|
661
|
+
"patterns": [
|
662
|
+
{
|
663
|
+
"include": "#nest_curly_and_self"
|
664
|
+
}
|
665
|
+
]
|
666
|
+
},
|
667
|
+
{
|
668
|
+
"include": "$self"
|
669
|
+
}
|
670
|
+
]
|
671
|
+
},
|
672
|
+
"regex_sub": {
|
673
|
+
"patterns": [
|
674
|
+
{
|
675
|
+
"include": "#interpolated_elixir"
|
676
|
+
},
|
677
|
+
{
|
678
|
+
"include": "#escaped_char"
|
679
|
+
},
|
680
|
+
{
|
681
|
+
"captures": {
|
682
|
+
"1": {
|
683
|
+
"name": "punctuation.definition.arbitrary-repitition.elixir"
|
684
|
+
},
|
685
|
+
"3": {
|
686
|
+
"name": "punctuation.definition.arbitrary-repitition.elixir"
|
687
|
+
}
|
688
|
+
},
|
689
|
+
"match": "(\\{)\\d+(,\\d+)?(\\})",
|
690
|
+
"name": "string.regexp.arbitrary-repitition.elixir"
|
691
|
+
},
|
692
|
+
{
|
693
|
+
"begin": "\\[(?:\\^?\\])?",
|
694
|
+
"captures": {
|
695
|
+
"0": {
|
696
|
+
"name": "punctuation.definition.character-class.elixir"
|
697
|
+
}
|
698
|
+
},
|
699
|
+
"end": "\\]",
|
700
|
+
"name": "string.regexp.character-class.elixir",
|
701
|
+
"patterns": [
|
702
|
+
{
|
703
|
+
"include": "#escaped_char"
|
704
|
+
}
|
705
|
+
]
|
706
|
+
},
|
707
|
+
{
|
708
|
+
"begin": "\\(",
|
709
|
+
"captures": {
|
710
|
+
"0": {
|
711
|
+
"name": "punctuation.definition.group.elixir"
|
712
|
+
}
|
713
|
+
},
|
714
|
+
"end": "\\)",
|
715
|
+
"name": "string.regexp.group.elixir",
|
716
|
+
"patterns": [
|
717
|
+
{
|
718
|
+
"include": "#regex_sub"
|
719
|
+
}
|
720
|
+
]
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"captures": {
|
724
|
+
"1": {
|
725
|
+
"name": "punctuation.definition.comment.elixir"
|
726
|
+
}
|
727
|
+
},
|
728
|
+
"comment": "We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",
|
729
|
+
"match": "(?<=^|\\s)(#)\\s[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$",
|
730
|
+
"name": "comment.line.number-sign.elixir"
|
731
|
+
}
|
732
|
+
]
|
733
|
+
}
|
734
|
+
},
|
735
|
+
"scopeName": "source.elixir",
|
736
|
+
"uuid": "D00C06B9-71B2-4FEB-A0E3-37237F579456"
|
737
|
+
}
|