github-linguist-grammars 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/grammars/file.lasso.json +713 -0
- data/grammars/module.ceylon.json +54 -0
- data/grammars/objdump.x86asm.json +73 -0
- data/grammars/source.Inform7.json +45 -0
- data/grammars/source.Kotlin.json +774 -0
- data/grammars/source.LS.json +104 -0
- data/grammars/source.MCPOST.json +68 -0
- data/grammars/source.MOD.json +70 -0
- data/grammars/source.abap.json +176 -0
- data/grammars/source.abl.json +138 -0
- data/grammars/source.actionscript.3.json +1571 -0
- data/grammars/source.acucobol.json +16 -0
- data/grammars/source.ada.json +140 -0
- data/grammars/source.agda.json +254 -0
- data/grammars/source.ahk.json +171 -0
- data/grammars/source.alloy.json +44 -0
- data/grammars/source.ampl.json +157 -0
- data/grammars/source.antlr.json +300 -0
- data/grammars/source.apache-config.json +352 -0
- data/grammars/source.apache-config.mod_perl.json +70 -0
- data/grammars/source.apl.json +442 -0
- data/grammars/source.applescript.json +1385 -0
- data/grammars/source.apt.json +25 -0
- data/grammars/source.asm.x86.json +182 -0
- data/grammars/source.asp.json +157 -0
- data/grammars/source.aspectj.json +963 -0
- data/grammars/source.ats.json +170 -0
- data/grammars/source.autoit.3.json +132 -0
- data/grammars/source.awk.json +388 -0
- data/grammars/source.befunge.json +38 -0
- data/grammars/source.bf.json +36 -0
- data/grammars/source.bison.json +59 -0
- data/grammars/source.blitzmax.json +912 -0
- data/grammars/source.boo.json +452 -0
- data/grammars/source.brightauthorproject.json +29 -0
- data/grammars/source.brightscript.json +158 -0
- data/grammars/source.bro.json +409 -0
- data/grammars/source.bsv.json +283 -0
- data/grammars/source.c++.json +364 -0
- data/grammars/source.c++.qt.json +37 -0
- data/grammars/source.c.ec.json +39 -0
- data/grammars/source.c.json +727 -0
- data/grammars/source.c.platform.json +154 -0
- data/grammars/source.cache.cmake.json +75 -0
- data/grammars/source.cake.json +16 -0
- data/grammars/source.camlp4.ocaml.json +63 -0
- data/grammars/source.capnp.json +93 -0
- data/grammars/source.ceylon.json +77 -0
- data/grammars/source.cfscript.cfc.json +170 -0
- data/grammars/source.cfscript.json +744 -0
- data/grammars/source.chapel.json +240 -0
- data/grammars/source.cirru.json +66 -0
- data/grammars/source.clarion.json +159 -0
- data/grammars/source.clips.json +80 -0
- data/grammars/source.clojure.json +397 -0
- data/grammars/source.cm.json +54 -0
- data/grammars/source.cmake.json +181 -0
- data/grammars/source.cobol.json +528 -0
- data/grammars/source.coffee.json +678 -0
- data/grammars/source.compiled-papyrus.json +11 -0
- data/grammars/source.cool.json +103 -0
- data/grammars/source.coq.json +62 -0
- data/grammars/source.crystal.json +2760 -0
- data/grammars/source.cs.json +556 -0
- data/grammars/source.css.json +630 -0
- data/grammars/source.css.less.json +276 -0
- data/grammars/source.css.mss.json +256 -0
- data/grammars/source.csx.json +16 -0
- data/grammars/source.cuda-c++.json +137 -0
- data/grammars/source.cython.json +2108 -0
- data/grammars/source.d.json +722 -0
- data/grammars/source.dart.json +763 -0
- data/grammars/source.desktop.json +90 -0
- data/grammars/source.diff.json +162 -0
- data/grammars/source.dockerfile.json +89 -0
- data/grammars/source.dosbatch.json +70 -0
- data/grammars/source.dot.json +126 -0
- data/grammars/source.dylan.json +217 -0
- data/grammars/source.eiffel.json +138 -0
- data/grammars/source.elixir.json +737 -0
- data/grammars/source.elm.json +355 -0
- data/grammars/source.erazor.json +126 -0
- data/grammars/source.erlang.json +1674 -0
- data/grammars/source.essl.json +50 -0
- data/grammars/source.factor.json +260 -0
- data/grammars/source.fan.json +188 -0
- data/grammars/source.fancy.json +270 -0
- data/grammars/source.fish.json +214 -0
- data/grammars/source.forth.json +101 -0
- data/grammars/source.fortran.json +499 -0
- data/grammars/source.fortran.modern.json +226 -0
- data/grammars/source.fsharp.json +403 -0
- data/grammars/source.gap.json +167 -0
- data/grammars/source.gcode.json +25 -0
- data/grammars/source.gdscript.json +154 -0
- data/grammars/source.gfm.json +1270 -0
- data/grammars/source.glsl.json +71 -0
- data/grammars/source.gnuplot.json +276 -0
- data/grammars/source.go.json +552 -0
- data/grammars/source.golo.json +182 -0
- data/grammars/source.gosu.2.json +163 -0
- data/grammars/source.grace.json +679 -0
- data/grammars/source.groovy.gradle.json +73 -0
- data/grammars/source.groovy.json +1385 -0
- data/grammars/source.harbour.json +450 -0
- data/grammars/source.haskell.json +449 -0
- data/grammars/source.haxe.2.json +1243 -0
- data/grammars/source.hss.1.json +464 -0
- data/grammars/source.httpspec.json +287 -0
- data/grammars/source.hxml.json +26 -0
- data/grammars/source.hy.json +270 -0
- data/grammars/source.idl-dlm.json +112 -0
- data/grammars/source.idl.json +267 -0
- data/grammars/source.idris.json +537 -0
- data/grammars/source.ini.json +113 -0
- data/grammars/source.inno.json +65 -0
- data/grammars/source.io.json +164 -0
- data/grammars/source.ioke.json +272 -0
- data/grammars/source.isabelle.root.json +68 -0
- data/grammars/source.isabelle.theory.json +106 -0
- data/grammars/source.j.json +49 -0
- data/grammars/source.jade.json +1009 -0
- data/grammars/source.jasmin.json +299 -0
- data/grammars/source.java-properties.json +97 -0
- data/grammars/source.java.json +1026 -0
- data/grammars/source.jcl.json +49 -0
- data/grammars/source.jflex.json +490 -0
- data/grammars/source.jq.json +218 -0
- data/grammars/source.js.json +948 -0
- data/grammars/source.js.jsx.json +2937 -0
- data/grammars/source.js.objj.json +424 -0
- data/grammars/source.js.regexp.json +150 -0
- data/grammars/source.js.regexp.replacement.json +30 -0
- data/grammars/source.json.json +149 -0
- data/grammars/source.julia.json +407 -0
- data/grammars/source.lean.json +145 -0
- data/grammars/source.lid.json +23 -0
- data/grammars/source.lilypond.json +623 -0
- data/grammars/source.lisp.json +111 -0
- data/grammars/source.litcoffee.json +669 -0
- data/grammars/source.livescript.json +616 -0
- data/grammars/source.llvm.json +71 -0
- data/grammars/source.logos.json +31 -0
- data/grammars/source.logtalk.json +315 -0
- data/grammars/source.loomscript.json +214 -0
- data/grammars/source.lsl.json +216 -0
- data/grammars/source.lua.json +191 -0
- data/grammars/source.makefile.json +474 -0
- data/grammars/source.makegen.json +13 -0
- data/grammars/source.man.json +53 -0
- data/grammars/source.mask.json +701 -0
- data/grammars/source.mata.json +133 -0
- data/grammars/source.mathematica.json +429 -0
- data/grammars/source.matlab.json +776 -0
- data/grammars/source.mercury.json +251 -0
- data/grammars/source.ml.json +291 -0
- data/grammars/source.modelica.json +142 -0
- data/grammars/source.modula2.json +103 -0
- data/grammars/source.monkey.json +701 -0
- data/grammars/source.moonscript.json +149 -0
- data/grammars/source.mupad.json +149 -0
- data/grammars/source.nant-build.json +86 -0
- data/grammars/source.ncl.json +66 -0
- data/grammars/source.nemerle.json +137 -0
- data/grammars/source.nesc.json +27 -0
- data/grammars/source.netlinx.erb.json +47 -0
- data/grammars/source.netlinx.json +768 -0
- data/grammars/source.nginx.json +797 -0
- data/grammars/source.nim.json +1150 -0
- data/grammars/source.nim_filter.json +133 -0
- data/grammars/source.nimcfg.json +116 -0
- data/grammars/source.ninja.json +66 -0
- data/grammars/source.nit.json +238 -0
- data/grammars/source.nix.json +1200 -0
- data/grammars/source.nmml.json +87 -0
- data/grammars/source.nsis.json +150 -0
- data/grammars/source.objc++.json +19 -0
- data/grammars/source.objc.json +918 -0
- data/grammars/source.objc.platform.json +277 -0
- data/grammars/source.ocaml.json +1426 -0
- data/grammars/source.ocamllex.json +305 -0
- data/grammars/source.ocamlyacc.json +346 -0
- data/grammars/source.octave.json +451 -0
- data/grammars/source.ooc.json +692 -0
- data/grammars/source.opa.json +206 -0
- data/grammars/source.opal.json +415 -0
- data/grammars/source.opalsysdefs.json +70 -0
- data/grammars/source.opencobol.json +65 -0
- data/grammars/source.ox.json +97 -0
- data/grammars/source.oz.json +84 -0
- data/grammars/source.papyrus-assembly.json +266 -0
- data/grammars/source.papyrus.json +231 -0
- data/grammars/source.parrot.pir.json +117 -0
- data/grammars/source.pascal.json +150 -0
- data/grammars/source.perl.6.json +310 -0
- data/grammars/source.perl.json +2413 -0
- data/grammars/source.php.zephir.json +362 -0
- data/grammars/source.pig_latin.json +172 -0
- data/grammars/source.pike.json +62 -0
- data/grammars/source.plsql.oracle.json +642 -0
- data/grammars/source.po.json +232 -0
- data/grammars/source.pogoscript.json +85 -0
- data/grammars/source.postscript.json +231 -0
- data/grammars/source.powershell.json +755 -0
- data/grammars/source.processing.json +885 -0
- data/grammars/source.prolog.eclipse.json +206 -0
- data/grammars/source.prolog.json +292 -0
- data/grammars/source.protobuf.json +395 -0
- data/grammars/source.pubspec.json +13 -0
- data/grammars/source.puppet.json +494 -0
- data/grammars/source.purescript.json +818 -0
- data/grammars/source.pyjade.json +1010 -0
- data/grammars/source.python.django.json +34 -0
- data/grammars/source.python.json +1960 -0
- data/grammars/source.python.salt.json +13 -0
- data/grammars/source.qmake.json +217 -0
- data/grammars/source.qml.json +195 -0
- data/grammars/source.r.json +203 -0
- data/grammars/source.racket.json +119 -0
- data/grammars/source.rebol.json +647 -0
- data/grammars/source.red.json +652 -0
- data/grammars/source.regexp.babel.json +190 -0
- data/grammars/source.regexp.python.json +187 -0
- data/grammars/source.regexp.spin.json +188 -0
- data/grammars/source.ruby.json +1956 -0
- data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
- data/grammars/source.rust.json +269 -0
- data/grammars/source.sas.json +322 -0
- data/grammars/source.sas_log.json +26 -0
- data/grammars/source.sass.json +248 -0
- data/grammars/source.sbt.json +36 -0
- data/grammars/source.scad.json +152 -0
- data/grammars/source.scala.json +739 -0
- data/grammars/source.scaml.json +466 -0
- data/grammars/source.scheme.json +370 -0
- data/grammars/source.scilab.json +103 -0
- data/grammars/source.scss.json +1321 -0
- data/grammars/source.shell.json +1212 -0
- data/grammars/source.smali.json +1668 -0
- data/grammars/source.smalltalk.json +135 -0
- data/grammars/source.smt.json +173 -0
- data/grammars/source.sp.json +118 -0
- data/grammars/source.sparql.json +23 -0
- data/grammars/source.spin.json +936 -0
- data/grammars/source.sqf.json +112 -0
- data/grammars/source.sql.json +473 -0
- data/grammars/source.stata.json +208 -0
- data/grammars/source.strings.json +53 -0
- data/grammars/source.stylus.json +1021 -0
- data/grammars/source.swift.json +965 -0
- data/grammars/source.systemverilog.json +1050 -0
- data/grammars/source.tcl.json +277 -0
- data/grammars/source.tea.json +180 -0
- data/grammars/source.thrift.json +704 -0
- data/grammars/source.toml.json +327 -0
- data/grammars/source.ts.json +1094 -0
- data/grammars/source.tsx.json +1324 -0
- data/grammars/source.turtle.json +505 -0
- data/grammars/source.txl.json +62 -0
- data/grammars/source.ucfconstraints.json +72 -0
- data/grammars/source.vala.json +814 -0
- data/grammars/source.varnish.vcl.json +343 -0
- data/grammars/source.vbnet.json +338 -0
- data/grammars/source.verilog.json +302 -0
- data/grammars/source.vhdl.json +1349 -0
- data/grammars/source.viml.json +224 -0
- data/grammars/source.webidl.json +814 -0
- data/grammars/source.x10.json +68 -0
- data/grammars/source.x86asm.json +47 -0
- data/grammars/source.xc.json +379 -0
- data/grammars/source.xq.json +241 -0
- data/grammars/source.xquery.json +193 -0
- data/grammars/source.xtend.json +733 -0
- data/grammars/source.yaml.json +334 -0
- data/grammars/source.yaml.salt.json +348 -0
- data/grammars/text.bibtex.json +251 -0
- data/grammars/text.cfml.basic.json +736 -0
- data/grammars/text.dart-analysis-output.json +162 -0
- data/grammars/text.dart-doccomments.json +19 -0
- data/grammars/text.elixir.json +45 -0
- data/grammars/text.gherkin.feature.json +135 -0
- data/grammars/text.groff.json +113 -0
- data/grammars/text.haml.json +299 -0
- data/grammars/text.html.abl.json +24 -0
- data/grammars/text.html.asciidoc.json +492 -0
- data/grammars/text.html.asdoc.json +541 -0
- data/grammars/text.html.asp.json +58 -0
- data/grammars/text.html.basic.json +552 -0
- data/grammars/text.html.cfm.json +811 -0
- data/grammars/text.html.creole.json +329 -0
- data/grammars/text.html.django.json +69 -0
- data/grammars/text.html.elixir.json +18 -0
- data/grammars/text.html.erb.json +157 -0
- data/grammars/text.html.erlang.yaws.json +72 -0
- data/grammars/text.html.factor.json +27 -0
- data/grammars/text.html.handlebars.json +783 -0
- data/grammars/text.html.jsp.json +1203 -0
- data/grammars/text.html.liquid.json +35 -0
- data/grammars/text.html.mako.json +729 -0
- data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
- data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
- data/grammars/text.html.mediawiki.json +972 -0
- data/grammars/text.html.php.json +2607 -0
- data/grammars/text.html.slash.json +313 -0
- data/grammars/text.html.smarty.json +216 -0
- data/grammars/text.html.ssp.json +49 -0
- data/grammars/text.html.tcl.json +44 -0
- data/grammars/text.html.twig.json +1353 -0
- data/grammars/text.html.vue.json +642 -0
- data/grammars/text.idl-idldoc.json +14 -0
- data/grammars/text.junit-test-report.json +92 -0
- data/grammars/text.log.latex.json +86 -0
- data/grammars/text.python.console.json +25 -0
- data/grammars/text.python.traceback.json +46 -0
- data/grammars/text.rdoc.json +48 -0
- data/grammars/text.restructuredtext.json +561 -0
- data/grammars/text.robot.json +73 -0
- data/grammars/text.shell-session.json +48 -0
- data/grammars/text.slim.json +527 -0
- data/grammars/text.tex.json +271 -0
- data/grammars/text.tex.latex.beamer.json +63 -0
- data/grammars/text.tex.latex.haskell.json +56 -0
- data/grammars/text.tex.latex.json +1013 -0
- data/grammars/text.tex.latex.memoir.json +99 -0
- data/grammars/text.tex.latex.rd.json +117 -0
- data/grammars/text.xml.ant.json +202 -0
- data/grammars/text.xml.flex-config.json +2634 -0
- data/grammars/text.xml.genshi.json +34 -0
- data/grammars/text.xml.json +364 -0
- data/grammars/text.xml.pom.json +774 -0
- data/grammars/text.xml.xsl.json +94 -0
- data/grammars/text.zone_file.json +72 -0
- data/lib/linguist/grammars.rb +13 -0
- metadata +389 -0
@@ -0,0 +1,37 @@
|
|
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
|
+
"name": "C++ Qt",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"match": "\\bQ_(CLASSINFO|ENUMS|FLAGS|INTERFACES|OBJECT|PROPERTY)\\b",
|
13
|
+
"name": "support.other.macro.qt"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"match": "\\b((dis)?connect|emit|fore(ach|ver)|tr(Utf8)?|qobject_cast)\\b",
|
17
|
+
"name": "support.function.qt"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"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",
|
21
|
+
"name": "support.class.qt"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"match": "\\b(q(int8|int16|int32|int64|longlong|real|uint8|uint16|uint32|uint64|ulonglong)|u(char|int|long|short))\\b",
|
25
|
+
"name": "storage.type.qt"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"match": "\\b((public|private|protected) slots|signals)\\b",
|
29
|
+
"name": "storage.modifier.qt"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"include": "source.c++"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"scopeName": "source.c++.qt",
|
36
|
+
"uuid": "C0D24A46-0534-11DB-8949-0011242E4184"
|
37
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"ec",
|
4
|
+
"eh"
|
5
|
+
],
|
6
|
+
"keyEquivalent": "^~E",
|
7
|
+
"name": "eC",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"include": "source.c"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"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",
|
14
|
+
"name": "keyword.other.ec"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"match": "\\b(true|false)\\b",
|
18
|
+
"name": "constant.language.boolean.ec"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"match": "\\bnull\\b",
|
22
|
+
"name": "constant.language.null.ec"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"match": "\\bclass\\b",
|
26
|
+
"name": "storage.type.class.ec"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"match": "\\b(private|public)\\b",
|
30
|
+
"name": "storage.modifier.ec"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"match": "\\b(unichar|uint|uint32|uint16|uint64|bool|byte|int64|uintptr|intptr|intsize|uintsize)\\b",
|
34
|
+
"name": "storage.type.ec"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"scopeName": "source.c.ec",
|
38
|
+
"uuid": "30A57404-CF1D-48D7-827B-864B0FFEB951"
|
39
|
+
}
|
@@ -0,0 +1,727 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"c",
|
4
|
+
"h"
|
5
|
+
],
|
6
|
+
"firstLineMatch": "-[*]-( Mode:)? C -[*]-",
|
7
|
+
"keyEquivalent": "^~C",
|
8
|
+
"name": "C",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"include": "#preprocessor-rule-enabled"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"include": "#preprocessor-rule-disabled"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"include": "#preprocessor-rule-other"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"include": "#comments"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"include": "source.c.platform"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"match": "\\b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\\b",
|
27
|
+
"name": "keyword.control.c"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"match": "\\b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\b",
|
31
|
+
"name": "storage.type.c"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"match": "\\b(const|extern|register|restrict|static|volatile|inline)\\b",
|
35
|
+
"name": "storage.modifier.c"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"comment": "common C constant naming idiom -- kConstantVariable",
|
39
|
+
"match": "\\bk[A-Z]\\w*\\b",
|
40
|
+
"name": "constant.other.variable.mac-classic.c"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"match": "\\bg[A-Z]\\w*\\b",
|
44
|
+
"name": "variable.other.readwrite.global.mac-classic.c"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"match": "\\bs[A-Z]\\w*\\b",
|
48
|
+
"name": "variable.other.readwrite.static.mac-classic.c"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"match": "\\b(NULL|true|false|TRUE|FALSE)\\b",
|
52
|
+
"name": "constant.language.c"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"include": "#sizeof"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"captures": {
|
59
|
+
"inc": {
|
60
|
+
"name": "invalid.illegal.digit-separator-should-not-be-last.c++"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"match": "(?x)\\b\n\t\t\t( (?i:\n\t\t\t 0x ( \\h+ ( ' \\h+ )* )? # 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"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"begin": "\"",
|
68
|
+
"beginCaptures": {
|
69
|
+
"0": {
|
70
|
+
"name": "punctuation.definition.string.begin.c"
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"end": "\"",
|
74
|
+
"endCaptures": {
|
75
|
+
"0": {
|
76
|
+
"name": "punctuation.definition.string.end.c"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"name": "string.quoted.double.c",
|
80
|
+
"patterns": [
|
81
|
+
{
|
82
|
+
"include": "#string_escaped_char"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"include": "#string_placeholder"
|
86
|
+
}
|
87
|
+
]
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"begin": "'",
|
91
|
+
"beginCaptures": {
|
92
|
+
"0": {
|
93
|
+
"name": "punctuation.definition.string.begin.c"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"end": "'",
|
97
|
+
"endCaptures": {
|
98
|
+
"0": {
|
99
|
+
"name": "punctuation.definition.string.end.c"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"name": "string.quoted.single.c",
|
103
|
+
"patterns": [
|
104
|
+
{
|
105
|
+
"include": "#string_escaped_char"
|
106
|
+
}
|
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",
|
111
|
+
"beginCaptures": {
|
112
|
+
"1": {
|
113
|
+
"name": "keyword.control.import.define.c"
|
114
|
+
},
|
115
|
+
"2": {
|
116
|
+
"name": "entity.name.function.preprocessor.c"
|
117
|
+
},
|
118
|
+
"4": {
|
119
|
+
"name": "punctuation.definition.parameters.begin.c"
|
120
|
+
},
|
121
|
+
"5": {
|
122
|
+
"name": "variable.parameter.preprocessor.c"
|
123
|
+
},
|
124
|
+
"7": {
|
125
|
+
"name": "punctuation.separator.parameters.c"
|
126
|
+
},
|
127
|
+
"8": {
|
128
|
+
"name": "punctuation.definition.parameters.end.c"
|
129
|
+
}
|
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
|
+
]
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"begin": "^\\s*#\\s*(error|warning)\\b",
|
145
|
+
"captures": {
|
146
|
+
"1": {
|
147
|
+
"name": "keyword.control.import.error.c"
|
148
|
+
}
|
149
|
+
},
|
150
|
+
"end": "$",
|
151
|
+
"name": "meta.preprocessor.diagnostic.c",
|
152
|
+
"patterns": [
|
153
|
+
{
|
154
|
+
"match": "(?>\\\\\\s*\\n)",
|
155
|
+
"name": "punctuation.separator.continuation.c"
|
156
|
+
}
|
157
|
+
]
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"begin": "^\\s*#\\s*(include|import)\\b",
|
161
|
+
"captures": {
|
162
|
+
"1": {
|
163
|
+
"name": "keyword.control.import.include.c"
|
164
|
+
}
|
165
|
+
},
|
166
|
+
"end": "(?=(?://|/\\*))|$",
|
167
|
+
"name": "meta.preprocessor.c.include",
|
168
|
+
"patterns": [
|
169
|
+
{
|
170
|
+
"match": "(?>\\\\\\s*\\n)",
|
171
|
+
"name": "punctuation.separator.continuation.c"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"begin": "\"",
|
175
|
+
"beginCaptures": {
|
176
|
+
"0": {
|
177
|
+
"name": "punctuation.definition.string.begin.c"
|
178
|
+
}
|
179
|
+
},
|
180
|
+
"end": "\"",
|
181
|
+
"endCaptures": {
|
182
|
+
"0": {
|
183
|
+
"name": "punctuation.definition.string.end.c"
|
184
|
+
}
|
185
|
+
},
|
186
|
+
"name": "string.quoted.double.include.c"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"begin": "<",
|
190
|
+
"beginCaptures": {
|
191
|
+
"0": {
|
192
|
+
"name": "punctuation.definition.string.begin.c"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
"end": ">",
|
196
|
+
"endCaptures": {
|
197
|
+
"0": {
|
198
|
+
"name": "punctuation.definition.string.end.c"
|
199
|
+
}
|
200
|
+
},
|
201
|
+
"name": "string.quoted.other.lt-gt.include.c"
|
202
|
+
}
|
203
|
+
]
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"include": "#pragma-mark"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"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
|
+
"end": "(?=(?://|/\\*))|$",
|
216
|
+
"name": "meta.preprocessor.c",
|
217
|
+
"patterns": [
|
218
|
+
{
|
219
|
+
"match": "(?>\\\\\\s*\\n)",
|
220
|
+
"name": "punctuation.separator.continuation.c"
|
221
|
+
}
|
222
|
+
]
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"comment": "Reserved POSIX types",
|
226
|
+
"match": "\\b([a-z0-9_]+_t)\\b",
|
227
|
+
"name": "support.type.posix-reserved.c"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"include": "#block"
|
231
|
+
},
|
232
|
+
{
|
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
|
+
"name": "meta.function.c",
|
247
|
+
"patterns": [
|
248
|
+
{
|
249
|
+
"include": "#comments"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"include": "#parens"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"match": "\\b(const|final|override)\\b",
|
256
|
+
"name": "storage.modifier.$1.c++"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"include": "#block"
|
260
|
+
}
|
261
|
+
]
|
262
|
+
}
|
263
|
+
],
|
264
|
+
"repository": {
|
265
|
+
"access": {
|
266
|
+
"captures": {
|
267
|
+
"1": {
|
268
|
+
"name": "punctuation.separator.variable-access.c"
|
269
|
+
},
|
270
|
+
"2": {
|
271
|
+
"name": "variable.other.dot-access.c"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
"match": "(\\.)([a-zA-Z_][a-zA-Z_0-9]*)\\b(?!\\s*\\()"
|
275
|
+
},
|
276
|
+
"block": {
|
277
|
+
"patterns": [
|
278
|
+
{
|
279
|
+
"begin": "\\{",
|
280
|
+
"beginCaptures": {
|
281
|
+
"0": {
|
282
|
+
"name": "punctuation.section.block.begin.c"
|
283
|
+
}
|
284
|
+
},
|
285
|
+
"end": "\\}",
|
286
|
+
"endCaptures": {
|
287
|
+
"0": {
|
288
|
+
"name": "punctuation.section.block.end.c"
|
289
|
+
}
|
290
|
+
},
|
291
|
+
"name": "meta.block.c",
|
292
|
+
"patterns": [
|
293
|
+
{
|
294
|
+
"include": "#block_innards"
|
295
|
+
}
|
296
|
+
]
|
297
|
+
}
|
298
|
+
]
|
299
|
+
},
|
300
|
+
"block_innards": {
|
301
|
+
"patterns": [
|
302
|
+
{
|
303
|
+
"include": "#preprocessor-rule-enabled-block"
|
304
|
+
},
|
305
|
+
{
|
306
|
+
"include": "#preprocessor-rule-disabled-block"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"include": "#preprocessor-rule-other-block"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"include": "#sizeof"
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"include": "#access"
|
316
|
+
},
|
317
|
+
{
|
318
|
+
"include": "source.c.platform#functions"
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"include": "#c_function_call"
|
322
|
+
},
|
323
|
+
{
|
324
|
+
"captures": {
|
325
|
+
"1": {
|
326
|
+
"name": "variable.other.c"
|
327
|
+
},
|
328
|
+
"2": {
|
329
|
+
"name": "punctuation.definition.parameters.c"
|
330
|
+
}
|
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"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"include": "#block"
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"include": "$base"
|
340
|
+
}
|
341
|
+
]
|
342
|
+
},
|
343
|
+
"c_function_call": {
|
344
|
+
"captures": {
|
345
|
+
"1": {
|
346
|
+
"name": "punctuation.whitespace.function-call.leading.c"
|
347
|
+
},
|
348
|
+
"2": {
|
349
|
+
"name": "support.function.any-method.c"
|
350
|
+
},
|
351
|
+
"3": {
|
352
|
+
"name": "punctuation.definition.parameters.c"
|
353
|
+
}
|
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"
|
357
|
+
},
|
358
|
+
"comments": {
|
359
|
+
"patterns": [
|
360
|
+
{
|
361
|
+
"captures": {
|
362
|
+
"1": {
|
363
|
+
"name": "meta.toc-list.banner.block.c"
|
364
|
+
}
|
365
|
+
},
|
366
|
+
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
|
367
|
+
"name": "comment.block.c"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"begin": "/\\*",
|
371
|
+
"beginCaptures": {
|
372
|
+
"0": {
|
373
|
+
"name": "punctuation.definition.comment.begin.c"
|
374
|
+
}
|
375
|
+
},
|
376
|
+
"end": "\\*/",
|
377
|
+
"endCaptures": {
|
378
|
+
"0": {
|
379
|
+
"name": "punctuation.definition.comment.end.c"
|
380
|
+
}
|
381
|
+
},
|
382
|
+
"name": "comment.block.c"
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"match": "\\*/.*\\n",
|
386
|
+
"name": "invalid.illegal.stray-comment-end.c"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"captures": {
|
390
|
+
"1": {
|
391
|
+
"name": "meta.toc-list.banner.line.c"
|
392
|
+
}
|
393
|
+
},
|
394
|
+
"match": "^// =(\\s*.*?)\\s*=\\s*$\\n?",
|
395
|
+
"name": "comment.line.banner.c++"
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"begin": "(^[ \\t]+)?(?=//)",
|
399
|
+
"beginCaptures": {
|
400
|
+
"1": {
|
401
|
+
"name": "punctuation.whitespace.comment.leading.c++"
|
402
|
+
}
|
403
|
+
},
|
404
|
+
"end": "(?!\\G)",
|
405
|
+
"patterns": [
|
406
|
+
{
|
407
|
+
"begin": "//",
|
408
|
+
"beginCaptures": {
|
409
|
+
"0": {
|
410
|
+
"name": "punctuation.definition.comment.c++"
|
411
|
+
}
|
412
|
+
},
|
413
|
+
"end": "\\n",
|
414
|
+
"name": "comment.line.double-slash.c++",
|
415
|
+
"patterns": [
|
416
|
+
{
|
417
|
+
"match": "(?>\\\\\\s*\\n)",
|
418
|
+
"name": "punctuation.separator.continuation.c++"
|
419
|
+
}
|
420
|
+
]
|
421
|
+
}
|
422
|
+
]
|
423
|
+
}
|
424
|
+
]
|
425
|
+
},
|
426
|
+
"disabled": {
|
427
|
+
"begin": "^\\s*#\\s*if(n?def)?\\b.*$",
|
428
|
+
"comment": "eat nested preprocessor if(def)s",
|
429
|
+
"end": "^\\s*#\\s*endif\\b",
|
430
|
+
"patterns": [
|
431
|
+
{
|
432
|
+
"include": "#disabled"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"include": "#pragma-mark"
|
436
|
+
}
|
437
|
+
]
|
438
|
+
},
|
439
|
+
"parens": {
|
440
|
+
"begin": "\\(",
|
441
|
+
"beginCaptures": {
|
442
|
+
"0": {
|
443
|
+
"name": "punctuation.section.parens.begin.c"
|
444
|
+
}
|
445
|
+
},
|
446
|
+
"end": "\\)",
|
447
|
+
"endCaptures": {
|
448
|
+
"0": {
|
449
|
+
"name": "punctuation.section.parens.end.c"
|
450
|
+
}
|
451
|
+
},
|
452
|
+
"name": "meta.parens.c",
|
453
|
+
"patterns": [
|
454
|
+
{
|
455
|
+
"include": "$base"
|
456
|
+
}
|
457
|
+
]
|
458
|
+
},
|
459
|
+
"pragma-mark": {
|
460
|
+
"captures": {
|
461
|
+
"1": {
|
462
|
+
"name": "meta.preprocessor.c"
|
463
|
+
},
|
464
|
+
"2": {
|
465
|
+
"name": "keyword.control.import.pragma.c"
|
466
|
+
},
|
467
|
+
"3": {
|
468
|
+
"name": "meta.toc-list.pragma-mark.c"
|
469
|
+
}
|
470
|
+
},
|
471
|
+
"match": "^\\s*(#\\s*(pragma\\s+mark)\\s+(.*))",
|
472
|
+
"name": "meta.section"
|
473
|
+
},
|
474
|
+
"preprocessor-rule-disabled": {
|
475
|
+
"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
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
488
|
+
"patterns": [
|
489
|
+
{
|
490
|
+
"begin": "^\\s*(#\\s*(else)\\b)",
|
491
|
+
"captures": {
|
492
|
+
"1": {
|
493
|
+
"name": "meta.preprocessor.c"
|
494
|
+
},
|
495
|
+
"2": {
|
496
|
+
"name": "keyword.control.import.else.c"
|
497
|
+
}
|
498
|
+
},
|
499
|
+
"end": "(?=^\\s*#\\s*endif\\b)",
|
500
|
+
"patterns": [
|
501
|
+
{
|
502
|
+
"include": "$base"
|
503
|
+
}
|
504
|
+
]
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"begin": "",
|
508
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
509
|
+
"name": "comment.block.preprocessor.if-branch",
|
510
|
+
"patterns": [
|
511
|
+
{
|
512
|
+
"include": "#disabled"
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"include": "#pragma-mark"
|
516
|
+
}
|
517
|
+
]
|
518
|
+
}
|
519
|
+
]
|
520
|
+
},
|
521
|
+
"preprocessor-rule-disabled-block": {
|
522
|
+
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
523
|
+
"captures": {
|
524
|
+
"1": {
|
525
|
+
"name": "meta.preprocessor.c"
|
526
|
+
},
|
527
|
+
"2": {
|
528
|
+
"name": "keyword.control.import.if.c"
|
529
|
+
},
|
530
|
+
"3": {
|
531
|
+
"name": "constant.numeric.preprocessor.c"
|
532
|
+
}
|
533
|
+
},
|
534
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
535
|
+
"patterns": [
|
536
|
+
{
|
537
|
+
"begin": "^\\s*(#\\s*(else)\\b)",
|
538
|
+
"captures": {
|
539
|
+
"1": {
|
540
|
+
"name": "meta.preprocessor.c"
|
541
|
+
},
|
542
|
+
"2": {
|
543
|
+
"name": "keyword.control.import.else.c"
|
544
|
+
}
|
545
|
+
},
|
546
|
+
"end": "(?=^\\s*#\\s*endif\\b)",
|
547
|
+
"patterns": [
|
548
|
+
{
|
549
|
+
"include": "#block_innards"
|
550
|
+
}
|
551
|
+
]
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"begin": "",
|
555
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
556
|
+
"name": "comment.block.preprocessor.if-branch.in-block",
|
557
|
+
"patterns": [
|
558
|
+
{
|
559
|
+
"include": "#disabled"
|
560
|
+
},
|
561
|
+
{
|
562
|
+
"include": "#pragma-mark"
|
563
|
+
}
|
564
|
+
]
|
565
|
+
}
|
566
|
+
]
|
567
|
+
},
|
568
|
+
"preprocessor-rule-enabled": {
|
569
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
570
|
+
"captures": {
|
571
|
+
"1": {
|
572
|
+
"name": "meta.preprocessor.c"
|
573
|
+
},
|
574
|
+
"2": {
|
575
|
+
"name": "keyword.control.import.if.c"
|
576
|
+
},
|
577
|
+
"3": {
|
578
|
+
"name": "constant.numeric.preprocessor.c"
|
579
|
+
}
|
580
|
+
},
|
581
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
582
|
+
"patterns": [
|
583
|
+
{
|
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
|
+
"contentName": "comment.block.preprocessor.else-branch",
|
594
|
+
"end": "(?=^\\s*#\\s*endif\\b)",
|
595
|
+
"patterns": [
|
596
|
+
{
|
597
|
+
"include": "#disabled"
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"include": "#pragma-mark"
|
601
|
+
}
|
602
|
+
]
|
603
|
+
},
|
604
|
+
{
|
605
|
+
"begin": "",
|
606
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
607
|
+
"patterns": [
|
608
|
+
{
|
609
|
+
"include": "$base"
|
610
|
+
}
|
611
|
+
]
|
612
|
+
}
|
613
|
+
]
|
614
|
+
},
|
615
|
+
"preprocessor-rule-enabled-block": {
|
616
|
+
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
617
|
+
"captures": {
|
618
|
+
"1": {
|
619
|
+
"name": "meta.preprocessor.c"
|
620
|
+
},
|
621
|
+
"2": {
|
622
|
+
"name": "keyword.control.import.if.c"
|
623
|
+
},
|
624
|
+
"3": {
|
625
|
+
"name": "constant.numeric.preprocessor.c"
|
626
|
+
}
|
627
|
+
},
|
628
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
629
|
+
"patterns": [
|
630
|
+
{
|
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
|
+
"contentName": "comment.block.preprocessor.else-branch.in-block",
|
641
|
+
"end": "(?=^\\s*#\\s*endif\\b)",
|
642
|
+
"patterns": [
|
643
|
+
{
|
644
|
+
"include": "#disabled"
|
645
|
+
},
|
646
|
+
{
|
647
|
+
"include": "#pragma-mark"
|
648
|
+
}
|
649
|
+
]
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"begin": "",
|
653
|
+
"end": "(?=^\\s*#\\s*(else|endif)\\b)",
|
654
|
+
"patterns": [
|
655
|
+
{
|
656
|
+
"include": "#block_innards"
|
657
|
+
}
|
658
|
+
]
|
659
|
+
}
|
660
|
+
]
|
661
|
+
},
|
662
|
+
"preprocessor-rule-other": {
|
663
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
664
|
+
"captures": {
|
665
|
+
"1": {
|
666
|
+
"name": "meta.preprocessor.c"
|
667
|
+
},
|
668
|
+
"2": {
|
669
|
+
"name": "keyword.control.import.c"
|
670
|
+
}
|
671
|
+
},
|
672
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
673
|
+
"patterns": [
|
674
|
+
{
|
675
|
+
"include": "$base"
|
676
|
+
}
|
677
|
+
]
|
678
|
+
},
|
679
|
+
"preprocessor-rule-other-block": {
|
680
|
+
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
681
|
+
"captures": {
|
682
|
+
"1": {
|
683
|
+
"name": "meta.preprocessor.c"
|
684
|
+
},
|
685
|
+
"2": {
|
686
|
+
"name": "keyword.control.import.c"
|
687
|
+
}
|
688
|
+
},
|
689
|
+
"end": "^\\s*(#\\s*(endif)\\b)",
|
690
|
+
"patterns": [
|
691
|
+
{
|
692
|
+
"include": "#block_innards"
|
693
|
+
}
|
694
|
+
]
|
695
|
+
},
|
696
|
+
"sizeof": {
|
697
|
+
"match": "\\b(sizeof)\\b",
|
698
|
+
"name": "keyword.operator.sizeof.c"
|
699
|
+
},
|
700
|
+
"string_escaped_char": {
|
701
|
+
"patterns": [
|
702
|
+
{
|
703
|
+
"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})",
|
704
|
+
"name": "constant.character.escape.c"
|
705
|
+
},
|
706
|
+
{
|
707
|
+
"match": "\\\\.",
|
708
|
+
"name": "invalid.illegal.unknown-escape.c"
|
709
|
+
}
|
710
|
+
]
|
711
|
+
},
|
712
|
+
"string_placeholder": {
|
713
|
+
"patterns": [
|
714
|
+
{
|
715
|
+
"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",
|
716
|
+
"name": "constant.other.placeholder.c"
|
717
|
+
},
|
718
|
+
{
|
719
|
+
"match": "%",
|
720
|
+
"name": "invalid.illegal.placeholder.c"
|
721
|
+
}
|
722
|
+
]
|
723
|
+
}
|
724
|
+
},
|
725
|
+
"scopeName": "source.c",
|
726
|
+
"uuid": "25066DC2-6B1D-11D9-9D5B-000D93589AF6"
|
727
|
+
}
|