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,1674 @@
|
|
1
|
+
{
|
2
|
+
"comment": "The recognition of function definitions and compiler directives (such as module, record and macro definitions) requires that each of the aforementioned constructs must be the first string inside a line (except for whitespace). Also, the function/module/record/macro names must be given unquoted. -- desp",
|
3
|
+
"fileTypes": [
|
4
|
+
"erl",
|
5
|
+
"hrl"
|
6
|
+
],
|
7
|
+
"keyEquivalent": "^~E",
|
8
|
+
"name": "Erlang",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"include": "#module-directive"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"include": "#import-export-directive"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"include": "#behaviour-directive"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"include": "#record-directive"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"include": "#define-directive"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"include": "#macro-directive"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"include": "#directive"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"include": "#function"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"include": "#everything-else"
|
36
|
+
}
|
37
|
+
],
|
38
|
+
"repository": {
|
39
|
+
"atom": {
|
40
|
+
"patterns": [
|
41
|
+
{
|
42
|
+
"begin": "(')",
|
43
|
+
"beginCaptures": {
|
44
|
+
"1": {
|
45
|
+
"name": "punctuation.definition.symbol.begin.erlang"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"end": "(')",
|
49
|
+
"endCaptures": {
|
50
|
+
"1": {
|
51
|
+
"name": "punctuation.definition.symbol.end.erlang"
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"name": "constant.other.symbol.quoted.single.erlang",
|
55
|
+
"patterns": [
|
56
|
+
{
|
57
|
+
"captures": {
|
58
|
+
"1": {
|
59
|
+
"name": "punctuation.definition.escape.erlang"
|
60
|
+
},
|
61
|
+
"3": {
|
62
|
+
"name": "punctuation.definition.escape.erlang"
|
63
|
+
}
|
64
|
+
},
|
65
|
+
"match": "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_]|[0-7]{1,3})",
|
66
|
+
"name": "constant.other.symbol.escape.erlang"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"match": "\\\\\\^?.?",
|
70
|
+
"name": "invalid.illegal.atom.erlang"
|
71
|
+
}
|
72
|
+
]
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"match": "[a-z][a-zA-Z\\d@_]*+",
|
76
|
+
"name": "constant.other.symbol.unquoted.erlang"
|
77
|
+
}
|
78
|
+
]
|
79
|
+
},
|
80
|
+
"behaviour-directive": {
|
81
|
+
"captures": {
|
82
|
+
"1": {
|
83
|
+
"name": "punctuation.section.directive.begin.erlang"
|
84
|
+
},
|
85
|
+
"2": {
|
86
|
+
"name": "keyword.control.directive.behaviour.erlang"
|
87
|
+
},
|
88
|
+
"3": {
|
89
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
90
|
+
},
|
91
|
+
"4": {
|
92
|
+
"name": "entity.name.type.class.behaviour.definition.erlang"
|
93
|
+
},
|
94
|
+
"5": {
|
95
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
96
|
+
},
|
97
|
+
"6": {
|
98
|
+
"name": "punctuation.section.directive.end.erlang"
|
99
|
+
}
|
100
|
+
},
|
101
|
+
"match": "^\\s*+(-)\\s*+(behaviour)\\s*+(\\()\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(\\))\\s*+(\\.)",
|
102
|
+
"name": "meta.directive.behaviour.erlang"
|
103
|
+
},
|
104
|
+
"binary": {
|
105
|
+
"begin": "(<<)",
|
106
|
+
"beginCaptures": {
|
107
|
+
"1": {
|
108
|
+
"name": "punctuation.definition.binary.begin.erlang"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"end": "(>>)",
|
112
|
+
"endCaptures": {
|
113
|
+
"1": {
|
114
|
+
"name": "punctuation.definition.binary.end.erlang"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
"name": "meta.structure.binary.erlang",
|
118
|
+
"patterns": [
|
119
|
+
{
|
120
|
+
"captures": {
|
121
|
+
"1": {
|
122
|
+
"name": "punctuation.separator.binary.erlang"
|
123
|
+
},
|
124
|
+
"2": {
|
125
|
+
"name": "punctuation.separator.value-size.erlang"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"match": "(,)|(:)"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"include": "#internal-type-specifiers"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"include": "#everything-else"
|
135
|
+
}
|
136
|
+
]
|
137
|
+
},
|
138
|
+
"character": {
|
139
|
+
"patterns": [
|
140
|
+
{
|
141
|
+
"captures": {
|
142
|
+
"1": {
|
143
|
+
"name": "punctuation.definition.character.erlang"
|
144
|
+
},
|
145
|
+
"2": {
|
146
|
+
"name": "constant.character.escape.erlang"
|
147
|
+
},
|
148
|
+
"3": {
|
149
|
+
"name": "punctuation.definition.escape.erlang"
|
150
|
+
},
|
151
|
+
"5": {
|
152
|
+
"name": "punctuation.definition.escape.erlang"
|
153
|
+
}
|
154
|
+
},
|
155
|
+
"match": "(\\$)((\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_]|[0-7]{1,3}))",
|
156
|
+
"name": "constant.character.erlang"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"match": "\\$\\\\\\^?.?",
|
160
|
+
"name": "invalid.illegal.character.erlang"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"captures": {
|
164
|
+
"1": {
|
165
|
+
"name": "punctuation.definition.character.erlang"
|
166
|
+
}
|
167
|
+
},
|
168
|
+
"match": "(\\$)\\S",
|
169
|
+
"name": "constant.character.erlang"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"match": "\\$.?",
|
173
|
+
"name": "invalid.illegal.character.erlang"
|
174
|
+
}
|
175
|
+
]
|
176
|
+
},
|
177
|
+
"comment": {
|
178
|
+
"begin": "(^[ \\t]+)?(?=%)",
|
179
|
+
"beginCaptures": {
|
180
|
+
"1": {
|
181
|
+
"name": "punctuation.whitespace.comment.leading.erlang"
|
182
|
+
}
|
183
|
+
},
|
184
|
+
"end": "(?!\\G)",
|
185
|
+
"patterns": [
|
186
|
+
{
|
187
|
+
"begin": "%",
|
188
|
+
"beginCaptures": {
|
189
|
+
"0": {
|
190
|
+
"name": "punctuation.definition.comment.erlang"
|
191
|
+
}
|
192
|
+
},
|
193
|
+
"end": "\\n",
|
194
|
+
"name": "comment.line.percentage.erlang"
|
195
|
+
}
|
196
|
+
]
|
197
|
+
},
|
198
|
+
"define-directive": {
|
199
|
+
"patterns": [
|
200
|
+
{
|
201
|
+
"begin": "^\\s*+(-)\\s*+(define)\\s*+(\\()\\s*+([a-zA-Z\\d@_]++)\\s*+(,)",
|
202
|
+
"beginCaptures": {
|
203
|
+
"1": {
|
204
|
+
"name": "punctuation.section.directive.begin.erlang"
|
205
|
+
},
|
206
|
+
"2": {
|
207
|
+
"name": "keyword.control.directive.define.erlang"
|
208
|
+
},
|
209
|
+
"3": {
|
210
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
211
|
+
},
|
212
|
+
"4": {
|
213
|
+
"name": "entity.name.function.macro.definition.erlang"
|
214
|
+
},
|
215
|
+
"5": {
|
216
|
+
"name": "punctuation.separator.parameters.erlang"
|
217
|
+
}
|
218
|
+
},
|
219
|
+
"end": "(\\))\\s*+(\\.)",
|
220
|
+
"endCaptures": {
|
221
|
+
"1": {
|
222
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
223
|
+
},
|
224
|
+
"2": {
|
225
|
+
"name": "punctuation.section.directive.end.erlang"
|
226
|
+
}
|
227
|
+
},
|
228
|
+
"name": "meta.directive.define.erlang",
|
229
|
+
"patterns": [
|
230
|
+
{
|
231
|
+
"include": "#everything-else"
|
232
|
+
}
|
233
|
+
]
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"begin": "(?=^\\s*+-\\s*+define\\s*+\\(\\s*+[a-zA-Z\\d@_]++\\s*+\\()",
|
237
|
+
"end": "(\\))\\s*+(\\.)",
|
238
|
+
"endCaptures": {
|
239
|
+
"1": {
|
240
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
241
|
+
},
|
242
|
+
"2": {
|
243
|
+
"name": "punctuation.section.directive.end.erlang"
|
244
|
+
}
|
245
|
+
},
|
246
|
+
"name": "meta.directive.define.erlang",
|
247
|
+
"patterns": [
|
248
|
+
{
|
249
|
+
"begin": "^\\s*+(-)\\s*+(define)\\s*+(\\()\\s*+([a-zA-Z\\d@_]++)\\s*+(\\()",
|
250
|
+
"beginCaptures": {
|
251
|
+
"1": {
|
252
|
+
"name": "punctuation.section.directive.begin.erlang"
|
253
|
+
},
|
254
|
+
"2": {
|
255
|
+
"name": "keyword.control.directive.define.erlang"
|
256
|
+
},
|
257
|
+
"3": {
|
258
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
259
|
+
},
|
260
|
+
"4": {
|
261
|
+
"name": "entity.name.function.macro.definition.erlang"
|
262
|
+
},
|
263
|
+
"5": {
|
264
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
"end": "(\\))\\s*(,)",
|
268
|
+
"endCaptures": {
|
269
|
+
"1": {
|
270
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
271
|
+
},
|
272
|
+
"2": {
|
273
|
+
"name": "punctuation.separator.parameters.erlang"
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"patterns": [
|
277
|
+
{
|
278
|
+
"match": ",",
|
279
|
+
"name": "punctuation.separator.parameters.erlang"
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"include": "#everything-else"
|
283
|
+
}
|
284
|
+
]
|
285
|
+
},
|
286
|
+
{
|
287
|
+
"match": "\\|\\||\\||:|;|,|\\.|->",
|
288
|
+
"name": "punctuation.separator.define.erlang"
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"include": "#everything-else"
|
292
|
+
}
|
293
|
+
]
|
294
|
+
}
|
295
|
+
]
|
296
|
+
},
|
297
|
+
"directive": {
|
298
|
+
"patterns": [
|
299
|
+
{
|
300
|
+
"begin": "^\\s*+(-)\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(\\(?)",
|
301
|
+
"beginCaptures": {
|
302
|
+
"1": {
|
303
|
+
"name": "punctuation.section.directive.begin.erlang"
|
304
|
+
},
|
305
|
+
"2": {
|
306
|
+
"name": "keyword.control.directive.erlang"
|
307
|
+
},
|
308
|
+
"3": {
|
309
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
310
|
+
}
|
311
|
+
},
|
312
|
+
"end": "(\\)?)\\s*+(\\.)",
|
313
|
+
"endCaptures": {
|
314
|
+
"1": {
|
315
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
316
|
+
},
|
317
|
+
"2": {
|
318
|
+
"name": "punctuation.section.directive.end.erlang"
|
319
|
+
}
|
320
|
+
},
|
321
|
+
"name": "meta.directive.erlang",
|
322
|
+
"patterns": [
|
323
|
+
{
|
324
|
+
"include": "#everything-else"
|
325
|
+
}
|
326
|
+
]
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"captures": {
|
330
|
+
"1": {
|
331
|
+
"name": "punctuation.section.directive.begin.erlang"
|
332
|
+
},
|
333
|
+
"2": {
|
334
|
+
"name": "keyword.control.directive.erlang"
|
335
|
+
},
|
336
|
+
"3": {
|
337
|
+
"name": "punctuation.section.directive.end.erlang"
|
338
|
+
}
|
339
|
+
},
|
340
|
+
"match": "^\\s*+(-)\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(\\.)",
|
341
|
+
"name": "meta.directive.erlang"
|
342
|
+
}
|
343
|
+
]
|
344
|
+
},
|
345
|
+
"everything-else": {
|
346
|
+
"patterns": [
|
347
|
+
{
|
348
|
+
"include": "#comment"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"include": "#record-usage"
|
352
|
+
},
|
353
|
+
{
|
354
|
+
"include": "#macro-usage"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"include": "#expression"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"include": "#keyword"
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"include": "#textual-operator"
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"include": "#function-call"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"include": "#tuple"
|
370
|
+
},
|
371
|
+
{
|
372
|
+
"include": "#list"
|
373
|
+
},
|
374
|
+
{
|
375
|
+
"include": "#binary"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"include": "#parenthesized-expression"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"include": "#character"
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"include": "#number"
|
385
|
+
},
|
386
|
+
{
|
387
|
+
"include": "#atom"
|
388
|
+
},
|
389
|
+
{
|
390
|
+
"include": "#string"
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"include": "#symbolic-operator"
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"include": "#variable"
|
397
|
+
}
|
398
|
+
]
|
399
|
+
},
|
400
|
+
"expression": {
|
401
|
+
"patterns": [
|
402
|
+
{
|
403
|
+
"begin": "\\b(if)\\b",
|
404
|
+
"beginCaptures": {
|
405
|
+
"1": {
|
406
|
+
"name": "keyword.control.if.erlang"
|
407
|
+
}
|
408
|
+
},
|
409
|
+
"end": "\\b(end)\\b",
|
410
|
+
"endCaptures": {
|
411
|
+
"1": {
|
412
|
+
"name": "keyword.control.end.erlang"
|
413
|
+
}
|
414
|
+
},
|
415
|
+
"name": "meta.expression.if.erlang",
|
416
|
+
"patterns": [
|
417
|
+
{
|
418
|
+
"include": "#internal-expression-punctuation"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"include": "#everything-else"
|
422
|
+
}
|
423
|
+
]
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"begin": "\\b(case)\\b",
|
427
|
+
"beginCaptures": {
|
428
|
+
"1": {
|
429
|
+
"name": "keyword.control.case.erlang"
|
430
|
+
}
|
431
|
+
},
|
432
|
+
"end": "\\b(end)\\b",
|
433
|
+
"endCaptures": {
|
434
|
+
"1": {
|
435
|
+
"name": "keyword.control.end.erlang"
|
436
|
+
}
|
437
|
+
},
|
438
|
+
"name": "meta.expression.case.erlang",
|
439
|
+
"patterns": [
|
440
|
+
{
|
441
|
+
"include": "#internal-expression-punctuation"
|
442
|
+
},
|
443
|
+
{
|
444
|
+
"include": "#everything-else"
|
445
|
+
}
|
446
|
+
]
|
447
|
+
},
|
448
|
+
{
|
449
|
+
"begin": "\\b(receive)\\b",
|
450
|
+
"beginCaptures": {
|
451
|
+
"1": {
|
452
|
+
"name": "keyword.control.receive.erlang"
|
453
|
+
}
|
454
|
+
},
|
455
|
+
"end": "\\b(end)\\b",
|
456
|
+
"endCaptures": {
|
457
|
+
"1": {
|
458
|
+
"name": "keyword.control.end.erlang"
|
459
|
+
}
|
460
|
+
},
|
461
|
+
"name": "meta.expression.receive.erlang",
|
462
|
+
"patterns": [
|
463
|
+
{
|
464
|
+
"include": "#internal-expression-punctuation"
|
465
|
+
},
|
466
|
+
{
|
467
|
+
"include": "#everything-else"
|
468
|
+
}
|
469
|
+
]
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"captures": {
|
473
|
+
"1": {
|
474
|
+
"name": "keyword.control.fun.erlang"
|
475
|
+
},
|
476
|
+
"3": {
|
477
|
+
"name": "entity.name.type.class.module.erlang"
|
478
|
+
},
|
479
|
+
"4": {
|
480
|
+
"name": "punctuation.separator.module-function.erlang"
|
481
|
+
},
|
482
|
+
"5": {
|
483
|
+
"name": "entity.name.function.erlang"
|
484
|
+
},
|
485
|
+
"6": {
|
486
|
+
"name": "punctuation.separator.function-arity.erlang"
|
487
|
+
}
|
488
|
+
},
|
489
|
+
"match": "\\b(fun)\\s*+(([a-z][a-zA-Z\\d@_]*+)\\s*+(:)\\s*+)?([a-z][a-zA-Z\\d@_]*+)\\s*(/)"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"begin": "\\b(fun)\\b",
|
493
|
+
"beginCaptures": {
|
494
|
+
"1": {
|
495
|
+
"name": "keyword.control.fun.erlang"
|
496
|
+
}
|
497
|
+
},
|
498
|
+
"end": "\\b(end)\\b",
|
499
|
+
"endCaptures": {
|
500
|
+
"1": {
|
501
|
+
"name": "keyword.control.end.erlang"
|
502
|
+
}
|
503
|
+
},
|
504
|
+
"name": "meta.expression.fun.erlang",
|
505
|
+
"patterns": [
|
506
|
+
{
|
507
|
+
"begin": "(?=\\()",
|
508
|
+
"end": "(;)|(?=\\bend\\b)",
|
509
|
+
"endCaptures": {
|
510
|
+
"1": {
|
511
|
+
"name": "punctuation.separator.clauses.erlang"
|
512
|
+
}
|
513
|
+
},
|
514
|
+
"patterns": [
|
515
|
+
{
|
516
|
+
"include": "#internal-function-parts"
|
517
|
+
}
|
518
|
+
]
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"include": "#everything-else"
|
522
|
+
}
|
523
|
+
]
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"begin": "\\b(try)\\b",
|
527
|
+
"beginCaptures": {
|
528
|
+
"1": {
|
529
|
+
"name": "keyword.control.try.erlang"
|
530
|
+
}
|
531
|
+
},
|
532
|
+
"end": "\\b(end)\\b",
|
533
|
+
"endCaptures": {
|
534
|
+
"1": {
|
535
|
+
"name": "keyword.control.end.erlang"
|
536
|
+
}
|
537
|
+
},
|
538
|
+
"name": "meta.expression.try.erlang",
|
539
|
+
"patterns": [
|
540
|
+
{
|
541
|
+
"include": "#internal-expression-punctuation"
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"include": "#everything-else"
|
545
|
+
}
|
546
|
+
]
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"begin": "\\b(begin)\\b",
|
550
|
+
"beginCaptures": {
|
551
|
+
"1": {
|
552
|
+
"name": "keyword.control.begin.erlang"
|
553
|
+
}
|
554
|
+
},
|
555
|
+
"end": "\\b(end)\\b",
|
556
|
+
"endCaptures": {
|
557
|
+
"1": {
|
558
|
+
"name": "keyword.control.end.erlang"
|
559
|
+
}
|
560
|
+
},
|
561
|
+
"name": "meta.expression.begin.erlang",
|
562
|
+
"patterns": [
|
563
|
+
{
|
564
|
+
"include": "#internal-expression-punctuation"
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"include": "#everything-else"
|
568
|
+
}
|
569
|
+
]
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"begin": "\\b(query)\\b",
|
573
|
+
"beginCaptures": {
|
574
|
+
"1": {
|
575
|
+
"name": "keyword.control.query.erlang"
|
576
|
+
}
|
577
|
+
},
|
578
|
+
"end": "\\b(end)\\b",
|
579
|
+
"endCaptures": {
|
580
|
+
"1": {
|
581
|
+
"name": "keyword.control.end.erlang"
|
582
|
+
}
|
583
|
+
},
|
584
|
+
"name": "meta.expression.query.erlang",
|
585
|
+
"patterns": [
|
586
|
+
{
|
587
|
+
"include": "#everything-else"
|
588
|
+
}
|
589
|
+
]
|
590
|
+
}
|
591
|
+
]
|
592
|
+
},
|
593
|
+
"function": {
|
594
|
+
"begin": "^\\s*+([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(?=\\()",
|
595
|
+
"beginCaptures": {
|
596
|
+
"1": {
|
597
|
+
"name": "entity.name.function.definition.erlang"
|
598
|
+
}
|
599
|
+
},
|
600
|
+
"end": "(\\.)",
|
601
|
+
"endCaptures": {
|
602
|
+
"1": {
|
603
|
+
"name": "punctuation.terminator.function.erlang"
|
604
|
+
}
|
605
|
+
},
|
606
|
+
"name": "meta.function.erlang",
|
607
|
+
"patterns": [
|
608
|
+
{
|
609
|
+
"captures": {
|
610
|
+
"1": {
|
611
|
+
"name": "entity.name.function.erlang"
|
612
|
+
}
|
613
|
+
},
|
614
|
+
"match": "^\\s*+([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(?=\\()"
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"begin": "(?=\\()",
|
618
|
+
"end": "(;)|(?=\\.)",
|
619
|
+
"endCaptures": {
|
620
|
+
"1": {
|
621
|
+
"name": "punctuation.separator.clauses.erlang"
|
622
|
+
}
|
623
|
+
},
|
624
|
+
"patterns": [
|
625
|
+
{
|
626
|
+
"include": "#parenthesized-expression"
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"include": "#internal-function-parts"
|
630
|
+
}
|
631
|
+
]
|
632
|
+
},
|
633
|
+
{
|
634
|
+
"include": "#everything-else"
|
635
|
+
}
|
636
|
+
]
|
637
|
+
},
|
638
|
+
"function-call": {
|
639
|
+
"begin": "(?=([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(\\(|:\\s*+([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+\\())",
|
640
|
+
"end": "(\\))",
|
641
|
+
"endCaptures": {
|
642
|
+
"1": {
|
643
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
644
|
+
}
|
645
|
+
},
|
646
|
+
"name": "meta.function-call.erlang",
|
647
|
+
"patterns": [
|
648
|
+
{
|
649
|
+
"begin": "((erlang)\\s*+(:)\\s*+)?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)\\s*+(\\()",
|
650
|
+
"beginCaptures": {
|
651
|
+
"2": {
|
652
|
+
"name": "entity.name.type.class.module.erlang"
|
653
|
+
},
|
654
|
+
"3": {
|
655
|
+
"name": "punctuation.separator.module-function.erlang"
|
656
|
+
},
|
657
|
+
"4": {
|
658
|
+
"name": "entity.name.function.guard.erlang"
|
659
|
+
},
|
660
|
+
"5": {
|
661
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
662
|
+
}
|
663
|
+
},
|
664
|
+
"end": "(?=\\))",
|
665
|
+
"patterns": [
|
666
|
+
{
|
667
|
+
"match": ",",
|
668
|
+
"name": "punctuation.separator.parameters.erlang"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"include": "#everything-else"
|
672
|
+
}
|
673
|
+
]
|
674
|
+
},
|
675
|
+
{
|
676
|
+
"begin": "(([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(:)\\s*+)?([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(\\()",
|
677
|
+
"beginCaptures": {
|
678
|
+
"2": {
|
679
|
+
"name": "entity.name.type.class.module.erlang"
|
680
|
+
},
|
681
|
+
"3": {
|
682
|
+
"name": "punctuation.separator.module-function.erlang"
|
683
|
+
},
|
684
|
+
"4": {
|
685
|
+
"name": "entity.name.function.erlang"
|
686
|
+
},
|
687
|
+
"5": {
|
688
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
689
|
+
}
|
690
|
+
},
|
691
|
+
"end": "(?=\\))",
|
692
|
+
"patterns": [
|
693
|
+
{
|
694
|
+
"match": ",",
|
695
|
+
"name": "punctuation.separator.parameters.erlang"
|
696
|
+
},
|
697
|
+
{
|
698
|
+
"include": "#everything-else"
|
699
|
+
}
|
700
|
+
]
|
701
|
+
}
|
702
|
+
]
|
703
|
+
},
|
704
|
+
"import-export-directive": {
|
705
|
+
"patterns": [
|
706
|
+
{
|
707
|
+
"begin": "^\\s*+(-)\\s*+(import)\\s*+(\\()\\s*+([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(,)",
|
708
|
+
"beginCaptures": {
|
709
|
+
"1": {
|
710
|
+
"name": "punctuation.section.directive.begin.erlang"
|
711
|
+
},
|
712
|
+
"2": {
|
713
|
+
"name": "keyword.control.directive.import.erlang"
|
714
|
+
},
|
715
|
+
"3": {
|
716
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
717
|
+
},
|
718
|
+
"4": {
|
719
|
+
"name": "entity.name.type.class.module.erlang"
|
720
|
+
},
|
721
|
+
"5": {
|
722
|
+
"name": "punctuation.separator.parameters.erlang"
|
723
|
+
}
|
724
|
+
},
|
725
|
+
"end": "(\\))\\s*+(\\.)",
|
726
|
+
"endCaptures": {
|
727
|
+
"1": {
|
728
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
729
|
+
},
|
730
|
+
"2": {
|
731
|
+
"name": "punctuation.section.directive.end.erlang"
|
732
|
+
}
|
733
|
+
},
|
734
|
+
"name": "meta.directive.import.erlang",
|
735
|
+
"patterns": [
|
736
|
+
{
|
737
|
+
"include": "#internal-function-list"
|
738
|
+
}
|
739
|
+
]
|
740
|
+
},
|
741
|
+
{
|
742
|
+
"begin": "^\\s*+(-)\\s*+(export)\\s*+(\\()",
|
743
|
+
"beginCaptures": {
|
744
|
+
"1": {
|
745
|
+
"name": "punctuation.section.directive.begin.erlang"
|
746
|
+
},
|
747
|
+
"2": {
|
748
|
+
"name": "keyword.control.directive.export.erlang"
|
749
|
+
},
|
750
|
+
"3": {
|
751
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
752
|
+
}
|
753
|
+
},
|
754
|
+
"end": "(\\))\\s*+(\\.)",
|
755
|
+
"endCaptures": {
|
756
|
+
"1": {
|
757
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
758
|
+
},
|
759
|
+
"2": {
|
760
|
+
"name": "punctuation.section.directive.end.erlang"
|
761
|
+
}
|
762
|
+
},
|
763
|
+
"name": "meta.directive.export.erlang",
|
764
|
+
"patterns": [
|
765
|
+
{
|
766
|
+
"include": "#internal-function-list"
|
767
|
+
}
|
768
|
+
]
|
769
|
+
}
|
770
|
+
]
|
771
|
+
},
|
772
|
+
"internal-expression-punctuation": {
|
773
|
+
"captures": {
|
774
|
+
"1": {
|
775
|
+
"name": "punctuation.separator.clause-head-body.erlang"
|
776
|
+
},
|
777
|
+
"2": {
|
778
|
+
"name": "punctuation.separator.clauses.erlang"
|
779
|
+
},
|
780
|
+
"3": {
|
781
|
+
"name": "punctuation.separator.expressions.erlang"
|
782
|
+
}
|
783
|
+
},
|
784
|
+
"match": "(->)|(;)|(,)"
|
785
|
+
},
|
786
|
+
"internal-function-list": {
|
787
|
+
"begin": "(\\[)",
|
788
|
+
"beginCaptures": {
|
789
|
+
"1": {
|
790
|
+
"name": "punctuation.definition.list.begin.erlang"
|
791
|
+
}
|
792
|
+
},
|
793
|
+
"end": "(\\])",
|
794
|
+
"endCaptures": {
|
795
|
+
"1": {
|
796
|
+
"name": "punctuation.definition.list.end.erlang"
|
797
|
+
}
|
798
|
+
},
|
799
|
+
"name": "meta.structure.list.function.erlang",
|
800
|
+
"patterns": [
|
801
|
+
{
|
802
|
+
"begin": "([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(/)",
|
803
|
+
"beginCaptures": {
|
804
|
+
"1": {
|
805
|
+
"name": "entity.name.function.erlang"
|
806
|
+
},
|
807
|
+
"2": {
|
808
|
+
"name": "punctuation.separator.function-arity.erlang"
|
809
|
+
}
|
810
|
+
},
|
811
|
+
"end": "(,)|(?=\\])",
|
812
|
+
"endCaptures": {
|
813
|
+
"1": {
|
814
|
+
"name": "punctuation.separator.list.erlang"
|
815
|
+
}
|
816
|
+
},
|
817
|
+
"patterns": [
|
818
|
+
{
|
819
|
+
"include": "#everything-else"
|
820
|
+
}
|
821
|
+
]
|
822
|
+
},
|
823
|
+
{
|
824
|
+
"include": "#everything-else"
|
825
|
+
}
|
826
|
+
]
|
827
|
+
},
|
828
|
+
"internal-function-parts": {
|
829
|
+
"patterns": [
|
830
|
+
{
|
831
|
+
"begin": "(?=\\()",
|
832
|
+
"end": "(->)",
|
833
|
+
"endCaptures": {
|
834
|
+
"1": {
|
835
|
+
"name": "punctuation.separator.clause-head-body.erlang"
|
836
|
+
}
|
837
|
+
},
|
838
|
+
"patterns": [
|
839
|
+
{
|
840
|
+
"begin": "(\\()",
|
841
|
+
"beginCaptures": {
|
842
|
+
"1": {
|
843
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
844
|
+
}
|
845
|
+
},
|
846
|
+
"end": "(\\))",
|
847
|
+
"endCaptures": {
|
848
|
+
"1": {
|
849
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
850
|
+
}
|
851
|
+
},
|
852
|
+
"patterns": [
|
853
|
+
{
|
854
|
+
"match": ",",
|
855
|
+
"name": "punctuation.separator.parameters.erlang"
|
856
|
+
},
|
857
|
+
{
|
858
|
+
"include": "#everything-else"
|
859
|
+
}
|
860
|
+
]
|
861
|
+
},
|
862
|
+
{
|
863
|
+
"match": ",|;",
|
864
|
+
"name": "punctuation.separator.guards.erlang"
|
865
|
+
},
|
866
|
+
{
|
867
|
+
"include": "#everything-else"
|
868
|
+
}
|
869
|
+
]
|
870
|
+
},
|
871
|
+
{
|
872
|
+
"match": ",",
|
873
|
+
"name": "punctuation.separator.expressions.erlang"
|
874
|
+
},
|
875
|
+
{
|
876
|
+
"include": "#everything-else"
|
877
|
+
}
|
878
|
+
]
|
879
|
+
},
|
880
|
+
"internal-record-body": {
|
881
|
+
"begin": "(\\{)",
|
882
|
+
"beginCaptures": {
|
883
|
+
"1": {
|
884
|
+
"name": "punctuation.definition.class.record.begin.erlang"
|
885
|
+
}
|
886
|
+
},
|
887
|
+
"end": "(?=\\})",
|
888
|
+
"name": "meta.structure.record.erlang",
|
889
|
+
"patterns": [
|
890
|
+
{
|
891
|
+
"begin": "(([a-z][a-zA-Z\\d@_]*+|'[^']*+')|(_))\\s*+(=|::)",
|
892
|
+
"beginCaptures": {
|
893
|
+
"2": {
|
894
|
+
"name": "variable.other.field.erlang"
|
895
|
+
},
|
896
|
+
"3": {
|
897
|
+
"name": "variable.language.omitted.field.erlang"
|
898
|
+
},
|
899
|
+
"4": {
|
900
|
+
"name": "keyword.operator.assignment.erlang"
|
901
|
+
}
|
902
|
+
},
|
903
|
+
"end": "(,)|(?=\\})",
|
904
|
+
"endCaptures": {
|
905
|
+
"1": {
|
906
|
+
"name": "punctuation.separator.class.record.erlang"
|
907
|
+
}
|
908
|
+
},
|
909
|
+
"patterns": [
|
910
|
+
{
|
911
|
+
"include": "#everything-else"
|
912
|
+
}
|
913
|
+
]
|
914
|
+
},
|
915
|
+
{
|
916
|
+
"captures": {
|
917
|
+
"1": {
|
918
|
+
"name": "variable.other.field.erlang"
|
919
|
+
},
|
920
|
+
"2": {
|
921
|
+
"name": "punctuation.separator.class.record.erlang"
|
922
|
+
}
|
923
|
+
},
|
924
|
+
"match": "([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(,)?"
|
925
|
+
},
|
926
|
+
{
|
927
|
+
"include": "#everything-else"
|
928
|
+
}
|
929
|
+
]
|
930
|
+
},
|
931
|
+
"internal-type-specifiers": {
|
932
|
+
"begin": "(/)",
|
933
|
+
"beginCaptures": {
|
934
|
+
"1": {
|
935
|
+
"name": "punctuation.separator.value-type.erlang"
|
936
|
+
}
|
937
|
+
},
|
938
|
+
"end": "(?=,|:|>>)",
|
939
|
+
"patterns": [
|
940
|
+
{
|
941
|
+
"captures": {
|
942
|
+
"1": {
|
943
|
+
"name": "storage.type.erlang"
|
944
|
+
},
|
945
|
+
"2": {
|
946
|
+
"name": "storage.modifier.signedness.erlang"
|
947
|
+
},
|
948
|
+
"3": {
|
949
|
+
"name": "storage.modifier.endianness.erlang"
|
950
|
+
},
|
951
|
+
"4": {
|
952
|
+
"name": "storage.modifier.unit.erlang"
|
953
|
+
},
|
954
|
+
"5": {
|
955
|
+
"name": "punctuation.separator.type-specifiers.erlang"
|
956
|
+
}
|
957
|
+
},
|
958
|
+
"match": "(integer|float|binary|bytes|bitstring|bits)|(signed|unsigned)|(big|little|native)|(unit)|(-)"
|
959
|
+
}
|
960
|
+
]
|
961
|
+
},
|
962
|
+
"keyword": {
|
963
|
+
"match": "\\b(after|begin|case|catch|cond|end|fun|if|let|of|query|try|receive|when)\\b",
|
964
|
+
"name": "keyword.control.erlang"
|
965
|
+
},
|
966
|
+
"list": {
|
967
|
+
"begin": "(\\[)",
|
968
|
+
"beginCaptures": {
|
969
|
+
"1": {
|
970
|
+
"name": "punctuation.definition.list.begin.erlang"
|
971
|
+
}
|
972
|
+
},
|
973
|
+
"end": "(\\])",
|
974
|
+
"endCaptures": {
|
975
|
+
"1": {
|
976
|
+
"name": "punctuation.definition.list.end.erlang"
|
977
|
+
}
|
978
|
+
},
|
979
|
+
"name": "meta.structure.list.erlang",
|
980
|
+
"patterns": [
|
981
|
+
{
|
982
|
+
"match": "\\||\\|\\||,",
|
983
|
+
"name": "punctuation.separator.list.erlang"
|
984
|
+
},
|
985
|
+
{
|
986
|
+
"include": "#everything-else"
|
987
|
+
}
|
988
|
+
]
|
989
|
+
},
|
990
|
+
"macro-directive": {
|
991
|
+
"patterns": [
|
992
|
+
{
|
993
|
+
"captures": {
|
994
|
+
"1": {
|
995
|
+
"name": "punctuation.section.directive.begin.erlang"
|
996
|
+
},
|
997
|
+
"2": {
|
998
|
+
"name": "keyword.control.directive.ifdef.erlang"
|
999
|
+
},
|
1000
|
+
"3": {
|
1001
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
1002
|
+
},
|
1003
|
+
"4": {
|
1004
|
+
"name": "entity.name.function.macro.erlang"
|
1005
|
+
},
|
1006
|
+
"5": {
|
1007
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
1008
|
+
},
|
1009
|
+
"6": {
|
1010
|
+
"name": "punctuation.section.directive.end.erlang"
|
1011
|
+
}
|
1012
|
+
},
|
1013
|
+
"match": "^\\s*+(-)\\s*+(ifdef)\\s*+(\\()\\s*+([a-zA-z\\d@_]++)\\s*+(\\))\\s*+(\\.)",
|
1014
|
+
"name": "meta.directive.ifdef.erlang"
|
1015
|
+
},
|
1016
|
+
{
|
1017
|
+
"captures": {
|
1018
|
+
"1": {
|
1019
|
+
"name": "punctuation.section.directive.begin.erlang"
|
1020
|
+
},
|
1021
|
+
"2": {
|
1022
|
+
"name": "keyword.control.directive.ifndef.erlang"
|
1023
|
+
},
|
1024
|
+
"3": {
|
1025
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
1026
|
+
},
|
1027
|
+
"4": {
|
1028
|
+
"name": "entity.name.function.macro.erlang"
|
1029
|
+
},
|
1030
|
+
"5": {
|
1031
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
1032
|
+
},
|
1033
|
+
"6": {
|
1034
|
+
"name": "punctuation.section.directive.end.erlang"
|
1035
|
+
}
|
1036
|
+
},
|
1037
|
+
"match": "^\\s*+(-)\\s*+(ifndef)\\s*+(\\()\\s*+([a-zA-z\\d@_]++)\\s*+(\\))\\s*+(\\.)",
|
1038
|
+
"name": "meta.directive.ifndef.erlang"
|
1039
|
+
},
|
1040
|
+
{
|
1041
|
+
"captures": {
|
1042
|
+
"1": {
|
1043
|
+
"name": "punctuation.section.directive.begin.erlang"
|
1044
|
+
},
|
1045
|
+
"2": {
|
1046
|
+
"name": "keyword.control.directive.undef.erlang"
|
1047
|
+
},
|
1048
|
+
"3": {
|
1049
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
1050
|
+
},
|
1051
|
+
"4": {
|
1052
|
+
"name": "entity.name.function.macro.erlang"
|
1053
|
+
},
|
1054
|
+
"5": {
|
1055
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
1056
|
+
},
|
1057
|
+
"6": {
|
1058
|
+
"name": "punctuation.section.directive.end.erlang"
|
1059
|
+
}
|
1060
|
+
},
|
1061
|
+
"match": "^\\s*+(-)\\s*+(undef)\\s*+(\\()\\s*+([a-zA-z\\d@_]++)\\s*+(\\))\\s*+(\\.)",
|
1062
|
+
"name": "meta.directive.undef.erlang"
|
1063
|
+
}
|
1064
|
+
]
|
1065
|
+
},
|
1066
|
+
"macro-usage": {
|
1067
|
+
"captures": {
|
1068
|
+
"1": {
|
1069
|
+
"name": "keyword.operator.macro.erlang"
|
1070
|
+
},
|
1071
|
+
"2": {
|
1072
|
+
"name": "entity.name.function.macro.erlang"
|
1073
|
+
}
|
1074
|
+
},
|
1075
|
+
"match": "(\\?\\??)\\s*+([a-zA-Z\\d@_]++)",
|
1076
|
+
"name": "meta.macro-usage.erlang"
|
1077
|
+
},
|
1078
|
+
"module-directive": {
|
1079
|
+
"captures": {
|
1080
|
+
"1": {
|
1081
|
+
"name": "punctuation.section.directive.begin.erlang"
|
1082
|
+
},
|
1083
|
+
"2": {
|
1084
|
+
"name": "keyword.control.directive.module.erlang"
|
1085
|
+
},
|
1086
|
+
"3": {
|
1087
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
1088
|
+
},
|
1089
|
+
"4": {
|
1090
|
+
"name": "entity.name.type.class.module.definition.erlang"
|
1091
|
+
},
|
1092
|
+
"5": {
|
1093
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
1094
|
+
},
|
1095
|
+
"6": {
|
1096
|
+
"name": "punctuation.section.directive.end.erlang"
|
1097
|
+
}
|
1098
|
+
},
|
1099
|
+
"match": "^\\s*+(-)\\s*+(module)\\s*+(\\()\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(\\))\\s*+(\\.)",
|
1100
|
+
"name": "meta.directive.module.erlang"
|
1101
|
+
},
|
1102
|
+
"number": {
|
1103
|
+
"begin": "(?=\\d)",
|
1104
|
+
"end": "(?!\\d)",
|
1105
|
+
"patterns": [
|
1106
|
+
{
|
1107
|
+
"captures": {
|
1108
|
+
"1": {
|
1109
|
+
"name": "punctuation.separator.integer-float.erlang"
|
1110
|
+
},
|
1111
|
+
"2": {
|
1112
|
+
"name": "punctuation.separator.float-exponent.erlang"
|
1113
|
+
}
|
1114
|
+
},
|
1115
|
+
"match": "\\d++(\\.)\\d++([eE][\\+\\-]?\\d++)?",
|
1116
|
+
"name": "constant.numeric.float.erlang"
|
1117
|
+
},
|
1118
|
+
{
|
1119
|
+
"captures": {
|
1120
|
+
"1": {
|
1121
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1122
|
+
}
|
1123
|
+
},
|
1124
|
+
"match": "2(#)[0-1]++",
|
1125
|
+
"name": "constant.numeric.integer.binary.erlang"
|
1126
|
+
},
|
1127
|
+
{
|
1128
|
+
"captures": {
|
1129
|
+
"1": {
|
1130
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1131
|
+
}
|
1132
|
+
},
|
1133
|
+
"match": "3(#)[0-2]++",
|
1134
|
+
"name": "constant.numeric.integer.base-3.erlang"
|
1135
|
+
},
|
1136
|
+
{
|
1137
|
+
"captures": {
|
1138
|
+
"1": {
|
1139
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1140
|
+
}
|
1141
|
+
},
|
1142
|
+
"match": "4(#)[0-3]++",
|
1143
|
+
"name": "constant.numeric.integer.base-4.erlang"
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
"captures": {
|
1147
|
+
"1": {
|
1148
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1149
|
+
}
|
1150
|
+
},
|
1151
|
+
"match": "5(#)[0-4]++",
|
1152
|
+
"name": "constant.numeric.integer.base-5.erlang"
|
1153
|
+
},
|
1154
|
+
{
|
1155
|
+
"captures": {
|
1156
|
+
"1": {
|
1157
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1158
|
+
}
|
1159
|
+
},
|
1160
|
+
"match": "6(#)[0-5]++",
|
1161
|
+
"name": "constant.numeric.integer.base-6.erlang"
|
1162
|
+
},
|
1163
|
+
{
|
1164
|
+
"captures": {
|
1165
|
+
"1": {
|
1166
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1167
|
+
}
|
1168
|
+
},
|
1169
|
+
"match": "7(#)[0-6]++",
|
1170
|
+
"name": "constant.numeric.integer.base-7.erlang"
|
1171
|
+
},
|
1172
|
+
{
|
1173
|
+
"captures": {
|
1174
|
+
"1": {
|
1175
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1176
|
+
}
|
1177
|
+
},
|
1178
|
+
"match": "8(#)[0-7]++",
|
1179
|
+
"name": "constant.numeric.integer.octal.erlang"
|
1180
|
+
},
|
1181
|
+
{
|
1182
|
+
"captures": {
|
1183
|
+
"1": {
|
1184
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1185
|
+
}
|
1186
|
+
},
|
1187
|
+
"match": "9(#)[0-8]++",
|
1188
|
+
"name": "constant.numeric.integer.base-9.erlang"
|
1189
|
+
},
|
1190
|
+
{
|
1191
|
+
"captures": {
|
1192
|
+
"1": {
|
1193
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1194
|
+
}
|
1195
|
+
},
|
1196
|
+
"match": "10(#)\\d++",
|
1197
|
+
"name": "constant.numeric.integer.decimal.erlang"
|
1198
|
+
},
|
1199
|
+
{
|
1200
|
+
"captures": {
|
1201
|
+
"1": {
|
1202
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1203
|
+
}
|
1204
|
+
},
|
1205
|
+
"match": "11(#)[\\daA]++",
|
1206
|
+
"name": "constant.numeric.integer.base-11.erlang"
|
1207
|
+
},
|
1208
|
+
{
|
1209
|
+
"captures": {
|
1210
|
+
"1": {
|
1211
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1212
|
+
}
|
1213
|
+
},
|
1214
|
+
"match": "12(#)[\\da-bA-B]++",
|
1215
|
+
"name": "constant.numeric.integer.base-12.erlang"
|
1216
|
+
},
|
1217
|
+
{
|
1218
|
+
"captures": {
|
1219
|
+
"1": {
|
1220
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1221
|
+
}
|
1222
|
+
},
|
1223
|
+
"match": "13(#)[\\da-cA-C]++",
|
1224
|
+
"name": "constant.numeric.integer.base-13.erlang"
|
1225
|
+
},
|
1226
|
+
{
|
1227
|
+
"captures": {
|
1228
|
+
"1": {
|
1229
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1230
|
+
}
|
1231
|
+
},
|
1232
|
+
"match": "14(#)[\\da-dA-D]++",
|
1233
|
+
"name": "constant.numeric.integer.base-14.erlang"
|
1234
|
+
},
|
1235
|
+
{
|
1236
|
+
"captures": {
|
1237
|
+
"1": {
|
1238
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1239
|
+
}
|
1240
|
+
},
|
1241
|
+
"match": "15(#)[\\da-eA-E]++",
|
1242
|
+
"name": "constant.numeric.integer.base-15.erlang"
|
1243
|
+
},
|
1244
|
+
{
|
1245
|
+
"captures": {
|
1246
|
+
"1": {
|
1247
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1248
|
+
}
|
1249
|
+
},
|
1250
|
+
"match": "16(#)\\h++",
|
1251
|
+
"name": "constant.numeric.integer.hexadecimal.erlang"
|
1252
|
+
},
|
1253
|
+
{
|
1254
|
+
"captures": {
|
1255
|
+
"1": {
|
1256
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1257
|
+
}
|
1258
|
+
},
|
1259
|
+
"match": "17(#)[\\da-gA-G]++",
|
1260
|
+
"name": "constant.numeric.integer.base-17.erlang"
|
1261
|
+
},
|
1262
|
+
{
|
1263
|
+
"captures": {
|
1264
|
+
"1": {
|
1265
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1266
|
+
}
|
1267
|
+
},
|
1268
|
+
"match": "18(#)[\\da-hA-H]++",
|
1269
|
+
"name": "constant.numeric.integer.base-18.erlang"
|
1270
|
+
},
|
1271
|
+
{
|
1272
|
+
"captures": {
|
1273
|
+
"1": {
|
1274
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1275
|
+
}
|
1276
|
+
},
|
1277
|
+
"match": "19(#)[\\da-iA-I]++",
|
1278
|
+
"name": "constant.numeric.integer.base-19.erlang"
|
1279
|
+
},
|
1280
|
+
{
|
1281
|
+
"captures": {
|
1282
|
+
"1": {
|
1283
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1284
|
+
}
|
1285
|
+
},
|
1286
|
+
"match": "20(#)[\\da-jA-J]++",
|
1287
|
+
"name": "constant.numeric.integer.base-20.erlang"
|
1288
|
+
},
|
1289
|
+
{
|
1290
|
+
"captures": {
|
1291
|
+
"1": {
|
1292
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1293
|
+
}
|
1294
|
+
},
|
1295
|
+
"match": "21(#)[\\da-kA-K]++",
|
1296
|
+
"name": "constant.numeric.integer.base-21.erlang"
|
1297
|
+
},
|
1298
|
+
{
|
1299
|
+
"captures": {
|
1300
|
+
"1": {
|
1301
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1302
|
+
}
|
1303
|
+
},
|
1304
|
+
"match": "22(#)[\\da-lA-L]++",
|
1305
|
+
"name": "constant.numeric.integer.base-22.erlang"
|
1306
|
+
},
|
1307
|
+
{
|
1308
|
+
"captures": {
|
1309
|
+
"1": {
|
1310
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1311
|
+
}
|
1312
|
+
},
|
1313
|
+
"match": "23(#)[\\da-mA-M]++",
|
1314
|
+
"name": "constant.numeric.integer.base-23.erlang"
|
1315
|
+
},
|
1316
|
+
{
|
1317
|
+
"captures": {
|
1318
|
+
"1": {
|
1319
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1320
|
+
}
|
1321
|
+
},
|
1322
|
+
"match": "24(#)[\\da-nA-N]++",
|
1323
|
+
"name": "constant.numeric.integer.base-24.erlang"
|
1324
|
+
},
|
1325
|
+
{
|
1326
|
+
"captures": {
|
1327
|
+
"1": {
|
1328
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1329
|
+
}
|
1330
|
+
},
|
1331
|
+
"match": "25(#)[\\da-oA-O]++",
|
1332
|
+
"name": "constant.numeric.integer.base-25.erlang"
|
1333
|
+
},
|
1334
|
+
{
|
1335
|
+
"captures": {
|
1336
|
+
"1": {
|
1337
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1338
|
+
}
|
1339
|
+
},
|
1340
|
+
"match": "26(#)[\\da-pA-P]++",
|
1341
|
+
"name": "constant.numeric.integer.base-26.erlang"
|
1342
|
+
},
|
1343
|
+
{
|
1344
|
+
"captures": {
|
1345
|
+
"1": {
|
1346
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1347
|
+
}
|
1348
|
+
},
|
1349
|
+
"match": "27(#)[\\da-qA-Q]++",
|
1350
|
+
"name": "constant.numeric.integer.base-27.erlang"
|
1351
|
+
},
|
1352
|
+
{
|
1353
|
+
"captures": {
|
1354
|
+
"1": {
|
1355
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1356
|
+
}
|
1357
|
+
},
|
1358
|
+
"match": "28(#)[\\da-rA-R]++",
|
1359
|
+
"name": "constant.numeric.integer.base-28.erlang"
|
1360
|
+
},
|
1361
|
+
{
|
1362
|
+
"captures": {
|
1363
|
+
"1": {
|
1364
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1365
|
+
}
|
1366
|
+
},
|
1367
|
+
"match": "29(#)[\\da-sA-S]++",
|
1368
|
+
"name": "constant.numeric.integer.base-29.erlang"
|
1369
|
+
},
|
1370
|
+
{
|
1371
|
+
"captures": {
|
1372
|
+
"1": {
|
1373
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1374
|
+
}
|
1375
|
+
},
|
1376
|
+
"match": "30(#)[\\da-tA-T]++",
|
1377
|
+
"name": "constant.numeric.integer.base-30.erlang"
|
1378
|
+
},
|
1379
|
+
{
|
1380
|
+
"captures": {
|
1381
|
+
"1": {
|
1382
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1383
|
+
}
|
1384
|
+
},
|
1385
|
+
"match": "31(#)[\\da-uA-U]++",
|
1386
|
+
"name": "constant.numeric.integer.base-31.erlang"
|
1387
|
+
},
|
1388
|
+
{
|
1389
|
+
"captures": {
|
1390
|
+
"1": {
|
1391
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1392
|
+
}
|
1393
|
+
},
|
1394
|
+
"match": "32(#)[\\da-vA-V]++",
|
1395
|
+
"name": "constant.numeric.integer.base-32.erlang"
|
1396
|
+
},
|
1397
|
+
{
|
1398
|
+
"captures": {
|
1399
|
+
"1": {
|
1400
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1401
|
+
}
|
1402
|
+
},
|
1403
|
+
"match": "33(#)[\\da-wA-W]++",
|
1404
|
+
"name": "constant.numeric.integer.base-33.erlang"
|
1405
|
+
},
|
1406
|
+
{
|
1407
|
+
"captures": {
|
1408
|
+
"1": {
|
1409
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1410
|
+
}
|
1411
|
+
},
|
1412
|
+
"match": "34(#)[\\da-xA-X]++",
|
1413
|
+
"name": "constant.numeric.integer.base-34.erlang"
|
1414
|
+
},
|
1415
|
+
{
|
1416
|
+
"captures": {
|
1417
|
+
"1": {
|
1418
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1419
|
+
}
|
1420
|
+
},
|
1421
|
+
"match": "35(#)[\\da-yA-Y]++",
|
1422
|
+
"name": "constant.numeric.integer.base-35.erlang"
|
1423
|
+
},
|
1424
|
+
{
|
1425
|
+
"captures": {
|
1426
|
+
"1": {
|
1427
|
+
"name": "punctuation.separator.base-integer.erlang"
|
1428
|
+
}
|
1429
|
+
},
|
1430
|
+
"match": "36(#)[\\da-zA-Z]++",
|
1431
|
+
"name": "constant.numeric.integer.base-36.erlang"
|
1432
|
+
},
|
1433
|
+
{
|
1434
|
+
"match": "\\d++#[\\da-zA-Z]++",
|
1435
|
+
"name": "invalid.illegal.integer.erlang"
|
1436
|
+
},
|
1437
|
+
{
|
1438
|
+
"match": "\\d++",
|
1439
|
+
"name": "constant.numeric.integer.decimal.erlang"
|
1440
|
+
}
|
1441
|
+
]
|
1442
|
+
},
|
1443
|
+
"parenthesized-expression": {
|
1444
|
+
"begin": "(\\()",
|
1445
|
+
"beginCaptures": {
|
1446
|
+
"1": {
|
1447
|
+
"name": "punctuation.section.expression.begin.erlang"
|
1448
|
+
}
|
1449
|
+
},
|
1450
|
+
"end": "(\\))",
|
1451
|
+
"endCaptures": {
|
1452
|
+
"1": {
|
1453
|
+
"name": "punctuation.section.expression.end.erlang"
|
1454
|
+
}
|
1455
|
+
},
|
1456
|
+
"name": "meta.expression.parenthesized",
|
1457
|
+
"patterns": [
|
1458
|
+
{
|
1459
|
+
"include": "#everything-else"
|
1460
|
+
}
|
1461
|
+
]
|
1462
|
+
},
|
1463
|
+
"record-directive": {
|
1464
|
+
"begin": "^\\s*+(-)\\s*+(record)\\s*+(\\()\\s*+([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(,)",
|
1465
|
+
"beginCaptures": {
|
1466
|
+
"1": {
|
1467
|
+
"name": "punctuation.section.directive.begin.erlang"
|
1468
|
+
},
|
1469
|
+
"2": {
|
1470
|
+
"name": "keyword.control.directive.import.erlang"
|
1471
|
+
},
|
1472
|
+
"3": {
|
1473
|
+
"name": "punctuation.definition.parameters.begin.erlang"
|
1474
|
+
},
|
1475
|
+
"4": {
|
1476
|
+
"name": "entity.name.type.class.record.definition.erlang"
|
1477
|
+
},
|
1478
|
+
"5": {
|
1479
|
+
"name": "punctuation.separator.parameters.erlang"
|
1480
|
+
}
|
1481
|
+
},
|
1482
|
+
"end": "((\\}))\\s*+(\\))\\s*+(\\.)",
|
1483
|
+
"endCaptures": {
|
1484
|
+
"1": {
|
1485
|
+
"name": "meta.structure.record.erlang"
|
1486
|
+
},
|
1487
|
+
"2": {
|
1488
|
+
"name": "punctuation.definition.class.record.end.erlang"
|
1489
|
+
},
|
1490
|
+
"3": {
|
1491
|
+
"name": "punctuation.definition.parameters.end.erlang"
|
1492
|
+
},
|
1493
|
+
"4": {
|
1494
|
+
"name": "punctuation.section.directive.end.erlang"
|
1495
|
+
}
|
1496
|
+
},
|
1497
|
+
"name": "meta.directive.record.erlang",
|
1498
|
+
"patterns": [
|
1499
|
+
{
|
1500
|
+
"include": "#internal-record-body"
|
1501
|
+
}
|
1502
|
+
]
|
1503
|
+
},
|
1504
|
+
"record-usage": {
|
1505
|
+
"patterns": [
|
1506
|
+
{
|
1507
|
+
"captures": {
|
1508
|
+
"1": {
|
1509
|
+
"name": "keyword.operator.record.erlang"
|
1510
|
+
},
|
1511
|
+
"2": {
|
1512
|
+
"name": "entity.name.type.class.record.erlang"
|
1513
|
+
},
|
1514
|
+
"3": {
|
1515
|
+
"name": "punctuation.separator.record-field.erlang"
|
1516
|
+
},
|
1517
|
+
"4": {
|
1518
|
+
"name": "variable.other.field.erlang"
|
1519
|
+
}
|
1520
|
+
},
|
1521
|
+
"match": "(#)\\s*+([a-z][a-zA-Z\\d@_]*+|'[^']*+')\\s*+(\\.)\\s*+([a-z][a-zA-Z\\d@_]*+|'[^']*+')",
|
1522
|
+
"name": "meta.record-usage.erlang"
|
1523
|
+
},
|
1524
|
+
{
|
1525
|
+
"begin": "(#)\\s*+([a-z][a-zA-Z\\d@_]*+|'[^']*+')",
|
1526
|
+
"beginCaptures": {
|
1527
|
+
"1": {
|
1528
|
+
"name": "keyword.operator.record.erlang"
|
1529
|
+
},
|
1530
|
+
"2": {
|
1531
|
+
"name": "entity.name.type.class.record.erlang"
|
1532
|
+
}
|
1533
|
+
},
|
1534
|
+
"end": "((\\}))",
|
1535
|
+
"endCaptures": {
|
1536
|
+
"1": {
|
1537
|
+
"name": "meta.structure.record.erlang"
|
1538
|
+
},
|
1539
|
+
"2": {
|
1540
|
+
"name": "punctuation.definition.class.record.end.erlang"
|
1541
|
+
}
|
1542
|
+
},
|
1543
|
+
"name": "meta.record-usage.erlang",
|
1544
|
+
"patterns": [
|
1545
|
+
{
|
1546
|
+
"include": "#internal-record-body"
|
1547
|
+
}
|
1548
|
+
]
|
1549
|
+
}
|
1550
|
+
]
|
1551
|
+
},
|
1552
|
+
"string": {
|
1553
|
+
"begin": "(\")",
|
1554
|
+
"beginCaptures": {
|
1555
|
+
"1": {
|
1556
|
+
"name": "punctuation.definition.string.begin.erlang"
|
1557
|
+
}
|
1558
|
+
},
|
1559
|
+
"end": "(\")",
|
1560
|
+
"endCaptures": {
|
1561
|
+
"1": {
|
1562
|
+
"name": "punctuation.definition.string.end.erlang"
|
1563
|
+
}
|
1564
|
+
},
|
1565
|
+
"name": "string.quoted.double.erlang",
|
1566
|
+
"patterns": [
|
1567
|
+
{
|
1568
|
+
"captures": {
|
1569
|
+
"1": {
|
1570
|
+
"name": "punctuation.definition.escape.erlang"
|
1571
|
+
},
|
1572
|
+
"3": {
|
1573
|
+
"name": "punctuation.definition.escape.erlang"
|
1574
|
+
}
|
1575
|
+
},
|
1576
|
+
"match": "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_]|[0-7]{1,3})",
|
1577
|
+
"name": "constant.character.escape.erlang"
|
1578
|
+
},
|
1579
|
+
{
|
1580
|
+
"match": "\\\\\\^?.?",
|
1581
|
+
"name": "invalid.illegal.string.erlang"
|
1582
|
+
},
|
1583
|
+
{
|
1584
|
+
"captures": {
|
1585
|
+
"1": {
|
1586
|
+
"name": "punctuation.definition.placeholder.erlang"
|
1587
|
+
},
|
1588
|
+
"10": {
|
1589
|
+
"name": "punctuation.separator.placeholder-parts.erlang"
|
1590
|
+
},
|
1591
|
+
"12": {
|
1592
|
+
"name": "punctuation.separator.placeholder-parts.erlang"
|
1593
|
+
},
|
1594
|
+
"3": {
|
1595
|
+
"name": "punctuation.separator.placeholder-parts.erlang"
|
1596
|
+
},
|
1597
|
+
"4": {
|
1598
|
+
"name": "punctuation.separator.placeholder-parts.erlang"
|
1599
|
+
},
|
1600
|
+
"6": {
|
1601
|
+
"name": "punctuation.separator.placeholder-parts.erlang"
|
1602
|
+
},
|
1603
|
+
"8": {
|
1604
|
+
"name": "punctuation.separator.placeholder-parts.erlang"
|
1605
|
+
}
|
1606
|
+
},
|
1607
|
+
"match": "(~)((\\-)?\\d++|(\\*))?((\\.)(\\d++|(\\*)))?((\\.)((\\*)|.))?[~cfegswpWPBX#bx\\+ni]",
|
1608
|
+
"name": "constant.other.placeholder.erlang"
|
1609
|
+
},
|
1610
|
+
{
|
1611
|
+
"captures": {
|
1612
|
+
"1": {
|
1613
|
+
"name": "punctuation.definition.placeholder.erlang"
|
1614
|
+
},
|
1615
|
+
"2": {
|
1616
|
+
"name": "punctuation.separator.placeholder-parts.erlang"
|
1617
|
+
}
|
1618
|
+
},
|
1619
|
+
"match": "(~)(\\*)?(\\d++)?[~du\\-#fsacl]",
|
1620
|
+
"name": "constant.other.placeholder.erlang"
|
1621
|
+
},
|
1622
|
+
{
|
1623
|
+
"match": "~.?",
|
1624
|
+
"name": "invalid.illegal.string.erlang"
|
1625
|
+
}
|
1626
|
+
]
|
1627
|
+
},
|
1628
|
+
"symbolic-operator": {
|
1629
|
+
"match": "\\+\\+|\\+|--|-|\\*|/=|/|=/=|=:=|==|=<|=|<-|<|>=|>|!|::",
|
1630
|
+
"name": "keyword.operator.symbolic.erlang"
|
1631
|
+
},
|
1632
|
+
"textual-operator": {
|
1633
|
+
"match": "\\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\\b",
|
1634
|
+
"name": "keyword.operator.textual.erlang"
|
1635
|
+
},
|
1636
|
+
"tuple": {
|
1637
|
+
"begin": "(\\{)",
|
1638
|
+
"beginCaptures": {
|
1639
|
+
"1": {
|
1640
|
+
"name": "punctuation.definition.tuple.begin.erlang"
|
1641
|
+
}
|
1642
|
+
},
|
1643
|
+
"end": "(\\})",
|
1644
|
+
"endCaptures": {
|
1645
|
+
"1": {
|
1646
|
+
"name": "punctuation.definition.tuple.end.erlang"
|
1647
|
+
}
|
1648
|
+
},
|
1649
|
+
"name": "meta.structure.tuple.erlang",
|
1650
|
+
"patterns": [
|
1651
|
+
{
|
1652
|
+
"match": ",",
|
1653
|
+
"name": "punctuation.separator.tuple.erlang"
|
1654
|
+
},
|
1655
|
+
{
|
1656
|
+
"include": "#everything-else"
|
1657
|
+
}
|
1658
|
+
]
|
1659
|
+
},
|
1660
|
+
"variable": {
|
1661
|
+
"captures": {
|
1662
|
+
"1": {
|
1663
|
+
"name": "variable.other.erlang"
|
1664
|
+
},
|
1665
|
+
"2": {
|
1666
|
+
"name": "variable.language.omitted.erlang"
|
1667
|
+
}
|
1668
|
+
},
|
1669
|
+
"match": "(_[a-zA-Z\\d@_]++|[A-Z][a-zA-Z\\d@_]*+)|(_)"
|
1670
|
+
}
|
1671
|
+
},
|
1672
|
+
"scopeName": "source.erlang",
|
1673
|
+
"uuid": "58EA597D-5158-4BF7-9FB2-B05135D1E166"
|
1674
|
+
}
|