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.c++.qt.json
CHANGED
@@ -1,37 +1,29 @@
|
|
1
1
|
{
|
2
|
-
"fileTypes": [
|
3
|
-
|
4
|
-
],
|
5
|
-
"firstLineMatch": "-\\*- C\\+\\+ -\\*-",
|
6
|
-
"foldingStartMarker": "(?x)\n\t\t /\\*\\*(?!\\*)\n\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\t",
|
7
|
-
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}",
|
8
|
-
"keyEquivalent": "^~Q",
|
9
2
|
"name": "C++ Qt",
|
3
|
+
"scopeName": "source.c++.qt",
|
10
4
|
"patterns": [
|
11
5
|
{
|
12
|
-
"
|
13
|
-
"
|
6
|
+
"name": "support.other.macro.qt",
|
7
|
+
"match": "\\bQ_(CLASSINFO|ENUMS|FLAGS|INTERFACES|OBJECT|PROPERTY)\\b"
|
14
8
|
},
|
15
9
|
{
|
16
|
-
"
|
17
|
-
"
|
10
|
+
"name": "support.function.qt",
|
11
|
+
"match": "\\b((dis)?connect|emit|fore(ach|ver)|tr(Utf8)?|qobject_cast)\\b"
|
18
12
|
},
|
19
13
|
{
|
20
|
-
"
|
21
|
-
"
|
14
|
+
"name": "support.class.qt",
|
15
|
+
"match": "\\bQ(Abstract(Button|EventDispatcher|Extension(Factory|Manager)|FileEngine(Handler)?|FormBuilder|GraphicsShapeItem|Item(Delegate|Model|View)|ListModel|PrintDialog|ProxyModel|ScrollArea|Slider|Socket|SpinBox|TableModel|TextDocumentLayout)|Accessible(Bridge|BridgePlugin|Event|Interface|Object|Plugin|Widget)?|Action(Event|Group)?|(Core)?Application|AssistantClient|Ax(Aggregated|Base|Bindable|Factory|Object|Script|ScriptEngine|ScriptManager|Widget)|BasicTimer|Bit(Array|map)|BoxLayout|Brush|Buffer|ButtonBox|ButtonGroup|ByteArray(Matcher)?|(CDE|Windows(XP)?|Cleanlooks|Common|Mac|Plastique|Motif)Style|Cache|CalendarWidget|Char|CheckBox|ChildEvent|Clipboard|CloseEvent|Color(Dialog|map)?|ComboBox|Completer|ConicalGradient|ContextMenuEvent|CopChannel|Cursor|CustomRasterPaintDevice|DBus(AbstractAdaptor|AbstractInterface|Argument|Connection(Interface)?|Error|Interface|Message|ObjectPath|Reply|Server|Signature|Variant)|Data(Stream|WidgetMapper)|Date((Time)?(Edit)?)|Decoration(Factory|Plugin)?|Designer(ActionEditorInterface|ContainerExtension|CustomWidgetCollectionInterface|CustomWidgetInterface|FormEditorInterface|FormWindowCursorInterface|FormWindowInterface|FormWindowManagerInterface|MemberSheetExtension|ObjectInspectorInterface|PropertyEditorInterface|PropertySheetExtension|TaskMenuExtension|WidgetBoxInterface)|Desktop(Services|Widget)|Dial(og|ogButtonBox)?|Dir(Model|ectPainter)?|DockWidget|Dom(Attr|CDATASection|CharacterData|Comment|Document|DocumentFragment|DocumentType|Element|Entity|EntityReference|Implementation|NamedNodeMap|Node|NodeList|Notation|ProcessingInstruction|Text)|Double(SpinBox|Validator)|Drag((Enter|Leave|Move)Event)?|(Drop|DynamicPropertyChange)Event|ErrorMessage|Event(Loop)?|Extension(Factory|Manager)|FSFileEngine|File(Dialog|IconProvider|Info|OpenEvent|SystemWatcher)?|Flags?|Focus(Event|Frame)|Font(ComboBox|Database|Dialog|Info|MetricsF?)?|FormBuilder|Frame|Ftp|GL(Colormap|Context|Format|FramebufferObject|PixelBuffer|Widget)|Generic(Return)?Argument|Gradient|Graphics(EllipseItem|Item|ItemAnimation|ItemGroup|LineItem|PathItem|PixmapItem|PolygonItem|RectItem|Scene((ContextMenu|Hover|Mouse|Wheel)?Event)?|SimpleTextItem|SvgItem|TextItem|View)|GridLayout|GroupBox|HBoxLayout|Hash(Iterator)?|HeaderView|(Help|Hide|Hover)Event|Host(Address|Info)|Http((Response|Request)?Header)?|IODevice|Icon(DragEvent|Engine(Plugin)?)?|Image(IO(Handler|Plugin)|Reader|Writer)?|Input(Context(Factory|Plugin)?|Dialog|Event|MethodEvent)|IntValidator|Item(Delegate|Editor(CreatorBase|Factory)|Selection(Model|Range)?)|KbdDriver(Factory|Plugin)|Key(Event|Sequence)|LCDNumber|Label|Latin1(Char|String)|Layout(Item)?|Library(Info)?|Line(Edit|F)?|LinearGradient|LinkedList(Iterator)?|LinuxFbScreen|List(View|Iterator|Widget(Item)?)?|Locale|MacPasteboardMime|MainWindow|Map(Iterator)?|Matrix|Menu(Bar)?|MessageBox|Meta(ClassInfo|Enum|Method|Object|Property|Type)|Mime(Data|Source)|ModelIndex|MouseDriver(Factory|Plugin)|(Move|Mouse)Event|Movie|Multi(Hash|Map)|Mutable(Hash|(Linked)?List|Map|Set|Vector)Iterator|Mutex(Locker)?|Network(AddressEntry|Interface|Proxy)|Object(CleanupHandler)?|PageSetupDialog|Paint(Device|Engine(State)?|Event|er(Path(Stroker)?)?)|Pair|Palette|Pen|PersistentModelIndex|Picture(FormatPlugin|IO)?|Pixmap(Cache)?|PluginLoader|PointF?|Pointer|PolygonF?|Print(Dialog|Engine|er)|Process|Progress(Bar|Dialog)|ProxyModel|PushButton|Queue|RadialGradient|RadioButton|RasterPaintEngine|ReadLocker|ReadWriteLock|RectF?|RegExp(Validator)?|Region|ResizeEvent|Resource|RubberBand|Screen(Cursor|Driver(Factory|Plugin))?|Scroll(Area|Bar)|Semaphore|SessionManager|Set(Iterator)?|Settings|SharedData(Pointer)?|Shortcut(Event)?|ShowEvent|Signal(Mapper|Spy)|Size(Grip|Policy|F)?|Slider|SocketNotifier|SortFilterProxyModel|Sound|SpacerItem|SpinBox|SplashScreen|Splitter(Handle)?|Sql(Database|Driver(Creator(Base)?|Plugin)?|Error|Field|Index|Query(Model)?|Record|Relation|Relational(Delegate|TableModel)|Result|TableModel)|Stack(ed(Layout|Widget))?|StandardItem(EditorCreator|Model)?|Status(Bar|TipEvent)|String(List(Model)?|Matcher)?|Style(Factory|HintReturn(Mask)?|Option(Button|ComboBox|Complex|DockWidget|FocusRect|Frame(V2)?|GraphicsItem|GroupBox|Header|MenuItem|ProgressBar(V2)?|Q3(DockWindow|ListView|ListViewItem)|RubberBand|SizeGrip|Slider|SpinBox|Tab(BarBase|V2|WidgetFrame)?|TitleBar|Tool(Bar|Box|Button)|ViewItem(V2)?)?|Painter|Plugin)?|Svg(Renderer|Widget)|SyntaxHighlighter|SysInfo|System(Locale|TrayIcon)|Tab(Bar|Widget)|Table(Widget(Item|SelectionRange)?|View)|TabletEvent|Tcp(Server|Socket)|TemporaryFile|TestEventList|Text(Block(Format|Group|UserData)?|Browser|CharFormat|Codec(Plugin)?|Cursor|(De|En)coder|Document(Fragment)?|Edit|Fragment|Frame(Format)?|(Image)?Format|InlineObject|Layout|Length|Line|List(Format)?|Object|Option|Stream|Table(Cell|Format)?)|Thread(Storage)?|Time(Edit|Line)?|Timer(Event)?|Tool(Bar|Box|Button|Tip)|TransformedScreen|Translator|Tree(Widget(Item(Iterator)?)?|View)|UdpSocket|UiLoader|Undo(Command|Group|Stack|View)|Url(Info)?|Uuid|VBoxLayout|(VNC|VFb)Screen|Validator|VarLengthArray|Variant|Vector(Iterator)?|WS(Client|EmbedWidget|Event|InputMethod|(Keyboard|(Tslib|Calibrated)?Mouse)Handler|PointerCalibrationData|ScreenSaver|Server|Window(Surface)?)|WaitCondition|WhatsThis(ClickedEvent)?|WheelEvent|Widget(Action|Item)?|Window(StateChangeEvent|sMime)|Workspace|WriteLocker|X11Embed(Container|Widget)|X11Info|Xml(Attributes|(Content|DTD|Decl|Default|Error|Lexical)Handler|EntityResolver|InputSource|Locator|NamespaceSupport|ParseException|Reader|SimpleReader))\\b"
|
22
16
|
},
|
23
17
|
{
|
24
|
-
"
|
25
|
-
"
|
18
|
+
"name": "storage.type.qt",
|
19
|
+
"match": "\\b(q(int8|int16|int32|int64|longlong|real|uint8|uint16|uint32|uint64|ulonglong)|u(char|int|long|short))\\b"
|
26
20
|
},
|
27
21
|
{
|
28
|
-
"
|
29
|
-
"
|
22
|
+
"name": "storage.modifier.qt",
|
23
|
+
"match": "\\b((public|private|protected) slots|signals)\\b"
|
30
24
|
},
|
31
25
|
{
|
32
26
|
"include": "source.c++"
|
33
27
|
}
|
34
|
-
]
|
35
|
-
|
36
|
-
"uuid": "C0D24A46-0534-11DB-8949-0011242E4184"
|
37
|
-
}
|
28
|
+
]
|
29
|
+
}
|
data/grammars/source.c.ec.json
CHANGED
@@ -1,39 +1,33 @@
|
|
1
1
|
{
|
2
|
-
"fileTypes": [
|
3
|
-
"ec",
|
4
|
-
"eh"
|
5
|
-
],
|
6
|
-
"keyEquivalent": "^~E",
|
7
2
|
"name": "eC",
|
3
|
+
"scopeName": "source.c.ec",
|
8
4
|
"patterns": [
|
9
5
|
{
|
10
6
|
"include": "source.c"
|
11
7
|
},
|
12
8
|
{
|
13
|
-
"
|
14
|
-
"
|
9
|
+
"name": "keyword.other.ec",
|
10
|
+
"match": "\\b(property|import|delete|new|new0|renew|renew0|define|get|set|remote|dllexport|dllimport|stdcall|subclass|__on_register_module|namespace|using|typed_object|any_object|incref|register|watch|stopwatching|firewatchers|watchable|class_designer|class_fixed|class_no_expansion|isset|class_default_property|property_category|class_data|class_property|virtual|thisclass|dbtable|dbindex|database_open|dbfield|this|value)\\b"
|
15
11
|
},
|
16
12
|
{
|
17
|
-
"
|
18
|
-
"
|
13
|
+
"name": "constant.language.boolean.ec",
|
14
|
+
"match": "\\b(true|false)\\b"
|
19
15
|
},
|
20
16
|
{
|
21
|
-
"
|
22
|
-
"
|
17
|
+
"name": "constant.language.null.ec",
|
18
|
+
"match": "\\bnull\\b"
|
23
19
|
},
|
24
20
|
{
|
25
|
-
"
|
26
|
-
"
|
21
|
+
"name": "storage.type.class.ec",
|
22
|
+
"match": "\\bclass\\b"
|
27
23
|
},
|
28
24
|
{
|
29
|
-
"
|
30
|
-
"
|
25
|
+
"name": "storage.modifier.ec",
|
26
|
+
"match": "\\b(private|public)\\b"
|
31
27
|
},
|
32
28
|
{
|
33
|
-
"
|
34
|
-
"
|
29
|
+
"name": "storage.type.ec",
|
30
|
+
"match": "\\b(unichar|uint|uint32|uint16|uint64|bool|byte|int64|uintptr|intptr|intsize|uintsize)\\b"
|
35
31
|
}
|
36
|
-
]
|
37
|
-
|
38
|
-
"uuid": "30A57404-CF1D-48D7-827B-864B0FFEB951"
|
39
|
-
}
|
32
|
+
]
|
33
|
+
}
|
data/grammars/source.c.json
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
{
|
2
|
-
"fileTypes": [
|
3
|
-
"c",
|
4
|
-
"h"
|
5
|
-
],
|
6
|
-
"firstLineMatch": "-[*]-( Mode:)? C -[*]-",
|
7
|
-
"keyEquivalent": "^~C",
|
8
2
|
"name": "C",
|
3
|
+
"scopeName": "source.c",
|
9
4
|
"patterns": [
|
10
5
|
{
|
11
6
|
"include": "#preprocessor-rule-enabled"
|
@@ -23,91 +18,101 @@
|
|
23
18
|
"include": "source.c.platform"
|
24
19
|
},
|
25
20
|
{
|
26
|
-
"
|
27
|
-
"
|
21
|
+
"name": "keyword.control.c",
|
22
|
+
"match": "\\b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\\b"
|
28
23
|
},
|
29
24
|
{
|
30
|
-
"
|
31
|
-
"
|
25
|
+
"name": "storage.type.c",
|
26
|
+
"match": "\\b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\b"
|
32
27
|
},
|
33
28
|
{
|
34
|
-
"
|
35
|
-
"
|
29
|
+
"name": "storage.modifier.c",
|
30
|
+
"match": "\\b(const|extern|register|restrict|static|volatile|inline)\\b"
|
36
31
|
},
|
37
32
|
{
|
38
|
-
"
|
39
|
-
"match": "\\bk[A-Z]\\w*\\b"
|
40
|
-
"name": "constant.other.variable.mac-classic.c"
|
33
|
+
"name": "constant.other.variable.mac-classic.c",
|
34
|
+
"match": "\\bk[A-Z]\\w*\\b"
|
41
35
|
},
|
42
36
|
{
|
43
|
-
"
|
44
|
-
"
|
37
|
+
"name": "variable.other.readwrite.global.mac-classic.c",
|
38
|
+
"match": "\\bg[A-Z]\\w*\\b"
|
45
39
|
},
|
46
40
|
{
|
47
|
-
"
|
48
|
-
"
|
41
|
+
"name": "variable.other.readwrite.static.mac-classic.c",
|
42
|
+
"match": "\\bs[A-Z]\\w*\\b"
|
49
43
|
},
|
50
44
|
{
|
51
|
-
"
|
52
|
-
"
|
45
|
+
"name": "constant.language.c",
|
46
|
+
"match": "\\b(NULL|true|false|TRUE|FALSE)\\b"
|
53
47
|
},
|
54
48
|
{
|
55
49
|
"include": "#sizeof"
|
56
50
|
},
|
57
51
|
{
|
52
|
+
"name": "constant.numeric.c",
|
53
|
+
"match": "(?x)\\b\n\t\t\t( (?i:\n\t\t\t 0x ( [0-9A-Fa-f]+ ( ' [0-9A-Fa-f]+ )* )? # Hexadecimal\n\t\t\t | 0b ( [0-1]+ ( ' [0-1]+ )* )? # Binary\n\t\t\t | 0 ( [0-7]+ ( ' [0-7]+ )* ) # Octal\n\t\t\t | ( [0-9]+ ( ' [0-9]+ )* ) # Decimal\n\t\t\t )\n\t\t\t ( ([uUfF] | u?ll? | U?LL?)\\b | (?\u003cinc\u003e') | \\b )\n\t\t\t| ( [0-9]+ ( ' [0-9]+ )* )?\n\t\t\t (?i:\n\t\t\t \\. ( [0-9]+ ( ' [0-9]+ )* ) E(\\+|-)? ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t | \\. ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t | E(\\+|-)? ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t )\n\t\t\t ( (?\u003cinc\u003e') | \\b )\n\t\t\t)",
|
58
54
|
"captures": {
|
59
55
|
"inc": {
|
60
56
|
"name": "invalid.illegal.digit-separator-should-not-be-last.c++"
|
61
57
|
}
|
62
|
-
}
|
63
|
-
"match": "(?x)\\b\n\t\t\t( (?i:\n\t\t\t 0x ( [0-9A-Fa-f]+ ( ' [0-9A-Fa-f]+ )* )? # Hexadecimal\n\t\t\t | 0b ( [0-1]+ ( ' [0-1]+ )* )? # Binary\n\t\t\t | 0 ( [0-7]+ ( ' [0-7]+ )* ) # Octal\n\t\t\t | ( [0-9]+ ( ' [0-9]+ )* ) # Decimal\n\t\t\t )\n\t\t\t ( ([uUfF] | u?ll? | U?LL?)\\b | (?<inc>') | \\b )\n\t\t\t| ( [0-9]+ ( ' [0-9]+ )* )?\n\t\t\t (?i:\n\t\t\t \\. ( [0-9]+ ( ' [0-9]+ )* ) E(\\+|-)? ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t | \\. ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t | E(\\+|-)? ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t )\n\t\t\t ( (?<inc>') | \\b )\n\t\t\t)",
|
64
|
-
"name": "constant.numeric.c"
|
58
|
+
}
|
65
59
|
},
|
66
60
|
{
|
61
|
+
"name": "string.quoted.double.c",
|
67
62
|
"begin": "\"",
|
63
|
+
"end": "\"",
|
64
|
+
"patterns": [
|
65
|
+
{
|
66
|
+
"include": "#string_escaped_char"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"include": "#string_placeholder"
|
70
|
+
}
|
71
|
+
],
|
68
72
|
"beginCaptures": {
|
69
73
|
"0": {
|
70
74
|
"name": "punctuation.definition.string.begin.c"
|
71
75
|
}
|
72
76
|
},
|
73
|
-
"end": "\"",
|
74
77
|
"endCaptures": {
|
75
78
|
"0": {
|
76
79
|
"name": "punctuation.definition.string.end.c"
|
77
80
|
}
|
78
|
-
}
|
79
|
-
|
81
|
+
}
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "string.quoted.single.c",
|
85
|
+
"begin": "'",
|
86
|
+
"end": "'",
|
80
87
|
"patterns": [
|
81
88
|
{
|
82
89
|
"include": "#string_escaped_char"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"include": "#string_placeholder"
|
86
90
|
}
|
87
|
-
]
|
88
|
-
},
|
89
|
-
{
|
90
|
-
"begin": "'",
|
91
|
+
],
|
91
92
|
"beginCaptures": {
|
92
93
|
"0": {
|
93
94
|
"name": "punctuation.definition.string.begin.c"
|
94
95
|
}
|
95
96
|
},
|
96
|
-
"end": "'",
|
97
97
|
"endCaptures": {
|
98
98
|
"0": {
|
99
99
|
"name": "punctuation.definition.string.end.c"
|
100
100
|
}
|
101
|
-
}
|
102
|
-
|
101
|
+
}
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"name": "meta.preprocessor.macro.c",
|
105
|
+
"begin": "(?x)\n \t\t^\\s*\\#\\s*(define)\\s+ # define\n \t\t((?\u003cid\u003e[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n \t\t(?: # and optionally:\n \t\t (\\() # an open parenthesis\n \t\t (\n \t\t \\s* \\g\u003cid\u003e \\s* # first argument\n \t\t ((,) \\s* \\g\u003cid\u003e \\s*)* # additional arguments\n \t\t (?:\\.\\.\\.)? # varargs ellipsis?\n \t\t )\n \t\t (\\)) # a close parenthesis\n \t\t)?\n \t",
|
106
|
+
"end": "(?=(?://|/\\*))|$",
|
103
107
|
"patterns": [
|
104
108
|
{
|
105
|
-
"
|
109
|
+
"name": "punctuation.separator.continuation.c",
|
110
|
+
"match": "(?\u003e\\\\\\s*\\n)"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"include": "$base"
|
106
114
|
}
|
107
|
-
]
|
108
|
-
},
|
109
|
-
{
|
110
|
-
"begin": "(?x)\n \t\t^\\s*\\#\\s*(define)\\s+ # define\n \t\t((?<id>[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n \t\t(?: # and optionally:\n \t\t (\\() # an open parenthesis\n \t\t (\n \t\t \\s* \\g<id> \\s* # first argument\n \t\t ((,) \\s* \\g<id> \\s*)* # additional arguments\n \t\t (?:\\.\\.\\.)? # varargs ellipsis?\n \t\t )\n \t\t (\\)) # a close parenthesis\n \t\t)?\n \t",
|
115
|
+
],
|
111
116
|
"beginCaptures": {
|
112
117
|
"1": {
|
113
118
|
"name": "keyword.control.import.define.c"
|
@@ -127,123 +132,100 @@
|
|
127
132
|
"8": {
|
128
133
|
"name": "punctuation.definition.parameters.end.c"
|
129
134
|
}
|
130
|
-
}
|
131
|
-
"end": "(?=(?://|/\\*))|$",
|
132
|
-
"name": "meta.preprocessor.macro.c",
|
133
|
-
"patterns": [
|
134
|
-
{
|
135
|
-
"match": "(?>\\\\\\s*\\n)",
|
136
|
-
"name": "punctuation.separator.continuation.c"
|
137
|
-
},
|
138
|
-
{
|
139
|
-
"include": "$base"
|
140
|
-
}
|
141
|
-
]
|
135
|
+
}
|
142
136
|
},
|
143
137
|
{
|
138
|
+
"name": "meta.preprocessor.diagnostic.c",
|
144
139
|
"begin": "^\\s*#\\s*(error|warning)\\b",
|
145
|
-
"captures": {
|
146
|
-
"1": {
|
147
|
-
"name": "keyword.control.import.error.c"
|
148
|
-
}
|
149
|
-
},
|
150
140
|
"end": "$",
|
151
|
-
"name": "meta.preprocessor.diagnostic.c",
|
152
141
|
"patterns": [
|
153
142
|
{
|
154
|
-
"
|
155
|
-
"
|
143
|
+
"name": "punctuation.separator.continuation.c",
|
144
|
+
"match": "(?\u003e\\\\\\s*\\n)"
|
156
145
|
}
|
157
|
-
]
|
158
|
-
},
|
159
|
-
{
|
160
|
-
"begin": "^\\s*#\\s*(include|import)\\b",
|
146
|
+
],
|
161
147
|
"captures": {
|
162
148
|
"1": {
|
163
|
-
"name": "keyword.control.import.
|
149
|
+
"name": "keyword.control.import.error.c"
|
164
150
|
}
|
165
|
-
}
|
166
|
-
|
151
|
+
}
|
152
|
+
},
|
153
|
+
{
|
167
154
|
"name": "meta.preprocessor.c.include",
|
155
|
+
"begin": "^\\s*#\\s*(include|import)\\b",
|
156
|
+
"end": "(?=(?://|/\\*))|$",
|
168
157
|
"patterns": [
|
169
158
|
{
|
170
|
-
"
|
171
|
-
"
|
159
|
+
"name": "punctuation.separator.continuation.c",
|
160
|
+
"match": "(?\u003e\\\\\\s*\\n)"
|
172
161
|
},
|
173
162
|
{
|
163
|
+
"name": "string.quoted.double.include.c",
|
174
164
|
"begin": "\"",
|
165
|
+
"end": "\"",
|
175
166
|
"beginCaptures": {
|
176
167
|
"0": {
|
177
168
|
"name": "punctuation.definition.string.begin.c"
|
178
169
|
}
|
179
170
|
},
|
180
|
-
"end": "\"",
|
181
171
|
"endCaptures": {
|
182
172
|
"0": {
|
183
173
|
"name": "punctuation.definition.string.end.c"
|
184
174
|
}
|
185
|
-
}
|
186
|
-
"name": "string.quoted.double.include.c"
|
175
|
+
}
|
187
176
|
},
|
188
177
|
{
|
189
|
-
"
|
178
|
+
"name": "string.quoted.other.lt-gt.include.c",
|
179
|
+
"begin": "\u003c",
|
180
|
+
"end": "\u003e",
|
190
181
|
"beginCaptures": {
|
191
182
|
"0": {
|
192
183
|
"name": "punctuation.definition.string.begin.c"
|
193
184
|
}
|
194
185
|
},
|
195
|
-
"end": ">",
|
196
186
|
"endCaptures": {
|
197
187
|
"0": {
|
198
188
|
"name": "punctuation.definition.string.end.c"
|
199
189
|
}
|
200
|
-
}
|
201
|
-
"name": "string.quoted.other.lt-gt.include.c"
|
190
|
+
}
|
202
191
|
}
|
203
|
-
]
|
192
|
+
],
|
193
|
+
"captures": {
|
194
|
+
"1": {
|
195
|
+
"name": "keyword.control.import.include.c"
|
196
|
+
}
|
197
|
+
}
|
204
198
|
},
|
205
199
|
{
|
206
200
|
"include": "#pragma-mark"
|
207
201
|
},
|
208
202
|
{
|
203
|
+
"name": "meta.preprocessor.c",
|
209
204
|
"begin": "^\\s*#\\s*(define|defined|elif|else|if|ifdef|ifndef|line|pragma|undef)\\b",
|
210
|
-
"captures": {
|
211
|
-
"1": {
|
212
|
-
"name": "keyword.control.import.c"
|
213
|
-
}
|
214
|
-
},
|
215
205
|
"end": "(?=(?://|/\\*))|$",
|
216
|
-
"name": "meta.preprocessor.c",
|
217
206
|
"patterns": [
|
218
207
|
{
|
219
|
-
"
|
220
|
-
"
|
208
|
+
"name": "punctuation.separator.continuation.c",
|
209
|
+
"match": "(?\u003e\\\\\\s*\\n)"
|
221
210
|
}
|
222
|
-
]
|
211
|
+
],
|
212
|
+
"captures": {
|
213
|
+
"1": {
|
214
|
+
"name": "keyword.control.import.c"
|
215
|
+
}
|
216
|
+
}
|
223
217
|
},
|
224
218
|
{
|
225
|
-
"
|
226
|
-
"match": "\\b([a-z0-9_]+_t)\\b"
|
227
|
-
"name": "support.type.posix-reserved.c"
|
219
|
+
"name": "support.type.posix-reserved.c",
|
220
|
+
"match": "\\b([a-z0-9_]+_t)\\b"
|
228
221
|
},
|
229
222
|
{
|
230
223
|
"include": "#block"
|
231
224
|
},
|
232
225
|
{
|
233
|
-
"begin": "(?x)\n \t\t(?: ^ # begin-of-line\n \t\t | \n \t\t (?: (?= \\s ) (?<!else|new|return) (?<=\\w) # or word + space before name\n \t\t | (?= \\s*[A-Za-z_] ) (?<!&&) (?<=[*&>]) # or type modifier before name\n \t\t )\n \t\t)\n \t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|sizeof|[cr]?iterate)\\s*\\()\n \t\t(\n \t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n \t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n \t\t)\n \t\t \\s*(?=\\()",
|
234
|
-
"beginCaptures": {
|
235
|
-
"1": {
|
236
|
-
"name": "punctuation.whitespace.function.leading.c"
|
237
|
-
},
|
238
|
-
"3": {
|
239
|
-
"name": "entity.name.function.c"
|
240
|
-
},
|
241
|
-
"4": {
|
242
|
-
"name": "punctuation.definition.parameters.c"
|
243
|
-
}
|
244
|
-
},
|
245
|
-
"end": "(?<=\\})|(?=#)|(;)",
|
246
226
|
"name": "meta.function.c",
|
227
|
+
"begin": "(?x)\n \t\t(?: ^ # begin-of-line\n \t\t | \n \t\t (?: (?= \\s ) (?\u003c!else|new|return) (?\u003c=\\w) # or word + space before name\n \t\t | (?= \\s*[A-Za-z_] ) (?\u003c!\u0026\u0026) (?\u003c=[*\u0026\u003e]) # or type modifier before name\n \t\t )\n \t\t)\n \t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|sizeof|[cr]?iterate)\\s*\\()\n \t\t(\n \t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n \t\t\t(?: (?\u003c=operator) (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n \t\t)\n \t\t \\s*(?=\\()",
|
228
|
+
"end": "(?\u003c=\\})|(?=#)|(;)",
|
247
229
|
"patterns": [
|
248
230
|
{
|
249
231
|
"include": "#comments"
|
@@ -252,17 +234,29 @@
|
|
252
234
|
"include": "#parens"
|
253
235
|
},
|
254
236
|
{
|
255
|
-
"
|
256
|
-
"
|
237
|
+
"name": "storage.modifier.$1.c++",
|
238
|
+
"match": "\\b(const|final|override|noexcept)\\b"
|
257
239
|
},
|
258
240
|
{
|
259
241
|
"include": "#block"
|
260
242
|
}
|
261
|
-
]
|
243
|
+
],
|
244
|
+
"beginCaptures": {
|
245
|
+
"1": {
|
246
|
+
"name": "punctuation.whitespace.function.leading.c"
|
247
|
+
},
|
248
|
+
"3": {
|
249
|
+
"name": "entity.name.function.c"
|
250
|
+
},
|
251
|
+
"4": {
|
252
|
+
"name": "punctuation.definition.parameters.c"
|
253
|
+
}
|
254
|
+
}
|
262
255
|
}
|
263
256
|
],
|
264
257
|
"repository": {
|
265
258
|
"access": {
|
259
|
+
"match": "(\\.)([a-zA-Z_][a-zA-Z_0-9]*)\\b(?!\\s*\\()",
|
266
260
|
"captures": {
|
267
261
|
"1": {
|
268
262
|
"name": "punctuation.separator.variable-access.c"
|
@@ -270,30 +264,29 @@
|
|
270
264
|
"2": {
|
271
265
|
"name": "variable.other.dot-access.c"
|
272
266
|
}
|
273
|
-
}
|
274
|
-
"match": "(\\.)([a-zA-Z_][a-zA-Z_0-9]*)\\b(?!\\s*\\()"
|
267
|
+
}
|
275
268
|
},
|
276
269
|
"block": {
|
277
270
|
"patterns": [
|
278
271
|
{
|
272
|
+
"name": "meta.block.c",
|
279
273
|
"begin": "\\{",
|
274
|
+
"end": "\\}",
|
275
|
+
"patterns": [
|
276
|
+
{
|
277
|
+
"include": "#block_innards"
|
278
|
+
}
|
279
|
+
],
|
280
280
|
"beginCaptures": {
|
281
281
|
"0": {
|
282
282
|
"name": "punctuation.section.block.begin.c"
|
283
283
|
}
|
284
284
|
},
|
285
|
-
"end": "\\}",
|
286
285
|
"endCaptures": {
|
287
286
|
"0": {
|
288
287
|
"name": "punctuation.section.block.end.c"
|
289
288
|
}
|
290
|
-
}
|
291
|
-
"name": "meta.block.c",
|
292
|
-
"patterns": [
|
293
|
-
{
|
294
|
-
"include": "#block_innards"
|
295
|
-
}
|
296
|
-
]
|
289
|
+
}
|
297
290
|
}
|
298
291
|
]
|
299
292
|
},
|
@@ -321,6 +314,8 @@
|
|
321
314
|
"include": "#c_function_call"
|
322
315
|
},
|
323
316
|
{
|
317
|
+
"name": "meta.initialization.c",
|
318
|
+
"match": "(?x)\n\t\t\t (?x)\n\t\t\t(?: \n\t\t\t (?: (?= \\s ) (?\u003c!else|new|return) (?\u003c=\\w)\\s+ # or word + space before name\n\t\t\t )\n\t\t\t)\n\t\t\t(\n\t\t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t(?: (?\u003c=operator) (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) )? # if it is a C++ operator\n\t\t\t)\n\t\t\t \\s*(\\()",
|
324
319
|
"captures": {
|
325
320
|
"1": {
|
326
321
|
"name": "variable.other.c"
|
@@ -328,9 +323,7 @@
|
|
328
323
|
"2": {
|
329
324
|
"name": "punctuation.definition.parameters.c"
|
330
325
|
}
|
331
|
-
}
|
332
|
-
"match": "(?x)\n\t\t\t (?x)\n\t\t\t(?: \n\t\t\t (?: (?= \\s ) (?<!else|new|return) (?<=\\w)\\s+ # or word + space before name\n\t\t\t )\n\t\t\t)\n\t\t\t(\n\t\t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) )? # if it is a C++ operator\n\t\t\t)\n\t\t\t \\s*(\\()",
|
333
|
-
"name": "meta.initialization.c"
|
326
|
+
}
|
334
327
|
},
|
335
328
|
{
|
336
329
|
"include": "#block"
|
@@ -341,6 +334,8 @@
|
|
341
334
|
]
|
342
335
|
},
|
343
336
|
"c_function_call": {
|
337
|
+
"name": "meta.function-call.c",
|
338
|
+
"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|sizeof|[cr]?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n\t\t\t)\n\t\t\t \\s*(\\()",
|
344
339
|
"captures": {
|
345
340
|
"1": {
|
346
341
|
"name": "punctuation.whitespace.function-call.leading.c"
|
@@ -351,81 +346,78 @@
|
|
351
346
|
"3": {
|
352
347
|
"name": "punctuation.definition.parameters.c"
|
353
348
|
}
|
354
|
-
}
|
355
|
-
"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|sizeof|[cr]?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n\t\t\t)\n\t\t\t \\s*(\\()",
|
356
|
-
"name": "meta.function-call.c"
|
349
|
+
}
|
357
350
|
},
|
358
351
|
"comments": {
|
359
352
|
"patterns": [
|
360
353
|
{
|
354
|
+
"name": "comment.block.c",
|
355
|
+
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
|
361
356
|
"captures": {
|
362
357
|
"1": {
|
363
358
|
"name": "meta.toc-list.banner.block.c"
|
364
359
|
}
|
365
|
-
}
|
366
|
-
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
|
367
|
-
"name": "comment.block.c"
|
360
|
+
}
|
368
361
|
},
|
369
362
|
{
|
363
|
+
"name": "comment.block.c",
|
370
364
|
"begin": "/\\*",
|
365
|
+
"end": "\\*/",
|
371
366
|
"beginCaptures": {
|
372
367
|
"0": {
|
373
368
|
"name": "punctuation.definition.comment.begin.c"
|
374
369
|
}
|
375
370
|
},
|
376
|
-
"end": "\\*/",
|
377
371
|
"endCaptures": {
|
378
372
|
"0": {
|
379
373
|
"name": "punctuation.definition.comment.end.c"
|
380
374
|
}
|
381
|
-
}
|
382
|
-
"name": "comment.block.c"
|
375
|
+
}
|
383
376
|
},
|
384
377
|
{
|
385
|
-
"
|
386
|
-
"
|
378
|
+
"name": "invalid.illegal.stray-comment-end.c",
|
379
|
+
"match": "\\*/.*\\n"
|
387
380
|
},
|
388
381
|
{
|
382
|
+
"name": "comment.line.banner.c++",
|
383
|
+
"match": "^// =(\\s*.*?)\\s*=\\s*$\\n?",
|
389
384
|
"captures": {
|
390
385
|
"1": {
|
391
386
|
"name": "meta.toc-list.banner.line.c"
|
392
387
|
}
|
393
|
-
}
|
394
|
-
"match": "^// =(\\s*.*?)\\s*=\\s*$\\n?",
|
395
|
-
"name": "comment.line.banner.c++"
|
388
|
+
}
|
396
389
|
},
|
397
390
|
{
|
398
391
|
"begin": "(^[ \\t]+)?(?=//)",
|
399
|
-
"beginCaptures": {
|
400
|
-
"1": {
|
401
|
-
"name": "punctuation.whitespace.comment.leading.c++"
|
402
|
-
}
|
403
|
-
},
|
404
392
|
"end": "(?!\\G)",
|
405
393
|
"patterns": [
|
406
394
|
{
|
395
|
+
"name": "comment.line.double-slash.c++",
|
407
396
|
"begin": "//",
|
408
|
-
"beginCaptures": {
|
409
|
-
"0": {
|
410
|
-
"name": "punctuation.definition.comment.c++"
|
411
|
-
}
|
412
|
-
},
|
413
397
|
"end": "\\n",
|
414
|
-
"name": "comment.line.double-slash.c++",
|
415
398
|
"patterns": [
|
416
399
|
{
|
417
|
-
"
|
418
|
-
"
|
400
|
+
"name": "punctuation.separator.continuation.c++",
|
401
|
+
"match": "(?\u003e\\\\\\s*\\n)"
|
419
402
|
}
|
420
|
-
]
|
403
|
+
],
|
404
|
+
"beginCaptures": {
|
405
|
+
"0": {
|
406
|
+
"name": "punctuation.definition.comment.c++"
|
407
|
+
}
|
408
|
+
}
|
421
409
|
}
|
422
|
-
]
|
410
|
+
],
|
411
|
+
"beginCaptures": {
|
412
|
+
"1": {
|
413
|
+
"name": "punctuation.whitespace.comment.leading.c++"
|
414
|
+
}
|
415
|
+
}
|
423
416
|
}
|
424
417
|
]
|
425
418
|
},
|
426
419
|
"disabled": {
|
427
420
|
"begin": "^\\s*#\\s*if(n?def)?\\b.*$",
|
428
|
-
"comment": "eat nested preprocessor if(def)s",
|
429
421
|
"end": "^\\s*#\\s*endif\\b",
|
430
422
|
"patterns": [
|
431
423
|
{
|
@@ -437,26 +429,28 @@
|
|
437
429
|
]
|
438
430
|
},
|
439
431
|
"parens": {
|
432
|
+
"name": "meta.parens.c",
|
440
433
|
"begin": "\\(",
|
434
|
+
"end": "\\)",
|
435
|
+
"patterns": [
|
436
|
+
{
|
437
|
+
"include": "$base"
|
438
|
+
}
|
439
|
+
],
|
441
440
|
"beginCaptures": {
|
442
441
|
"0": {
|
443
442
|
"name": "punctuation.section.parens.begin.c"
|
444
443
|
}
|
445
444
|
},
|
446
|
-
"end": "\\)",
|
447
445
|
"endCaptures": {
|
448
446
|
"0": {
|
449
447
|
"name": "punctuation.section.parens.end.c"
|
450
448
|
}
|
451
|
-
}
|
452
|
-
"name": "meta.parens.c",
|
453
|
-
"patterns": [
|
454
|
-
{
|
455
|
-
"include": "$base"
|
456
|
-
}
|
457
|
-
]
|
449
|
+
}
|
458
450
|
},
|
459
451
|
"pragma-mark": {
|
452
|
+
"name": "meta.section",
|
453
|
+
"match": "^\\s*(#\\s*(pragma\\s+mark)\\s+(.*))",
|
460
454
|
"captures": {
|
461
455
|
"1": {
|
462
456
|
"name": "meta.preprocessor.c"
|
@@ -467,27 +461,20 @@
|
|
467
461
|
"3": {
|
468
462
|
"name": "meta.toc-list.pragma-mark.c"
|
469
463
|
}
|
470
|
-
}
|
471
|
-
"match": "^\\s*(#\\s*(pragma\\s+mark)\\s+(.*))",
|
472
|
-
"name": "meta.section"
|
464
|
+
}
|
473
465
|
},
|
474
466
|
"preprocessor-rule-disabled": {
|
475
467
|
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
476
|
-
"captures": {
|
477
|
-
"1": {
|
478
|
-
"name": "meta.preprocessor.c"
|
479
|
-
},
|
480
|
-
"2": {
|
481
|
-
"name": "keyword.control.import.if.c"
|
482
|
-
},
|
483
|
-
"3": {
|
484
|
-
"name": "constant.numeric.preprocessor.c"
|
485
|
-
}
|
486
|
-
},
|
487
468
|
"end": "^\\s*(#\\s*(endif)\\b)",
|
488
469
|
"patterns": [
|
489
470
|
{
|
490
471
|
"begin": "^\\s*(#\\s*(else)\\b)",
|
472
|
+
"end": "(?=^\\s*#\\s*endif\\b)",
|
473
|
+
"patterns": [
|
474
|
+
{
|
475
|
+
"include": "$base"
|
476
|
+
}
|
477
|
+
],
|
491
478
|
"captures": {
|
492
479
|
"1": {
|
493
480
|
"name": "meta.preprocessor.c"
|
@@ -495,18 +482,11 @@
|
|
495
482
|
"2": {
|
496
483
|
"name": "keyword.control.import.else.c"
|
497
484
|
}
|
498
|
-
}
|
499
|
-
"end": "(?=^\\s*#\\s*endif\\b)",
|
500
|
-
"patterns": [
|
501
|
-
{
|
502
|
-
"include": "$base"
|
503
|
-
}
|
504
|
-
]
|
485
|
+
}
|
505
486
|
},
|
506
487
|
{
|
507
|
-
"begin": "",
|
508
|
-
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
509
488
|
"name": "comment.block.preprocessor.if-branch",
|
489
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
510
490
|
"patterns": [
|
511
491
|
{
|
512
492
|
"include": "#disabled"
|
@@ -516,10 +496,7 @@
|
|
516
496
|
}
|
517
497
|
]
|
518
498
|
}
|
519
|
-
]
|
520
|
-
},
|
521
|
-
"preprocessor-rule-disabled-block": {
|
522
|
-
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
499
|
+
],
|
523
500
|
"captures": {
|
524
501
|
"1": {
|
525
502
|
"name": "meta.preprocessor.c"
|
@@ -530,11 +507,20 @@
|
|
530
507
|
"3": {
|
531
508
|
"name": "constant.numeric.preprocessor.c"
|
532
509
|
}
|
533
|
-
}
|
510
|
+
}
|
511
|
+
},
|
512
|
+
"preprocessor-rule-disabled-block": {
|
513
|
+
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
534
514
|
"end": "^\\s*(#\\s*(endif)\\b)",
|
535
515
|
"patterns": [
|
536
516
|
{
|
537
517
|
"begin": "^\\s*(#\\s*(else)\\b)",
|
518
|
+
"end": "(?=^\\s*#\\s*endif\\b)",
|
519
|
+
"patterns": [
|
520
|
+
{
|
521
|
+
"include": "#block_innards"
|
522
|
+
}
|
523
|
+
],
|
538
524
|
"captures": {
|
539
525
|
"1": {
|
540
526
|
"name": "meta.preprocessor.c"
|
@@ -542,18 +528,11 @@
|
|
542
528
|
"2": {
|
543
529
|
"name": "keyword.control.import.else.c"
|
544
530
|
}
|
545
|
-
}
|
546
|
-
"end": "(?=^\\s*#\\s*endif\\b)",
|
547
|
-
"patterns": [
|
548
|
-
{
|
549
|
-
"include": "#block_innards"
|
550
|
-
}
|
551
|
-
]
|
531
|
+
}
|
552
532
|
},
|
553
533
|
{
|
554
|
-
"begin": "",
|
555
|
-
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
556
534
|
"name": "comment.block.preprocessor.if-branch.in-block",
|
535
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
557
536
|
"patterns": [
|
558
537
|
{
|
559
538
|
"include": "#disabled"
|
@@ -563,10 +542,7 @@
|
|
563
542
|
}
|
564
543
|
]
|
565
544
|
}
|
566
|
-
]
|
567
|
-
},
|
568
|
-
"preprocessor-rule-enabled": {
|
569
|
-
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
545
|
+
],
|
570
546
|
"captures": {
|
571
547
|
"1": {
|
572
548
|
"name": "meta.preprocessor.c"
|
@@ -577,20 +553,15 @@
|
|
577
553
|
"3": {
|
578
554
|
"name": "constant.numeric.preprocessor.c"
|
579
555
|
}
|
580
|
-
}
|
556
|
+
}
|
557
|
+
},
|
558
|
+
"preprocessor-rule-enabled": {
|
559
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
581
560
|
"end": "^\\s*(#\\s*(endif)\\b)",
|
582
561
|
"patterns": [
|
583
562
|
{
|
584
|
-
"begin": "^\\s*(#\\s*(else)\\b).*",
|
585
|
-
"captures": {
|
586
|
-
"1": {
|
587
|
-
"name": "meta.preprocessor.c"
|
588
|
-
},
|
589
|
-
"2": {
|
590
|
-
"name": "keyword.control.import.else.c"
|
591
|
-
}
|
592
|
-
},
|
593
563
|
"contentName": "comment.block.preprocessor.else-branch",
|
564
|
+
"begin": "^\\s*(#\\s*(else)\\b).*",
|
594
565
|
"end": "(?=^\\s*#\\s*endif\\b)",
|
595
566
|
"patterns": [
|
596
567
|
{
|
@@ -599,10 +570,17 @@
|
|
599
570
|
{
|
600
571
|
"include": "#pragma-mark"
|
601
572
|
}
|
602
|
-
]
|
573
|
+
],
|
574
|
+
"captures": {
|
575
|
+
"1": {
|
576
|
+
"name": "meta.preprocessor.c"
|
577
|
+
},
|
578
|
+
"2": {
|
579
|
+
"name": "keyword.control.import.else.c"
|
580
|
+
}
|
581
|
+
}
|
603
582
|
},
|
604
583
|
{
|
605
|
-
"begin": "",
|
606
584
|
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
607
585
|
"patterns": [
|
608
586
|
{
|
@@ -610,10 +588,7 @@
|
|
610
588
|
}
|
611
589
|
]
|
612
590
|
}
|
613
|
-
]
|
614
|
-
},
|
615
|
-
"preprocessor-rule-enabled-block": {
|
616
|
-
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
591
|
+
],
|
617
592
|
"captures": {
|
618
593
|
"1": {
|
619
594
|
"name": "meta.preprocessor.c"
|
@@ -624,20 +599,15 @@
|
|
624
599
|
"3": {
|
625
600
|
"name": "constant.numeric.preprocessor.c"
|
626
601
|
}
|
627
|
-
}
|
602
|
+
}
|
603
|
+
},
|
604
|
+
"preprocessor-rule-enabled-block": {
|
605
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
628
606
|
"end": "^\\s*(#\\s*(endif)\\b)",
|
629
607
|
"patterns": [
|
630
608
|
{
|
631
|
-
"begin": "^\\s*(#\\s*(else)\\b).*",
|
632
|
-
"captures": {
|
633
|
-
"1": {
|
634
|
-
"name": "meta.preprocessor.c"
|
635
|
-
},
|
636
|
-
"2": {
|
637
|
-
"name": "keyword.control.import.else.c"
|
638
|
-
}
|
639
|
-
},
|
640
609
|
"contentName": "comment.block.preprocessor.else-branch.in-block",
|
610
|
+
"begin": "^\\s*(#\\s*(else)\\b).*",
|
641
611
|
"end": "(?=^\\s*#\\s*endif\\b)",
|
642
612
|
"patterns": [
|
643
613
|
{
|
@@ -646,10 +616,17 @@
|
|
646
616
|
{
|
647
617
|
"include": "#pragma-mark"
|
648
618
|
}
|
649
|
-
]
|
619
|
+
],
|
620
|
+
"captures": {
|
621
|
+
"1": {
|
622
|
+
"name": "meta.preprocessor.c"
|
623
|
+
},
|
624
|
+
"2": {
|
625
|
+
"name": "keyword.control.import.else.c"
|
626
|
+
}
|
627
|
+
}
|
650
628
|
},
|
651
629
|
{
|
652
|
-
"begin": "",
|
653
630
|
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
654
631
|
"patterns": [
|
655
632
|
{
|
@@ -657,27 +634,27 @@
|
|
657
634
|
}
|
658
635
|
]
|
659
636
|
}
|
660
|
-
]
|
661
|
-
},
|
662
|
-
"preprocessor-rule-other": {
|
663
|
-
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
637
|
+
],
|
664
638
|
"captures": {
|
665
639
|
"1": {
|
666
640
|
"name": "meta.preprocessor.c"
|
667
641
|
},
|
668
642
|
"2": {
|
669
|
-
"name": "keyword.control.import.c"
|
643
|
+
"name": "keyword.control.import.if.c"
|
644
|
+
},
|
645
|
+
"3": {
|
646
|
+
"name": "constant.numeric.preprocessor.c"
|
670
647
|
}
|
671
|
-
}
|
648
|
+
}
|
649
|
+
},
|
650
|
+
"preprocessor-rule-other": {
|
651
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
672
652
|
"end": "^\\s*(#\\s*(endif)\\b)",
|
673
653
|
"patterns": [
|
674
654
|
{
|
675
655
|
"include": "$base"
|
676
656
|
}
|
677
|
-
]
|
678
|
-
},
|
679
|
-
"preprocessor-rule-other-block": {
|
680
|
-
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
657
|
+
],
|
681
658
|
"captures": {
|
682
659
|
"1": {
|
683
660
|
"name": "meta.preprocessor.c"
|
@@ -685,39 +662,48 @@
|
|
685
662
|
"2": {
|
686
663
|
"name": "keyword.control.import.c"
|
687
664
|
}
|
688
|
-
}
|
665
|
+
}
|
666
|
+
},
|
667
|
+
"preprocessor-rule-other-block": {
|
668
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
689
669
|
"end": "^\\s*(#\\s*(endif)\\b)",
|
690
670
|
"patterns": [
|
691
671
|
{
|
692
672
|
"include": "#block_innards"
|
693
673
|
}
|
694
|
-
]
|
674
|
+
],
|
675
|
+
"captures": {
|
676
|
+
"1": {
|
677
|
+
"name": "meta.preprocessor.c"
|
678
|
+
},
|
679
|
+
"2": {
|
680
|
+
"name": "keyword.control.import.c"
|
681
|
+
}
|
682
|
+
}
|
695
683
|
},
|
696
684
|
"sizeof": {
|
697
|
-
"
|
698
|
-
"
|
685
|
+
"name": "keyword.operator.sizeof.c",
|
686
|
+
"match": "\\b(sizeof)\\b"
|
699
687
|
},
|
700
688
|
"string_escaped_char": {
|
701
689
|
"patterns": [
|
702
690
|
{
|
703
|
-
"
|
704
|
-
"
|
691
|
+
"name": "constant.character.escape.c",
|
692
|
+
"match": "\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8})"
|
705
693
|
},
|
706
694
|
{
|
707
|
-
"
|
708
|
-
"
|
695
|
+
"name": "invalid.illegal.unknown-escape.c",
|
696
|
+
"match": "\\\\."
|
709
697
|
}
|
710
698
|
]
|
711
699
|
},
|
712
700
|
"string_placeholder": {
|
713
701
|
"patterns": [
|
714
702
|
{
|
715
|
-
"
|
716
|
-
"
|
703
|
+
"name": "constant.other.placeholder.c",
|
704
|
+
"match": "(?x)%\n \t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n \t\t\t\t\t\t[#0\\- +']* # flags\n \t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n \t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n \t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n \t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n \t\t\t\t\t"
|
717
705
|
}
|
718
706
|
]
|
719
707
|
}
|
720
|
-
}
|
721
|
-
|
722
|
-
"uuid": "25066DC2-6B1D-11D9-9D5B-000D93589AF6"
|
723
|
-
}
|
708
|
+
}
|
709
|
+
}
|