github-linguist 5.3.3 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +5 -2
- data/ext/linguist/linguist.c +18 -7
- data/grammars/annotation.liquidhaskell.haskell.json +969 -862
- data/grammars/config.xcompose.json +22 -25
- data/grammars/file.lasso.json +296 -309
- data/grammars/hint.haskell.json +867 -766
- data/grammars/hint.message.haskell.json +867 -766
- data/grammars/hint.type.haskell.json +867 -766
- data/grammars/objdump.x86asm.json +20 -24
- data/grammars/source.Kotlin.json +220 -225
- data/grammars/source.LS.json +36 -55
- data/grammars/source.MCPOST.json +24 -38
- data/grammars/source.MOD.json +26 -41
- data/grammars/source.SASLog.json +9 -16
- data/grammars/source.abap.json +48 -56
- data/grammars/source.abl.json +8 -14
- data/grammars/source.abnf.json +88 -98
- data/grammars/source.actionscript.3.json +398 -429
- data/grammars/source.acucobol.json +5 -8
- data/grammars/source.ada.json +46 -53
- data/grammars/source.afm.json +548 -554
- data/grammars/source.agc.json +34 -37
- data/grammars/source.agda.json +79 -91
- data/grammars/source.ahk.json +62 -66
- data/grammars/source.alloy.json +16 -20
- data/grammars/source.ampl.json +41 -47
- data/grammars/source.angelscript.json +71 -80
- data/grammars/source.antlr.json +131 -136
- data/grammars/source.apache-config.json +93 -99
- data/grammars/source.apache-config.mod_perl.json +19 -24
- data/grammars/source.apl.json +1038 -1029
- data/grammars/source.applescript.json +501 -523
- data/grammars/source.apt.json +9 -16
- data/grammars/source.asn.json +27 -31
- data/grammars/source.asp.json +61 -67
- data/grammars/source.aspectj.json +385 -391
- data/grammars/source.assembly.json +49 -55
- data/grammars/source.ats.json +45 -121
- data/grammars/source.autoit.json +64 -69
- data/grammars/source.awk.json +172 -176
- data/grammars/source.ballerina.json +48 -395
- data/grammars/source.batchfile.json +269 -269
- data/grammars/source.befunge.json +17 -21
- data/grammars/source.bf.json +5 -11
- data/grammars/source.bison.json +10 -14
- data/grammars/source.blitzmax.json +300 -305
- data/grammars/source.boo.json +189 -193
- data/grammars/source.brightauthorproject.json +8 -13
- data/grammars/source.brightscript.json +37 -47
- data/grammars/source.bro.json +134 -140
- data/grammars/source.bsl.json +152 -193
- data/grammars/source.bsv.json +96 -102
- data/grammars/source.c++.json +176 -193
- data/grammars/source.c++.qt.json +13 -21
- data/grammars/source.c.ec.json +15 -21
- data/grammars/source.c.json +237 -251
- data/grammars/source.c.platform.json +153 -159
- data/grammars/source.c2hs.json +3 -6
- data/grammars/source.cabal.json +17 -20
- data/grammars/source.cache.cmake.json +18 -23
- data/grammars/source.cake.json +4 -7
- data/grammars/source.camlp4.ocaml.json +24 -27
- data/grammars/source.capnp.json +33 -38
- data/grammars/source.ceylon.json +44 -50
- data/grammars/source.cfscript.cfc.json +78 -86
- data/grammars/source.cfscript.json +513 -520
- data/grammars/source.changelogs.rpm-spec.json +8 -16
- data/grammars/source.chapel.json +109 -87
- data/grammars/source.cirru.json +25 -30
- data/grammars/source.clarion.json +41 -54
- data/grammars/source.clean.json +90 -95
- data/grammars/source.click.json +25 -28
- data/grammars/source.clips.json +10 -23
- data/grammars/source.clojure.json +151 -168
- data/grammars/source.cm.json +14 -19
- data/grammars/source.cmake.json +53 -61
- data/grammars/source.cobol.json +165 -180
- data/grammars/source.coffee.json +454 -462
- data/grammars/source.cool.json +36 -43
- data/grammars/source.coq.json +17 -21
- data/grammars/source.crystal.json +889 -983
- data/grammars/source.cs.json +739 -740
- data/grammars/source.csound-document.json +69 -73
- data/grammars/source.csound-score.json +52 -55
- data/grammars/source.csound.json +167 -171
- data/grammars/source.css.json +683 -688
- data/grammars/source.css.less.json +211 -511
- data/grammars/source.css.mss.json +94 -101
- data/grammars/source.css.postcss.sugarss.json +260 -0
- data/grammars/source.csx.json +4 -7
- data/grammars/source.cuda-c++.json +47 -81
- data/grammars/source.cwl.json +103 -0
- data/grammars/source.cython.json +536 -582
- data/grammars/source.d.json +243 -252
- data/grammars/source.dart.json +161 -166
- data/grammars/source.data-weave.json +901 -905
- data/grammars/source.desktop.json +29 -33
- data/grammars/source.diff.json +43 -52
- data/grammars/source.disasm.json +15 -16
- data/grammars/source.ditroff.desc.json +73 -84
- data/grammars/source.ditroff.json +60 -61
- data/grammars/source.dm.json +202 -213
- data/grammars/source.dmf.json +44 -47
- data/grammars/source.dockerfile.json +29 -34
- data/grammars/source.dot.json +46 -55
- data/grammars/source.dylan.json +63 -68
- data/grammars/source.ebnf.json +55 -62
- data/grammars/source.eiffel.json +57 -62
- data/grammars/source.elixir.json +321 -366
- data/grammars/source.emacs.lisp.json +458 -249
- data/grammars/source.erazor.json +49 -57
- data/grammars/source.erlang.json +508 -515
- data/grammars/source.essl.json +17 -30
- data/grammars/source.factor.json +85 -91
- data/grammars/source.fan.json +92 -96
- data/grammars/source.fancy.json +93 -118
- data/grammars/source.fish.json +74 -98
- data/grammars/source.fontforge.json +142 -146
- data/grammars/source.forth.json +42 -57
- data/grammars/source.fortran.json +193 -231
- data/grammars/source.fortran.modern.json +77 -103
- data/grammars/source.fsharp.fsi.json +1 -6
- data/grammars/source.fsharp.fsl.json +1 -6
- data/grammars/source.fsharp.fsx.json +1 -6
- data/grammars/source.fsharp.json +148 -153
- data/grammars/source.gap.json +60 -70
- data/grammars/source.gcode.json +9 -16
- data/grammars/source.gdb.json +63 -79
- data/grammars/source.gdb.session.json +27 -28
- data/grammars/source.gdbregs.json +7 -8
- data/grammars/source.gdscript.json +92 -96
- data/grammars/source.gerber.json +38 -56
- data/grammars/source.gfm.json +447 -462
- data/grammars/source.glsl.json +58 -83
- data/grammars/source.gn.json +188 -193
- data/grammars/source.gnuplot.json +104 -120
- data/grammars/source.go.json +169 -181
- data/grammars/source.golo.json +82 -87
- data/grammars/source.gosu.2.json +58 -68
- data/grammars/source.grace.json +266 -270
- data/grammars/source.graphql.json +586 -596
- data/grammars/source.groovy.gradle.json +18 -22
- data/grammars/source.groovy.json +422 -433
- data/grammars/source.harbour.json +129 -173
- data/grammars/source.haskell.json +871 -772
- data/grammars/source.haxe.2.json +402 -413
- data/grammars/source.hlsl.json +6 -16
- data/grammars/source.hsc2hs.json +1 -4
- data/grammars/source.hsig.json +871 -770
- data/grammars/source.hss.1.json +122 -144
- data/grammars/source.httpspec.json +119 -123
- data/grammars/source.hxml.json +8 -15
- data/grammars/source.ideal.json +125 -125
- data/grammars/source.idl-dlm.json +25 -32
- data/grammars/source.idl.json +59 -80
- data/grammars/source.idris.json +171 -185
- data/grammars/source.inform7.json +117 -121
- data/grammars/source.ini.json +37 -43
- data/grammars/source.io.json +65 -73
- data/grammars/source.ioke.json +72 -78
- data/grammars/source.isabelle.root.json +26 -30
- data/grammars/source.isabelle.theory.json +46 -50
- data/grammars/source.j.json +18 -21
- data/grammars/source.jasmin.json +45 -50
- data/grammars/source.java-properties.json +31 -41
- data/grammars/source.java.json +333 -342
- data/grammars/source.jcl.json +15 -18
- data/grammars/source.jflex.json +166 -172
- data/grammars/source.jison.json +331 -334
- data/grammars/source.jisonlex-injection.json +1 -2
- data/grammars/source.jisonlex.json +148 -151
- data/grammars/source.jolie.json +37 -43
- data/grammars/source.jq.json +80 -87
- data/grammars/source.js.json +798 -818
- data/grammars/source.js.jsx.json +2115 -2225
- data/grammars/source.js.objj.json +167 -172
- data/grammars/source.js.regexp.json +50 -50
- data/grammars/source.js.regexp.replacement.json +7 -7
- data/grammars/source.jsdoc.json +94 -94
- data/grammars/source.json.json +61 -71
- data/grammars/source.julia.console.json +5 -6
- data/grammars/source.julia.json +237 -234
- data/grammars/source.lean.json +55 -67
- data/grammars/source.lid.json +6 -10
- data/grammars/source.lilypond.json +181 -195
- data/grammars/source.lisp.json +40 -50
- data/grammars/source.litcoffee.json +169 -183
- data/grammars/source.livescript.json +207 -220
- data/grammars/source.llvm.json +28 -38
- data/grammars/source.logos.json +7 -14
- data/grammars/source.logtalk.json +136 -141
- data/grammars/source.loomscript.json +77 -83
- data/grammars/source.lsl.json +90 -106
- data/grammars/source.lua.json +100 -109
- data/grammars/source.makefile.json +181 -188
- data/grammars/source.makegen.json +3 -7
- data/grammars/source.mask.json +260 -265
- data/grammars/source.mata.json +38 -46
- data/grammars/source.mathematica.json +155 -167
- data/grammars/source.matlab.json +407 -684
- data/grammars/source.maxscript.json +293 -281
- data/grammars/source.mercury.json +179 -184
- data/grammars/source.meson.json +52 -58
- data/grammars/source.meta-info.json +64 -74
- data/grammars/source.ml.json +107 -113
- data/grammars/source.modelica.json +51 -59
- data/grammars/source.modula2.json +33 -42
- data/grammars/source.monkey.json +234 -241
- data/grammars/source.moonscript.json +51 -56
- data/grammars/source.mql5.json +74 -101
- data/grammars/source.mupad.json +30 -72
- data/grammars/source.ncl.json +1 -14
- data/grammars/source.ne.json +39 -42
- data/grammars/source.nemerle.json +58 -63
- data/grammars/source.nesc.json +9 -15
- data/grammars/source.netlinx.erb.json +13 -25
- data/grammars/source.netlinx.json +231 -292
- data/grammars/source.nextflow-groovy.json +1360 -0
- data/grammars/source.nextflow.json +74 -0
- data/grammars/source.nginx.json +274 -287
- data/grammars/source.nim.json +442 -483
- data/grammars/source.nim_filter.json +6 -26
- data/grammars/source.nimcfg.json +38 -51
- data/grammars/source.ninja.json +64 -70
- data/grammars/source.nit.json +60 -64
- data/grammars/source.nix.json +269 -273
- data/grammars/source.nmml.json +31 -37
- data/grammars/source.nsis.json +66 -72
- data/grammars/source.nu.json +129 -139
- data/grammars/source.nut.json +129 -133
- data/grammars/source.objc++.json +3 -10
- data/grammars/source.objc.json +303 -314
- data/grammars/source.objc.platform.json +145 -151
- data/grammars/source.ocaml.json +506 -514
- data/grammars/source.ocamllex.json +108 -115
- data/grammars/source.ocamlyacc.json +116 -123
- data/grammars/source.ooc.json +148 -155
- data/grammars/source.opa.json +39 -49
- data/grammars/source.opal.json +84 -89
- data/grammars/source.opalsysdefs.json +9 -13
- data/grammars/source.opencobol.json +22 -25
- data/grammars/source.opentype.json +148 -152
- data/grammars/source.ox.json +36 -44
- data/grammars/source.oz.json +31 -38
- data/grammars/source.p4.json +49 -59
- data/grammars/source.pan.json +273 -278
- data/grammars/source.papyrus.skyrim.json +705 -781
- data/grammars/source.parrot.pir.json +59 -65
- data/grammars/source.pascal.json +54 -61
- data/grammars/source.pawn.json +835 -849
- data/grammars/source.pcb.board.json +153 -158
- data/grammars/source.pcb.schematic.json +134 -138
- data/grammars/source.pcb.sexp.json +64 -74
- data/grammars/source.pep8.json +28 -32
- data/grammars/source.perl.6.json +83 -92
- data/grammars/source.perl.json +711 -737
- data/grammars/source.perl6fe.json +1204 -1218
- data/grammars/source.php.zephir.json +80 -89
- data/grammars/source.pic.json +137 -142
- data/grammars/source.pig_latin.json +76 -80
- data/grammars/source.pike.json +23 -36
- data/grammars/source.po.json +74 -84
- data/grammars/source.pogoscript.json +23 -29
- data/grammars/source.pony.json +98 -108
- data/grammars/source.postcss.json +370 -0
- data/grammars/source.postscript.json +88 -97
- data/grammars/source.pov-ray sdl.json +36 -42
- data/grammars/source.powershell.json +175 -197
- data/grammars/source.processing.json +236 -249
- data/grammars/source.prolog.eclipse.json +33 -38
- data/grammars/source.prolog.json +66 -72
- data/grammars/source.protobuf.json +88 -94
- data/grammars/source.puppet.json +144 -151
- data/grammars/source.purescript.json +268 -289
- data/grammars/source.pyjade.json +256 -281
- data/grammars/source.python.django.json +13 -18
- data/grammars/source.python.json +3319 -3367
- data/grammars/source.python.salt.json +3 -7
- data/grammars/source.qmake.json +83 -90
- data/grammars/source.qml.json +57 -78
- data/grammars/source.quoting.perl6fe.json +666 -669
- data/grammars/source.r.json +75 -84
- data/grammars/source.racket.json +17 -38
- data/grammars/source.rascal.json +77 -80
- data/grammars/source.reason.hover.type.json +1 -1
- data/grammars/source.reason.json +1025 -1080
- data/grammars/source.rebol.json +167 -177
- data/grammars/source.red.json +169 -177
- data/grammars/source.regexp.babel.json +74 -77
- data/grammars/source.regexp.extended.json +4 -5
- data/grammars/source.regexp.json +260 -264
- data/grammars/source.regexp.perl6fe.json +108 -111
- data/grammars/source.regexp.python.json +210 -215
- data/grammars/source.regexp.spin.json +63 -72
- data/grammars/source.renpy.json +617 -687
- data/grammars/source.rexx.json +25 -32
- data/grammars/source.ring.json +84 -114
- data/grammars/source.rpm-spec.json +392 -401
- data/grammars/source.ruby.gemfile.json +9 -12
- data/grammars/source.ruby.json +862 -952
- data/grammars/source.ruby.rspec.cucumber.steps.json +90 -103
- data/grammars/source.rust.json +223 -281
- data/grammars/source.sas.json +88 -105
- data/grammars/source.sass.json +100 -108
- data/grammars/source.sbt.json +16 -23
- data/grammars/source.scad.json +60 -67
- data/grammars/source.scala.json +215 -228
- data/grammars/source.scaml.json +120 -135
- data/grammars/source.scheme.json +119 -136
- data/grammars/source.scilab.json +40 -47
- data/grammars/source.scss.json +369 -403
- data/grammars/source.sdbl.json +14 -25
- data/grammars/source.shaderlab.json +24 -27
- data/grammars/source.shell.json +409 -440
- data/grammars/source.shen.json +75 -94
- data/grammars/source.smali.json +232 -293
- data/grammars/source.smalltalk.json +60 -75
- data/grammars/source.smt.json +67 -82
- data/grammars/source.solidity.json +35 -54
- data/grammars/source.sp.json +40 -45
- data/grammars/source.sparql.json +3 -8
- data/grammars/source.spin.json +277 -297
- data/grammars/source.sqf.json +34 -44
- data/grammars/source.sql.json +142 -156
- data/grammars/source.stan.json +201 -160
- data/grammars/source.stata.json +57 -68
- data/grammars/source.strings.json +26 -30
- data/grammars/source.stylus.json +558 -565
- data/grammars/source.supercollider.json +33 -40
- data/grammars/source.swift.json +999 -1077
- data/grammars/source.systemverilog.json +351 -365
- data/grammars/source.tcl.json +77 -94
- data/grammars/source.tea.json +61 -67
- data/grammars/source.terra.json +25 -32
- data/grammars/source.terraform.json +68 -88
- data/grammars/source.thrift.json +300 -306
- data/grammars/source.tl.json +112 -117
- data/grammars/source.tla.json +65 -69
- data/grammars/source.toc.json +21 -25
- data/grammars/source.toml.json +117 -122
- data/grammars/source.ts.json +2838 -2774
- data/grammars/source.tsx.json +180 -184
- data/grammars/source.turing.json +970 -974
- data/grammars/source.turtle.json +124 -140
- data/grammars/source.txl.json +23 -37
- data/grammars/source.ucfconstraints.json +16 -21
- data/grammars/source.ur.json +15 -27
- data/grammars/source.vala.json +221 -235
- data/grammars/source.varnish.vcl.json +117 -129
- data/grammars/source.vbnet.json +69 -106
- data/grammars/source.verilog.json +101 -107
- data/grammars/source.vhdl.json +437 -445
- data/grammars/source.viml.json +540 -550
- data/grammars/source.wavefront.mtl.json +274 -277
- data/grammars/source.wavefront.obj.json +781 -784
- data/grammars/source.wdl.json +66 -46
- data/grammars/source.webassembly.json +97 -102
- data/grammars/source.webidl.json +311 -326
- data/grammars/source.x10.json +28 -32
- data/grammars/source.x86asm.json +21 -26
- data/grammars/source.xc.json +164 -172
- data/grammars/source.xq.json +81 -92
- data/grammars/source.xtend.json +199 -208
- data/grammars/source.yaml-ext.json +118 -124
- data/grammars/source.yaml.json +155 -174
- data/grammars/source.yaml.salt.json +113 -116
- data/grammars/source.yang.json +10 -13
- data/grammars/source.yara.json +98 -0
- data/grammars/text.bibtex.json +95 -100
- data/grammars/text.cfml.basic.json +403 -404
- data/grammars/text.elixir.json +18 -23
- data/grammars/text.error-list.json +15 -16
- data/grammars/text.find-refs.json +487 -488
- data/grammars/text.gherkin.feature.json +45 -53
- data/grammars/text.haml.json +176 -189
- data/grammars/text.hamlc.json +82 -88
- data/grammars/text.html.abl.json +16 -21
- data/grammars/text.html.asciidoc.json +139 -153
- data/grammars/text.html.asdoc.json +145 -155
- data/grammars/text.html.asp.json +23 -28
- data/grammars/text.html.basic.json +323 -338
- data/grammars/text.html.cfm.json +316 -325
- data/grammars/text.html.creole.json +177 -189
- data/grammars/text.html.django.json +27 -33
- data/grammars/text.html.ecr.json +21 -25
- data/grammars/text.html.elixir.json +3 -9
- data/grammars/text.html.erb.json +81 -85
- data/grammars/text.html.erlang.yaws.json +24 -29
- data/grammars/text.html.factor.json +5 -11
- data/grammars/text.html.ftl.json +16 -25
- data/grammars/text.html.handlebars.json +579 -598
- data/grammars/text.html.javadoc.json +426 -0
- data/grammars/text.html.js.json +11 -17
- data/grammars/text.html.jsp.json +377 -384
- data/grammars/text.html.liquid.json +8 -18
- data/grammars/text.html.mako.json +257 -275
- data/grammars/text.html.markdown.source.gfm.apib.json +419 -427
- data/grammars/text.html.markdown.source.gfm.mson.json +405 -414
- data/grammars/text.html.mediawiki.json +318 -344
- data/grammars/text.html.php.blade.json +2134 -2140
- data/grammars/text.html.php.json +980 -1013
- data/grammars/text.html.slash.json +101 -107
- data/grammars/text.html.smarty.json +75 -83
- data/grammars/text.html.soy.json +250 -253
- data/grammars/text.html.ssp.json +18 -24
- data/grammars/text.html.tcl.json +17 -24
- data/grammars/text.html.twig.json +712 -718
- data/grammars/text.idl-idldoc.json +5 -9
- data/grammars/text.jade.json +213 -235
- data/grammars/text.junit-test-report.json +25 -28
- data/grammars/text.log.latex.json +44 -46
- data/grammars/text.marko.json +370 -401
- data/grammars/text.python.console.json +3 -7
- data/grammars/text.python.traceback.json +2 -5
- data/grammars/text.rdoc.json +15 -19
- data/grammars/text.restructuredtext.clean.json +8 -11
- data/grammars/text.restructuredtext.json +886 -873
- data/grammars/text.robot.json +26 -36
- data/grammars/text.roff.json +2852 -2915
- data/grammars/text.runoff.json +56 -69
- data/grammars/text.sfd.json +151 -155
- data/grammars/text.shell-session.json +5 -8
- data/grammars/text.slim.json +184 -210
- data/grammars/text.srt.json +54 -57
- data/grammars/text.tex.json +98 -105
- data/grammars/text.tex.latex.beamer.json +14 -20
- data/grammars/text.tex.latex.haskell.json +883 -782
- data/grammars/text.tex.latex.json +281 -291
- data/grammars/text.tex.latex.memoir.json +39 -46
- data/grammars/text.tex.latex.rd.json +32 -38
- data/grammars/text.xml.ant.json +62 -69
- data/grammars/text.xml.flex-config.json +1009 -1013
- data/grammars/text.xml.genshi.json +10 -16
- data/grammars/text.xml.json +117 -130
- data/grammars/text.xml.pom.json +235 -240
- data/grammars/text.xml.xsl.json +31 -37
- data/grammars/text.zone_file.json +24 -29
- data/lib/linguist/blob.rb +10 -1
- data/lib/linguist/blob_helper.rb +4 -1
- data/lib/linguist/file_blob.rb +5 -0
- data/lib/linguist/generated.rb +16 -0
- data/lib/linguist/heuristics.rb +23 -11
- data/lib/linguist/language.rb +3 -6
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +74 -12
- data/lib/linguist/lazy_blob.rb +15 -1
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1666 -3381
- data/lib/linguist/shebang.rb +2 -0
- data/lib/linguist/strategy/modeline.rb +2 -0
- data/lib/linguist/vendor.yml +5 -6
- data/lib/linguist/version.rb +1 -1
- metadata +12 -11
- data/grammars/source.elm.json +0 -381
- data/grammars/source.nant-build.json +0 -86
- data/grammars/source.octave.json +0 -451
- data/grammars/text.html.mediawiki.elm-build-output.json +0 -111
- data/grammars/text.html.mediawiki.elm-documentation.json +0 -22
- data/grammars/text.html.vue.json +0 -936
data/grammars/source.nut.json
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
{
|
2
|
-
"comment": "Squirrel Syntax: version 0.2.1",
|
3
|
-
"fileTypes": [
|
4
|
-
"nut"
|
5
|
-
],
|
6
2
|
"name": "Squirrel",
|
3
|
+
"scopeName": "source.nut",
|
7
4
|
"patterns": [
|
8
5
|
{
|
9
6
|
"include": "#special-block"
|
@@ -12,44 +9,44 @@
|
|
12
9
|
"include": "#comments"
|
13
10
|
},
|
14
11
|
{
|
15
|
-
"
|
16
|
-
"
|
12
|
+
"name": "keyword.control.squirrel",
|
13
|
+
"match": "\\b(break|case|catch|default|do|else|for|foreach|if|resume|return|switch|throw|try|while|yield)\\b"
|
17
14
|
},
|
18
15
|
{
|
19
|
-
"
|
20
|
-
"
|
16
|
+
"name": "keyword.control.squirrel",
|
17
|
+
"match": "\\b(clone|delete|in|instanceof|typeof)\\b"
|
21
18
|
},
|
22
19
|
{
|
23
|
-
"
|
24
|
-
"
|
20
|
+
"name": "variable.language.squirrel",
|
21
|
+
"match": "\\b(base|this)\\b"
|
25
22
|
},
|
26
23
|
{
|
27
|
-
"
|
28
|
-
"
|
24
|
+
"name": "storage.type.squirrel",
|
25
|
+
"match": "\\b(class|constructor|function|local)\\b"
|
29
26
|
},
|
30
27
|
{
|
31
|
-
"
|
32
|
-
"
|
28
|
+
"name": "storage.modifier.squirrel",
|
29
|
+
"match": "\\b(const|extends|static)\\b"
|
33
30
|
},
|
34
31
|
{
|
35
|
-
"
|
36
|
-
"
|
32
|
+
"name": "constant.squirrel.squirrel",
|
33
|
+
"match": "\\b(null|true|false)\\b"
|
37
34
|
},
|
38
35
|
{
|
39
|
-
"
|
40
|
-
"
|
36
|
+
"name": "keyword.operator.squirrel",
|
37
|
+
"match": "!|%|\u0026|\\*|\\-\\-|\\-|\\+\\+|\\+|==|=|!=|\u003c=\u003e|\u003c=|\u003e=|\u003c-|\u003e\u003e\u003e|\u003c\u003c|\u003e\u003e|\u003c|\u003e|!|\u0026\u0026|\\|\\||\\?\\:|\\*=|(?\u003c!\\()/=|%=|\\+=|\\-=|\u0026=|%=|\\."
|
41
38
|
},
|
42
39
|
{
|
43
|
-
"
|
44
|
-
"
|
40
|
+
"name": "constant.numeric.squirrel",
|
41
|
+
"match": "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b"
|
45
42
|
},
|
46
43
|
{
|
47
|
-
"
|
48
|
-
"
|
44
|
+
"name": "support.function.any-method.squirrel",
|
45
|
+
"match": "\\b([_A-Za-z][_A-Za-z0-9]\\w*)\\b(?=\\s*(?:[({\"']|\\[\\[))"
|
49
46
|
},
|
50
47
|
{
|
51
|
-
"
|
52
|
-
"
|
48
|
+
"name": "variable.other.squirrel",
|
49
|
+
"match": "(?\u003c=[^.]\\.)\\b([_A-Za-z][_A-Za-z0-9]\\w*)"
|
53
50
|
},
|
54
51
|
{
|
55
52
|
"include": "#attributes"
|
@@ -63,9 +60,9 @@
|
|
63
60
|
],
|
64
61
|
"repository": {
|
65
62
|
"attributes": {
|
66
|
-
"begin": "</",
|
67
|
-
"end": "/>",
|
68
63
|
"name": "meta.attributes.squirrel",
|
64
|
+
"begin": "\u003c/",
|
65
|
+
"end": "/\u003e",
|
69
66
|
"patterns": [
|
70
67
|
{
|
71
68
|
"include": "$base"
|
@@ -75,31 +72,108 @@
|
|
75
72
|
"block": {
|
76
73
|
"patterns": [
|
77
74
|
{
|
75
|
+
"name": "meta.block.squirrel",
|
78
76
|
"begin": "\\{",
|
77
|
+
"end": "\\}",
|
78
|
+
"patterns": [
|
79
|
+
{
|
80
|
+
"include": "$base"
|
81
|
+
}
|
82
|
+
],
|
79
83
|
"beginCaptures": {
|
80
84
|
"0": {
|
81
85
|
"name": "punctuation.section.block.begin.bracket.curly.squirrel"
|
82
86
|
}
|
83
87
|
},
|
84
|
-
"end": "\\}",
|
85
88
|
"endCaptures": {
|
86
89
|
"0": {
|
87
90
|
"name": "punctuation.section.block.end.bracket.curly.squirrel"
|
88
91
|
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
]
|
95
|
+
},
|
96
|
+
"comments": {
|
97
|
+
"patterns": [
|
98
|
+
{
|
99
|
+
"name": "comment.block.squirrel",
|
100
|
+
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
|
101
|
+
"captures": {
|
102
|
+
"1": {
|
103
|
+
"name": "meta.toc-list.banner.block.squirrel"
|
104
|
+
}
|
105
|
+
}
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"name": "comment.block.squirrel",
|
109
|
+
"begin": "/\\*",
|
110
|
+
"end": "\\*/",
|
111
|
+
"beginCaptures": {
|
112
|
+
"0": {
|
113
|
+
"name": "punctuation.definition.comment.begin.squirrel"
|
114
|
+
}
|
89
115
|
},
|
90
|
-
"
|
116
|
+
"endCaptures": {
|
117
|
+
"0": {
|
118
|
+
"name": "punctuation.definition.comment.end.squirrel"
|
119
|
+
}
|
120
|
+
}
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"begin": "(^[ \\t]+)?(?=//)",
|
124
|
+
"end": "(?!\\G)",
|
91
125
|
"patterns": [
|
92
126
|
{
|
93
|
-
"
|
127
|
+
"name": "comment.line.double-slash.squirrel",
|
128
|
+
"begin": "//",
|
129
|
+
"end": "(?=\\n)",
|
130
|
+
"beginCaptures": {
|
131
|
+
"0": {
|
132
|
+
"name": "punctuation.definition.comment.squirrel"
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"beginCaptures": {
|
138
|
+
"1": {
|
139
|
+
"name": "punctuation.whitespace.comment.leading.squirrel"
|
140
|
+
}
|
141
|
+
}
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"begin": "(^[ \\t]+)?(?=#)",
|
145
|
+
"end": "(?!\\G)",
|
146
|
+
"patterns": [
|
147
|
+
{
|
148
|
+
"name": "comment.line.hash.squirrel",
|
149
|
+
"begin": "#",
|
150
|
+
"end": "(?=\\n)",
|
151
|
+
"beginCaptures": {
|
152
|
+
"0": {
|
153
|
+
"name": "punctuation.definition.comment.squirrel"
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
],
|
158
|
+
"beginCaptures": {
|
159
|
+
"1": {
|
160
|
+
"name": "punctuation.whitespace.comment.leading.squirrel"
|
94
161
|
}
|
95
|
-
|
162
|
+
}
|
96
163
|
}
|
97
164
|
]
|
98
165
|
},
|
99
166
|
"special-block": {
|
100
167
|
"patterns": [
|
101
168
|
{
|
169
|
+
"name": "meta.class-block.squirrel",
|
102
170
|
"begin": "\\b(class)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*(extends)\\s*([_A-Za-z][_A-Za-z0-9]*\\b))?",
|
171
|
+
"end": "(?\u003c=\\})|(?=(=))",
|
172
|
+
"patterns": [
|
173
|
+
{
|
174
|
+
"include": "#block"
|
175
|
+
}
|
176
|
+
],
|
103
177
|
"beginCaptures": {
|
104
178
|
"1": {
|
105
179
|
"name": "storage.type.squirrel"
|
@@ -113,17 +187,17 @@
|
|
113
187
|
"5": {
|
114
188
|
"name": "entity.name.type.inherited.squirrel"
|
115
189
|
}
|
116
|
-
}
|
117
|
-
|
118
|
-
|
190
|
+
}
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"name": "meta.function-block.squirrel",
|
194
|
+
"begin": "\\b(function)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*(::)\\s*([_A-Za-z][_A-Za-z0-9]*\\b))?",
|
195
|
+
"end": "(?\u003c=\\})|(?=(=))",
|
119
196
|
"patterns": [
|
120
197
|
{
|
121
198
|
"include": "#block"
|
122
199
|
}
|
123
|
-
]
|
124
|
-
},
|
125
|
-
{
|
126
|
-
"begin": "\\b(function)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*(::)\\s*([_A-Za-z][_A-Za-z0-9]*\\b))?",
|
200
|
+
],
|
127
201
|
"beginCaptures": {
|
128
202
|
"1": {
|
129
203
|
"name": "storage.type.squirrel"
|
@@ -137,17 +211,17 @@
|
|
137
211
|
"5": {
|
138
212
|
"name": "entity.name.function.squirrel"
|
139
213
|
}
|
140
|
-
}
|
141
|
-
|
142
|
-
|
214
|
+
}
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"name": "meta.namespace-block.squirrel",
|
218
|
+
"begin": "\\b([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*(\u003c-))",
|
219
|
+
"end": "(?\u003c=\\})|(?=(;|,|\\(|\\)|\u003e|\\[|\\]|=))",
|
143
220
|
"patterns": [
|
144
221
|
{
|
145
222
|
"include": "#block"
|
146
223
|
}
|
147
|
-
]
|
148
|
-
},
|
149
|
-
{
|
150
|
-
"begin": "\\b([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*(<-))",
|
224
|
+
],
|
151
225
|
"beginCaptures": {
|
152
226
|
"1": {
|
153
227
|
"name": "entity.name.type.squirrel"
|
@@ -155,112 +229,34 @@
|
|
155
229
|
"3": {
|
156
230
|
"name": "punctuation.separator.namespace.access.squirrel"
|
157
231
|
}
|
158
|
-
}
|
159
|
-
"end": "(?<=\\})|(?=(;|,|\\(|\\)|>|\\[|\\]|=))",
|
160
|
-
"name": "meta.namespace-block.squirrel",
|
161
|
-
"patterns": [
|
162
|
-
{
|
163
|
-
"include": "#block"
|
164
|
-
}
|
165
|
-
]
|
232
|
+
}
|
166
233
|
}
|
167
234
|
]
|
168
235
|
},
|
169
|
-
"
|
236
|
+
"strings": {
|
170
237
|
"patterns": [
|
171
238
|
{
|
172
|
-
"
|
173
|
-
|
174
|
-
|
175
|
-
}
|
176
|
-
},
|
177
|
-
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
|
178
|
-
"name": "comment.block.squirrel"
|
179
|
-
},
|
180
|
-
{
|
181
|
-
"begin": "/\\*",
|
182
|
-
"beginCaptures": {
|
183
|
-
"0": {
|
184
|
-
"name": "punctuation.definition.comment.begin.squirrel"
|
185
|
-
}
|
186
|
-
},
|
187
|
-
"end": "\\*/",
|
188
|
-
"endCaptures": {
|
189
|
-
"0": {
|
190
|
-
"name": "punctuation.definition.comment.end.squirrel"
|
191
|
-
}
|
192
|
-
},
|
193
|
-
"name": "comment.block.squirrel"
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"begin": "(^[ \\t]+)?(?=//)",
|
197
|
-
"beginCaptures": {
|
198
|
-
"1": {
|
199
|
-
"name": "punctuation.whitespace.comment.leading.squirrel"
|
200
|
-
}
|
201
|
-
},
|
202
|
-
"end": "(?!\\G)",
|
203
|
-
"patterns": [
|
204
|
-
{
|
205
|
-
"begin": "//",
|
206
|
-
"beginCaptures": {
|
207
|
-
"0": {
|
208
|
-
"name": "punctuation.definition.comment.squirrel"
|
209
|
-
}
|
210
|
-
},
|
211
|
-
"end": "(?=\\n)",
|
212
|
-
"name": "comment.line.double-slash.squirrel"
|
213
|
-
}
|
214
|
-
]
|
215
|
-
},
|
216
|
-
{
|
217
|
-
"begin": "(^[ \\t]+)?(?=#)",
|
218
|
-
"beginCaptures": {
|
219
|
-
"1": {
|
220
|
-
"name": "punctuation.whitespace.comment.leading.squirrel"
|
221
|
-
}
|
222
|
-
},
|
223
|
-
"end": "(?!\\G)",
|
239
|
+
"name": "string.quoted.double.squirrel",
|
240
|
+
"begin": "@?\"",
|
241
|
+
"end": "\"",
|
224
242
|
"patterns": [
|
225
243
|
{
|
226
|
-
"
|
227
|
-
"
|
228
|
-
"0": {
|
229
|
-
"name": "punctuation.definition.comment.squirrel"
|
230
|
-
}
|
231
|
-
},
|
232
|
-
"end": "(?=\\n)",
|
233
|
-
"name": "comment.line.hash.squirrel"
|
244
|
+
"name": "constant.character.escape.squirrel",
|
245
|
+
"match": "\\\\."
|
234
246
|
}
|
235
|
-
]
|
236
|
-
}
|
237
|
-
]
|
238
|
-
},
|
239
|
-
"strings": {
|
240
|
-
"patterns": [
|
241
|
-
{
|
242
|
-
"begin": "@?\"",
|
247
|
+
],
|
243
248
|
"beginCaptures": {
|
244
249
|
"0": {
|
245
250
|
"name": "punctuation.definition.string.begin.squirrel"
|
246
251
|
}
|
247
252
|
},
|
248
|
-
"end": "\"",
|
249
253
|
"endCaptures": {
|
250
254
|
"0": {
|
251
255
|
"name": "punctuation.definition.string.end.squirrel"
|
252
256
|
}
|
253
|
-
}
|
254
|
-
"name": "string.quoted.double.squirrel",
|
255
|
-
"patterns": [
|
256
|
-
{
|
257
|
-
"match": "\\\\.",
|
258
|
-
"name": "constant.character.escape.squirrel"
|
259
|
-
}
|
260
|
-
]
|
257
|
+
}
|
261
258
|
}
|
262
259
|
]
|
263
260
|
}
|
264
|
-
}
|
265
|
-
|
266
|
-
}
|
261
|
+
}
|
262
|
+
}
|
data/grammars/source.objc++.json
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
{
|
2
|
-
"fileTypes": [
|
3
|
-
"mm",
|
4
|
-
"M",
|
5
|
-
"h"
|
6
|
-
],
|
7
|
-
"keyEquivalent": "^~O",
|
8
2
|
"name": "Objective-C++",
|
3
|
+
"scopeName": "source.objc++",
|
9
4
|
"patterns": [
|
10
5
|
{
|
11
6
|
"include": "source.c++"
|
@@ -13,7 +8,5 @@
|
|
13
8
|
{
|
14
9
|
"include": "source.objc"
|
15
10
|
}
|
16
|
-
]
|
17
|
-
|
18
|
-
"uuid": "FDAB1813-6B1C-11D9-BCAC-000D93589AF6"
|
19
|
-
}
|
11
|
+
]
|
12
|
+
}
|
data/grammars/source.objc.json
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
{
|
2
|
-
"fileTypes": [
|
3
|
-
"m",
|
4
|
-
"h"
|
5
|
-
],
|
6
|
-
"keyEquivalent": "^~O",
|
7
2
|
"name": "Objective-C",
|
3
|
+
"scopeName": "source.objc",
|
8
4
|
"patterns": [
|
9
5
|
{
|
6
|
+
"name": "meta.interface-or-protocol.objc",
|
7
|
+
"contentName": "meta.scope.interface.objc",
|
10
8
|
"begin": "((@)(interface|protocol))(?!.+;)\\s+([A-Za-z_][A-Za-z0-9_]*)\\s*((:)(?:\\s*)([A-Za-z][A-Za-z0-9]*))?(\\s|\\n)?",
|
9
|
+
"end": "((@)end)\\b",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"include": "#interface_innards"
|
13
|
+
}
|
14
|
+
],
|
11
15
|
"captures": {
|
12
16
|
"1": {
|
13
17
|
"name": "storage.type.objc"
|
@@ -30,18 +34,18 @@
|
|
30
34
|
"9": {
|
31
35
|
"name": "meta.inherited-class.objc"
|
32
36
|
}
|
33
|
-
}
|
34
|
-
|
37
|
+
}
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"name": "meta.implementation.objc",
|
41
|
+
"contentName": "meta.scope.implementation.objc",
|
42
|
+
"begin": "((@)(implementation))\\s+([A-Za-z_][A-Za-z0-9_]*)\\s*(?::\\s*([A-Za-z][A-Za-z0-9]*))?",
|
35
43
|
"end": "((@)end)\\b",
|
36
|
-
"name": "meta.interface-or-protocol.objc",
|
37
44
|
"patterns": [
|
38
45
|
{
|
39
|
-
"include": "#
|
46
|
+
"include": "#implementation_innards"
|
40
47
|
}
|
41
|
-
]
|
42
|
-
},
|
43
|
-
{
|
44
|
-
"begin": "((@)(implementation))\\s+([A-Za-z_][A-Za-z0-9_]*)\\s*(?::\\s*([A-Za-z][A-Za-z0-9]*))?",
|
48
|
+
],
|
45
49
|
"captures": {
|
46
50
|
"1": {
|
47
51
|
"name": "storage.type.objc"
|
@@ -55,116 +59,122 @@
|
|
55
59
|
"5": {
|
56
60
|
"name": "entity.other.inherited-class.objc"
|
57
61
|
}
|
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
|
-
]
|
62
|
+
}
|
67
63
|
},
|
68
64
|
{
|
69
|
-
"applyEndPatternLast": true,
|
70
65
|
"begin": "(?=@\")",
|
71
66
|
"end": "(?=\\S)",
|
72
67
|
"patterns": [
|
73
68
|
{
|
69
|
+
"name": "string.quoted.double.objc",
|
74
70
|
"begin": "@?\"",
|
75
|
-
"beginCaptures": {
|
76
|
-
"0": {
|
77
|
-
"name": "punctuation.definition.string.begin.objc"
|
78
|
-
}
|
79
|
-
},
|
80
71
|
"end": "\"",
|
81
|
-
"endCaptures": {
|
82
|
-
"0": {
|
83
|
-
"name": "punctuation.definition.string.end.objc"
|
84
|
-
}
|
85
|
-
},
|
86
|
-
"name": "string.quoted.double.objc",
|
87
72
|
"patterns": [
|
88
73
|
{
|
89
74
|
"include": "source.c#string_escaped_char"
|
90
75
|
},
|
91
76
|
{
|
92
|
-
"
|
93
|
-
"
|
77
|
+
"name": "constant.other.placeholder.objc",
|
78
|
+
"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"
|
94
79
|
},
|
95
80
|
{
|
96
81
|
"include": "source.c#string_placeholder"
|
97
82
|
}
|
98
|
-
]
|
83
|
+
],
|
84
|
+
"beginCaptures": {
|
85
|
+
"0": {
|
86
|
+
"name": "punctuation.definition.string.begin.objc"
|
87
|
+
}
|
88
|
+
},
|
89
|
+
"endCaptures": {
|
90
|
+
"0": {
|
91
|
+
"name": "punctuation.definition.string.end.objc"
|
92
|
+
}
|
93
|
+
}
|
99
94
|
}
|
100
|
-
]
|
95
|
+
],
|
96
|
+
"applyEndPatternLast": true
|
101
97
|
},
|
102
98
|
{
|
103
|
-
"begin": "\\b(id)\\s*(?=<)",
|
104
|
-
"beginCaptures": {
|
105
|
-
"1": {
|
106
|
-
"name": "storage.type.objc"
|
107
|
-
}
|
108
|
-
},
|
109
|
-
"end": "(?<=>)",
|
110
99
|
"name": "meta.id-with-protocol.objc",
|
100
|
+
"begin": "\\b(id)\\s*(?=\u003c)",
|
101
|
+
"end": "(?\u003c=\u003e)",
|
111
102
|
"patterns": [
|
112
103
|
{
|
113
104
|
"include": "#protocol_list"
|
114
105
|
}
|
115
|
-
]
|
106
|
+
],
|
107
|
+
"beginCaptures": {
|
108
|
+
"1": {
|
109
|
+
"name": "storage.type.objc"
|
110
|
+
}
|
111
|
+
}
|
116
112
|
},
|
117
113
|
{
|
118
|
-
"
|
119
|
-
"
|
114
|
+
"name": "keyword.control.macro.objc",
|
115
|
+
"match": "\\b(NS_DURING|NS_HANDLER|NS_ENDHANDLER)\\b"
|
120
116
|
},
|
121
117
|
{
|
118
|
+
"name": "keyword.control.exception.objc",
|
119
|
+
"match": "(@)(try|catch|finally|throw)\\b",
|
122
120
|
"captures": {
|
123
121
|
"1": {
|
124
122
|
"name": "punctuation.definition.keyword.objc"
|
125
123
|
}
|
126
|
-
}
|
127
|
-
"match": "(@)(try|catch|finally|throw)\\b",
|
128
|
-
"name": "keyword.control.exception.objc"
|
124
|
+
}
|
129
125
|
},
|
130
126
|
{
|
127
|
+
"name": "keyword.control.synchronize.objc",
|
128
|
+
"match": "(@)(synchronized)\\b",
|
131
129
|
"captures": {
|
132
130
|
"1": {
|
133
131
|
"name": "punctuation.definition.keyword.objc"
|
134
132
|
}
|
135
|
-
}
|
136
|
-
"match": "(@)(synchronized)\\b",
|
137
|
-
"name": "keyword.control.synchronize.objc"
|
133
|
+
}
|
138
134
|
},
|
139
135
|
{
|
136
|
+
"name": "keyword.control.protocol-specification.objc",
|
137
|
+
"match": "(@)(required|optional)\\b",
|
140
138
|
"captures": {
|
141
139
|
"1": {
|
142
140
|
"name": "punctuation.definition.keyword.objc"
|
143
141
|
}
|
144
|
-
}
|
145
|
-
"match": "(@)(required|optional)\\b",
|
146
|
-
"name": "keyword.control.protocol-specification.objc"
|
142
|
+
}
|
147
143
|
},
|
148
144
|
{
|
145
|
+
"name": "keyword.other.objc",
|
146
|
+
"match": "(@)(defs|encode)\\b",
|
149
147
|
"captures": {
|
150
148
|
"1": {
|
151
149
|
"name": "punctuation.definition.keyword.objc"
|
152
150
|
}
|
153
|
-
}
|
154
|
-
"match": "(@)(defs|encode)\\b",
|
155
|
-
"name": "keyword.other.objc"
|
151
|
+
}
|
156
152
|
},
|
157
153
|
{
|
154
|
+
"name": "storage.type.objc",
|
155
|
+
"match": "(@)(class|protocol)\\b",
|
158
156
|
"captures": {
|
159
157
|
"1": {
|
160
158
|
"name": "punctuation.definition.storage.type.objc"
|
161
159
|
}
|
162
|
-
}
|
163
|
-
"match": "(@)(class|protocol)\\b",
|
164
|
-
"name": "storage.type.objc"
|
160
|
+
}
|
165
161
|
},
|
166
162
|
{
|
163
|
+
"name": "meta.selector.objc",
|
164
|
+
"contentName": "meta.selector.method-name.objc",
|
167
165
|
"begin": "((@)selector)\\s*(\\()",
|
166
|
+
"end": "(\\))",
|
167
|
+
"patterns": [
|
168
|
+
{
|
169
|
+
"name": "support.function.any-method.name-of-parameter.objc",
|
170
|
+
"match": "\\b(?:[a-zA-Z_:][\\w]*)+",
|
171
|
+
"captures": {
|
172
|
+
"1": {
|
173
|
+
"name": "punctuation.separator.arguments.objc"
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
],
|
168
178
|
"beginCaptures": {
|
169
179
|
"1": {
|
170
180
|
"name": "storage.type.objc"
|
@@ -176,38 +186,24 @@
|
|
176
186
|
"name": "punctuation.definition.storage.type.objc"
|
177
187
|
}
|
178
188
|
},
|
179
|
-
"contentName": "meta.selector.method-name.objc",
|
180
|
-
"end": "(\\))",
|
181
189
|
"endCaptures": {
|
182
190
|
"1": {
|
183
191
|
"name": "punctuation.definition.storage.type.objc"
|
184
192
|
}
|
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
|
-
]
|
193
|
+
}
|
198
194
|
},
|
199
195
|
{
|
196
|
+
"name": "storage.modifier.objc",
|
197
|
+
"match": "(@)(synchronized|public|package|private|protected)\\b",
|
200
198
|
"captures": {
|
201
199
|
"1": {
|
202
200
|
"name": "punctuation.definition.storage.modifier.objc"
|
203
201
|
}
|
204
|
-
}
|
205
|
-
"match": "(@)(synchronized|public|package|private|protected)\\b",
|
206
|
-
"name": "storage.modifier.objc"
|
202
|
+
}
|
207
203
|
},
|
208
204
|
{
|
209
|
-
"
|
210
|
-
"
|
205
|
+
"name": "constant.language.objc",
|
206
|
+
"match": "\\b(YES|NO|Nil|nil)\\b"
|
211
207
|
},
|
212
208
|
{
|
213
209
|
"include": "source.objc.platform"
|
@@ -224,99 +220,81 @@
|
|
224
220
|
],
|
225
221
|
"repository": {
|
226
222
|
"bracketed_content": {
|
223
|
+
"name": "meta.bracketed.objc",
|
227
224
|
"begin": "\\[",
|
228
|
-
"beginCaptures": {
|
229
|
-
"0": {
|
230
|
-
"name": "punctuation.section.scope.begin.objc"
|
231
|
-
}
|
232
|
-
},
|
233
225
|
"end": "\\]",
|
234
|
-
"endCaptures": {
|
235
|
-
"0": {
|
236
|
-
"name": "punctuation.section.scope.end.objc"
|
237
|
-
}
|
238
|
-
},
|
239
|
-
"name": "meta.bracketed.objc",
|
240
226
|
"patterns": [
|
241
227
|
{
|
242
|
-
"begin": "(?=predicateWithFormat:)(?<=NSPredicate )(predicateWithFormat:)",
|
243
|
-
"beginCaptures": {
|
244
|
-
"1": {
|
245
|
-
"name": "support.function.any-method.objc"
|
246
|
-
},
|
247
|
-
"2": {
|
248
|
-
"name": "punctuation.separator.arguments.objc"
|
249
|
-
}
|
250
|
-
},
|
251
|
-
"end": "(?=\\])",
|
252
228
|
"name": "meta.function-call.predicate.objc",
|
229
|
+
"begin": "(?=predicateWithFormat:)(?\u003c=NSPredicate )(predicateWithFormat:)",
|
230
|
+
"end": "(?=\\])",
|
253
231
|
"patterns": [
|
254
232
|
{
|
233
|
+
"name": "support.function.any-method.name-of-parameter.objc",
|
234
|
+
"match": "\\bargument(Array|s)(:)",
|
255
235
|
"captures": {
|
256
236
|
"1": {
|
257
237
|
"name": "punctuation.separator.arguments.objc"
|
258
238
|
}
|
259
|
-
}
|
260
|
-
"match": "\\bargument(Array|s)(:)",
|
261
|
-
"name": "support.function.any-method.name-of-parameter.objc"
|
239
|
+
}
|
262
240
|
},
|
263
241
|
{
|
242
|
+
"name": "invalid.illegal.unknown-method.objc",
|
243
|
+
"match": "\\b\\w+(:)",
|
264
244
|
"captures": {
|
265
245
|
"1": {
|
266
246
|
"name": "punctuation.separator.arguments.objc"
|
267
247
|
}
|
268
|
-
}
|
269
|
-
"match": "\\b\\w+(:)",
|
270
|
-
"name": "invalid.illegal.unknown-method.objc"
|
248
|
+
}
|
271
249
|
},
|
272
250
|
{
|
251
|
+
"name": "string.quoted.double.objc",
|
273
252
|
"begin": "@\"",
|
274
|
-
"beginCaptures": {
|
275
|
-
"0": {
|
276
|
-
"name": "punctuation.definition.string.begin.objc"
|
277
|
-
}
|
278
|
-
},
|
279
253
|
"end": "\"",
|
280
|
-
"endCaptures": {
|
281
|
-
"0": {
|
282
|
-
"name": "punctuation.definition.string.end.objc"
|
283
|
-
}
|
284
|
-
},
|
285
|
-
"name": "string.quoted.double.objc",
|
286
254
|
"patterns": [
|
287
255
|
{
|
288
|
-
"
|
289
|
-
"
|
256
|
+
"name": "keyword.operator.logical.predicate.cocoa",
|
257
|
+
"match": "\\b(AND|OR|NOT|IN)\\b"
|
290
258
|
},
|
291
259
|
{
|
292
|
-
"
|
293
|
-
"
|
260
|
+
"name": "constant.language.predicate.cocoa",
|
261
|
+
"match": "\\b(ALL|ANY|SOME|NONE)\\b"
|
294
262
|
},
|
295
263
|
{
|
296
|
-
"
|
297
|
-
"
|
264
|
+
"name": "constant.language.predicate.cocoa",
|
265
|
+
"match": "\\b(NULL|NIL|SELF|TRUE|YES|FALSE|NO|FIRST|LAST|SIZE)\\b"
|
298
266
|
},
|
299
267
|
{
|
300
|
-
"
|
301
|
-
"
|
268
|
+
"name": "keyword.operator.comparison.predicate.cocoa",
|
269
|
+
"match": "\\b(MATCHES|CONTAINS|BEGINSWITH|ENDSWITH|BETWEEN)\\b"
|
302
270
|
},
|
303
271
|
{
|
304
|
-
"
|
305
|
-
"
|
272
|
+
"name": "keyword.other.modifier.predicate.cocoa",
|
273
|
+
"match": "\\bC(ASEINSENSITIVE|I)\\b"
|
306
274
|
},
|
307
275
|
{
|
308
|
-
"
|
309
|
-
"
|
276
|
+
"name": "keyword.other.predicate.cocoa",
|
277
|
+
"match": "\\b(ANYKEY|SUBQUERY|CAST|TRUEPREDICATE|FALSEPREDICATE)\\b"
|
310
278
|
},
|
311
279
|
{
|
312
|
-
"
|
313
|
-
"
|
280
|
+
"name": "constant.character.escape.objc",
|
281
|
+
"match": "\\\\(\\\\|[abefnrtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-zA-Z0-9]+)"
|
314
282
|
},
|
315
283
|
{
|
316
|
-
"
|
317
|
-
"
|
284
|
+
"name": "invalid.illegal.unknown-escape.objc",
|
285
|
+
"match": "\\\\."
|
286
|
+
}
|
287
|
+
],
|
288
|
+
"beginCaptures": {
|
289
|
+
"0": {
|
290
|
+
"name": "punctuation.definition.string.begin.objc"
|
318
291
|
}
|
319
|
-
|
292
|
+
},
|
293
|
+
"endCaptures": {
|
294
|
+
"0": {
|
295
|
+
"name": "punctuation.definition.string.end.objc"
|
296
|
+
}
|
297
|
+
}
|
320
298
|
},
|
321
299
|
{
|
322
300
|
"include": "#special_variables"
|
@@ -327,10 +305,7 @@
|
|
327
305
|
{
|
328
306
|
"include": "$base"
|
329
307
|
}
|
330
|
-
]
|
331
|
-
},
|
332
|
-
{
|
333
|
-
"begin": "(?=\\w)(?<=[\\w\\]\\s)\"]\\s)(\\w+(?:(:)|(?=\\])))",
|
308
|
+
],
|
334
309
|
"beginCaptures": {
|
335
310
|
"1": {
|
336
311
|
"name": "support.function.any-method.objc"
|
@@ -338,18 +313,21 @@
|
|
338
313
|
"2": {
|
339
314
|
"name": "punctuation.separator.arguments.objc"
|
340
315
|
}
|
341
|
-
}
|
342
|
-
|
316
|
+
}
|
317
|
+
},
|
318
|
+
{
|
343
319
|
"name": "meta.function-call.objc",
|
320
|
+
"begin": "(?=\\w)(?\u003c=[\\w\\]\\s)\"]\\s)(\\w+(?:(:)|(?=\\])))",
|
321
|
+
"end": "(?=\\])",
|
344
322
|
"patterns": [
|
345
323
|
{
|
324
|
+
"name": "support.function.any-method.name-of-parameter.objc",
|
325
|
+
"match": "\\b\\w+(:)",
|
346
326
|
"captures": {
|
347
327
|
"1": {
|
348
328
|
"name": "punctuation.separator.arguments.objc"
|
349
329
|
}
|
350
|
-
}
|
351
|
-
"match": "\\b\\w+(:)",
|
352
|
-
"name": "support.function.any-method.name-of-parameter.objc"
|
330
|
+
}
|
353
331
|
},
|
354
332
|
{
|
355
333
|
"include": "#special_variables"
|
@@ -360,7 +338,15 @@
|
|
360
338
|
{
|
361
339
|
"include": "$base"
|
362
340
|
}
|
363
|
-
]
|
341
|
+
],
|
342
|
+
"beginCaptures": {
|
343
|
+
"1": {
|
344
|
+
"name": "support.function.any-method.objc"
|
345
|
+
},
|
346
|
+
"2": {
|
347
|
+
"name": "punctuation.separator.arguments.objc"
|
348
|
+
}
|
349
|
+
}
|
364
350
|
},
|
365
351
|
{
|
366
352
|
"include": "#special_variables"
|
@@ -371,7 +357,17 @@
|
|
371
357
|
{
|
372
358
|
"include": "$self"
|
373
359
|
}
|
374
|
-
]
|
360
|
+
],
|
361
|
+
"beginCaptures": {
|
362
|
+
"0": {
|
363
|
+
"name": "punctuation.section.scope.begin.objc"
|
364
|
+
}
|
365
|
+
},
|
366
|
+
"endCaptures": {
|
367
|
+
"0": {
|
368
|
+
"name": "punctuation.section.scope.end.objc"
|
369
|
+
}
|
370
|
+
}
|
375
371
|
},
|
376
372
|
"c_functions": {
|
377
373
|
"patterns": [
|
@@ -379,6 +375,8 @@
|
|
379
375
|
"include": "source.c.platform#functions"
|
380
376
|
},
|
381
377
|
{
|
378
|
+
"name": "meta.function-call.c",
|
379
|
+
"match": "(?x) (?: (?= \\s ) (?:(?\u003c=else|new|return) | (?\u003c!\\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*(\\()",
|
382
380
|
"captures": {
|
383
381
|
"1": {
|
384
382
|
"name": "punctuation.whitespace.function-call.leading.c"
|
@@ -389,56 +387,53 @@
|
|
389
387
|
"3": {
|
390
388
|
"name": "punctuation.definition.parameters.c"
|
391
389
|
}
|
392
|
-
}
|
393
|
-
"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*(\\()",
|
394
|
-
"name": "meta.function-call.c"
|
390
|
+
}
|
395
391
|
}
|
396
392
|
]
|
397
393
|
},
|
398
394
|
"comment": {
|
399
395
|
"patterns": [
|
400
396
|
{
|
397
|
+
"name": "comment.block.objc",
|
401
398
|
"begin": "/\\*",
|
399
|
+
"end": "\\*/",
|
402
400
|
"captures": {
|
403
401
|
"0": {
|
404
402
|
"name": "punctuation.definition.comment.objc"
|
405
403
|
}
|
406
|
-
}
|
407
|
-
"end": "\\*/",
|
408
|
-
"name": "comment.block.objc"
|
404
|
+
}
|
409
405
|
},
|
410
406
|
{
|
411
407
|
"begin": "(^[ \\t]+)?(?=//)",
|
412
|
-
"beginCaptures": {
|
413
|
-
"1": {
|
414
|
-
"name": "punctuation.whitespace.comment.leading.objc"
|
415
|
-
}
|
416
|
-
},
|
417
408
|
"end": "(?!\\G)",
|
418
409
|
"patterns": [
|
419
410
|
{
|
411
|
+
"name": "comment.line.double-slash.objc",
|
420
412
|
"begin": "//",
|
421
|
-
"beginCaptures": {
|
422
|
-
"0": {
|
423
|
-
"name": "punctuation.definition.comment.objc"
|
424
|
-
}
|
425
|
-
},
|
426
413
|
"end": "\\n",
|
427
|
-
"name": "comment.line.double-slash.objc",
|
428
414
|
"patterns": [
|
429
415
|
{
|
430
|
-
"
|
431
|
-
"
|
416
|
+
"name": "punctuation.separator.continuation.objc",
|
417
|
+
"match": "(?\u003e\\\\\\s*\\n)"
|
432
418
|
}
|
433
|
-
]
|
419
|
+
],
|
420
|
+
"beginCaptures": {
|
421
|
+
"0": {
|
422
|
+
"name": "punctuation.definition.comment.objc"
|
423
|
+
}
|
424
|
+
}
|
434
425
|
}
|
435
|
-
]
|
426
|
+
],
|
427
|
+
"beginCaptures": {
|
428
|
+
"1": {
|
429
|
+
"name": "punctuation.whitespace.comment.leading.objc"
|
430
|
+
}
|
431
|
+
}
|
436
432
|
}
|
437
433
|
]
|
438
434
|
},
|
439
435
|
"disabled": {
|
440
436
|
"begin": "^\\s*#\\s*if(n?def)?\\b.*$",
|
441
|
-
"comment": "eat nested preprocessor if(def)s",
|
442
437
|
"end": "^\\s*#\\s*endif\\b.*$",
|
443
438
|
"patterns": [
|
444
439
|
{
|
@@ -500,18 +495,30 @@
|
|
500
495
|
]
|
501
496
|
},
|
502
497
|
"method": {
|
498
|
+
"name": "meta.function.objc",
|
503
499
|
"begin": "^(-|\\+)\\s*",
|
504
500
|
"end": "(?=\\{|#)|;",
|
505
|
-
"name": "meta.function.objc",
|
506
501
|
"patterns": [
|
507
502
|
{
|
503
|
+
"name": "meta.return-type.objc",
|
508
504
|
"begin": "(\\()",
|
505
|
+
"end": "(\\))\\s*(\\w+\\b)",
|
506
|
+
"patterns": [
|
507
|
+
{
|
508
|
+
"include": "#protocol_list"
|
509
|
+
},
|
510
|
+
{
|
511
|
+
"include": "#protocol_type_qualifier"
|
512
|
+
},
|
513
|
+
{
|
514
|
+
"include": "$base"
|
515
|
+
}
|
516
|
+
],
|
509
517
|
"beginCaptures": {
|
510
518
|
"1": {
|
511
519
|
"name": "punctuation.definition.type.begin.objc"
|
512
520
|
}
|
513
521
|
},
|
514
|
-
"end": "(\\))\\s*(\\w+\\b)",
|
515
522
|
"endCaptures": {
|
516
523
|
"1": {
|
517
524
|
"name": "punctuation.definition.type.end.objc"
|
@@ -519,8 +526,16 @@
|
|
519
526
|
"2": {
|
520
527
|
"name": "entity.name.function.objc"
|
521
528
|
}
|
522
|
-
}
|
523
|
-
|
529
|
+
}
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"name": "entity.name.function.name-of-parameter.objc",
|
533
|
+
"match": "\\b\\w+(?=:)"
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"name": "meta.argument-type.objc",
|
537
|
+
"begin": "((:))\\s*(\\()",
|
538
|
+
"end": "(\\))\\s*(\\w+\\b)?",
|
524
539
|
"patterns": [
|
525
540
|
{
|
526
541
|
"include": "#protocol_list"
|
@@ -531,14 +546,7 @@
|
|
531
546
|
{
|
532
547
|
"include": "$base"
|
533
548
|
}
|
534
|
-
]
|
535
|
-
},
|
536
|
-
{
|
537
|
-
"match": "\\b\\w+(?=:)",
|
538
|
-
"name": "entity.name.function.name-of-parameter.objc"
|
539
|
-
},
|
540
|
-
{
|
541
|
-
"begin": "((:))\\s*(\\()",
|
549
|
+
],
|
542
550
|
"beginCaptures": {
|
543
551
|
"1": {
|
544
552
|
"name": "entity.name.function.name-of-parameter.objc"
|
@@ -550,7 +558,6 @@
|
|
550
558
|
"name": "punctuation.definition.type.begin.objc"
|
551
559
|
}
|
552
560
|
},
|
553
|
-
"end": "(\\))\\s*(\\w+\\b)?",
|
554
561
|
"endCaptures": {
|
555
562
|
"1": {
|
556
563
|
"name": "punctuation.definition.type.end.objc"
|
@@ -558,19 +565,7 @@
|
|
558
565
|
"2": {
|
559
566
|
"name": "variable.parameter.function.objc"
|
560
567
|
}
|
561
|
-
}
|
562
|
-
"name": "meta.argument-type.objc",
|
563
|
-
"patterns": [
|
564
|
-
{
|
565
|
-
"include": "#protocol_list"
|
566
|
-
},
|
567
|
-
{
|
568
|
-
"include": "#protocol_type_qualifier"
|
569
|
-
},
|
570
|
-
{
|
571
|
-
"include": "$base"
|
572
|
-
}
|
573
|
-
]
|
568
|
+
}
|
574
569
|
},
|
575
570
|
{
|
576
571
|
"include": "#comment"
|
@@ -578,9 +573,9 @@
|
|
578
573
|
]
|
579
574
|
},
|
580
575
|
"method_super": {
|
581
|
-
"begin": "^(?=-|\\+)",
|
582
|
-
"end": "(?<=\\})|(?=#)",
|
583
576
|
"name": "meta.function-with-body.objc",
|
577
|
+
"begin": "^(?=-|\\+)",
|
578
|
+
"end": "(?\u003c=\\})|(?=#)",
|
584
579
|
"patterns": [
|
585
580
|
{
|
586
581
|
"include": "#method"
|
@@ -591,6 +586,8 @@
|
|
591
586
|
]
|
592
587
|
},
|
593
588
|
"pragma-mark": {
|
589
|
+
"name": "meta.section",
|
590
|
+
"match": "^\\s*(#\\s*(pragma\\s+mark)\\s+(.*))",
|
594
591
|
"captures": {
|
595
592
|
"1": {
|
596
593
|
"name": "meta.preprocessor.c"
|
@@ -601,27 +598,20 @@
|
|
601
598
|
"3": {
|
602
599
|
"name": "meta.toc-list.pragma-mark.c"
|
603
600
|
}
|
604
|
-
}
|
605
|
-
"match": "^\\s*(#\\s*(pragma\\s+mark)\\s+(.*))",
|
606
|
-
"name": "meta.section"
|
601
|
+
}
|
607
602
|
},
|
608
603
|
"preprocessor-rule-disabled-implementation": {
|
609
604
|
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
610
|
-
"captures": {
|
611
|
-
"1": {
|
612
|
-
"name": "meta.preprocessor.c"
|
613
|
-
},
|
614
|
-
"2": {
|
615
|
-
"name": "keyword.control.import.if.c"
|
616
|
-
},
|
617
|
-
"3": {
|
618
|
-
"name": "constant.numeric.preprocessor.c"
|
619
|
-
}
|
620
|
-
},
|
621
605
|
"end": "^\\s*(#\\s*(endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
622
606
|
"patterns": [
|
623
607
|
{
|
624
608
|
"begin": "^\\s*(#\\s*(else)\\b)",
|
609
|
+
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
610
|
+
"patterns": [
|
611
|
+
{
|
612
|
+
"include": "#interface_innards"
|
613
|
+
}
|
614
|
+
],
|
625
615
|
"captures": {
|
626
616
|
"1": {
|
627
617
|
"name": "meta.preprocessor.c"
|
@@ -629,18 +619,11 @@
|
|
629
619
|
"2": {
|
630
620
|
"name": "keyword.control.import.else.c"
|
631
621
|
}
|
632
|
-
}
|
633
|
-
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
634
|
-
"patterns": [
|
635
|
-
{
|
636
|
-
"include": "#interface_innards"
|
637
|
-
}
|
638
|
-
]
|
622
|
+
}
|
639
623
|
},
|
640
624
|
{
|
641
|
-
"begin": "",
|
642
|
-
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
643
625
|
"name": "comment.block.preprocessor.if-branch.c",
|
626
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
644
627
|
"patterns": [
|
645
628
|
{
|
646
629
|
"include": "#disabled"
|
@@ -650,10 +633,7 @@
|
|
650
633
|
}
|
651
634
|
]
|
652
635
|
}
|
653
|
-
]
|
654
|
-
},
|
655
|
-
"preprocessor-rule-disabled-interface": {
|
656
|
-
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
636
|
+
],
|
657
637
|
"captures": {
|
658
638
|
"1": {
|
659
639
|
"name": "meta.preprocessor.c"
|
@@ -664,11 +644,20 @@
|
|
664
644
|
"3": {
|
665
645
|
"name": "constant.numeric.preprocessor.c"
|
666
646
|
}
|
667
|
-
}
|
647
|
+
}
|
648
|
+
},
|
649
|
+
"preprocessor-rule-disabled-interface": {
|
650
|
+
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
668
651
|
"end": "^\\s*(#\\s*(endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
669
652
|
"patterns": [
|
670
653
|
{
|
671
654
|
"begin": "^\\s*(#\\s*(else)\\b)",
|
655
|
+
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
656
|
+
"patterns": [
|
657
|
+
{
|
658
|
+
"include": "#interface_innards"
|
659
|
+
}
|
660
|
+
],
|
672
661
|
"captures": {
|
673
662
|
"1": {
|
674
663
|
"name": "meta.preprocessor.c"
|
@@ -676,18 +665,11 @@
|
|
676
665
|
"2": {
|
677
666
|
"name": "keyword.control.import.else.c"
|
678
667
|
}
|
679
|
-
}
|
680
|
-
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
681
|
-
"patterns": [
|
682
|
-
{
|
683
|
-
"include": "#interface_innards"
|
684
|
-
}
|
685
|
-
]
|
668
|
+
}
|
686
669
|
},
|
687
670
|
{
|
688
|
-
"begin": "",
|
689
|
-
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
690
671
|
"name": "comment.block.preprocessor.if-branch.c",
|
672
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
691
673
|
"patterns": [
|
692
674
|
{
|
693
675
|
"include": "#disabled"
|
@@ -697,10 +679,7 @@
|
|
697
679
|
}
|
698
680
|
]
|
699
681
|
}
|
700
|
-
]
|
701
|
-
},
|
702
|
-
"preprocessor-rule-enabled-implementation": {
|
703
|
-
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
682
|
+
],
|
704
683
|
"captures": {
|
705
684
|
"1": {
|
706
685
|
"name": "meta.preprocessor.c"
|
@@ -711,20 +690,15 @@
|
|
711
690
|
"3": {
|
712
691
|
"name": "constant.numeric.preprocessor.c"
|
713
692
|
}
|
714
|
-
}
|
693
|
+
}
|
694
|
+
},
|
695
|
+
"preprocessor-rule-enabled-implementation": {
|
696
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
715
697
|
"end": "^\\s*(#\\s*(endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
716
698
|
"patterns": [
|
717
699
|
{
|
718
|
-
"begin": "^\\s*(#\\s*(else)\\b).*",
|
719
|
-
"captures": {
|
720
|
-
"1": {
|
721
|
-
"name": "meta.preprocessor.c"
|
722
|
-
},
|
723
|
-
"2": {
|
724
|
-
"name": "keyword.control.import.else.c"
|
725
|
-
}
|
726
|
-
},
|
727
700
|
"contentName": "comment.block.preprocessor.else-branch.c",
|
701
|
+
"begin": "^\\s*(#\\s*(else)\\b).*",
|
728
702
|
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
729
703
|
"patterns": [
|
730
704
|
{
|
@@ -733,10 +707,17 @@
|
|
733
707
|
{
|
734
708
|
"include": "#pragma-mark"
|
735
709
|
}
|
736
|
-
]
|
710
|
+
],
|
711
|
+
"captures": {
|
712
|
+
"1": {
|
713
|
+
"name": "meta.preprocessor.c"
|
714
|
+
},
|
715
|
+
"2": {
|
716
|
+
"name": "keyword.control.import.else.c"
|
717
|
+
}
|
718
|
+
}
|
737
719
|
},
|
738
720
|
{
|
739
|
-
"begin": "",
|
740
721
|
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
741
722
|
"patterns": [
|
742
723
|
{
|
@@ -744,10 +725,7 @@
|
|
744
725
|
}
|
745
726
|
]
|
746
727
|
}
|
747
|
-
]
|
748
|
-
},
|
749
|
-
"preprocessor-rule-enabled-interface": {
|
750
|
-
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
728
|
+
],
|
751
729
|
"captures": {
|
752
730
|
"1": {
|
753
731
|
"name": "meta.preprocessor.c"
|
@@ -758,20 +736,15 @@
|
|
758
736
|
"3": {
|
759
737
|
"name": "constant.numeric.preprocessor.c"
|
760
738
|
}
|
761
|
-
}
|
739
|
+
}
|
740
|
+
},
|
741
|
+
"preprocessor-rule-enabled-interface": {
|
742
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
762
743
|
"end": "^\\s*(#\\s*(endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
763
744
|
"patterns": [
|
764
745
|
{
|
765
|
-
"begin": "^\\s*(#\\s*(else)\\b).*",
|
766
|
-
"captures": {
|
767
|
-
"1": {
|
768
|
-
"name": "meta.preprocessor.c"
|
769
|
-
},
|
770
|
-
"2": {
|
771
|
-
"name": "keyword.control.import.else.c"
|
772
|
-
}
|
773
|
-
},
|
774
746
|
"contentName": "comment.block.preprocessor.else-branch.c",
|
747
|
+
"begin": "^\\s*(#\\s*(else)\\b).*",
|
775
748
|
"end": "(?=^\\s*#\\s*endif\\b.*?(?:(?=(?://|/\\*))|$))",
|
776
749
|
"patterns": [
|
777
750
|
{
|
@@ -780,10 +753,17 @@
|
|
780
753
|
{
|
781
754
|
"include": "#pragma-mark"
|
782
755
|
}
|
783
|
-
]
|
756
|
+
],
|
757
|
+
"captures": {
|
758
|
+
"1": {
|
759
|
+
"name": "meta.preprocessor.c"
|
760
|
+
},
|
761
|
+
"2": {
|
762
|
+
"name": "keyword.control.import.else.c"
|
763
|
+
}
|
764
|
+
}
|
784
765
|
},
|
785
766
|
{
|
786
|
-
"begin": "",
|
787
767
|
"end": "(?=^\\s*#\\s*(else|endif)\\b.*?(?:(?=(?://|/\\*))|$))",
|
788
768
|
"patterns": [
|
789
769
|
{
|
@@ -791,27 +771,27 @@
|
|
791
771
|
}
|
792
772
|
]
|
793
773
|
}
|
794
|
-
]
|
795
|
-
},
|
796
|
-
"preprocessor-rule-other-implementation": {
|
797
|
-
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
774
|
+
],
|
798
775
|
"captures": {
|
799
776
|
"1": {
|
800
777
|
"name": "meta.preprocessor.c"
|
801
778
|
},
|
802
779
|
"2": {
|
803
|
-
"name": "keyword.control.import.c"
|
780
|
+
"name": "keyword.control.import.if.c"
|
781
|
+
},
|
782
|
+
"3": {
|
783
|
+
"name": "constant.numeric.preprocessor.c"
|
804
784
|
}
|
805
|
-
}
|
785
|
+
}
|
786
|
+
},
|
787
|
+
"preprocessor-rule-other-implementation": {
|
788
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
806
789
|
"end": "^\\s*(#\\s*(endif)\\b).*?(?:(?=(?://|/\\*))|$)",
|
807
790
|
"patterns": [
|
808
791
|
{
|
809
792
|
"include": "#implementation_innards"
|
810
793
|
}
|
811
|
-
]
|
812
|
-
},
|
813
|
-
"preprocessor-rule-other-interface": {
|
814
|
-
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
794
|
+
],
|
815
795
|
"captures": {
|
816
796
|
"1": {
|
817
797
|
"name": "meta.preprocessor.c"
|
@@ -819,18 +799,37 @@
|
|
819
799
|
"2": {
|
820
800
|
"name": "keyword.control.import.c"
|
821
801
|
}
|
822
|
-
}
|
802
|
+
}
|
803
|
+
},
|
804
|
+
"preprocessor-rule-other-interface": {
|
805
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
823
806
|
"end": "^\\s*(#\\s*(endif)\\b).*?(?:(?=(?://|/\\*))|$)",
|
824
807
|
"patterns": [
|
825
808
|
{
|
826
809
|
"include": "#interface_innards"
|
827
810
|
}
|
828
|
-
]
|
811
|
+
],
|
812
|
+
"captures": {
|
813
|
+
"1": {
|
814
|
+
"name": "meta.preprocessor.c"
|
815
|
+
},
|
816
|
+
"2": {
|
817
|
+
"name": "keyword.control.import.c"
|
818
|
+
}
|
819
|
+
}
|
829
820
|
},
|
830
821
|
"properties": {
|
831
822
|
"patterns": [
|
832
823
|
{
|
824
|
+
"name": "meta.property-with-attributes.objc",
|
833
825
|
"begin": "((@)property)\\s*(\\()",
|
826
|
+
"end": "(\\))",
|
827
|
+
"patterns": [
|
828
|
+
{
|
829
|
+
"name": "keyword.other.property.attribute",
|
830
|
+
"match": "\\b(getter|setter|readonly|readwrite|assign|retain|copy|atomic|nonatomic|strong|weak|nullable|nonnull|class)\\b"
|
831
|
+
}
|
832
|
+
],
|
834
833
|
"beginCaptures": {
|
835
834
|
"1": {
|
836
835
|
"name": "keyword.other.property.objc"
|
@@ -842,21 +841,15 @@
|
|
842
841
|
"name": "punctuation.section.scope.begin.objc"
|
843
842
|
}
|
844
843
|
},
|
845
|
-
"end": "(\\))",
|
846
844
|
"endCaptures": {
|
847
845
|
"1": {
|
848
846
|
"name": "punctuation.section.scope.end.objc"
|
849
847
|
}
|
850
|
-
}
|
851
|
-
"name": "meta.property-with-attributes.objc",
|
852
|
-
"patterns": [
|
853
|
-
{
|
854
|
-
"match": "\\b(getter|setter|readonly|readwrite|assign|retain|copy|atomic|nonatomic|strong|weak|nullable|nonnull|class)\\b",
|
855
|
-
"name": "keyword.other.property.attribute"
|
856
|
-
}
|
857
|
-
]
|
848
|
+
}
|
858
849
|
},
|
859
850
|
{
|
851
|
+
"name": "meta.property.objc",
|
852
|
+
"match": "((@)property)\\b",
|
860
853
|
"captures": {
|
861
854
|
"1": {
|
862
855
|
"name": "keyword.other.property.objc"
|
@@ -864,58 +857,54 @@
|
|
864
857
|
"2": {
|
865
858
|
"name": "punctuation.definition.keyword.objc"
|
866
859
|
}
|
867
|
-
}
|
868
|
-
"match": "((@)property)\\b",
|
869
|
-
"name": "meta.property.objc"
|
860
|
+
}
|
870
861
|
}
|
871
862
|
]
|
872
863
|
},
|
873
864
|
"property_directive": {
|
865
|
+
"name": "keyword.other.property.directive.objc",
|
866
|
+
"match": "(@)(dynamic|synthesize)\\b",
|
874
867
|
"captures": {
|
875
868
|
"1": {
|
876
869
|
"name": "punctuation.definition.keyword.objc"
|
877
870
|
}
|
878
|
-
}
|
879
|
-
"match": "(@)(dynamic|synthesize)\\b",
|
880
|
-
"name": "keyword.other.property.directive.objc"
|
871
|
+
}
|
881
872
|
},
|
882
873
|
"protocol_list": {
|
883
|
-
"
|
874
|
+
"name": "meta.protocol-list.objc",
|
875
|
+
"begin": "(\u003c)",
|
876
|
+
"end": "(\u003e)",
|
877
|
+
"patterns": [
|
878
|
+
{
|
879
|
+
"include": "source.objc.platform#protocols"
|
880
|
+
}
|
881
|
+
],
|
884
882
|
"beginCaptures": {
|
885
883
|
"1": {
|
886
884
|
"name": "punctuation.section.scope.begin.objc"
|
887
885
|
}
|
888
886
|
},
|
889
|
-
"end": "(>)",
|
890
887
|
"endCaptures": {
|
891
888
|
"1": {
|
892
889
|
"name": "punctuation.section.scope.end.objc"
|
893
890
|
}
|
894
|
-
}
|
895
|
-
"name": "meta.protocol-list.objc",
|
896
|
-
"patterns": [
|
897
|
-
{
|
898
|
-
"include": "source.objc.platform#protocols"
|
899
|
-
}
|
900
|
-
]
|
891
|
+
}
|
901
892
|
},
|
902
893
|
"protocol_type_qualifier": {
|
903
|
-
"
|
904
|
-
"
|
894
|
+
"name": "storage.modifier.protocol.objc",
|
895
|
+
"match": "\\b(in|out|inout|oneway|bycopy|byref)\\b"
|
905
896
|
},
|
906
897
|
"special_variables": {
|
907
898
|
"patterns": [
|
908
899
|
{
|
909
|
-
"
|
910
|
-
"
|
900
|
+
"name": "variable.other.selector.objc",
|
901
|
+
"match": "\\b_cmd\\b"
|
911
902
|
},
|
912
903
|
{
|
913
|
-
"
|
914
|
-
"
|
904
|
+
"name": "variable.language.objc",
|
905
|
+
"match": "\\b(self|super)\\b"
|
915
906
|
}
|
916
907
|
]
|
917
908
|
}
|
918
|
-
}
|
919
|
-
|
920
|
-
"uuid": "F85CC716-6B1C-11D9-9A20-000D93589AF6"
|
921
|
-
}
|
909
|
+
}
|
910
|
+
}
|