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,355 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"elm"
|
4
|
+
],
|
5
|
+
"name": "Elm",
|
6
|
+
"patterns": [
|
7
|
+
{
|
8
|
+
"captures": {
|
9
|
+
"1": {
|
10
|
+
"name": "punctuation.definition.entity.elm"
|
11
|
+
},
|
12
|
+
"2": {
|
13
|
+
"name": "punctuation.definition.entity.elm"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"match": "(`)[a-zA-Z_']*?(`)",
|
17
|
+
"name": "keyword.operator.function.infix.elm"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"match": "\\(\\)",
|
21
|
+
"name": "constant.language.unit.elm"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"match": "\\[\\]",
|
25
|
+
"name": "constant.language.empty-list.elm"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"begin": "^\\b(module)\\s+",
|
29
|
+
"beginCaptures": {
|
30
|
+
"1": {
|
31
|
+
"name": "keyword.other.elm"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"end": "\\b(where)\\b",
|
35
|
+
"endCaptures": {
|
36
|
+
"1": {
|
37
|
+
"name": "keyword.other.elm"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"name": "meta.declaration.module.elm",
|
41
|
+
"patterns": [
|
42
|
+
{
|
43
|
+
"include": "#module_name"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"include": "#module_exports"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"match": "[a-z]+",
|
50
|
+
"name": "invalid"
|
51
|
+
}
|
52
|
+
]
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"begin": "^\\b(import)\\s+((open)\\s+)?",
|
56
|
+
"beginCaptures": {
|
57
|
+
"1": {
|
58
|
+
"name": "keyword.other.elm"
|
59
|
+
},
|
60
|
+
"3": {
|
61
|
+
"name": "invalid"
|
62
|
+
}
|
63
|
+
},
|
64
|
+
"end": "($|;)",
|
65
|
+
"name": "meta.import.elm",
|
66
|
+
"patterns": [
|
67
|
+
{
|
68
|
+
"match": "(as)",
|
69
|
+
"name": "keyword.import.elm"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"match": "\\(\\.\\.\\)",
|
73
|
+
"name": "keyword.import.elm"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"include": "#module_name"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"include": "#module_exports"
|
80
|
+
}
|
81
|
+
]
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"begin": "(\\[)(glsl)(\\|)",
|
85
|
+
"beginCaptures": {
|
86
|
+
"1": {
|
87
|
+
"name": "keyword.other.elm"
|
88
|
+
},
|
89
|
+
"2": {
|
90
|
+
"name": "support.function.prelude.elm"
|
91
|
+
},
|
92
|
+
"3": {
|
93
|
+
"name": "keyword.other.elm"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"end": "(\\|\\])",
|
97
|
+
"endCaptures": {
|
98
|
+
"1": {
|
99
|
+
"name": "keyword.other.elm"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"name": "entity.glsl.elm",
|
103
|
+
"patterns": [
|
104
|
+
{
|
105
|
+
"include": "source.glsl"
|
106
|
+
}
|
107
|
+
]
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"match": "\\b(type alias|type|case|of|let|in|as)\\s+",
|
111
|
+
"name": "keyword.other.elm"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"match": "\\b(if|then|else)\\s+",
|
115
|
+
"name": "keyword.control.elm"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"comment": "Floats are always decimal",
|
119
|
+
"match": "\\b([0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)\\b",
|
120
|
+
"name": "constant.numeric.float.elm"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"match": "\\b([0-9]+)\\b",
|
124
|
+
"name": "constant.numeric.elm"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"begin": "\"\"\"",
|
128
|
+
"beginCaptures": {
|
129
|
+
"0": {
|
130
|
+
"name": "punctuation.definition.string.begin.elm"
|
131
|
+
}
|
132
|
+
},
|
133
|
+
"end": "\"\"\"",
|
134
|
+
"endCaptures": {
|
135
|
+
"0": {
|
136
|
+
"name": "punctuation.definition.string.end.elm"
|
137
|
+
}
|
138
|
+
},
|
139
|
+
"name": "string.quoted.double.elm",
|
140
|
+
"patterns": [
|
141
|
+
{
|
142
|
+
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\'\\&])",
|
143
|
+
"name": "constant.character.escape.elm"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
|
147
|
+
"name": "constant.character.escape.control.elm"
|
148
|
+
}
|
149
|
+
]
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"begin": "\"",
|
153
|
+
"beginCaptures": {
|
154
|
+
"0": {
|
155
|
+
"name": "punctuation.definition.string.begin.elm"
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"end": "\"",
|
159
|
+
"endCaptures": {
|
160
|
+
"0": {
|
161
|
+
"name": "punctuation.definition.string.end.elm"
|
162
|
+
}
|
163
|
+
},
|
164
|
+
"name": "string.quoted.double.elm",
|
165
|
+
"patterns": [
|
166
|
+
{
|
167
|
+
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])",
|
168
|
+
"name": "constant.character.escape.elm"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
|
172
|
+
"name": "constant.character.escape.control.elm"
|
173
|
+
}
|
174
|
+
]
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"captures": {
|
178
|
+
"1": {
|
179
|
+
"name": "punctuation.definition.string.begin.elm"
|
180
|
+
},
|
181
|
+
"2": {
|
182
|
+
"name": "constant.character.escape.elm"
|
183
|
+
},
|
184
|
+
"3": {
|
185
|
+
"name": "punctuation.definition.string.end.elm"
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"match": "(?x)\n\t\t\t(')\n\t\t\t(?:\n\t\t\t\t[\\ -\\[\\]-~]\t\t\t\t\t\t\t\t# Basic Char\n\t\t\t | (\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE\n\t\t\t\t\t|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS\n\t\t\t\t\t|US|SP|DEL|[abfnrtv\\\\\\\"'\\&]))\t\t# Escapes\n\t\t\t | (\\^[A-Z@\\[\\]\\\\\\^_])\t\t\t\t\t\t# Control Chars\n\t\t\t)\n\t\t\t(')\n\t\t\t",
|
189
|
+
"name": "string.quoted.single.elm"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"begin": "^(port\\s+)?([a-z_][a-zA-Z0-9_']*|\\([|!%$+\\-.,=</>]+\\))\\s*((:)([:]+)?)",
|
193
|
+
"beginCaptures": {
|
194
|
+
"1": {
|
195
|
+
"name": "keyword.other.port.elm"
|
196
|
+
},
|
197
|
+
"2": {
|
198
|
+
"name": "entity.name.function.elm"
|
199
|
+
},
|
200
|
+
"4": {
|
201
|
+
"name": "keyword.other.colon.elm"
|
202
|
+
},
|
203
|
+
"5": {
|
204
|
+
"name": "invalid"
|
205
|
+
}
|
206
|
+
},
|
207
|
+
"end": "$\\n?",
|
208
|
+
"name": "meta.function.type-declaration.elm",
|
209
|
+
"patterns": [
|
210
|
+
{
|
211
|
+
"include": "#type_signature"
|
212
|
+
}
|
213
|
+
]
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"match": "\\bport\\s+",
|
217
|
+
"name": "keyword.other.port.elm"
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"match": "\\b[A-Z]\\w*\\b",
|
221
|
+
"name": "constant.other.elm"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"include": "#comments"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"match": "^[a-z][A-Za-z0-9_']*\\s+",
|
228
|
+
"name": "entity.name.function.elm"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"include": "#infix_op"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"match": "[|!%$?~+:\\-.=</>&\\\\*^]+",
|
235
|
+
"name": "keyword.operator.elm"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"match": ",",
|
239
|
+
"name": "punctuation.separator.comma.elm"
|
240
|
+
}
|
241
|
+
],
|
242
|
+
"repository": {
|
243
|
+
"block_comment": {
|
244
|
+
"applyEndPatternLast": 1,
|
245
|
+
"begin": "\\{-(?!#)",
|
246
|
+
"captures": {
|
247
|
+
"0": {
|
248
|
+
"name": "punctuation.definition.comment.elm"
|
249
|
+
}
|
250
|
+
},
|
251
|
+
"end": "-\\}",
|
252
|
+
"name": "comment.block.elm",
|
253
|
+
"patterns": [
|
254
|
+
{
|
255
|
+
"include": "#block_comment"
|
256
|
+
}
|
257
|
+
]
|
258
|
+
},
|
259
|
+
"comments": {
|
260
|
+
"patterns": [
|
261
|
+
{
|
262
|
+
"captures": {
|
263
|
+
"1": {
|
264
|
+
"name": "punctuation.definition.comment.elm"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
"match": "(--).*$\\n?",
|
268
|
+
"name": "comment.line.double-dash.elm"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"include": "#block_comment"
|
272
|
+
}
|
273
|
+
]
|
274
|
+
},
|
275
|
+
"infix_op": {
|
276
|
+
"match": "(\\([|!%$+:\\-.=</>]+\\)|\\(,+\\))",
|
277
|
+
"name": "entity.name.function.infix.elm"
|
278
|
+
},
|
279
|
+
"module_exports": {
|
280
|
+
"begin": "\\(",
|
281
|
+
"end": "\\)",
|
282
|
+
"name": "meta.declaration.exports.elm",
|
283
|
+
"patterns": [
|
284
|
+
{
|
285
|
+
"match": "\\b[a-z][a-zA-Z_'0-9]*",
|
286
|
+
"name": "entity.name.function.elm"
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"match": "\\b[A-Z][A-Za-z_'0-9]*",
|
290
|
+
"name": "storage.type.elm"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"match": ",",
|
294
|
+
"name": "punctuation.separator.comma.elm"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"include": "#infix_op"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"comment": "So named because I don't know what to call this.",
|
301
|
+
"match": "\\(.*?\\)",
|
302
|
+
"name": "meta.other.unknown.elm"
|
303
|
+
}
|
304
|
+
]
|
305
|
+
},
|
306
|
+
"module_name": {
|
307
|
+
"match": "[A-Z][A-Za-z._']*",
|
308
|
+
"name": "support.other.module.elm"
|
309
|
+
},
|
310
|
+
"type_signature": {
|
311
|
+
"patterns": [
|
312
|
+
{
|
313
|
+
"captures": {
|
314
|
+
"1": {
|
315
|
+
"name": "entity.other.inherited-class.elm"
|
316
|
+
},
|
317
|
+
"2": {
|
318
|
+
"name": "variable.other.generic-type.elm"
|
319
|
+
},
|
320
|
+
"3": {
|
321
|
+
"name": "keyword.other.big-arrow.elm"
|
322
|
+
}
|
323
|
+
},
|
324
|
+
"match": "\\(\\s*([A-Z][A-Za-z]*)\\s+([a-z][A-Za-z_']*)\\)\\s*(=>)",
|
325
|
+
"name": "meta.class-constraint.elm"
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"match": "->",
|
329
|
+
"name": "keyword.other.arrow.elm"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"match": "=>",
|
333
|
+
"name": "keyword.other.big-arrow.elm"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"match": "\\b[a-z][a-zA-Z0-9_']*\\b",
|
337
|
+
"name": "variable.other.generic-type.elm"
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"match": "\\b[A-Z][a-zA-Z0-9_']*\\b",
|
341
|
+
"name": "storage.type.elm"
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"match": "\\(\\)",
|
345
|
+
"name": "support.constant.unit.elm"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"include": "#comments"
|
349
|
+
}
|
350
|
+
]
|
351
|
+
}
|
352
|
+
},
|
353
|
+
"scopeName": "source.elm",
|
354
|
+
"uuid": "2cb90e5e-6e98-456d-9a8a-b59935dbc4b0"
|
355
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"erazor",
|
4
|
+
"ehtml",
|
5
|
+
"erazor.html"
|
6
|
+
],
|
7
|
+
"foldingStartMarker": "\\{\\s*$",
|
8
|
+
"foldingStopMarker": "^\\s*\\}",
|
9
|
+
"name": "Erazor (HTML)",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"include": "#controlblock"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"include": "#function"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"include": "#else"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"include": "#variables"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"include": "#scriptblock"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"include": "text.html.basic"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"repository": {
|
31
|
+
"scriptblock": {
|
32
|
+
"begin": "@\\{",
|
33
|
+
"end": "\\}",
|
34
|
+
"name": "source.hscript",
|
35
|
+
"beginCaptures": {
|
36
|
+
"0": {
|
37
|
+
"name": "entity.name.tag.erazor"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"endCaptures": {
|
41
|
+
"0": {
|
42
|
+
"name": "entity.name.tag.erazor"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"patterns": [
|
46
|
+
{
|
47
|
+
"include": "#codeblock"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"include": "source.haxe.2"
|
51
|
+
}
|
52
|
+
]
|
53
|
+
},
|
54
|
+
"function": {
|
55
|
+
"begin": "(@([a-zA-Z.]+)?)(\\()",
|
56
|
+
"end": "\\)",
|
57
|
+
"name": "source.erazor",
|
58
|
+
"beginCaptures": {
|
59
|
+
"1": {
|
60
|
+
"name": "entity.name.function.erazor"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"patterns": [
|
64
|
+
{
|
65
|
+
"include": "source.haxe.2"
|
66
|
+
}
|
67
|
+
]
|
68
|
+
},
|
69
|
+
"controlblock": {
|
70
|
+
"begin": "(@(if|else|while|for))(\\()",
|
71
|
+
"end": "\\)",
|
72
|
+
"name": "source.erazor",
|
73
|
+
"beginCaptures": {
|
74
|
+
"1": {
|
75
|
+
"name": "keyword.control.haxe.flow-control.2"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"patterns": [
|
79
|
+
{
|
80
|
+
"include": "source.haxe.2"
|
81
|
+
}
|
82
|
+
]
|
83
|
+
},
|
84
|
+
"codeblock": {
|
85
|
+
"begin": "\\{",
|
86
|
+
"end": "\\}",
|
87
|
+
"name": "source.erazor",
|
88
|
+
"patterns": [
|
89
|
+
{
|
90
|
+
"include": "#codeblock"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"include": "source.haxe.2"
|
94
|
+
}
|
95
|
+
]
|
96
|
+
},
|
97
|
+
"variables": {
|
98
|
+
"patterns": [
|
99
|
+
{
|
100
|
+
"match": "(@[A-Za-z0-9_.]+)",
|
101
|
+
"name": "source.erazor",
|
102
|
+
"captures": {
|
103
|
+
"1": {
|
104
|
+
"name": "entity.name.variable.erazor"
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
]
|
109
|
+
},
|
110
|
+
"else": {
|
111
|
+
"patterns": [
|
112
|
+
{
|
113
|
+
"match": "\\}(else)\\{",
|
114
|
+
"name": "source.erazor",
|
115
|
+
"captures": {
|
116
|
+
"1": {
|
117
|
+
"name": "keyword.control.haxe.flow-control.2"
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
]
|
122
|
+
}
|
123
|
+
},
|
124
|
+
"scopeName": "source.erazor",
|
125
|
+
"uuid": "93706aaa-9b66-4e9e-bb64-31a8ffcfb00e"
|
126
|
+
}
|