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,224 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"vim"
|
4
|
+
],
|
5
|
+
"foldingStartMarker": "^(if|while|for|fu|function|augroup|aug)",
|
6
|
+
"foldingStopMarker": "(endif|endwhile|endfor|endf|endfunction|augroup\\.END|aug\\.END)$",
|
7
|
+
"name": "VimL",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"include": "#comment"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"include": "#string_quoted_double"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"include": "#string_quoted_single"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"include": "#string_regex"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"include": "#inline_comment"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"include": "#number_int"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"include": "#number_hex"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"include": "#keyword"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"include": "#support_function"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"include": "#support_variable"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"include": "#support_type"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"include": "#function_params"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"include": "#function_definition"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"include": "#function_call"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"include": "#function"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"include": "#variable"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"include": "#expr"
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"repository": {
|
62
|
+
"comment": {
|
63
|
+
"patterns": [
|
64
|
+
{
|
65
|
+
"captures": {
|
66
|
+
"1": {
|
67
|
+
"name": "punctuation.definition.comment.vim"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"match": "^\\s*\".*$",
|
71
|
+
"name": "comment.line.quotes.viml"
|
72
|
+
}
|
73
|
+
]
|
74
|
+
},
|
75
|
+
"expr": {
|
76
|
+
"patterns": [
|
77
|
+
{
|
78
|
+
"match": "(\\|\\||&&|==(\\?|#)?|(!|>|<)=(#|\\?)?|(=|!)~(#|\\?)?|(>|<)(#|\\?)is|isnot|\\.|\\*|\\\\|%)",
|
79
|
+
"name": "storage.function.viml"
|
80
|
+
}
|
81
|
+
]
|
82
|
+
},
|
83
|
+
"function": {
|
84
|
+
"patterns": [
|
85
|
+
{
|
86
|
+
"match": "\\b(fu(n|nction)?|end(f|fu|fun|function)?)\\b",
|
87
|
+
"name": "storage.function.viml"
|
88
|
+
}
|
89
|
+
]
|
90
|
+
},
|
91
|
+
"function_call": {
|
92
|
+
"patterns": [
|
93
|
+
{
|
94
|
+
"match": "(([sgbwtl]|)?:?[0-9a-zA-Z_#]+)(?=\\()",
|
95
|
+
"name": "support.function.any-method"
|
96
|
+
}
|
97
|
+
]
|
98
|
+
},
|
99
|
+
"function_definition": {
|
100
|
+
"begin": "^\\s*(function)\\s*!?\\s+(?=(s:)?[0-9a-zA-Z_#]+\\s*\\()",
|
101
|
+
"beginCaptures": {
|
102
|
+
"1": {
|
103
|
+
"name": "storage.function.viml"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"end": "(\\()",
|
107
|
+
"endCaptures": {
|
108
|
+
"1": {
|
109
|
+
"name": "punctuation.definition.parameters.begin.viml"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"name": "meta.function.viml",
|
113
|
+
"patterns": [
|
114
|
+
{
|
115
|
+
"match": "(s:)?[0-9a-zA-Z_#]+",
|
116
|
+
"name": "entity.name.function.viml"
|
117
|
+
}
|
118
|
+
]
|
119
|
+
},
|
120
|
+
"function_params": {
|
121
|
+
"patterns": [
|
122
|
+
{
|
123
|
+
"match": "-\\w+=",
|
124
|
+
"name": "support.type.viml"
|
125
|
+
}
|
126
|
+
]
|
127
|
+
},
|
128
|
+
"inline_comment": {
|
129
|
+
"patterns": [
|
130
|
+
{
|
131
|
+
"captures": {
|
132
|
+
"1": {
|
133
|
+
"name": "punctuation.definition.comment.vim"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"match": "(?!\\$)(\")(?!\\{).*$\\n?",
|
137
|
+
"name": "comment.line.quotes.viml"
|
138
|
+
}
|
139
|
+
]
|
140
|
+
},
|
141
|
+
"keyword": {
|
142
|
+
"patterns": [
|
143
|
+
{
|
144
|
+
"match": "\\b(if|while|for|return|end(if|for|while)?|au(g|group)|else(if|)?|do|in|:)\\b",
|
145
|
+
"name": "keyword.control.viml"
|
146
|
+
}
|
147
|
+
]
|
148
|
+
},
|
149
|
+
"number_hex": {
|
150
|
+
"patterns": [
|
151
|
+
{
|
152
|
+
"match": "#[0-9a-f]{6}",
|
153
|
+
"name": "constant.numeric.hex"
|
154
|
+
}
|
155
|
+
]
|
156
|
+
},
|
157
|
+
"number_int": {
|
158
|
+
"patterns": [
|
159
|
+
{
|
160
|
+
"match": "-?\\d+",
|
161
|
+
"name": "constant.numeric.integer"
|
162
|
+
}
|
163
|
+
]
|
164
|
+
},
|
165
|
+
"string_quoted_double": {
|
166
|
+
"patterns": [
|
167
|
+
{
|
168
|
+
"match": "\"(\\\\\\\\|\\\\\"|\\n[^\\S\\n]*\\\\|[^\\n\"])*\"",
|
169
|
+
"name": "string.quoted.double.viml"
|
170
|
+
}
|
171
|
+
]
|
172
|
+
},
|
173
|
+
"string_quoted_single": {
|
174
|
+
"patterns": [
|
175
|
+
{
|
176
|
+
"match": "'(''|\\n[^\\S\\n]*\\\\|[^\\n'])*'",
|
177
|
+
"name": "string.quoted.single.viml"
|
178
|
+
}
|
179
|
+
]
|
180
|
+
},
|
181
|
+
"string_regex": {
|
182
|
+
"patterns": [
|
183
|
+
{
|
184
|
+
"match": "/(\\\\\\\\|\\\\/|\\n[^\\S\\n]*\\\\|[^\\n/])*/",
|
185
|
+
"name": "string.regexp.viml"
|
186
|
+
}
|
187
|
+
]
|
188
|
+
},
|
189
|
+
"support_function": {
|
190
|
+
"patterns": [
|
191
|
+
{
|
192
|
+
"match": "\\b(set(local|global)?|let|command|filetype|colorscheme|\\w*map|syn|exe(c|cute)?|ec(ho|)?|au(tocmd|)?)\\b",
|
193
|
+
"name": "support.function.viml"
|
194
|
+
}
|
195
|
+
]
|
196
|
+
},
|
197
|
+
"support_type": {
|
198
|
+
"patterns": [
|
199
|
+
{
|
200
|
+
"match": "<.*?>",
|
201
|
+
"name": "support.type.viml"
|
202
|
+
}
|
203
|
+
]
|
204
|
+
},
|
205
|
+
"support_variable": {
|
206
|
+
"patterns": [
|
207
|
+
{
|
208
|
+
"match": "\\b(am(enu|)?|(hl|inc)?search|[Bb]uf([Nn]ew[Ff]ile|[Rr]ead)?|[Ff]ile[Tt]ype)\\b",
|
209
|
+
"name": "support.variable.viml"
|
210
|
+
}
|
211
|
+
]
|
212
|
+
},
|
213
|
+
"variable": {
|
214
|
+
"patterns": [
|
215
|
+
{
|
216
|
+
"match": "([sSgGbBwWlLaAvV]:|@|$|&(?!&))\\w*",
|
217
|
+
"name": "variable.other.viml"
|
218
|
+
}
|
219
|
+
]
|
220
|
+
}
|
221
|
+
},
|
222
|
+
"scopeName": "source.viml",
|
223
|
+
"uuid": "0555180C-1AF8-4D94-9937-4434C2AE07E5"
|
224
|
+
}
|
@@ -0,0 +1,814 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"idl",
|
4
|
+
"webidl"
|
5
|
+
],
|
6
|
+
"firstLineMatch": "-[*]-( Mode:)? C -[*]-",
|
7
|
+
"foldingStartMarker": "(?x)\n\t\t /\\*\\*(?!\\*)\n\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\t",
|
8
|
+
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}",
|
9
|
+
"keyEquivalent": "^~C",
|
10
|
+
"name": "IDL",
|
11
|
+
"patterns": [
|
12
|
+
{
|
13
|
+
"include": "#preprocessor-rule-enabled"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"include": "#preprocessor-rule-disabled"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"include": "#preprocessor-rule-other"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"include": "#comments"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"include": "#modblock"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"begin": "(cpp_quote)\\b\\(",
|
29
|
+
"beginCaptures": {
|
30
|
+
"1": {
|
31
|
+
"name": "keyword.cpp_quote.webidl"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"end": "\\)",
|
35
|
+
"name": "meta.modblock.webidl",
|
36
|
+
"patterns": [
|
37
|
+
{
|
38
|
+
"include": "$base"
|
39
|
+
}
|
40
|
+
]
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"begin": "(SAFEARRAY)\\b\\(",
|
44
|
+
"beginCaptures": {
|
45
|
+
"1": {
|
46
|
+
"name": "storage.type.safearray.webidl"
|
47
|
+
}
|
48
|
+
},
|
49
|
+
"end": "\\)",
|
50
|
+
"name": "meta.safearray.webidl",
|
51
|
+
"patterns": [
|
52
|
+
{
|
53
|
+
"include": "$base"
|
54
|
+
}
|
55
|
+
]
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"match": "\\b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\\b",
|
59
|
+
"name": "keyword.control.webidl"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"match": "\\b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|float|_Imaginary|int|long|short|signed|typedef|union|unsigned|void|VARIANT|BSTR)\\b",
|
63
|
+
"name": "storage.type.webidl"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"match": "\\b(const|extern|register|restrict|static|volatile|inline)\\b",
|
67
|
+
"name": "storage.modifier.webidl"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"comment": "common C constant naming idiom -- kConstantVariable",
|
71
|
+
"match": "\\bk[A-Z]\\w*\\b",
|
72
|
+
"name": "constant.other.variable.mac-classic.webidl"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"match": "\\bg[A-Z]\\w*\\b",
|
76
|
+
"name": "variable.other.readwrite.global.mac-classic.webidl"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"match": "\\bs[A-Z]\\w*\\b",
|
80
|
+
"name": "variable.other.readwrite.static.mac-classic.webidl"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"match": "\\b(NULL|true|false|TRUE|FALSE)\\b",
|
84
|
+
"name": "constant.language.webidl"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"include": "#sizeof"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"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|ll|LL|ull|ULL)?\\b",
|
91
|
+
"name": "constant.numeric.webidl"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"begin": "\"",
|
95
|
+
"beginCaptures": {
|
96
|
+
"0": {
|
97
|
+
"name": "punctuation.definition.string.begin.webidl"
|
98
|
+
}
|
99
|
+
},
|
100
|
+
"end": "\"",
|
101
|
+
"endCaptures": {
|
102
|
+
"0": {
|
103
|
+
"name": "punctuation.definition.string.end.webidl"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"name": "string.quoted.double.webidl",
|
107
|
+
"patterns": [
|
108
|
+
{
|
109
|
+
"include": "#string_escaped_char"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"include": "#string_placeholder"
|
113
|
+
}
|
114
|
+
]
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"begin": "'",
|
118
|
+
"beginCaptures": {
|
119
|
+
"0": {
|
120
|
+
"name": "punctuation.definition.string.begin.webidl"
|
121
|
+
}
|
122
|
+
},
|
123
|
+
"end": "'",
|
124
|
+
"endCaptures": {
|
125
|
+
"0": {
|
126
|
+
"name": "punctuation.definition.string.end.webidl"
|
127
|
+
}
|
128
|
+
},
|
129
|
+
"name": "string.quoted.single.webidl",
|
130
|
+
"patterns": [
|
131
|
+
{
|
132
|
+
"include": "#string_escaped_char"
|
133
|
+
}
|
134
|
+
]
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"begin": "(?x)\n \t\t^\\s*\\#\\s*(define)\\s+ # define\n \t\t((?<id>[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n \t\t(?: # and optionally:\n \t\t (\\() # an open parenthesis\n \t\t (\n \t\t \\s* \\g<id> \\s* # first argument\n \t\t ((,) \\s* \\g<id> \\s*)* # additional arguments\n \t\t (?:\\.\\.\\.)? # varargs ellipsis?\n \t\t )\n \t\t (\\)) # a close parenthesis\n \t\t)?\n \t",
|
138
|
+
"beginCaptures": {
|
139
|
+
"1": {
|
140
|
+
"name": "keyword.control.import.define.webidl"
|
141
|
+
},
|
142
|
+
"2": {
|
143
|
+
"name": "entity.name.function.preprocessor.webidl"
|
144
|
+
},
|
145
|
+
"4": {
|
146
|
+
"name": "punctuation.definition.parameters.webidl"
|
147
|
+
},
|
148
|
+
"5": {
|
149
|
+
"name": "variable.parameter.preprocessor.webidl"
|
150
|
+
},
|
151
|
+
"7": {
|
152
|
+
"name": "punctuation.separator.parameters.webidl"
|
153
|
+
},
|
154
|
+
"8": {
|
155
|
+
"name": "punctuation.definition.parameters.webidl"
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"end": "(?=(?://|/\\*))|$",
|
159
|
+
"name": "meta.preprocessor.macro.webidl",
|
160
|
+
"patterns": [
|
161
|
+
{
|
162
|
+
"match": "(?>\\\\\\s*\\n)",
|
163
|
+
"name": "punctuation.separator.continuation.webidl"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"include": "$base"
|
167
|
+
}
|
168
|
+
]
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"begin": "^\\s*#\\s*(error|warning)\\b",
|
172
|
+
"captures": {
|
173
|
+
"1": {
|
174
|
+
"name": "keyword.control.import.error.webidl"
|
175
|
+
}
|
176
|
+
},
|
177
|
+
"end": "$",
|
178
|
+
"name": "meta.preprocessor.diagnostic.webidl",
|
179
|
+
"patterns": [
|
180
|
+
{
|
181
|
+
"match": "(?>\\\\\\s*\\n)",
|
182
|
+
"name": "punctuation.separator.continuation.webidl"
|
183
|
+
}
|
184
|
+
]
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"begin": "^\\s*#\\s*(include|import)\\b\\s+",
|
188
|
+
"captures": {
|
189
|
+
"1": {
|
190
|
+
"name": "keyword.control.import.include.webidl"
|
191
|
+
}
|
192
|
+
},
|
193
|
+
"end": "(?=(?://|/\\*))|$",
|
194
|
+
"name": "meta.preprocessor.c.include",
|
195
|
+
"patterns": [
|
196
|
+
{
|
197
|
+
"match": "(?>\\\\\\s*\\n)",
|
198
|
+
"name": "punctuation.separator.continuation.webidl"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"begin": "\"",
|
202
|
+
"beginCaptures": {
|
203
|
+
"0": {
|
204
|
+
"name": "punctuation.definition.string.begin.webidl"
|
205
|
+
}
|
206
|
+
},
|
207
|
+
"end": "\"",
|
208
|
+
"endCaptures": {
|
209
|
+
"0": {
|
210
|
+
"name": "punctuation.definition.string.end.webidl"
|
211
|
+
}
|
212
|
+
},
|
213
|
+
"name": "string.quoted.double.include.webidl"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"begin": "<",
|
217
|
+
"beginCaptures": {
|
218
|
+
"0": {
|
219
|
+
"name": "punctuation.definition.string.begin.webidl"
|
220
|
+
}
|
221
|
+
},
|
222
|
+
"end": ">",
|
223
|
+
"endCaptures": {
|
224
|
+
"0": {
|
225
|
+
"name": "punctuation.definition.string.end.webidl"
|
226
|
+
}
|
227
|
+
},
|
228
|
+
"name": "string.quoted.other.lt-gt.include.webidl"
|
229
|
+
}
|
230
|
+
]
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"include": "#pragma-mark"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"begin": "^\\s*#\\s*(define|defined|elif|else|if|ifdef|ifndef|line|pragma|undef)\\b",
|
237
|
+
"captures": {
|
238
|
+
"1": {
|
239
|
+
"name": "keyword.control.import.webidl"
|
240
|
+
}
|
241
|
+
},
|
242
|
+
"end": "(?=(?://|/\\*))|$",
|
243
|
+
"name": "meta.preprocessor.webidl",
|
244
|
+
"patterns": [
|
245
|
+
{
|
246
|
+
"match": "(?>\\\\\\s*\\n)",
|
247
|
+
"name": "punctuation.separator.continuation.webidl"
|
248
|
+
}
|
249
|
+
]
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"match": "\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\b",
|
253
|
+
"name": "support.type.sys-types.webidl"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"match": "\\b(pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t)\\b",
|
257
|
+
"name": "support.type.pthread.webidl"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"match": "\\b(int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|intmax_t|uintmax_t|uintmax_t)\\b",
|
261
|
+
"name": "support.type.stdint.webidl"
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"match": "\\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\\b",
|
265
|
+
"name": "support.constant.mac-classic.webidl"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"match": "\\b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\\b",
|
269
|
+
"name": "support.type.mac-classic.webidl"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"include": "#block"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"include": "#function"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"begin": "\\b(coclass|dispinterface|library|struct|interface|enum)\\s+([_A-Za-z][_A-Za-z0-9]*\\b)",
|
279
|
+
"beginCaptures": {
|
280
|
+
"1": {
|
281
|
+
"name": "storage.type.webidl"
|
282
|
+
},
|
283
|
+
"2": {
|
284
|
+
"name": "entity.name.type.webidl"
|
285
|
+
}
|
286
|
+
},
|
287
|
+
"end": "([_A-Za-z][_A-Za-z0-9]*\\b)? (?<=\\})|(?=(;|,|\\(|\\)|>|\\[|\\]))",
|
288
|
+
"name": "meta.class-struct-block.webidl",
|
289
|
+
"patterns": [
|
290
|
+
{
|
291
|
+
"include": "#angle_brackets"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"begin": "(\\{)",
|
295
|
+
"beginCaptures": {
|
296
|
+
"1": {
|
297
|
+
"name": "punctuation.definition.scope.webidl"
|
298
|
+
}
|
299
|
+
},
|
300
|
+
"end": "(\\})(\\s*\\n)?",
|
301
|
+
"endCaptures": {
|
302
|
+
"1": {
|
303
|
+
"name": "punctuation.definition.invalid.webidl"
|
304
|
+
},
|
305
|
+
"2": {
|
306
|
+
"name": "invalid.illegal.you-forgot-semicolon.webidl"
|
307
|
+
}
|
308
|
+
},
|
309
|
+
"patterns": [
|
310
|
+
{
|
311
|
+
"include": "#function"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"include": "#modblock"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"include": "#special_block"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"include": "#constructor"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"include": "$base"
|
324
|
+
}
|
325
|
+
]
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"include": "$base"
|
329
|
+
}
|
330
|
+
]
|
331
|
+
}
|
332
|
+
],
|
333
|
+
"repository": {
|
334
|
+
"access": {
|
335
|
+
"match": "\\.[a-zA-Z_][a-zA-Z_0-9]*\\b(?!\\s*\\()",
|
336
|
+
"name": "variable.other.dot-access.webidl"
|
337
|
+
},
|
338
|
+
"block": {
|
339
|
+
"begin": "\\{",
|
340
|
+
"end": "\\}",
|
341
|
+
"name": "meta.block.webidl",
|
342
|
+
"patterns": [
|
343
|
+
{
|
344
|
+
"include": "#block_innards"
|
345
|
+
}
|
346
|
+
]
|
347
|
+
},
|
348
|
+
"function": {
|
349
|
+
"begin": "(?x)\n\t \t\t(?: ^ # begin-of-line\n\t \t\t |\n\t \t\t (?: (?= \\s ) (?<!else|new|return) (?<=\\w) # or word + space before name\n\t \t\t | (?= \\s*[A-Za-z_] ) (?<!&&) (?<=[*&>]) # or type modifier before name\n\t \t\t )\n\t \t\t)\n\t \t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()\n\t \t\t(\n\t \t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t \t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n\t \t\t)\n\t \t\t \\s*(?=\\()",
|
350
|
+
"beginCaptures": {
|
351
|
+
"1": {
|
352
|
+
"name": "punctuation.whitespace.function.leading.webidl"
|
353
|
+
},
|
354
|
+
"3": {
|
355
|
+
"name": "entity.name.function.webidl"
|
356
|
+
},
|
357
|
+
"4": {
|
358
|
+
"name": "punctuation.definition.parameters.webidl"
|
359
|
+
}
|
360
|
+
},
|
361
|
+
"end": "(?<=\\})|(?=#)|(;)",
|
362
|
+
"name": "meta.function.webidl",
|
363
|
+
"patterns": [
|
364
|
+
{
|
365
|
+
"include": "#comments"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"include": "#modblock"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"include": "#parens"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"match": "\\b(const|override)\\b",
|
375
|
+
"name": "storage.modifier.webidl"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"include": "#block"
|
379
|
+
}
|
380
|
+
]
|
381
|
+
},
|
382
|
+
"modblock": {
|
383
|
+
"begin": "\\[",
|
384
|
+
"end": "\\]",
|
385
|
+
"name": "meta.modblock.webidl",
|
386
|
+
"patterns": [
|
387
|
+
{
|
388
|
+
"begin": "([A-Za-z_][A-Za-z0-9_]*+)\\b\\(",
|
389
|
+
"beginCaptures": {
|
390
|
+
"1": {
|
391
|
+
"name": "storage.modifier.modblock.key.webidl"
|
392
|
+
}
|
393
|
+
},
|
394
|
+
"end": "\\)",
|
395
|
+
"name": "meta.modblock.webidl",
|
396
|
+
"patterns": [
|
397
|
+
{
|
398
|
+
"include": "$base"
|
399
|
+
}
|
400
|
+
]
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"match": "[A-Za-z_][A-Za-z0-9_]*+",
|
404
|
+
"name": "storage.modifier.modblock.key.webidl"
|
405
|
+
}
|
406
|
+
]
|
407
|
+
},
|
408
|
+
"block_innards": {
|
409
|
+
"patterns": [
|
410
|
+
{
|
411
|
+
"include": "#preprocessor-rule-enabled-block"
|
412
|
+
},
|
413
|
+
{
|
414
|
+
"include": "#preprocessor-rule-disabled-block"
|
415
|
+
},
|
416
|
+
{
|
417
|
+
"include": "#preprocessor-rule-other-block"
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"include": "#sizeof"
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"include": "#access"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"captures": {
|
427
|
+
"1": {
|
428
|
+
"name": "punctuation.whitespace.support.function.leading.webidl"
|
429
|
+
},
|
430
|
+
"2": {
|
431
|
+
"name": "support.function.C99.webidl"
|
432
|
+
}
|
433
|
+
},
|
434
|
+
"match": "(\\s*)\\b(hypot(f|l)?|s(scanf|ystem|nprintf|ca(nf|lb(n(f|l)?|ln(f|l)?))|i(n(h(f|l)?|f|l)?|gn(al|bit))|tr(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(jmp|vbuf|locale|buf)|qrt(f|l)?|w(scanf|printf)|rand)|n(e(arbyint(f|l)?|xt(toward(f|l)?|after(f|l)?))|an(f|l)?)|c(s(in(h(f|l)?|f|l)?|qrt(f|l)?)|cos(h(f)?|f|l)?|imag(f|l)?|t(ime|an(h(f|l)?|f|l)?)|o(s(h(f|l)?|f|l)?|nj(f|l)?|pysign(f|l)?)|p(ow(f|l)?|roj(f|l)?)|e(il(f|l)?|xp(f|l)?)|l(o(ck|g(f|l)?)|earerr)|a(sin(h(f|l)?|f|l)?|cos(h(f|l)?|f|l)?|tan(h(f|l)?|f|l)?|lloc|rg(f|l)?|bs(f|l)?)|real(f|l)?|brt(f|l)?)|t(ime|o(upper|lower)|an(h(f|l)?|f|l)?|runc(f|l)?|gamma(f|l)?|mp(nam|file))|i(s(space|n(ormal|an)|cntrl|inf|digit|u(nordered|pper)|p(unct|rint)|finite|w(space|c(ntrl|type)|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit|blank)|l(ower|ess(equal|greater)?)|al(num|pha)|gr(eater(equal)?|aph)|xdigit|blank)|logb(f|l)?|max(div|abs))|di(v|fftime)|_Exit|unget(c|wc)|p(ow(f|l)?|ut(s|c(har)?|wc(har)?)|error|rintf)|e(rf(c(f|l)?|f|l)?|x(it|p(2(f|l)?|f|l|m1(f|l)?)?))|v(s(scanf|nprintf|canf|printf|w(scanf|printf))|printf|f(scanf|printf|w(scanf|printf))|w(scanf|printf)|a_(start|copy|end|arg))|qsort|f(s(canf|e(tpos|ek))|close|tell|open|dim(f|l)?|p(classify|ut(s|c|w(s|c))|rintf)|e(holdexcept|set(e(nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(aiseexcept|ror)|get(e(nv|xceptflag)|round))|flush|w(scanf|ide|printf|rite)|loor(f|l)?|abs(f|l)?|get(s|c|pos|w(s|c))|re(open|e|ad|xp(f|l)?)|m(in(f|l)?|od(f|l)?|a(f|l|x(f|l)?)?))|l(d(iv|exp(f|l)?)|o(ngjmp|cal(time|econv)|g(1(p(f|l)?|0(f|l)?)|2(f|l)?|f|l|b(f|l)?)?)|abs|l(div|abs|r(int(f|l)?|ound(f|l)?))|r(int(f|l)?|ound(f|l)?)|gamma(f|l)?)|w(scanf|c(s(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?|mbs)|pbrk|ftime|len|r(chr|tombs)|xfrm)|to(b|mb)|rtomb)|printf|mem(set|c(hr|py|mp)|move))|a(s(sert|ctime|in(h(f|l)?|f|l)?)|cos(h(f|l)?|f|l)?|t(o(i|f|l(l)?)|exit|an(h(f|l)?|2(f|l)?|f|l)?)|b(s|ort))|g(et(s|c(har)?|env|wc(har)?)|mtime)|r(int(f|l)?|ound(f|l)?|e(name|alloc|wind|m(ove|quo(f|l)?|ainder(f|l)?))|a(nd|ise))|b(search|towc)|m(odf(f|l)?|em(set|c(hr|py|mp)|move)|ktime|alloc|b(s(init|towcs|rtowcs)|towc|len|r(towc|len))))\\b"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"captures": {
|
438
|
+
"1": {
|
439
|
+
"name": "punctuation.whitespace.function-call.leading.webidl"
|
440
|
+
},
|
441
|
+
"2": {
|
442
|
+
"name": "support.function.any-method.webidl"
|
443
|
+
},
|
444
|
+
"3": {
|
445
|
+
"name": "punctuation.definition.parameters.webidl"
|
446
|
+
}
|
447
|
+
},
|
448
|
+
"match": "(?x) (?: (?= \\s ) (?:(?<=else|new|return) | (?<!\\w)) (\\s+))?\n\t\t\t(\\b\n\t\t\t\t(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n\t\t\t)\n\t\t\t \\s*(\\()",
|
449
|
+
"name": "meta.function-call.webidl"
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"captures": {
|
453
|
+
"1": {
|
454
|
+
"name": "variable.other.webidl"
|
455
|
+
},
|
456
|
+
"2": {
|
457
|
+
"name": "punctuation.definition.parameters.webidl"
|
458
|
+
}
|
459
|
+
},
|
460
|
+
"match": "(?x)\n\t\t\t (?x)\n\t\t\t(?:\n\t\t\t (?: (?= \\s ) (?<!else|new|return) (?<=\\w)\\s+ # or word + space before name\n\t\t\t )\n\t\t\t)\n\t\t\t(\n\t\t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) )? # if it is a C++ operator\n\t\t\t)\n\t\t\t \\s*(\\()",
|
461
|
+
"name": "meta.initialization.webidl"
|
462
|
+
},
|
463
|
+
{
|
464
|
+
"include": "#block"
|
465
|
+
},
|
466
|
+
{
|
467
|
+
"include": "$base"
|
468
|
+
}
|
469
|
+
]
|
470
|
+
},
|
471
|
+
"comments": {
|
472
|
+
"patterns": [
|
473
|
+
{
|
474
|
+
"captures": {
|
475
|
+
"1": {
|
476
|
+
"name": "meta.toc-list.banner.block.webidl"
|
477
|
+
}
|
478
|
+
},
|
479
|
+
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
|
480
|
+
"name": "comment.block.webidl"
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"begin": "/\\*",
|
484
|
+
"captures": {
|
485
|
+
"0": {
|
486
|
+
"name": "punctuation.definition.comment.webidl"
|
487
|
+
}
|
488
|
+
},
|
489
|
+
"end": "\\*/",
|
490
|
+
"name": "comment.block.webidl"
|
491
|
+
},
|
492
|
+
{
|
493
|
+
"match": "\\*/.*\\n",
|
494
|
+
"name": "invalid.illegal.stray-comment-end.webidl"
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"captures": {
|
498
|
+
"1": {
|
499
|
+
"name": "meta.toc-list.banner.line.webidl"
|
500
|
+
}
|
501
|
+
},
|
502
|
+
"match": "^// =(\\s*.*?)\\s*=\\s*$\\n?",
|
503
|
+
"name": "comment.line.banner.webidl"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"begin": "//",
|
507
|
+
"beginCaptures": {
|
508
|
+
"0": {
|
509
|
+
"name": "punctuation.definition.comment.webidl"
|
510
|
+
}
|
511
|
+
},
|
512
|
+
"end": "$\\n?",
|
513
|
+
"name": "comment.line.double-slash.webidl",
|
514
|
+
"patterns": [
|
515
|
+
{
|
516
|
+
"match": "(?>\\\\\\s*\\n)",
|
517
|
+
"name": "punctuation.separator.continuation.webidl"
|
518
|
+
}
|
519
|
+
]
|
520
|
+
}
|
521
|
+
]
|
522
|
+
},
|
523
|
+
"disabled": {
|
524
|
+
"begin": "^\\s*#\\s*if(n?def)?\\b.*$",
|
525
|
+
"comment": "eat nested preprocessor if(def)s",
|
526
|
+
"end": "^\\s*#\\s*endif\\b.*$",
|
527
|
+
"patterns": [
|
528
|
+
{
|
529
|
+
"include": "#disabled"
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"include": "#pragma-mark"
|
533
|
+
}
|
534
|
+
]
|
535
|
+
},
|
536
|
+
"parens": {
|
537
|
+
"begin": "\\(",
|
538
|
+
"end": "\\)",
|
539
|
+
"name": "meta.parens.webidl",
|
540
|
+
"patterns": [
|
541
|
+
{
|
542
|
+
"include": "$base"
|
543
|
+
}
|
544
|
+
]
|
545
|
+
},
|
546
|
+
"pragma-mark": {
|
547
|
+
"captures": {
|
548
|
+
"1": {
|
549
|
+
"name": "meta.preprocessor.webidl"
|
550
|
+
},
|
551
|
+
"2": {
|
552
|
+
"name": "keyword.control.import.pragma.webidl"
|
553
|
+
},
|
554
|
+
"3": {
|
555
|
+
"name": "meta.toc-list.pragma-mark.webidl"
|
556
|
+
}
|
557
|
+
},
|
558
|
+
"match": "^\\s*(#\\s*(pragma\\s+mark)\\s+(.*))",
|
559
|
+
"name": "meta.section"
|
560
|
+
},
|
561
|
+
"preprocessor-rule-disabled": {
|
562
|
+
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
563
|
+
"captures": {
|
564
|
+
"1": {
|
565
|
+
"name": "meta.preprocessor.webidl"
|
566
|
+
},
|
567
|
+
"2": {
|
568
|
+
"name": "keyword.control.import.if.webidl"
|
569
|
+
},
|
570
|
+
"3": {
|
571
|
+
"name": "constant.numeric.preprocessor.webidl"
|
572
|
+
}
|
573
|
+
},
|
574
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
575
|
+
"patterns": [
|
576
|
+
{
|
577
|
+
"begin": "^\\s*(#\\s*(else)\\b)",
|
578
|
+
"captures": {
|
579
|
+
"1": {
|
580
|
+
"name": "meta.preprocessor.webidl"
|
581
|
+
},
|
582
|
+
"2": {
|
583
|
+
"name": "keyword.control.import.else.webidl"
|
584
|
+
}
|
585
|
+
},
|
586
|
+
"end": "(?=^\\s*#\\s*endif\\b.*$)",
|
587
|
+
"patterns": [
|
588
|
+
{
|
589
|
+
"include": "$base"
|
590
|
+
}
|
591
|
+
]
|
592
|
+
},
|
593
|
+
{
|
594
|
+
"begin": "",
|
595
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
|
596
|
+
"name": "comment.block.preprocessor.if-branch",
|
597
|
+
"patterns": [
|
598
|
+
{
|
599
|
+
"include": "#disabled"
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"include": "#pragma-mark"
|
603
|
+
}
|
604
|
+
]
|
605
|
+
}
|
606
|
+
]
|
607
|
+
},
|
608
|
+
"preprocessor-rule-disabled-block": {
|
609
|
+
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
610
|
+
"captures": {
|
611
|
+
"1": {
|
612
|
+
"name": "meta.preprocessor.webidl"
|
613
|
+
},
|
614
|
+
"2": {
|
615
|
+
"name": "keyword.control.import.if.webidl"
|
616
|
+
},
|
617
|
+
"3": {
|
618
|
+
"name": "constant.numeric.preprocessor.webidl"
|
619
|
+
}
|
620
|
+
},
|
621
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
622
|
+
"patterns": [
|
623
|
+
{
|
624
|
+
"begin": "^\\s*(#\\s*(else)\\b)",
|
625
|
+
"captures": {
|
626
|
+
"1": {
|
627
|
+
"name": "meta.preprocessor.webidl"
|
628
|
+
},
|
629
|
+
"2": {
|
630
|
+
"name": "keyword.control.import.else.webidl"
|
631
|
+
}
|
632
|
+
},
|
633
|
+
"end": "(?=^\\s*#\\s*endif\\b.*$)",
|
634
|
+
"patterns": [
|
635
|
+
{
|
636
|
+
"include": "#block_innards"
|
637
|
+
}
|
638
|
+
]
|
639
|
+
},
|
640
|
+
{
|
641
|
+
"begin": "",
|
642
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
|
643
|
+
"name": "comment.block.preprocessor.if-branch.in-block",
|
644
|
+
"patterns": [
|
645
|
+
{
|
646
|
+
"include": "#disabled"
|
647
|
+
},
|
648
|
+
{
|
649
|
+
"include": "#pragma-mark"
|
650
|
+
}
|
651
|
+
]
|
652
|
+
}
|
653
|
+
]
|
654
|
+
},
|
655
|
+
"preprocessor-rule-enabled": {
|
656
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
657
|
+
"captures": {
|
658
|
+
"1": {
|
659
|
+
"name": "meta.preprocessor.webidl"
|
660
|
+
},
|
661
|
+
"2": {
|
662
|
+
"name": "keyword.control.import.if.webidl"
|
663
|
+
},
|
664
|
+
"3": {
|
665
|
+
"name": "constant.numeric.preprocessor.webidl"
|
666
|
+
}
|
667
|
+
},
|
668
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
669
|
+
"patterns": [
|
670
|
+
{
|
671
|
+
"begin": "^\\s*(#\\s*(else)\\b).*",
|
672
|
+
"captures": {
|
673
|
+
"1": {
|
674
|
+
"name": "meta.preprocessor.webidl"
|
675
|
+
},
|
676
|
+
"2": {
|
677
|
+
"name": "keyword.control.import.else.webidl"
|
678
|
+
}
|
679
|
+
},
|
680
|
+
"contentName": "comment.block.preprocessor.else-branch",
|
681
|
+
"end": "(?=^\\s*#\\s*endif\\b.*$)",
|
682
|
+
"patterns": [
|
683
|
+
{
|
684
|
+
"include": "#disabled"
|
685
|
+
},
|
686
|
+
{
|
687
|
+
"include": "#pragma-mark"
|
688
|
+
}
|
689
|
+
]
|
690
|
+
},
|
691
|
+
{
|
692
|
+
"begin": "",
|
693
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
|
694
|
+
"patterns": [
|
695
|
+
{
|
696
|
+
"include": "$base"
|
697
|
+
}
|
698
|
+
]
|
699
|
+
}
|
700
|
+
]
|
701
|
+
},
|
702
|
+
"preprocessor-rule-enabled-block": {
|
703
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
704
|
+
"captures": {
|
705
|
+
"1": {
|
706
|
+
"name": "meta.preprocessor.webidl"
|
707
|
+
},
|
708
|
+
"2": {
|
709
|
+
"name": "keyword.control.import.if.webidl"
|
710
|
+
},
|
711
|
+
"3": {
|
712
|
+
"name": "constant.numeric.preprocessor.webidl"
|
713
|
+
}
|
714
|
+
},
|
715
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
716
|
+
"patterns": [
|
717
|
+
{
|
718
|
+
"begin": "^\\s*(#\\s*(else)\\b).*",
|
719
|
+
"captures": {
|
720
|
+
"1": {
|
721
|
+
"name": "meta.preprocessor.webidl"
|
722
|
+
},
|
723
|
+
"2": {
|
724
|
+
"name": "keyword.control.import.else.webidl"
|
725
|
+
}
|
726
|
+
},
|
727
|
+
"contentName": "comment.block.preprocessor.else-branch.in-block",
|
728
|
+
"end": "(?=^\\s*#\\s*endif\\b.*$)",
|
729
|
+
"patterns": [
|
730
|
+
{
|
731
|
+
"include": "#disabled"
|
732
|
+
},
|
733
|
+
{
|
734
|
+
"include": "#pragma-mark"
|
735
|
+
}
|
736
|
+
]
|
737
|
+
},
|
738
|
+
{
|
739
|
+
"begin": "",
|
740
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
|
741
|
+
"patterns": [
|
742
|
+
{
|
743
|
+
"include": "#block_innards"
|
744
|
+
}
|
745
|
+
]
|
746
|
+
}
|
747
|
+
]
|
748
|
+
},
|
749
|
+
"preprocessor-rule-other": {
|
750
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
751
|
+
"captures": {
|
752
|
+
"1": {
|
753
|
+
"name": "meta.preprocessor.webidl"
|
754
|
+
},
|
755
|
+
"2": {
|
756
|
+
"name": "keyword.control.import.webidl"
|
757
|
+
}
|
758
|
+
},
|
759
|
+
"end": "^\\s*(#\\s*(endif)\\b).*$",
|
760
|
+
"patterns": [
|
761
|
+
{
|
762
|
+
"include": "$base"
|
763
|
+
}
|
764
|
+
]
|
765
|
+
},
|
766
|
+
"preprocessor-rule-other-block": {
|
767
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
768
|
+
"captures": {
|
769
|
+
"1": {
|
770
|
+
"name": "meta.preprocessor.webidl"
|
771
|
+
},
|
772
|
+
"2": {
|
773
|
+
"name": "keyword.control.import.webidl"
|
774
|
+
}
|
775
|
+
},
|
776
|
+
"end": "^\\s*(#\\s*(endif)\\b).*$",
|
777
|
+
"patterns": [
|
778
|
+
{
|
779
|
+
"include": "#block_innards"
|
780
|
+
}
|
781
|
+
]
|
782
|
+
},
|
783
|
+
"sizeof": {
|
784
|
+
"match": "\\b(sizeof)\\b",
|
785
|
+
"name": "keyword.operator.sizeof.webidl"
|
786
|
+
},
|
787
|
+
"string_escaped_char": {
|
788
|
+
"patterns": [
|
789
|
+
{
|
790
|
+
"match": "\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8})",
|
791
|
+
"name": "constant.character.escape.webidl"
|
792
|
+
},
|
793
|
+
{
|
794
|
+
"match": "\\\\.",
|
795
|
+
"name": "invalid.illegal.unknown-escape.webidl"
|
796
|
+
}
|
797
|
+
]
|
798
|
+
},
|
799
|
+
"string_placeholder": {
|
800
|
+
"patterns": [
|
801
|
+
{
|
802
|
+
"match": "(?x)%\n \t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n \t\t\t\t\t\t[#0\\- +']* # flags\n \t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n \t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n \t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n \t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n \t\t\t\t\t",
|
803
|
+
"name": "constant.other.placeholder.webidl"
|
804
|
+
},
|
805
|
+
{
|
806
|
+
"match": "%",
|
807
|
+
"name": "invalid.illegal.placeholder.webidl"
|
808
|
+
}
|
809
|
+
]
|
810
|
+
}
|
811
|
+
},
|
812
|
+
"scopeName": "source.webidl",
|
813
|
+
"uuid": "25066DC2-6B1D-11D9-9D5B-000D93589AF6"
|
814
|
+
}
|