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