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,87 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"nmml"
|
4
|
+
],
|
5
|
+
"foldingStartMarker": "<[^!?/>]+|<!--",
|
6
|
+
"foldingStopMarker": "/>|</[^?>]+|-->",
|
7
|
+
"name": "NME Build File",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"begin": "<!--",
|
11
|
+
"captures": {
|
12
|
+
"0": {
|
13
|
+
"name": "punctuation.definition.comment.nant"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"end": "-->",
|
17
|
+
"name": "comment.block.nant"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"begin": "(</?)([-_a-zA-Z0-9:]+)",
|
21
|
+
"captures": {
|
22
|
+
"1": {
|
23
|
+
"name": "punctuation.definition.tag.nant"
|
24
|
+
},
|
25
|
+
"2": {
|
26
|
+
"name": "entity.name.tag.nant"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"end": "(/?>)",
|
30
|
+
"name": "meta.tag.nant",
|
31
|
+
"patterns": [
|
32
|
+
{
|
33
|
+
"match": " ([a-zA-Z-]+)",
|
34
|
+
"name": "entity.other.attribute-name.nant"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"begin": "\"",
|
38
|
+
"beginCaptures": {
|
39
|
+
"0": {
|
40
|
+
"name": "punctuation.definition.string.begin.nant"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"end": "\"",
|
44
|
+
"endCaptures": {
|
45
|
+
"0": {
|
46
|
+
"name": "punctuation.definition.string.end.nant"
|
47
|
+
}
|
48
|
+
},
|
49
|
+
"name": "string.quoted.double.nant"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"begin": "'",
|
53
|
+
"beginCaptures": {
|
54
|
+
"0": {
|
55
|
+
"name": "punctuation.definition.string.begin.nant"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"end": "'",
|
59
|
+
"endCaptures": {
|
60
|
+
"0": {
|
61
|
+
"name": "punctuation.definition.string.end.nant"
|
62
|
+
}
|
63
|
+
},
|
64
|
+
"name": "string.quoted.single.nant"
|
65
|
+
}
|
66
|
+
]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"captures": {
|
70
|
+
"1": {
|
71
|
+
"name": "punctuation.definition.constant.nant"
|
72
|
+
},
|
73
|
+
"3": {
|
74
|
+
"name": "punctuation.definition.constant.nant"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"match": "(&)([a-zA-Z]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
|
78
|
+
"name": "constant.character.entity.nant"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"match": "&",
|
82
|
+
"name": "invalid.illegal.bad-ampersand.nant"
|
83
|
+
}
|
84
|
+
],
|
85
|
+
"scopeName": "source.nmml",
|
86
|
+
"uuid": "1BA52628-717C-11D9-A948-000D94589AF6"
|
87
|
+
}
|
@@ -0,0 +1,150 @@
|
|
1
|
+
{
|
2
|
+
"comment": "\n\ttodo: - highlight functions\n\t",
|
3
|
+
"fileTypes": [
|
4
|
+
"nsi",
|
5
|
+
"nsh"
|
6
|
+
],
|
7
|
+
"name": "NSIS",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"match": "(\\b|^\\s*)(?i)(\\!include|\\!addincludedir|\\!addplugindir|\\!appendfile|\\!cd|\\!delfile|\\!echo|\\!error|\\!execute|\\!packhdr|\\!finalize|\\!getdllversion|\\!system|\\!tempfile|\\!warning|\\!verbose|\\!define|\\!undef|\\!insertmacro|\\!macro|\\!macroend|\\!makensis|\\!searchparse|\\!searchreplace)\\b",
|
11
|
+
"name": "keyword.compiler.nsis"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"match": "(\\b|^\\s*)(?i)(Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|IntCmp|IntCmpU|IntFmt|IntOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetPluginUnload|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegStr|WriteUninstaller|XPStyle)\\b",
|
15
|
+
"name": "keyword.command.nsis"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"match": "(\\b|^\\s*)(?i)(\\!ifdef|\\!ifndef|\\!if|\\!ifmacrodef|\\!ifmacrondef|\\!else|\\!endif)\\b",
|
19
|
+
"name": "keyword.control.nsis"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"match": "(\\b|^\\s*)(?i)\\w+\\:\\:\\w+",
|
23
|
+
"name": "keyword.plugin.nsis"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"match": "[!<>]?=|<>|<|>",
|
27
|
+
"name": "keyword.operator.comparison.nsis"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"match": "(\\b|^\\s*)(?i)(Function|FunctionEnd|Section|SectionEnd|SectionGroup|SectionGroupEnd|SubSection|SubSectionEnd|PageEx|PageExEnd)\\b",
|
31
|
+
"name": "support.function.nsis"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"match": "(\\b|^\\s*)(?i)(HKCC|HKCR|HKCU|HKDD|HKLM|HKPD|HKU|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|SHCTX)\\b",
|
35
|
+
"name": "support.constant.nsis"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"match": "\\b(true|on)\\b",
|
39
|
+
"name": "constant.language.boolean.true.nsis"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"match": "\\b(false|off)\\b",
|
43
|
+
"name": "constant.language.boolean.false.nsis"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"match": "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b",
|
47
|
+
"name": "constant.numeric.nsis"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"match": "\\${[\\w]+}",
|
51
|
+
"name": "entity.name.function.nsis"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"match": "\\$[\\w]+",
|
55
|
+
"name": "storage.type.function.nsis"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"begin": "`",
|
59
|
+
"beginCaptures": {
|
60
|
+
"0": {
|
61
|
+
"name": "punctuation.definition.string.begin.nsis"
|
62
|
+
}
|
63
|
+
},
|
64
|
+
"end": "`",
|
65
|
+
"endCaptures": {
|
66
|
+
"0": {
|
67
|
+
"name": "punctuation.definition.string.end.nsis"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"name": "string.quoted.back.nsis",
|
71
|
+
"patterns": [
|
72
|
+
{
|
73
|
+
"match": "\\$\\\\.",
|
74
|
+
"name": "constant.character.escape.nsis"
|
75
|
+
}
|
76
|
+
]
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"begin": "\"",
|
80
|
+
"beginCaptures": {
|
81
|
+
"0": {
|
82
|
+
"name": "punctuation.definition.string.begin.nsis"
|
83
|
+
}
|
84
|
+
},
|
85
|
+
"end": "\"",
|
86
|
+
"endCaptures": {
|
87
|
+
"0": {
|
88
|
+
"name": "punctuation.definition.string.end.nsis"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"name": "string.quoted.double.nsis",
|
92
|
+
"patterns": [
|
93
|
+
{
|
94
|
+
"match": "\\$\\\\.",
|
95
|
+
"name": "constant.character.escape.nsis"
|
96
|
+
}
|
97
|
+
]
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"begin": "'",
|
101
|
+
"beginCaptures": {
|
102
|
+
"0": {
|
103
|
+
"name": "punctuation.definition.string.begin.nsis"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"end": "'",
|
107
|
+
"endCaptures": {
|
108
|
+
"0": {
|
109
|
+
"name": "punctuation.definition.string.end.nsis"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"name": "string.quoted.single.nsis",
|
113
|
+
"patterns": [
|
114
|
+
{
|
115
|
+
"match": "\\$\\\\.",
|
116
|
+
"name": "constant.character.escape.nsis"
|
117
|
+
}
|
118
|
+
]
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"captures": {
|
122
|
+
"1": {
|
123
|
+
"name": "punctuation.definition.comment.nsis"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"match": "(;|#).*$\\n?",
|
127
|
+
"name": "comment.line.nsis"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"begin": "/\\*",
|
131
|
+
"captures": {
|
132
|
+
"0": {
|
133
|
+
"name": "punctuation.definition.comment.nsis"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"end": "\\*/",
|
137
|
+
"name": "comment.block.nsis"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"captures": {
|
141
|
+
"match": {
|
142
|
+
"name": "keyword.control.import.nsis"
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"match": "(\\!include|\\!insertmacro)\\b"
|
146
|
+
}
|
147
|
+
],
|
148
|
+
"scopeName": "source.nsis",
|
149
|
+
"uuid": "B6872F8A-D31D-11E0-9572-0800200C9A66"
|
150
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"mm",
|
4
|
+
"M",
|
5
|
+
"h"
|
6
|
+
],
|
7
|
+
"keyEquivalent": "^~O",
|
8
|
+
"name": "Objective-C++",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"include": "source.c++"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"include": "source.objc"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"scopeName": "source.objc++",
|
18
|
+
"uuid": "FDAB1813-6B1C-11D9-BCAC-000D93589AF6"
|
19
|
+
}
|
@@ -0,0 +1,918 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"m",
|
4
|
+
"h"
|
5
|
+
],
|
6
|
+
"keyEquivalent": "^~O",
|
7
|
+
"name": "Objective-C",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"begin": "((@)(interface|protocol))(?!.+;)\\s+([A-Za-z_][A-Za-z0-9_]*)\\s*((:)(?:\\s*)([A-Za-z][A-Za-z0-9]*))?(\\s|\\n)?",
|
11
|
+
"captures": {
|
12
|
+
"1": {
|
13
|
+
"name": "storage.type.objc"
|
14
|
+
},
|
15
|
+
"2": {
|
16
|
+
"name": "punctuation.definition.storage.type.objc"
|
17
|
+
},
|
18
|
+
"4": {
|
19
|
+
"name": "entity.name.type.objc"
|
20
|
+
},
|
21
|
+
"6": {
|
22
|
+
"name": "punctuation.definition.entity.other.inherited-class.objc"
|
23
|
+
},
|
24
|
+
"7": {
|
25
|
+
"name": "entity.other.inherited-class.objc"
|
26
|
+
},
|
27
|
+
"8": {
|
28
|
+
"name": "meta.divider.objc"
|
29
|
+
},
|
30
|
+
"9": {
|
31
|
+
"name": "meta.inherited-class.objc"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"contentName": "meta.scope.interface.objc",
|
35
|
+
"end": "((@)end)\\b",
|
36
|
+
"name": "meta.interface-or-protocol.objc",
|
37
|
+
"patterns": [
|
38
|
+
{
|
39
|
+
"include": "#interface_innards"
|
40
|
+
}
|
41
|
+
]
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"begin": "((@)(implementation))\\s+([A-Za-z_][A-Za-z0-9_]*)\\s*(?::\\s*([A-Za-z][A-Za-z0-9]*))?",
|
45
|
+
"captures": {
|
46
|
+
"1": {
|
47
|
+
"name": "storage.type.objc"
|
48
|
+
},
|
49
|
+
"2": {
|
50
|
+
"name": "punctuation.definition.storage.type.objc"
|
51
|
+
},
|
52
|
+
"4": {
|
53
|
+
"name": "entity.name.type.objc"
|
54
|
+
},
|
55
|
+
"5": {
|
56
|
+
"name": "entity.other.inherited-class.objc"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"contentName": "meta.scope.implementation.objc",
|
60
|
+
"end": "((@)end)\\b",
|
61
|
+
"name": "meta.implementation.objc",
|
62
|
+
"patterns": [
|
63
|
+
{
|
64
|
+
"include": "#implementation_innards"
|
65
|
+
}
|
66
|
+
]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"applyEndPatternLast": true,
|
70
|
+
"begin": "(?=@\")",
|
71
|
+
"end": "(?=\\S)",
|
72
|
+
"patterns": [
|
73
|
+
{
|
74
|
+
"begin": "@?\"",
|
75
|
+
"beginCaptures": {
|
76
|
+
"0": {
|
77
|
+
"name": "punctuation.definition.string.begin.objc"
|
78
|
+
}
|
79
|
+
},
|
80
|
+
"end": "\"",
|
81
|
+
"endCaptures": {
|
82
|
+
"0": {
|
83
|
+
"name": "punctuation.definition.string.end.objc"
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"name": "string.quoted.double.objc",
|
87
|
+
"patterns": [
|
88
|
+
{
|
89
|
+
"include": "source.c#string_escaped_char"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"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((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n \t\t\t\t\t\t[@] # conversion type\n \t\t\t\t\t",
|
93
|
+
"name": "constant.other.placeholder.objc"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"include": "source.c#string_placeholder"
|
97
|
+
}
|
98
|
+
]
|
99
|
+
}
|
100
|
+
]
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"begin": "\\b(id)\\s*(?=<)",
|
104
|
+
"beginCaptures": {
|
105
|
+
"1": {
|
106
|
+
"name": "storage.type.objc"
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"end": "(?<=>)",
|
110
|
+
"name": "meta.id-with-protocol.objc",
|
111
|
+
"patterns": [
|
112
|
+
{
|
113
|
+
"include": "#protocol_list"
|
114
|
+
}
|
115
|
+
]
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"match": "\\b(NS_DURING|NS_HANDLER|NS_ENDHANDLER)\\b",
|
119
|
+
"name": "keyword.control.macro.objc"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"captures": {
|
123
|
+
"1": {
|
124
|
+
"name": "punctuation.definition.keyword.objc"
|
125
|
+
}
|
126
|
+
},
|
127
|
+
"match": "(@)(try|catch|finally|throw)\\b",
|
128
|
+
"name": "keyword.control.exception.objc"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"captures": {
|
132
|
+
"1": {
|
133
|
+
"name": "punctuation.definition.keyword.objc"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"match": "(@)(synchronized)\\b",
|
137
|
+
"name": "keyword.control.synchronize.objc"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"captures": {
|
141
|
+
"1": {
|
142
|
+
"name": "punctuation.definition.keyword.objc"
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"match": "(@)(required|optional)\\b",
|
146
|
+
"name": "keyword.control.protocol-specification.objc"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"captures": {
|
150
|
+
"1": {
|
151
|
+
"name": "punctuation.definition.keyword.objc"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
"match": "(@)(defs|encode)\\b",
|
155
|
+
"name": "keyword.other.objc"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"captures": {
|
159
|
+
"1": {
|
160
|
+
"name": "punctuation.definition.storage.type.objc"
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"match": "(@)(class|protocol)\\b",
|
164
|
+
"name": "storage.type.objc"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"begin": "((@)selector)\\s*(\\()",
|
168
|
+
"beginCaptures": {
|
169
|
+
"1": {
|
170
|
+
"name": "storage.type.objc"
|
171
|
+
},
|
172
|
+
"2": {
|
173
|
+
"name": "punctuation.definition.storage.type.objc"
|
174
|
+
},
|
175
|
+
"3": {
|
176
|
+
"name": "punctuation.definition.storage.type.objc"
|
177
|
+
}
|
178
|
+
},
|
179
|
+
"contentName": "meta.selector.method-name.objc",
|
180
|
+
"end": "(\\))",
|
181
|
+
"endCaptures": {
|
182
|
+
"1": {
|
183
|
+
"name": "punctuation.definition.storage.type.objc"
|
184
|
+
}
|
185
|
+
},
|
186
|
+
"name": "meta.selector.objc",
|
187
|
+
"patterns": [
|
188
|
+
{
|
189
|
+
"captures": {
|
190
|
+
"1": {
|
191
|
+
"name": "punctuation.separator.arguments.objc"
|
192
|
+
}
|
193
|
+
},
|
194
|
+
"match": "\\b(?:[a-zA-Z_:][\\w]*)+",
|
195
|
+
"name": "support.function.any-method.name-of-parameter.objc"
|
196
|
+
}
|
197
|
+
]
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"captures": {
|
201
|
+
"1": {
|
202
|
+
"name": "punctuation.definition.storage.modifier.objc"
|
203
|
+
}
|
204
|
+
},
|
205
|
+
"match": "(@)(synchronized|public|package|private|protected)\\b",
|
206
|
+
"name": "storage.modifier.objc"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"match": "\\b(YES|NO|Nil|nil)\\b",
|
210
|
+
"name": "constant.language.objc"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"include": "source.objc.platform"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"include": "source.c"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"include": "#bracketed_content"
|
220
|
+
}
|
221
|
+
],
|
222
|
+
"repository": {
|
223
|
+
"bracketed_content": {
|
224
|
+
"begin": "\\[",
|
225
|
+
"beginCaptures": {
|
226
|
+
"0": {
|
227
|
+
"name": "punctuation.section.scope.begin.objc"
|
228
|
+
}
|
229
|
+
},
|
230
|
+
"end": "\\]",
|
231
|
+
"endCaptures": {
|
232
|
+
"0": {
|
233
|
+
"name": "punctuation.section.scope.end.objc"
|
234
|
+
}
|
235
|
+
},
|
236
|
+
"name": "meta.bracketed.objc",
|
237
|
+
"patterns": [
|
238
|
+
{
|
239
|
+
"begin": "(?=predicateWithFormat:)(?<=NSPredicate )(predicateWithFormat:)",
|
240
|
+
"beginCaptures": {
|
241
|
+
"1": {
|
242
|
+
"name": "support.function.any-method.objc"
|
243
|
+
},
|
244
|
+
"2": {
|
245
|
+
"name": "punctuation.separator.arguments.objc"
|
246
|
+
}
|
247
|
+
},
|
248
|
+
"end": "(?=\\])",
|
249
|
+
"name": "meta.function-call.predicate.objc",
|
250
|
+
"patterns": [
|
251
|
+
{
|
252
|
+
"captures": {
|
253
|
+
"1": {
|
254
|
+
"name": "punctuation.separator.arguments.objc"
|
255
|
+
}
|
256
|
+
},
|
257
|
+
"match": "\\bargument(Array|s)(:)",
|
258
|
+
"name": "support.function.any-method.name-of-parameter.objc"
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"captures": {
|
262
|
+
"1": {
|
263
|
+
"name": "punctuation.separator.arguments.objc"
|
264
|
+
}
|
265
|
+
},
|
266
|
+
"match": "\\b\\w+(:)",
|
267
|
+
"name": "invalid.illegal.unknown-method.objc"
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"begin": "@\"",
|
271
|
+
"beginCaptures": {
|
272
|
+
"0": {
|
273
|
+
"name": "punctuation.definition.string.begin.objc"
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"end": "\"",
|
277
|
+
"endCaptures": {
|
278
|
+
"0": {
|
279
|
+
"name": "punctuation.definition.string.end.objc"
|
280
|
+
}
|
281
|
+
},
|
282
|
+
"name": "string.quoted.double.objc",
|
283
|
+
"patterns": [
|
284
|
+
{
|
285
|
+
"match": "\\b(AND|OR|NOT|IN)\\b",
|
286
|
+
"name": "keyword.operator.logical.predicate.cocoa"
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"match": "\\b(ALL|ANY|SOME|NONE)\\b",
|
290
|
+
"name": "constant.language.predicate.cocoa"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"match": "\\b(NULL|NIL|SELF|TRUE|YES|FALSE|NO|FIRST|LAST|SIZE)\\b",
|
294
|
+
"name": "constant.language.predicate.cocoa"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"match": "\\b(MATCHES|CONTAINS|BEGINSWITH|ENDSWITH|BETWEEN)\\b",
|
298
|
+
"name": "keyword.operator.comparison.predicate.cocoa"
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"match": "\\bC(ASEINSENSITIVE|I)\\b",
|
302
|
+
"name": "keyword.other.modifier.predicate.cocoa"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"match": "\\b(ANYKEY|SUBQUERY|CAST|TRUEPREDICATE|FALSEPREDICATE)\\b",
|
306
|
+
"name": "keyword.other.predicate.cocoa"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"match": "\\\\(\\\\|[abefnrtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-zA-Z0-9]+)",
|
310
|
+
"name": "constant.character.escape.objc"
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"match": "\\\\.",
|
314
|
+
"name": "invalid.illegal.unknown-escape.objc"
|
315
|
+
}
|
316
|
+
]
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"include": "#special_variables"
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"include": "#c_functions"
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"include": "$base"
|
326
|
+
}
|
327
|
+
]
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"begin": "(?=\\w)(?<=[\\w\\])\"] )(\\w+(?:(:)|(?=\\])))",
|
331
|
+
"beginCaptures": {
|
332
|
+
"1": {
|
333
|
+
"name": "support.function.any-method.objc"
|
334
|
+
},
|
335
|
+
"2": {
|
336
|
+
"name": "punctuation.separator.arguments.objc"
|
337
|
+
}
|
338
|
+
},
|
339
|
+
"end": "(?=\\])",
|
340
|
+
"name": "meta.function-call.objc",
|
341
|
+
"patterns": [
|
342
|
+
{
|
343
|
+
"captures": {
|
344
|
+
"1": {
|
345
|
+
"name": "punctuation.separator.arguments.objc"
|
346
|
+
}
|
347
|
+
},
|
348
|
+
"match": "\\b\\w+(:)",
|
349
|
+
"name": "support.function.any-method.name-of-parameter.objc"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"include": "#special_variables"
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"include": "#c_functions"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"include": "$base"
|
359
|
+
}
|
360
|
+
]
|
361
|
+
},
|
362
|
+
{
|
363
|
+
"include": "#special_variables"
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"include": "#c_functions"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"include": "$self"
|
370
|
+
}
|
371
|
+
]
|
372
|
+
},
|
373
|
+
"c_functions": {
|
374
|
+
"patterns": [
|
375
|
+
{
|
376
|
+
"include": "source.c.platform#functions"
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"captures": {
|
380
|
+
"1": {
|
381
|
+
"name": "punctuation.whitespace.function-call.leading.c"
|
382
|
+
},
|
383
|
+
"2": {
|
384
|
+
"name": "support.function.any-method.c"
|
385
|
+
},
|
386
|
+
"3": {
|
387
|
+
"name": "punctuation.definition.parameters.c"
|
388
|
+
}
|
389
|
+
},
|
390
|
+
"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*(\\()",
|
391
|
+
"name": "meta.function-call.c"
|
392
|
+
}
|
393
|
+
]
|
394
|
+
},
|
395
|
+
"comment": {
|
396
|
+
"patterns": [
|
397
|
+
{
|
398
|
+
"begin": "/\\*",
|
399
|
+
"captures": {
|
400
|
+
"0": {
|
401
|
+
"name": "punctuation.definition.comment.objc"
|
402
|
+
}
|
403
|
+
},
|
404
|
+
"end": "\\*/",
|
405
|
+
"name": "comment.block.objc"
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"begin": "(^[ \\t]+)?(?=//)",
|
409
|
+
"beginCaptures": {
|
410
|
+
"1": {
|
411
|
+
"name": "punctuation.whitespace.comment.leading.objc"
|
412
|
+
}
|
413
|
+
},
|
414
|
+
"end": "(?!\\G)",
|
415
|
+
"patterns": [
|
416
|
+
{
|
417
|
+
"begin": "//",
|
418
|
+
"beginCaptures": {
|
419
|
+
"0": {
|
420
|
+
"name": "punctuation.definition.comment.objc"
|
421
|
+
}
|
422
|
+
},
|
423
|
+
"end": "\\n",
|
424
|
+
"name": "comment.line.double-slash.objc",
|
425
|
+
"patterns": [
|
426
|
+
{
|
427
|
+
"match": "(?>\\\\\\s*\\n)",
|
428
|
+
"name": "punctuation.separator.continuation.objc"
|
429
|
+
}
|
430
|
+
]
|
431
|
+
}
|
432
|
+
]
|
433
|
+
}
|
434
|
+
]
|
435
|
+
},
|
436
|
+
"disabled": {
|
437
|
+
"begin": "^\\s*#\\s*if(n?def)?\\b.*$",
|
438
|
+
"comment": "eat nested preprocessor if(def)s",
|
439
|
+
"end": "^\\s*#\\s*endif\\b.*$",
|
440
|
+
"patterns": [
|
441
|
+
{
|
442
|
+
"include": "#disabled"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"include": "#pragma-mark"
|
446
|
+
}
|
447
|
+
]
|
448
|
+
},
|
449
|
+
"implementation_innards": {
|
450
|
+
"patterns": [
|
451
|
+
{
|
452
|
+
"include": "#preprocessor-rule-enabled-implementation"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"include": "#preprocessor-rule-disabled-implementation"
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"include": "#preprocessor-rule-other-implementation"
|
459
|
+
},
|
460
|
+
{
|
461
|
+
"include": "#property_directive"
|
462
|
+
},
|
463
|
+
{
|
464
|
+
"include": "#special_variables"
|
465
|
+
},
|
466
|
+
{
|
467
|
+
"include": "#method_super"
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"include": "$base"
|
471
|
+
}
|
472
|
+
]
|
473
|
+
},
|
474
|
+
"interface_innards": {
|
475
|
+
"patterns": [
|
476
|
+
{
|
477
|
+
"include": "#preprocessor-rule-enabled-interface"
|
478
|
+
},
|
479
|
+
{
|
480
|
+
"include": "#preprocessor-rule-disabled-interface"
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"include": "#preprocessor-rule-other-interface"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"include": "#properties"
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"include": "#protocol_list"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"include": "#method"
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"include": "$base"
|
496
|
+
}
|
497
|
+
]
|
498
|
+
},
|
499
|
+
"method": {
|
500
|
+
"begin": "^(-|\\+)\\s*",
|
501
|
+
"end": "(?=\\{|#)|;",
|
502
|
+
"name": "meta.function.objc",
|
503
|
+
"patterns": [
|
504
|
+
{
|
505
|
+
"begin": "(\\()",
|
506
|
+
"beginCaptures": {
|
507
|
+
"1": {
|
508
|
+
"name": "punctuation.definition.type.begin.objc"
|
509
|
+
}
|
510
|
+
},
|
511
|
+
"end": "(\\))\\s*(\\w+\\b)",
|
512
|
+
"endCaptures": {
|
513
|
+
"1": {
|
514
|
+
"name": "punctuation.definition.type.end.objc"
|
515
|
+
},
|
516
|
+
"2": {
|
517
|
+
"name": "entity.name.function.objc"
|
518
|
+
}
|
519
|
+
},
|
520
|
+
"name": "meta.return-type.objc",
|
521
|
+
"patterns": [
|
522
|
+
{
|
523
|
+
"include": "#protocol_list"
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"include": "#protocol_type_qualifier"
|
527
|
+
},
|
528
|
+
{
|
529
|
+
"include": "$base"
|
530
|
+
}
|
531
|
+
]
|
532
|
+
},
|
533
|
+
{
|
534
|
+
"match": "\\b\\w+(?=:)",
|
535
|
+
"name": "entity.name.function.name-of-parameter.objc"
|
536
|
+
},
|
537
|
+
{
|
538
|
+
"begin": "((:))\\s*(\\()",
|
539
|
+
"beginCaptures": {
|
540
|
+
"1": {
|
541
|
+
"name": "entity.name.function.name-of-parameter.objc"
|
542
|
+
},
|
543
|
+
"2": {
|
544
|
+
"name": "punctuation.separator.arguments.objc"
|
545
|
+
},
|
546
|
+
"3": {
|
547
|
+
"name": "punctuation.definition.type.begin.objc"
|
548
|
+
}
|
549
|
+
},
|
550
|
+
"end": "(\\))\\s*(\\w+\\b)?",
|
551
|
+
"endCaptures": {
|
552
|
+
"1": {
|
553
|
+
"name": "punctuation.definition.type.end.objc"
|
554
|
+
},
|
555
|
+
"2": {
|
556
|
+
"name": "variable.parameter.function.objc"
|
557
|
+
}
|
558
|
+
},
|
559
|
+
"name": "meta.argument-type.objc",
|
560
|
+
"patterns": [
|
561
|
+
{
|
562
|
+
"include": "#protocol_list"
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"include": "#protocol_type_qualifier"
|
566
|
+
},
|
567
|
+
{
|
568
|
+
"include": "$base"
|
569
|
+
}
|
570
|
+
]
|
571
|
+
},
|
572
|
+
{
|
573
|
+
"include": "#comment"
|
574
|
+
}
|
575
|
+
]
|
576
|
+
},
|
577
|
+
"method_super": {
|
578
|
+
"begin": "^(?=-|\\+)",
|
579
|
+
"end": "(?<=\\})|(?=#)",
|
580
|
+
"name": "meta.function-with-body.objc",
|
581
|
+
"patterns": [
|
582
|
+
{
|
583
|
+
"include": "#method"
|
584
|
+
},
|
585
|
+
{
|
586
|
+
"include": "$base"
|
587
|
+
}
|
588
|
+
]
|
589
|
+
},
|
590
|
+
"pragma-mark": {
|
591
|
+
"captures": {
|
592
|
+
"1": {
|
593
|
+
"name": "meta.preprocessor.c"
|
594
|
+
},
|
595
|
+
"2": {
|
596
|
+
"name": "keyword.control.import.pragma.c"
|
597
|
+
},
|
598
|
+
"3": {
|
599
|
+
"name": "meta.toc-list.pragma-mark.c"
|
600
|
+
}
|
601
|
+
},
|
602
|
+
"match": "^\\s*(#\\s*(pragma\\s+mark)\\s+(.*))",
|
603
|
+
"name": "meta.section"
|
604
|
+
},
|
605
|
+
"preprocessor-rule-disabled-implementation": {
|
606
|
+
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
607
|
+
"captures": {
|
608
|
+
"1": {
|
609
|
+
"name": "meta.preprocessor.c"
|
610
|
+
},
|
611
|
+
"2": {
|
612
|
+
"name": "keyword.control.import.if.c"
|
613
|
+
},
|
614
|
+
"3": {
|
615
|
+
"name": "constant.numeric.preprocessor.c"
|
616
|
+
}
|
617
|
+
},
|
618
|
+
"end": "^\\s*(#\\s*(endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
619
|
+
"patterns": [
|
620
|
+
{
|
621
|
+
"begin": "^\\s*(#\\s*(else)\\b)",
|
622
|
+
"captures": {
|
623
|
+
"1": {
|
624
|
+
"name": "meta.preprocessor.c"
|
625
|
+
},
|
626
|
+
"2": {
|
627
|
+
"name": "keyword.control.import.else.c"
|
628
|
+
}
|
629
|
+
},
|
630
|
+
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
631
|
+
"patterns": [
|
632
|
+
{
|
633
|
+
"include": "#interface_innards"
|
634
|
+
}
|
635
|
+
]
|
636
|
+
},
|
637
|
+
{
|
638
|
+
"begin": "",
|
639
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
640
|
+
"name": "comment.block.preprocessor.if-branch.c",
|
641
|
+
"patterns": [
|
642
|
+
{
|
643
|
+
"include": "#disabled"
|
644
|
+
},
|
645
|
+
{
|
646
|
+
"include": "#pragma-mark"
|
647
|
+
}
|
648
|
+
]
|
649
|
+
}
|
650
|
+
]
|
651
|
+
},
|
652
|
+
"preprocessor-rule-disabled-interface": {
|
653
|
+
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
654
|
+
"captures": {
|
655
|
+
"1": {
|
656
|
+
"name": "meta.preprocessor.c"
|
657
|
+
},
|
658
|
+
"2": {
|
659
|
+
"name": "keyword.control.import.if.c"
|
660
|
+
},
|
661
|
+
"3": {
|
662
|
+
"name": "constant.numeric.preprocessor.c"
|
663
|
+
}
|
664
|
+
},
|
665
|
+
"end": "^\\s*(#\\s*(endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
666
|
+
"patterns": [
|
667
|
+
{
|
668
|
+
"begin": "^\\s*(#\\s*(else)\\b)",
|
669
|
+
"captures": {
|
670
|
+
"1": {
|
671
|
+
"name": "meta.preprocessor.c"
|
672
|
+
},
|
673
|
+
"2": {
|
674
|
+
"name": "keyword.control.import.else.c"
|
675
|
+
}
|
676
|
+
},
|
677
|
+
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
678
|
+
"patterns": [
|
679
|
+
{
|
680
|
+
"include": "#interface_innards"
|
681
|
+
}
|
682
|
+
]
|
683
|
+
},
|
684
|
+
{
|
685
|
+
"begin": "",
|
686
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
687
|
+
"name": "comment.block.preprocessor.if-branch.c",
|
688
|
+
"patterns": [
|
689
|
+
{
|
690
|
+
"include": "#disabled"
|
691
|
+
},
|
692
|
+
{
|
693
|
+
"include": "#pragma-mark"
|
694
|
+
}
|
695
|
+
]
|
696
|
+
}
|
697
|
+
]
|
698
|
+
},
|
699
|
+
"preprocessor-rule-enabled-implementation": {
|
700
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
701
|
+
"captures": {
|
702
|
+
"1": {
|
703
|
+
"name": "meta.preprocessor.c"
|
704
|
+
},
|
705
|
+
"2": {
|
706
|
+
"name": "keyword.control.import.if.c"
|
707
|
+
},
|
708
|
+
"3": {
|
709
|
+
"name": "constant.numeric.preprocessor.c"
|
710
|
+
}
|
711
|
+
},
|
712
|
+
"end": "^\\s*(#\\s*(endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
713
|
+
"patterns": [
|
714
|
+
{
|
715
|
+
"begin": "^\\s*(#\\s*(else)\\b).*",
|
716
|
+
"captures": {
|
717
|
+
"1": {
|
718
|
+
"name": "meta.preprocessor.c"
|
719
|
+
},
|
720
|
+
"2": {
|
721
|
+
"name": "keyword.control.import.else.c"
|
722
|
+
}
|
723
|
+
},
|
724
|
+
"contentName": "comment.block.preprocessor.else-branch.c",
|
725
|
+
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
726
|
+
"patterns": [
|
727
|
+
{
|
728
|
+
"include": "#disabled"
|
729
|
+
},
|
730
|
+
{
|
731
|
+
"include": "#pragma-mark"
|
732
|
+
}
|
733
|
+
]
|
734
|
+
},
|
735
|
+
{
|
736
|
+
"begin": "",
|
737
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
738
|
+
"patterns": [
|
739
|
+
{
|
740
|
+
"include": "#implementation_innards"
|
741
|
+
}
|
742
|
+
]
|
743
|
+
}
|
744
|
+
]
|
745
|
+
},
|
746
|
+
"preprocessor-rule-enabled-interface": {
|
747
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
748
|
+
"captures": {
|
749
|
+
"1": {
|
750
|
+
"name": "meta.preprocessor.c"
|
751
|
+
},
|
752
|
+
"2": {
|
753
|
+
"name": "keyword.control.import.if.c"
|
754
|
+
},
|
755
|
+
"3": {
|
756
|
+
"name": "constant.numeric.preprocessor.c"
|
757
|
+
}
|
758
|
+
},
|
759
|
+
"end": "^\\s*(#\\s*(endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
760
|
+
"patterns": [
|
761
|
+
{
|
762
|
+
"begin": "^\\s*(#\\s*(else)\\b).*",
|
763
|
+
"captures": {
|
764
|
+
"1": {
|
765
|
+
"name": "meta.preprocessor.c"
|
766
|
+
},
|
767
|
+
"2": {
|
768
|
+
"name": "keyword.control.import.else.c"
|
769
|
+
}
|
770
|
+
},
|
771
|
+
"contentName": "comment.block.preprocessor.else-branch.c",
|
772
|
+
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
773
|
+
"patterns": [
|
774
|
+
{
|
775
|
+
"include": "#disabled"
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"include": "#pragma-mark"
|
779
|
+
}
|
780
|
+
]
|
781
|
+
},
|
782
|
+
{
|
783
|
+
"begin": "",
|
784
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
785
|
+
"patterns": [
|
786
|
+
{
|
787
|
+
"include": "#interface_innards"
|
788
|
+
}
|
789
|
+
]
|
790
|
+
}
|
791
|
+
]
|
792
|
+
},
|
793
|
+
"preprocessor-rule-other-implementation": {
|
794
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
795
|
+
"captures": {
|
796
|
+
"1": {
|
797
|
+
"name": "meta.preprocessor.c"
|
798
|
+
},
|
799
|
+
"2": {
|
800
|
+
"name": "keyword.control.import.c"
|
801
|
+
}
|
802
|
+
},
|
803
|
+
"end": "^\\s*(#\\s*(endif)\\b).*?(?:(?=(?://|/\\*))|$)",
|
804
|
+
"patterns": [
|
805
|
+
{
|
806
|
+
"include": "#implementation_innards"
|
807
|
+
}
|
808
|
+
]
|
809
|
+
},
|
810
|
+
"preprocessor-rule-other-interface": {
|
811
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
812
|
+
"captures": {
|
813
|
+
"1": {
|
814
|
+
"name": "meta.preprocessor.c"
|
815
|
+
},
|
816
|
+
"2": {
|
817
|
+
"name": "keyword.control.import.c"
|
818
|
+
}
|
819
|
+
},
|
820
|
+
"end": "^\\s*(#\\s*(endif)\\b).*?(?:(?=(?://|/\\*))|$)",
|
821
|
+
"patterns": [
|
822
|
+
{
|
823
|
+
"include": "#interface_innards"
|
824
|
+
}
|
825
|
+
]
|
826
|
+
},
|
827
|
+
"properties": {
|
828
|
+
"patterns": [
|
829
|
+
{
|
830
|
+
"begin": "((@)property)\\s*(\\()",
|
831
|
+
"beginCaptures": {
|
832
|
+
"1": {
|
833
|
+
"name": "keyword.other.property.objc"
|
834
|
+
},
|
835
|
+
"2": {
|
836
|
+
"name": "punctuation.definition.keyword.objc"
|
837
|
+
},
|
838
|
+
"3": {
|
839
|
+
"name": "punctuation.section.scope.begin.objc"
|
840
|
+
}
|
841
|
+
},
|
842
|
+
"end": "(\\))",
|
843
|
+
"endCaptures": {
|
844
|
+
"1": {
|
845
|
+
"name": "punctuation.section.scope.end.objc"
|
846
|
+
}
|
847
|
+
},
|
848
|
+
"name": "meta.property-with-attributes.objc",
|
849
|
+
"patterns": [
|
850
|
+
{
|
851
|
+
"match": "\\b(getter|setter|readonly|readwrite|assign|retain|copy|atomic|nonatomic|strong|weak)\\b",
|
852
|
+
"name": "keyword.other.property.attribute"
|
853
|
+
}
|
854
|
+
]
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"captures": {
|
858
|
+
"1": {
|
859
|
+
"name": "keyword.other.property.objc"
|
860
|
+
},
|
861
|
+
"2": {
|
862
|
+
"name": "punctuation.definition.keyword.objc"
|
863
|
+
}
|
864
|
+
},
|
865
|
+
"match": "((@)property)\\b",
|
866
|
+
"name": "meta.property.objc"
|
867
|
+
}
|
868
|
+
]
|
869
|
+
},
|
870
|
+
"property_directive": {
|
871
|
+
"captures": {
|
872
|
+
"1": {
|
873
|
+
"name": "punctuation.definition.keyword.objc"
|
874
|
+
}
|
875
|
+
},
|
876
|
+
"match": "(@)(dynamic|synthesize)\\b",
|
877
|
+
"name": "keyword.other.property.directive.objc"
|
878
|
+
},
|
879
|
+
"protocol_list": {
|
880
|
+
"begin": "(<)",
|
881
|
+
"beginCaptures": {
|
882
|
+
"1": {
|
883
|
+
"name": "punctuation.section.scope.begin.objc"
|
884
|
+
}
|
885
|
+
},
|
886
|
+
"end": "(>)",
|
887
|
+
"endCaptures": {
|
888
|
+
"1": {
|
889
|
+
"name": "punctuation.section.scope.end.objc"
|
890
|
+
}
|
891
|
+
},
|
892
|
+
"name": "meta.protocol-list.objc",
|
893
|
+
"patterns": [
|
894
|
+
{
|
895
|
+
"include": "source.objc.platform#protocols"
|
896
|
+
}
|
897
|
+
]
|
898
|
+
},
|
899
|
+
"protocol_type_qualifier": {
|
900
|
+
"match": "\\b(in|out|inout|oneway|bycopy|byref)\\b",
|
901
|
+
"name": "storage.modifier.protocol.objc"
|
902
|
+
},
|
903
|
+
"special_variables": {
|
904
|
+
"patterns": [
|
905
|
+
{
|
906
|
+
"match": "\\b_cmd\\b",
|
907
|
+
"name": "variable.other.selector.objc"
|
908
|
+
},
|
909
|
+
{
|
910
|
+
"match": "\\b(self|super)\\b",
|
911
|
+
"name": "variable.language.objc"
|
912
|
+
}
|
913
|
+
]
|
914
|
+
}
|
915
|
+
},
|
916
|
+
"scopeName": "source.objc",
|
917
|
+
"uuid": "F85CC716-6B1C-11D9-9A20-000D93589AF6"
|
918
|
+
}
|