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,50 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"essl",
|
4
|
+
"f.essl",
|
5
|
+
"v.essl",
|
6
|
+
"_v.essl",
|
7
|
+
"_f.essl",
|
8
|
+
"_vs.essl",
|
9
|
+
"_fs.essl"
|
10
|
+
],
|
11
|
+
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
12
|
+
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
|
13
|
+
"keyEquivalent": "^~G",
|
14
|
+
"name": "ESSL",
|
15
|
+
"patterns": [
|
16
|
+
{
|
17
|
+
"match": "\\b(break|continue|discard|do|else|for|if|return|while)\\b",
|
18
|
+
"name": "keyword.control.essl"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"match": "\\b(void|mat2|mat3|mat4|vec2|vec3|vec4|ivec2|ivec3|ivec4|bvec2|bvec3|bvec4|sampler2D|samplerCube|struct)\\b",
|
22
|
+
"name": "storage.type.essl"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"match": "\\b(attribute|const|in|inout|out|uniform|varying|invariant|lowp|mediump|highp|precision)\\b",
|
26
|
+
"name": "storage.modifier.essl"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"match": "\\b(gl_Position|gl_PointSize|gl_FragCoord|gl_FrontFacing|gl_FragColor|gl_FragData|gl_PointCoord)\\b",
|
30
|
+
"name": "support.variable.essl"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"match": "\\b(gl_MaxVertexAttribs|gl_MaxVertexUniformVectors|gl_MaxVaryingVectors|gl_MaxVertexTextureImageUnits|gl_MaxCombinedTextureImageUnits|gl_MaxTextureImageUnits|gl_MaxFragmentUniformVectors|gl_MaxDrawBuffers|gl_DepthRange|__VERSION__|GL_ES)\\b",
|
34
|
+
"name": "support.constant.essl"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"match": "\\b(radians|degrees|sin|cos|tan|asin|acos|atan|atan|pow|exp|log|exp2|log2|sqrt|inversesqrt|abs|sign|floor|ceil|fract|mod|mod|min|max|clamp|mix|step|smoothstep|length|distance|dot|cross|normalize|faceforward|reflect|refract|matrixCompMult|lessThan|lessThanEqual|greaterThan|greaterThanEqual|equal|notEqual|any|all|not|texture2D|texture2DProj|texture2DLod|texture2DProjLod|textureCube|textureCubeLod)\\b",
|
38
|
+
"name": "support.function.essl"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"match": "\\b(asm|class|union|enum|typedef|template|this|packed|goto|switch|default|inline|noinline|volatile|public|static|extern|external|interface|flat|long|short|double|half|fixed|unsigned|superp|input|output|hvec2|hvec3|hvec4|dvec2|dvec3|dvec4|fvec2|fvec3|fvec4|sampler1D|sampler3D|sampler1DShadow|sampler2DShadow|sampler2DRect|sampler3DRect|sampler2DRectShadow|sizeof|cast|namespace|using)\\b",
|
42
|
+
"name": "invalid.illegal.essl"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"include": "source.c"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"scopeName": "source.essl",
|
49
|
+
"uuid": "5370EFAA-07AA-4597-962E-D051A99C57A9"
|
50
|
+
}
|
@@ -0,0 +1,260 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"factor",
|
4
|
+
"facts"
|
5
|
+
],
|
6
|
+
"foldingStartMarker": "^\\s*(M|C)?:|#(V|H|C)\\{",
|
7
|
+
"foldingStopMarker": "^\\s*$",
|
8
|
+
"keyEquivalent": "^~F",
|
9
|
+
"name": "Factor",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"captures": {
|
13
|
+
"2": {
|
14
|
+
"name": "keyword.colon.factor"
|
15
|
+
},
|
16
|
+
"3": {
|
17
|
+
"name": "entity.name.function.factor"
|
18
|
+
},
|
19
|
+
"4": {
|
20
|
+
"name": "comment.stack-effect.factor"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"match": "(^|(?<=\\s))(::?)\\s+([^\\s]+)\\s",
|
24
|
+
"name": "definition.word.factor"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"captures": {
|
28
|
+
"2": {
|
29
|
+
"name": "keyword.colon.factor"
|
30
|
+
},
|
31
|
+
"3": {
|
32
|
+
"name": "entity.name.method.factor"
|
33
|
+
},
|
34
|
+
"4": {
|
35
|
+
"name": "comment.stack-effect.factor"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"match": "(^|(?<=\\s))(C:)\\s+([^\\s]+)\\s",
|
39
|
+
"name": "definition.word.class.factor"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"captures": {
|
43
|
+
"2": {
|
44
|
+
"name": "keyword.colon.factor"
|
45
|
+
},
|
46
|
+
"3": {
|
47
|
+
"name": "entity.name.class.factor"
|
48
|
+
},
|
49
|
+
"4": {
|
50
|
+
"name": "entity.name.method.factor"
|
51
|
+
},
|
52
|
+
"5": {
|
53
|
+
"name": "comment.stack-effect.factor"
|
54
|
+
}
|
55
|
+
},
|
56
|
+
"match": "(^|(?<=\\s))(M:)\\s+([^\\s]+)\\s+([^\\s]+)\\s",
|
57
|
+
"name": "definition.word.method.factor"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"captures": {
|
61
|
+
"2": {
|
62
|
+
"name": "keyword.colon.factor"
|
63
|
+
},
|
64
|
+
"3": {
|
65
|
+
"name": "entity.name.generic.factor"
|
66
|
+
},
|
67
|
+
"5": {
|
68
|
+
"name": "comment.stack-effect.factor"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
"match": "(^|(?<=\\s))(GENERIC:)\\s+([^\\s]+)\\s",
|
72
|
+
"name": "definition.word.generic.factor"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"captures": {
|
76
|
+
"2": {
|
77
|
+
"name": "keyword.colon.factor"
|
78
|
+
},
|
79
|
+
"3": {
|
80
|
+
"name": "entity.name.generic.factor"
|
81
|
+
},
|
82
|
+
"5": {
|
83
|
+
"name": "comment.stack-effect.factor"
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"match": "(^|(?<=\\s))(GENERIC#)\\s+([^\\s]+)\\s(\\d+)\\s",
|
87
|
+
"name": "definition.word.generic.factor"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"captures": {
|
91
|
+
"2": {
|
92
|
+
"name": "storage.type.factor"
|
93
|
+
},
|
94
|
+
"3": {
|
95
|
+
"name": "entity.name.class.factor"
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"match": "(^|(?<=\\s))(TUPLE:|BUILTIN:)\\s+([^\\s]+)\\s+(([^\\s]+)+)",
|
99
|
+
"name": "meta.class.factor"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"match": "(^|(?<=\\s))(>boolean|<wrapper>|\\(clone\\)|-rot|2bi|2bi@|2bi\\*|2curry|2dip|2drop|2dup|2keep|2nip|2over|2tri|2tri@|2tri\\*|2with|3bi|3curry|3dip|3drop|3dup|3keep|3tri|4dip|4drop|4dup|4keep|=|\\?|\\?if|and|assert|assert=|assert\\?|bi|bi-curry|bi-curry@|bi-curry\\*|bi@|bi\\*|boa|boolean|boolean\\?|both\\?|build|call|callstack|callstack>array|callstack\\?|clear|clone|compose|compose\\?|curry|curry\\?|datastack|die|dip|do|drop|dup|dupd|either\\?|eq\\?|equal\\?|execute|hashcode|hashcode\\*|identity-hashcode|identity-tuple|identity-tuple\\?|if|if\\*|keep|loop|most|new|nip|not|null|object|or|over|pick|prepose|retainstack|rot|same\\?|swap|swapd|throw|tri|tri-curry|tri-curry@|tri-curry\\*|tri@|tri\\*|tuple|tuple\\?|unless|unless\\*|until|when|when\\*|while|with|wrapper|wrapper\\?|xor)(\\s|$)",
|
103
|
+
"name": "keyword.control.kernel.factor"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"match": "(^|(?<=\\s))(\\+@|change|change-global|counter|dec|get|get-global|global|inc|init-namespaces|initialize|is-global|namespace|namestack|off|on|set|set-global|set-namestack|toggle|with-global|with-scope|with-variable|with-variables)(\\s|$)",
|
107
|
+
"name": "keyword.control.namespaces.factor"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"match": "(^|(?<=\\s))(>alist|<enum>|2cache|\\?at|\\?of|assoc|assoc>map|assoc-all\\?|assoc-any\\?|assoc-clone-like|assoc-combine|assoc-diff|assoc-diff!|assoc-differ|assoc-each|assoc-empty\\?|assoc-filter|assoc-filter!|assoc-filter-as|assoc-find|assoc-hashcode|assoc-intersect|assoc-like|assoc-map|assoc-map-as|assoc-partition|assoc-refine|assoc-size|assoc-stack|assoc-subset\\?|assoc-union|assoc-union!|assoc=|assoc\\?|at|at\\*|at\\+|cache|change-at|clear-assoc|delete-at|delete-at\\*|enum|enum\\?|extract-keys|inc-at|key\\?|keys|map>assoc|maybe-set-at|new-assoc|of|push-at|rename-at|set-at|sift-keys|sift-values|substitute|unzip|value-at|value-at\\*|value\\?|values|zip|zip-as|zip-index|zip-index-as)(\\s|$)",
|
111
|
+
"name": "keyword.control.assocs.factor"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"match": "(^|(?<=\\s))(2cleave|2cleave>quot|3cleave|3cleave>quot|4cleave|4cleave>quot|alist>quot|call-effect|case|case>quot|case-find|cleave|cleave>quot|cond|cond>quot|deep-spread>quot|execute-effect|linear-case-quot|no-case|no-case\\?|no-cond|no-cond\\?|recursive-hashcode|shallow-spread>quot|spread|to-fixed-point|wrong-values|wrong-values\\?)(\\s|$)",
|
115
|
+
"name": "keyword.control.combinators.factor"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"match": "(^|(?<=\\s))(>|>=|>bignum|>fixnum|>float|>integer|<|<=|<fp-nan>|\\(all-integers\\?\\)|\\(each-integer\\)|\\(find-integer\\)|-|/|/f|/i|/mod|2/|2^|\\*|\\+|\\?1\\+|abs|align|all-integers\\?|bignum|bignum\\?|bit\\?|bitand|bitnot|bitor|bits>double|bits>float|bitxor|complex|complex\\?|denominator|double>bits|each-integer|even\\?|find-integer|find-last-integer|fixnum|fixnum\\?|float|float>bits|float\\?|fp-bitwise=|fp-infinity\\?|fp-nan-payload|fp-nan\\?|fp-qnan\\?|fp-sign|fp-snan\\?|fp-special\\?|if-zero|imaginary-part|integer|integer>fixnum|integer>fixnum-strict|integer\\?|log2|log2-expects-positive|log2-expects-positive\\?|mod|neg|neg\\?|next-float|next-power-of-2|number|number=|number\\?|numerator|odd\\?|power-of-2\\?|prev-float|ratio|ratio\\?|rational|rational\\?|real|real-part|real\\?|recip|rem|sgn|shift|sq|times|u>|u>=|u<|u<=|unless-zero|unordered\\?|when-zero|zero\\?)(\\s|$)",
|
119
|
+
"name": "keyword.control.math.factor"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"match": "(^|(?<=\\s))(<repetition>|<reversed>|<slice>|1sequence|2all\\?|2each|2map|2map-as|2map-reduce|2reduce|2selector|2sequence|3append|3append-as|3each|3map|3map-as|3sequence|4sequence|\\?first|\\?last|\\?nth|\\?second|\\?set-nth|accumulate|accumulate!|accumulate-as|all\\?|any\\?|append|append!|append-as|assert-sequence|assert-sequence=|assert-sequence\\?|binary-reduce|bounds-check|bounds-check\\?|bounds-error|bounds-error\\?|but-last|but-last-slice|cartesian-each|cartesian-map|cartesian-product|change-nth|check-slice|check-slice-error|clone-like|collapse-slice|collector|collector-for|concat|concat-as|copy|count|cut|cut-slice|cut\\*|delete-all|delete-slice|drop-prefix|each|each-from|each-index|empty\\?|exchange|filter|filter!|filter-as|find|find-from|find-index|find-index-from|find-last|find-last-from|first|first2|first3|first4|flip|follow|fourth|glue|halves|harvest|head|head-slice|head-slice\\*|head\\*|head\\?|if-empty|immutable|immutable-sequence|immutable-sequence\\?|immutable\\?|index|index-from|indices|infimum|infimum-by|insert-nth|interleave|iota|iota-tuple|iota-tuple\\?|join|join-as|last|last-index|last-index-from|length|lengthen|like|longer|longer\\?|longest|map|map!|map-as|map-find|map-find-last|map-index|map-index-as|map-integers|map-reduce|map-sum|max-length|member-eq\\?|member\\?|midpoint@|min-length|mismatch|move|new-like|new-resizable|new-sequence|non-negative-integer-expected|non-negative-integer-expected\\?|nth|nths|pad-head|pad-tail|padding|partition|pop|pop\\*|prefix|prepend|prepend-as|produce|produce-as|product|push|push-all|push-either|push-if|reduce|reduce-index|remove|remove!|remove-eq|remove-eq!|remove-nth|remove-nth!|repetition|repetition\\?|replace-slice|replicate|replicate-as|rest|rest-slice|reverse|reverse!|reversed|reversed\\?|second|selector|selector-for|sequence|sequence-hashcode|sequence=|sequence\\?|set-first|set-fourth|set-last|set-length|set-nth|set-second|set-third|short|shorten|shorter|shorter\\?|shortest|sift|slice|slice-error|slice-error\\?|slice\\?|snip|snip-slice|start|start\\*|subseq|subseq\\?|suffix|suffix!|sum|sum-lengths|supremum|supremum-by|surround|tail|tail-slice|tail-slice\\*|tail\\*|tail\\?|third|trim|trim-head|trim-head-slice|trim-slice|trim-tail|trim-tail-slice|unclip|unclip-last|unclip-last-slice|unclip-slice|unless-empty|virtual-exemplar|virtual-sequence|virtual-sequence\\?|virtual@|when-empty)(\\s|$)",
|
123
|
+
"name": "keyword.control.sequences.factor"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"match": "(^|(?<=\\s))(>array|<array>|1array|2array|3array|4array|array|array\\?|pair|pair\\?|resize-array)(\\s|$)",
|
127
|
+
"name": "keyword.control.arrays.factor"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"match": "(^|(?<=\\s))(\\(each-stream-block-slice\\)|\\(each-stream-block\\)|\\(stream-contents-by-block\\)|\\(stream-contents-by-element\\)|\\(stream-contents-by-length-or-block\\)|\\(stream-contents-by-length\\)|\\+byte\\+|\\+character\\+|bad-seek-type|bad-seek-type\\?|bl|contents|each-block|each-block-size|each-block-slice|each-line|each-morsel|each-stream-block|each-stream-block-slice|each-stream-line|error-stream|flush|input-stream|input-stream\\?|invalid-read-buffer|invalid-read-buffer\\?|lines|nl|output-stream|output-stream\\?|print|read|read-into|read-partial|read-partial-into|read-until|read1|readln|seek-absolute|seek-absolute\\?|seek-end|seek-end\\?|seek-input|seek-output|seek-relative|seek-relative\\?|stream-bl|stream-contents|stream-contents\\*|stream-copy|stream-copy\\*|stream-element-type|stream-flush|stream-length|stream-lines|stream-nl|stream-print|stream-read|stream-read-into|stream-read-partial|stream-read-partial-into|stream-read-partial-unsafe|stream-read-unsafe|stream-read-until|stream-read1|stream-readln|stream-seek|stream-seekable\\?|stream-tell|stream-write|stream-write1|tell-input|tell-output|with-error>output|with-error-stream|with-error-stream\\*|with-input-output\\+error-streams|with-input-output\\+error-streams\\*|with-input-stream|with-input-stream\\*|with-output>error|with-output-stream|with-output-stream\\*|with-output\\+error-stream|with-output\\+error-stream\\*|with-streams|with-streams\\*|write|write1)(\\s|$)",
|
131
|
+
"name": "keyword.control.io.factor"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"match": "(^|(?<=\\s))(>string|<string>|1string|resize-string|string|string\\?)(\\s|$)",
|
135
|
+
"name": "keyword.control.strings.factor"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"match": "(^|(?<=\\s))(>vector|<vector>|1vector|\\?push|vector|vector\\?)(\\s|$)",
|
139
|
+
"name": "keyword.control.vectors.factor"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"match": "(^|(?<=\\s))(<condition>|<continuation>|<restart>|attempt-all|attempt-all-error|attempt-all-error\\?|callback-error-hook|callcc0|callcc1|cleanup|compute-restarts|condition|condition\\?|continuation|continuation\\?|continue|continue-restart|continue-with|current-continuation|error|error-continuation|error-in-thread|error-thread|ifcc|ignore-errors|in-callback\\?|original-error|recover|restart|restart\\?|restarts|rethrow|rethrow-restarts|return|return-continuation|thread-error-hook|throw-continue|throw-restarts|with-datastack|with-return)(\\s|$)",
|
143
|
+
"name": "keyword.control.continuations.factor"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"begin": "(^|(?<=\\s))(USING:)",
|
147
|
+
"end": "(?<=\\s);(\\s|$)",
|
148
|
+
"name": "keyword.control.using.factor",
|
149
|
+
"patterns": [
|
150
|
+
{
|
151
|
+
"match": "(^|(?<=\\s))[^\\s]+(\\s|$)",
|
152
|
+
"name": "constant.namespace.factor"
|
153
|
+
}
|
154
|
+
]
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"match": "(^|(?<=\\s))(f|t)(\\s|$)",
|
158
|
+
"name": "constant.language.factor"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"match": "(^|(?<=\\s))CHAR:\\s+[^\\s]+(\\s|$)",
|
162
|
+
"name": "constant.character.factor"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"match": "(^|(?<=\\s))[+-]?\\d([\\d,]*\\d)?(\\s|$)",
|
166
|
+
"name": "constant.numeric.integer.factor"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"match": "(^|(?<=\\s))[+-]?(\\d([\\d,]*\\d)?)?\\.\\d([\\d,]*\\d)?([Ee][+-]?\\d([\\d,]*\\d)?)?(\\s|$)",
|
170
|
+
"name": "constant.numeric.float.factor"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"match": "(^|(?<=\\s))(-\\d([\\d,]*\\d)?)?-?\\d([\\d,]*\\d)?/\\d([\\d,]*\\d)?(\\s|$)",
|
174
|
+
"name": "constant.numeric.neg-ratio.factor"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"match": "(^|(?<=\\s))\\+?(\\d([\\d,]*\\d)?\\+?)?\\d([\\d,]*\\d)?/\\d([\\d,]*\\d)?(\\s|$)",
|
178
|
+
"name": "constant.numeric.pos-ratio.factor"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"match": "(^|(?<=\\s))[+-]?0b[01]([01,]*[01])?(\\s|$)",
|
182
|
+
"name": "constant.numeric.binary.factor"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"match": "(^|(?<=\\s))[+-]?0o[0-7]([0-7,]*[0-7])?(\\s|$)",
|
186
|
+
"name": "constant.numeric.octal.factor"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"match": "(^|(?<=\\s))[+-]?0x[0-9a-fA-Fp]([0-9a-fA-F,]*[0-9a-fA-F])?(p[0-9a-fA-Fp]([0-9a-fA-F,]*[0-9a-fA-F])?)?(\\s|$)",
|
190
|
+
"name": "constant.numeric.hex.factor"
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"begin": "\"",
|
194
|
+
"end": "\"",
|
195
|
+
"name": "string.quoted.double.factor",
|
196
|
+
"patterns": [
|
197
|
+
{
|
198
|
+
"include": "#escaped_characters"
|
199
|
+
}
|
200
|
+
]
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"begin": "<\"",
|
204
|
+
"end": "\">",
|
205
|
+
"name": "string.quoted.double.multiline.factor",
|
206
|
+
"patterns": [
|
207
|
+
{
|
208
|
+
"include": "#escaped_characters"
|
209
|
+
}
|
210
|
+
]
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"begin": "(^|(?<=\\s))(STRING:)\\s+(\\S+)",
|
214
|
+
"captures": {
|
215
|
+
"2": {
|
216
|
+
"name": "keyword.colon.factor"
|
217
|
+
},
|
218
|
+
"3": {
|
219
|
+
"name": "entity.name.heredoc.factor"
|
220
|
+
}
|
221
|
+
},
|
222
|
+
"contentName": "string.unquoted.heredoc.factor",
|
223
|
+
"end": "^;$",
|
224
|
+
"name": "definition.word.heredoc.factor"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"match": "inline|foldable",
|
228
|
+
"name": "storage.modifier.factor"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"match": "(^|(?<=\\s))#?!(\\s.*)?$",
|
232
|
+
"name": "comment.line.factor"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"begin": "\\((?=\\s)",
|
236
|
+
"end": "(^|(?<=\\s))\\)",
|
237
|
+
"name": "comment.parens.factor"
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"match": "\\b[^\\s]+:\\s+[^\\s]+(\\s|$)",
|
241
|
+
"name": "keyword.control.postpone.factor"
|
242
|
+
}
|
243
|
+
],
|
244
|
+
"repository": {
|
245
|
+
"escaped_characters": {
|
246
|
+
"patterns": [
|
247
|
+
{
|
248
|
+
"match": "\\\\(\\\\|[abefnrtsv0\"]|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{6})",
|
249
|
+
"name": "constant.character.escape.factor"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"match": "\\\\.",
|
253
|
+
"name": "invalid.illegal.unknown-escape.factor"
|
254
|
+
}
|
255
|
+
]
|
256
|
+
}
|
257
|
+
},
|
258
|
+
"scopeName": "source.factor",
|
259
|
+
"uuid": "3C9C9C2A-314A-475B-A4E4-A68BAAF3F36E"
|
260
|
+
}
|
@@ -0,0 +1,188 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"fan"
|
4
|
+
],
|
5
|
+
"firstLineMatch": "^#!/.*\\b[fan|fansubstitute]\\b",
|
6
|
+
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
7
|
+
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
|
8
|
+
"keyEquivalent": "^~F",
|
9
|
+
"name": "Fan",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"match": "\\b(this)\\b",
|
13
|
+
"name": "support.class.fan"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"match": "\\b(assert)\\b",
|
17
|
+
"name": "support.function.fan"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"match": "\\b(const|using|override|virtual|protected|abstract|internal|public|private|protected|new|static|final|super|is|isnot|for|foreach|in|break|continue|while|do|return|if|else|case|switch|try|catch|finally|throw|native|mixin|default|once|readonly|volatile)\\b",
|
21
|
+
"name": "keyword.control.fan"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"match": "(\\b(Bool|Num|Str(Buf)?|Void|Int|Float|List|Map|This|Obj|Func|Date|Type|Method|Pod|Field|Slot|Uri(Scheme|Space)?|File|Duration|Actor(Pool)?|Enum|Decimal|Depend|Err|Future|Locale|Log(Level|Record)?|MimeType|Month|(In|Out)Stream|Param|Process|Range|Regex|RegexMatcher|Service|TimeZone|Test|Unit|Unsafe|Uuid|Version|Weekday|Zip)\\b\\??)",
|
25
|
+
"name": "storage.type.fan"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"match": "\\b(null|true|false)\\b",
|
29
|
+
"name": "constant.language.fan"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b",
|
33
|
+
"name": "constant.numeric.fan"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"begin": "\"",
|
37
|
+
"beginCaptures": {
|
38
|
+
"0": {
|
39
|
+
"name": "punctuation.definition.string.begin.fan"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"end": "\"",
|
43
|
+
"endCaptures": {
|
44
|
+
"0": {
|
45
|
+
"name": "punctuation.definition.string.end.fan"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"name": "string.quoted.double.fan",
|
49
|
+
"patterns": [
|
50
|
+
{
|
51
|
+
"match": "\\\\.",
|
52
|
+
"name": "constant.character.escape.fan"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"match": "\\$[a-zA-Z_\\{][a-zA-Z_0-9\\}\\.\\(\\)]*",
|
56
|
+
"name": "source.fan.embedded.source.empty"
|
57
|
+
}
|
58
|
+
]
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"begin": "'",
|
62
|
+
"beginCaptures": {
|
63
|
+
"0": {
|
64
|
+
"name": "punctuation.definition.string.begin.fan"
|
65
|
+
}
|
66
|
+
},
|
67
|
+
"end": "'",
|
68
|
+
"endCaptures": {
|
69
|
+
"0": {
|
70
|
+
"name": "punctuation.definition.string.end.fan"
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"name": "string.quoted.single.fan",
|
74
|
+
"patterns": [
|
75
|
+
{
|
76
|
+
"match": "\\\\.",
|
77
|
+
"name": "constant.character.escape.fan"
|
78
|
+
}
|
79
|
+
]
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"begin": "`",
|
83
|
+
"beginCaptures": {
|
84
|
+
"0": {
|
85
|
+
"name": "punctuation.definition.string.begin.fan"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"end": "`",
|
89
|
+
"endCaptures": {
|
90
|
+
"0": {
|
91
|
+
"name": "punctuation.definition.string.end.fan"
|
92
|
+
}
|
93
|
+
},
|
94
|
+
"name": "string.quoted.back-tick.fan",
|
95
|
+
"patterns": [
|
96
|
+
{
|
97
|
+
"match": "\\\\.",
|
98
|
+
"name": "constant.character.escape.fan"
|
99
|
+
}
|
100
|
+
]
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"begin": "/\\*",
|
104
|
+
"captures": {
|
105
|
+
"0": {
|
106
|
+
"name": "punctuation.definition.comment.fan"
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"end": "\\*/",
|
110
|
+
"name": "comment.block.fan"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"captures": {
|
114
|
+
"1": {
|
115
|
+
"name": "punctuation.definition.comment.fan"
|
116
|
+
}
|
117
|
+
},
|
118
|
+
"match": "(//).*$\\n?",
|
119
|
+
"name": "comment.line.double-slash.fan"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"captures": {
|
123
|
+
"1": {
|
124
|
+
"name": "punctuation.definition.comment.fan"
|
125
|
+
}
|
126
|
+
},
|
127
|
+
"match": "(\\*\\*).*$\\n?",
|
128
|
+
"name": "comment.line.double-star.fan"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"captures": {
|
132
|
+
"1": {
|
133
|
+
"name": "punctuation.definition.comment.fan"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"match": "(?<!\\$)(#)(?!\\{).*$\\n?",
|
137
|
+
"name": "comment.line.pound-sign.fan"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"match": "[-><!%&*+=/:]",
|
141
|
+
"name": "keyword.operator.symbolic.fan"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"captures": {
|
145
|
+
"1": {
|
146
|
+
"name": "storage.type.class.fan"
|
147
|
+
},
|
148
|
+
"2": {
|
149
|
+
"name": "entity.name.type.class.fan"
|
150
|
+
},
|
151
|
+
"3": {
|
152
|
+
"name": "storage.modifier.extends.fan"
|
153
|
+
},
|
154
|
+
"4": {
|
155
|
+
"name": "entity.other.inherited-class.fan"
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"match": "\\b(class)\\s+([a-zA-Z_](?:\\w|\\.)*)(?:\\s+(\\:)\\s+([a-zA-Z_](?:\\w|\\.)*))?",
|
159
|
+
"name": "meta.class.fan"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"begin": "(?x)\n\t\t\t\t(?: ^ # begin-of-line\n\t\t\t\t| (?: (?= \\s ) (?<!else) (?<=\\w)\\s+ # or word + space before name\n\t\t\t\t| (?= \\s*[A-Za-z_] ) (?<!&&) (?<=[*&>\\[\\]])\\s* # or type modifier before name\n\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t((?: [A-Za-z_][A-Za-z0-9_]*+ | :: )*+) # actual name\n\t\t\t\t\\s*?(\\() (?= # match \"(\"\n\t\t\t\t(?<fun> [^()]++ | \\( \\g<fun>*+ \\) )*+ # function arguments\n\t\t\t\t\\) # match \")\"\n\t\t\t\t\\s*(\\{|\\n|//|/\\*)) # start bracket or end-of-line\n\t\t\t",
|
163
|
+
"beginCaptures": {
|
164
|
+
"1": {
|
165
|
+
"name": "entity.name.function.fan"
|
166
|
+
},
|
167
|
+
"2": {
|
168
|
+
"name": "punctuation.definition.parameters.fan"
|
169
|
+
}
|
170
|
+
},
|
171
|
+
"comment": "adapted from meta.function.c in the c lang module",
|
172
|
+
"end": "\\)",
|
173
|
+
"endCaptures": {
|
174
|
+
"0": {
|
175
|
+
"name": "punctuation.definition.parameters.fan"
|
176
|
+
}
|
177
|
+
},
|
178
|
+
"name": "meta.method.fan",
|
179
|
+
"patterns": [
|
180
|
+
{
|
181
|
+
"include": "$base"
|
182
|
+
}
|
183
|
+
]
|
184
|
+
}
|
185
|
+
],
|
186
|
+
"scopeName": "source.fan",
|
187
|
+
"uuid": "4EC5A41E-2632-4D6D-A0A1-8CD0B0E0EECB"
|
188
|
+
}
|