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
2
  "name": "Grace",
3
3
  "scopeName": "source.grace",
4
- "fileTypes": [
5
- "grace"
6
- ],
7
4
  "patterns": [
8
5
  {
9
6
  "include": "#comment"
@@ -31,15 +28,7 @@
31
28
  },
32
29
  {
33
30
  "name": "meta.type.literal.grace",
34
- "begin": "(?:(?<![A-z\\d'])(type)|(=))\\s*\\{",
35
- "beginCaptures": {
36
- "1": {
37
- "name": "keyword.type.grace"
38
- },
39
- "2": {
40
- "name": "keyword.operator.grace"
41
- }
42
- },
31
+ "begin": "(?:(?\u003c![A-z\\d'])(type)|(=))\\s*\\{",
43
32
  "end": "\\}",
44
33
  "patterns": [
45
34
  {
@@ -53,45 +42,30 @@
53
42
  },
54
43
  {
55
44
  "name": "entity.function.grace",
56
- "match": "[A-z][A-z\\d']*|[-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]*"
45
+ "match": "[A-z][A-z\\d']*|[-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]*"
57
46
  }
58
- ]
59
- },
60
- {
61
- "name": "meta.type.grace",
62
- "begin": "(?<![A-z\\d'])(type)(?![A-z\\d'])(?!\\s*\\{)",
47
+ ],
63
48
  "beginCaptures": {
64
49
  "1": {
65
50
  "name": "keyword.type.grace"
66
- }
67
- },
68
- "end": "(?==)",
69
- "endCaptures": {
70
- "1": {
51
+ },
52
+ "2": {
71
53
  "name": "keyword.operator.grace"
72
54
  }
73
- },
55
+ }
56
+ },
57
+ {
58
+ "name": "meta.type.grace",
59
+ "begin": "(?\u003c![A-z\\d'])(type)(?![A-z\\d'])(?!\\s*\\{)",
60
+ "end": "(?==)",
74
61
  "patterns": [
75
62
  {
76
63
  "include": "#comment"
77
64
  },
78
65
  {
79
66
  "name": "meta.type.generic.grace",
80
- "begin": "([A-z][A-z\\d']*)(<)",
81
- "end": "(>)",
82
- "beginCaptures": {
83
- "1": {
84
- "name": "entity.type.grace"
85
- },
86
- "2": {
87
- "name": "keyword.operator.grace"
88
- }
89
- },
90
- "endCaptures": {
91
- "1": {
92
- "name": "keyword.type.generic.grace"
93
- }
94
- },
67
+ "begin": "([A-z][A-z\\d']*)(\u003c)",
68
+ "end": "(\u003e)",
95
69
  "patterns": [
96
70
  {
97
71
  "include": "#comment"
@@ -109,15 +83,23 @@
109
83
  "name": "entity.type.generic.grace",
110
84
  "match": "[A-z][A-z\\d']*"
111
85
  }
112
- ]
113
- },
114
- {
115
- "begin": "(?<![A-z\\d'])(is)(?![A-z\\d'])",
86
+ ],
116
87
  "beginCaptures": {
117
88
  "1": {
118
- "name": "keyword.grace"
89
+ "name": "entity.type.grace"
90
+ },
91
+ "2": {
92
+ "name": "keyword.operator.grace"
119
93
  }
120
94
  },
95
+ "endCaptures": {
96
+ "1": {
97
+ "name": "keyword.type.generic.grace"
98
+ }
99
+ }
100
+ },
101
+ {
102
+ "begin": "(?\u003c![A-z\\d'])(is)(?![A-z\\d'])",
121
103
  "end": "(?==)",
122
104
  "patterns": [
123
105
  {
@@ -127,7 +109,12 @@
127
109
  "name": "support.type.annotation.grace",
128
110
  "match": "[A-z][A-z\\d']*"
129
111
  }
130
- ]
112
+ ],
113
+ "beginCaptures": {
114
+ "1": {
115
+ "name": "keyword.grace"
116
+ }
117
+ }
131
118
  },
132
119
  {
133
120
  "include": "#bad_names"
@@ -139,16 +126,21 @@
139
126
  {
140
127
  "include": "$self"
141
128
  }
142
- ]
143
- },
144
- {
145
- "name": "meta.method.grace",
146
- "begin": "(?<![A-z\\d'])(method)(?![A-z\\d'])",
129
+ ],
147
130
  "beginCaptures": {
148
131
  "1": {
149
- "name": "keyword.grace"
132
+ "name": "keyword.type.grace"
150
133
  }
151
134
  },
135
+ "endCaptures": {
136
+ "1": {
137
+ "name": "keyword.operator.grace"
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "name": "meta.method.grace",
143
+ "begin": "(?\u003c![A-z\\d'])(method)(?![A-z\\d'])",
152
144
  "end": "(?=\\{)",
153
145
  "patterns": [
154
146
  {
@@ -159,18 +151,18 @@
159
151
  },
160
152
  {
161
153
  "name": "entity.function.grace",
162
- "match": "[A-z][A-z\\d']*|[-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]*"
154
+ "match": "[A-z][A-z\\d']*|[-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]*"
163
155
  }
164
- ]
156
+ ],
157
+ "beginCaptures": {
158
+ "1": {
159
+ "name": "keyword.grace"
160
+ }
161
+ }
165
162
  },
166
163
  {
167
164
  "name": "meta.class.grace",
168
165
  "begin": "\\b(class)(?![A-z\\d'])",
169
- "beginCaptures": {
170
- "1": {
171
- "name": "keyword.class.grace"
172
- }
173
- },
174
166
  "end": "(?=\\{)",
175
167
  "patterns": [
176
168
  {
@@ -185,7 +177,7 @@
185
177
  },
186
178
  {
187
179
  "name": "meta.name.class.grace",
188
- "match": "(?<=class)\\s*([A-z][A-z\\d']*)\\s*(\\.)",
180
+ "match": "(?\u003c=class)\\s*([A-z][A-z\\d']*)\\s*(\\.)",
189
181
  "captures": {
190
182
  "1": {
191
183
  "name": "entity.class.grace"
@@ -197,27 +189,19 @@
197
189
  },
198
190
  {
199
191
  "name": "entity.class.grace",
200
- "match": "[A-z][A-z\\d']*|[-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]*"
192
+ "match": "[A-z][A-z\\d']*|[-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]*"
201
193
  }
202
- ]
203
- },
204
- {
205
- "name": "meta.definition.grace",
206
- "begin": "(?<![A-z\\d'])(def)(?![A-z\\d'])",
194
+ ],
207
195
  "beginCaptures": {
208
196
  "1": {
209
- "name": "keyword.definition.grace"
210
- }
211
- },
212
- "end": "(?<![^\\w\\d'\\s])(?:(=)|(:=))(?![^\\w\\s])|$",
213
- "endCaptures": {
214
- "1": {
215
- "name": "keyword.operator.grace"
216
- },
217
- "2": {
218
- "name": "invalid.illegal.grace"
197
+ "name": "keyword.class.grace"
219
198
  }
220
- },
199
+ }
200
+ },
201
+ {
202
+ "name": "meta.definition.grace",
203
+ "begin": "(?\u003c![A-z\\d'])(def)(?![A-z\\d'])",
204
+ "end": "(?\u003c![^\\w\\d'\\s])(?:(=)|(:=))(?![^\\w\\s])|$",
221
205
  "patterns": [
222
206
  {
223
207
  "include": "#comment"
@@ -226,13 +210,8 @@
226
210
  "include": "#signature_args"
227
211
  },
228
212
  {
229
- "begin": "(?<![A-z\\d'])(is)(?![A-z\\d'])",
230
- "beginCaptures": {
231
- "1": {
232
- "name": "keyword.grace"
233
- }
234
- },
235
- "end": "(?=(?<![^\\w\\d'\\s])(?:(=)|(:=))(?![^\\w\\d'\\s]))|$",
213
+ "begin": "(?\u003c![A-z\\d'])(is)(?![A-z\\d'])",
214
+ "end": "(?=(?\u003c![^\\w\\d'\\s])(?:(=)|(:=))(?![^\\w\\d'\\s]))|$",
236
215
  "patterns": [
237
216
  {
238
217
  "include": "$self"
@@ -241,7 +220,12 @@
241
220
  "name": "support.type.annotation.grace",
242
221
  "match": "[A-z][A-z\\d']*"
243
222
  }
244
- ]
223
+ ],
224
+ "beginCaptures": {
225
+ "1": {
226
+ "name": "keyword.grace"
227
+ }
228
+ }
245
229
  },
246
230
  {
247
231
  "include": "#bad_names"
@@ -250,17 +234,12 @@
250
234
  "name": "entity.definition.grace",
251
235
  "match": "\\b_\\b|[A-z][A-z\\d']*"
252
236
  }
253
- ]
254
- },
255
- {
256
- "name": "meta.variable.grace",
257
- "begin": "(?<![A-z\\d'])(var)(?![A-z\\d'])",
237
+ ],
258
238
  "beginCaptures": {
259
239
  "1": {
260
- "name": "keyword.variable.grace"
240
+ "name": "keyword.definition.grace"
261
241
  }
262
242
  },
263
- "end": "(?<![^\\w\\d'\\s])(?:(:=)|(=))(?![^\\w\\d'\\s])|$",
264
243
  "endCaptures": {
265
244
  "1": {
266
245
  "name": "keyword.operator.grace"
@@ -268,19 +247,19 @@
268
247
  "2": {
269
248
  "name": "invalid.illegal.grace"
270
249
  }
271
- },
250
+ }
251
+ },
252
+ {
253
+ "name": "meta.variable.grace",
254
+ "begin": "(?\u003c![A-z\\d'])(var)(?![A-z\\d'])",
255
+ "end": "(?\u003c![^\\w\\d'\\s])(?:(:=)|(=))(?![^\\w\\d'\\s])|$",
272
256
  "patterns": [
273
257
  {
274
258
  "include": "#comment"
275
259
  },
276
260
  {
277
- "begin": "(?<![^\\w\\d'\\s\\(,])(:)(?![^\\w\\d'\\s\\),])",
278
- "beginCaptures": {
279
- "1": {
280
- "name": "keyword.operator.grace"
281
- }
282
- },
283
- "end": "(?=$|,|\\)|(?<=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]|^)(:|=|:=|->)(?=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]|$))",
261
+ "begin": "(?\u003c![^\\w\\d'\\s\\(,])(:)(?![^\\w\\d'\\s\\),])",
262
+ "end": "(?=$|,|\\)|(?\u003c=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]|^)(:|=|:=|-\u003e)(?=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]|$))",
284
263
  "patterns": [
285
264
  {
286
265
  "include": "$self"
@@ -288,16 +267,16 @@
288
267
  {
289
268
  "include": "#type"
290
269
  }
291
- ]
292
- },
293
- {
294
- "begin": "(?<![A-z\\d'])(is)(?![A-z\\d'])",
270
+ ],
295
271
  "beginCaptures": {
296
272
  "1": {
297
- "name": "keyword.grace"
273
+ "name": "keyword.operator.grace"
298
274
  }
299
- },
300
- "end": "(?=(?<![^\\w\\d'\\s])(?:(=)|(:=))(?![^\\w\\d'\\s]))|$",
275
+ }
276
+ },
277
+ {
278
+ "begin": "(?\u003c![A-z\\d'])(is)(?![A-z\\d'])",
279
+ "end": "(?=(?\u003c![^\\w\\d'\\s])(?:(=)|(:=))(?![^\\w\\d'\\s]))|$",
301
280
  "patterns": [
302
281
  {
303
282
  "include": "$self"
@@ -306,7 +285,12 @@
306
285
  "name": "support.type.annotation.grace",
307
286
  "match": "[A-z][A-z\\d']*"
308
287
  }
309
- ]
288
+ ],
289
+ "beginCaptures": {
290
+ "1": {
291
+ "name": "keyword.grace"
292
+ }
293
+ }
310
294
  },
311
295
  {
312
296
  "include": "#bad_names"
@@ -318,7 +302,20 @@
318
302
  "name": "entity.variable.grace",
319
303
  "match": "\\b_\\b|[A-z][A-z\\d']*"
320
304
  }
321
- ]
305
+ ],
306
+ "beginCaptures": {
307
+ "1": {
308
+ "name": "keyword.variable.grace"
309
+ }
310
+ },
311
+ "endCaptures": {
312
+ "1": {
313
+ "name": "keyword.operator.grace"
314
+ },
315
+ "2": {
316
+ "name": "invalid.illegal.grace"
317
+ }
318
+ }
322
319
  },
323
320
  {
324
321
  "name": "meta.block.grace",
@@ -332,13 +329,8 @@
332
329
  },
333
330
  {
334
331
  "name": "meta.parameters.block.grace",
335
- "begin": "(?<=\\{)(?=[^{}]*[^-|@#!%$?&=:\\.\\*~+\\</>\\\\}]->[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^])",
336
- "end": "(->)",
337
- "endCaptures": {
338
- "1": {
339
- "name": "keyword.operator.grace"
340
- }
341
- },
332
+ "begin": "(?\u003c=\\{)(?=[^{}]*[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\}]-\u003e[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^])",
333
+ "end": "(-\u003e)",
342
334
  "patterns": [
343
335
  {
344
336
  "include": "#comment"
@@ -362,10 +354,15 @@
362
354
  "include": "#bad_operators"
363
355
  },
364
356
  {
365
- "match": "[A-z][A-z\\d']*",
366
- "name": "entity.parameter.grace"
357
+ "name": "entity.parameter.grace",
358
+ "match": "[A-z][A-z\\d']*"
367
359
  }
368
- ]
360
+ ],
361
+ "endCaptures": {
362
+ "1": {
363
+ "name": "keyword.operator.grace"
364
+ }
365
+ }
369
366
  },
370
367
  {
371
368
  "include": "#string"
@@ -375,109 +372,75 @@
375
372
  },
376
373
  {
377
374
  "name": "keyword.control.grace",
378
- "match": "(?<![A-z\\d'])(return)(?![A-z\\d'])"
375
+ "match": "(?\u003c![A-z\\d'])(return)(?![A-z\\d'])"
379
376
  },
380
377
  {
381
378
  "name": "keyword.operator.grace",
382
- "match": "(?<=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]|^)(:|=|:=|\\.|->)(?=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]|$)"
379
+ "match": "(?\u003c=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]|^)(:|=|:=|\\.|-\u003e)(?=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]|$)"
383
380
  },
384
381
  {
385
382
  "name": "support.function.operator.grace",
386
- "match": "[-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]*"
383
+ "match": "[-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]*"
387
384
  },
388
385
  {
389
386
  "name": "keyword.grace",
390
- "match": "(?<![A-z\\d'])(dialect|import|as|object|method|class|type|def|var|where|is|inherits)(?![A-z\\d'])"
387
+ "match": "(?\u003c![A-z\\d'])(dialect|import|as|object|method|class|type|def|var|where|is|inherits)(?![A-z\\d'])"
391
388
  },
392
389
  {
393
390
  "include": "#number"
394
391
  },
395
392
  {
396
393
  "name": "variable.language.self.grace",
397
- "match": "(?<![A-z\\d'])(super|self|outer)(?![A-z\\d'])"
394
+ "match": "(?\u003c![A-z\\d'])(super|self|outer)(?![A-z\\d'])"
398
395
  },
399
396
  {
400
397
  "name": "constant.language.boolean.true.grace",
401
- "match": "(?<![A-z\\d'])true(?![A-z\\d'])"
398
+ "match": "(?\u003c![A-z\\d'])true(?![A-z\\d'])"
402
399
  },
403
400
  {
404
401
  "name": "constant.language.boolean.false.grace",
405
- "match": "(?<![A-z\\d'])false(?![A-z\\d'])"
402
+ "match": "(?\u003c![A-z\\d'])false(?![A-z\\d'])"
406
403
  },
407
404
  {
408
405
  "name": "support.type.grace",
409
- "match": "(?<![A-z\\d'])[A-Z][A-z\\d']*(?![A-z\\d']|\\s*\\.\\s*[A-z])"
406
+ "match": "(?\u003c![A-z\\d'])[A-Z][A-z\\d']*(?![A-z\\d']|\\s*\\.\\s*[A-z])"
410
407
  }
411
408
  ],
412
409
  "repository": {
413
- "comment": {
414
- "match": "//.*$",
415
- "name": "comment.line.grace"
410
+ "bad_names": {
411
+ "name": "invalid.illegal.grace",
412
+ "match": "(?\u003c![A-z\\d'])(dialect|import|as|object|method|class|type|def|var|where|is|inherits|self|super|outer)(?![A-z\\d'])"
413
+ },
414
+ "bad_operators": {
415
+ "name": "invalid.illegal.grace",
416
+ "match": "[-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]+"
416
417
  },
417
418
  "comma": {
418
419
  "name": "keyword.grace",
419
420
  "match": ","
420
421
  },
421
- "number": {
422
- "name": "constant.numeric.grace",
423
- "match": "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b"
422
+ "comment": {
423
+ "name": "comment.line.grace",
424
+ "match": "//.*$"
424
425
  },
425
- "string": {
426
- "name": "string.quoted.double.grace",
427
- "begin": "\"",
428
- "beginCaptures": {
429
- "0": {
430
- "name": "punctuation.definition.string.begin.grace"
431
- }
432
- },
433
- "end": "(\")|(\\n)",
434
- "endCaptures": {
435
- "1": {
436
- "name": "punctuation.definition.string.end.grace"
437
- },
438
- "2": {
439
- "name": "invalid.illegal.grace"
440
- }
441
- },
426
+ "generic": {
427
+ "name": "meta.type.generic.grace",
428
+ "begin": "(?:([A-Z][A-z\\d']*)|[a-z][A-z\\d']*)(\u003c)(?![-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^])",
429
+ "end": "(\u003e)",
442
430
  "patterns": [
443
431
  {
444
- "match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
445
- "name": "constant.character.escape.grace"
432
+ "include": "#comment"
446
433
  },
447
434
  {
448
- "name": "source.embedded.grace",
449
- "begin": "\\{",
450
- "beginCaptures": {
451
- "0": {
452
- "name": "keyword.interpolation.begin.grace"
453
- }
454
- },
455
- "end": "\\}",
456
- "endCaptures": {
457
- "0": {
458
- "name": "keyword.interpolation.end.grace"
459
- }
460
- },
461
- "patterns": [
462
- {
463
- "include": "$self"
464
- }
465
- ]
435
+ "include": "#generic"
436
+ },
437
+ {
438
+ "include": "$self"
439
+ },
440
+ {
441
+ "include": "#type"
466
442
  }
467
- ]
468
- },
469
- "bad_names": {
470
- "name": "invalid.illegal.grace",
471
- "match": "(?<![A-z\\d'])(dialect|import|as|object|method|class|type|def|var|where|is|inherits|self|super|outer)(?![A-z\\d'])"
472
- },
473
- "bad_operators": {
474
- "name": "invalid.illegal.grace",
475
- "match": "[-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]+"
476
- },
477
- "generic": {
478
- "name": "meta.type.generic.grace",
479
- "begin": "(?:([A-Z][A-z\\d']*)|[a-z][A-z\\d']*)(<)(?![-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^])",
480
- "end": "(>)",
443
+ ],
481
444
  "beginCaptures": {
482
445
  "1": {
483
446
  "name": "support.type.grace"
@@ -490,44 +453,21 @@
490
453
  "1": {
491
454
  "name": "keyword.operator.grace"
492
455
  }
493
- },
494
- "patterns": [
495
- {
496
- "include": "#comment"
497
- },
498
- {
499
- "include": "#generic"
500
- },
501
- {
502
- "include": "$self"
503
- },
504
- {
505
- "include": "#type"
506
- }
507
- ]
456
+ }
508
457
  },
509
- "type": {
510
- "name": "support.type.grace",
511
- "match": "[A-z][A-z\\d']*(?![A-z\\d']|\\s*\\.\\s*[A-z])"
458
+ "number": {
459
+ "name": "constant.numeric.grace",
460
+ "match": "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b"
512
461
  },
513
- "signature_args": {
462
+ "signature": {
514
463
  "name": "meta.signature.grace",
515
464
  "patterns": [
516
465
  {
517
466
  "include": "#comment"
518
467
  },
519
468
  {
520
- "match": "\\*",
521
- "name": "keyword.variadic.grace"
522
- },
523
- {
524
- "begin": "(?<![^\\w\\d'\\s\\(,])(:)(?![^\\w\\d'\\s\\),])",
525
- "beginCaptures": {
526
- "1": {
527
- "name": "keyword.operator.grace"
528
- }
529
- },
530
- "end": "(?=,|\\)|(?<=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]|^)(:|=|:=|->)(?=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]|$))",
469
+ "begin": "(?\u003c=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]|^)(-\u003e)(?=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]|$)",
470
+ "end": "(?=(?\u003c![A-z\\d'])is(?![A-z\\d'])|\\{|\\}|(?\u003c=[A-z\\d'\"\u003e)])(?\u003c!-\u003e)\\s+$)",
531
471
  "patterns": [
532
472
  {
533
473
  "include": "$self"
@@ -535,43 +475,16 @@
535
475
  {
536
476
  "include": "#type"
537
477
  }
538
- ]
539
- },
540
- {
541
- "match": "[A-z][A-z\\d']*(?=\\s*[,\\:\\)])",
542
- "name": "entity.function.grace"
543
- },
544
- {
545
- "include": "#comma"
546
- }
547
- ]
548
- },
549
- "signature": {
550
- "name": "meta.signature.grace",
551
- "patterns": [
552
- {
553
- "include": "#comment"
554
- },
555
- {
556
- "begin": "(?<=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]|^)(->)(?=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]|$)",
478
+ ],
557
479
  "beginCaptures": {
558
480
  "1": {
559
481
  "name": "keyword.operator.grace"
560
482
  }
561
- },
562
- "end": "(?=(?<![A-z\\d'])is(?![A-z\\d'])|\\{|\\}|(?<=[A-z\\d'\">)])(?<!->)\\s+$)",
563
- "patterns": [
564
- {
565
- "include": "$self"
566
- },
567
- {
568
- "include": "#type"
569
- }
570
- ]
483
+ }
571
484
  },
572
485
  {
573
486
  "name": "meta.signature.prefix.grace",
574
- "match": "(prefix)\\s*(?:(:(?:=?)(?=[^-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]))|([-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]*))",
487
+ "match": "(prefix)\\s*(?:(:(?:=?)(?=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]))|([-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]*))",
575
488
  "captures": {
576
489
  "1": {
577
490
  "name": "keyword.grace"
@@ -598,7 +511,7 @@
598
511
  },
599
512
  {
600
513
  "name": "meta.signature.binary.grace",
601
- "match": "(?:(:(?:=?))|([-|@#!%$?&=:\\.\\*~+\\</>\\\\\\^]+))\\s*(?=\\()",
514
+ "match": "(?:(:(?:=?))|([-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]+))\\s*(?=\\()",
602
515
  "captures": {
603
516
  "1": {
604
517
  "name": "invalid.illegal.grace"
@@ -609,13 +522,8 @@
609
522
  }
610
523
  },
611
524
  {
612
- "begin": "(?<![A-z\\d'])(is)(?![A-z\\d'])",
613
- "beginCaptures": {
614
- "1": {
615
- "name": "keyword.grace"
616
- }
617
- },
618
- "end": "(?=\\{|\\}|(?<=[A-z\\d'\">)])(?<!is)\\s+$)",
525
+ "begin": "(?\u003c![A-z\\d'])(is)(?![A-z\\d'])",
526
+ "end": "(?=\\{|\\}|(?\u003c=[A-z\\d'\"\u003e)])(?\u003c!is)\\s+$)",
619
527
  "patterns": [
620
528
  {
621
529
  "include": "$self"
@@ -624,7 +532,12 @@
624
532
  "name": "support.annotation.grace",
625
533
  "match": "[A-z][A-z\\d']*"
626
534
  }
627
- ]
535
+ ],
536
+ "beginCaptures": {
537
+ "1": {
538
+ "name": "keyword.grace"
539
+ }
540
+ }
628
541
  },
629
542
  {
630
543
  "name": "meta.signature.parameters.grace",
@@ -637,18 +550,8 @@
637
550
  ]
638
551
  },
639
552
  {
640
- "begin": "(?<=\\w)(<)",
641
- "end": "(>)",
642
- "beginCaptures": {
643
- "1": {
644
- "name": "keyword.generic.grace"
645
- }
646
- },
647
- "endCaptures": {
648
- "1": {
649
- "name": "keyword.generic.grace"
650
- }
651
- },
553
+ "begin": "(?\u003c=\\w)(\u003c)",
554
+ "end": "(\u003e)",
652
555
  "patterns": [
653
556
  {
654
557
  "include": "#comment"
@@ -660,7 +563,17 @@
660
563
  "name": "support.type.grace",
661
564
  "match": "[A-z][A-z0-9']*"
662
565
  }
663
- ]
566
+ ],
567
+ "beginCaptures": {
568
+ "1": {
569
+ "name": "keyword.generic.grace"
570
+ }
571
+ },
572
+ "endCaptures": {
573
+ "1": {
574
+ "name": "keyword.generic.grace"
575
+ }
576
+ }
664
577
  },
665
578
  {
666
579
  "include": "#bad_names"
@@ -669,11 +582,94 @@
669
582
  "include": "#bad_operators"
670
583
  },
671
584
  {
672
- "match": "[A-z][A-z\\d']*(?=\\s*[,\\:\\)])",
673
- "name": "entity.function.grace"
585
+ "name": "entity.function.grace",
586
+ "match": "[A-z][A-z\\d']*(?=\\s*[,\\:\\)])"
587
+ }
588
+ ]
589
+ },
590
+ "signature_args": {
591
+ "name": "meta.signature.grace",
592
+ "patterns": [
593
+ {
594
+ "include": "#comment"
595
+ },
596
+ {
597
+ "name": "keyword.variadic.grace",
598
+ "match": "\\*"
599
+ },
600
+ {
601
+ "begin": "(?\u003c![^\\w\\d'\\s\\(,])(:)(?![^\\w\\d'\\s\\),])",
602
+ "end": "(?=,|\\)|(?\u003c=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]|^)(:|=|:=|-\u003e)(?=[^-|@#!%$?\u0026=:\\.\\*~+\\\u003c/\u003e\\\\\\^]|$))",
603
+ "patterns": [
604
+ {
605
+ "include": "$self"
606
+ },
607
+ {
608
+ "include": "#type"
609
+ }
610
+ ],
611
+ "beginCaptures": {
612
+ "1": {
613
+ "name": "keyword.operator.grace"
614
+ }
615
+ }
616
+ },
617
+ {
618
+ "name": "entity.function.grace",
619
+ "match": "[A-z][A-z\\d']*(?=\\s*[,\\:\\)])"
620
+ },
621
+ {
622
+ "include": "#comma"
674
623
  }
675
624
  ]
625
+ },
626
+ "string": {
627
+ "name": "string.quoted.double.grace",
628
+ "begin": "\"",
629
+ "end": "(\")|(\\n)",
630
+ "patterns": [
631
+ {
632
+ "name": "constant.character.escape.grace",
633
+ "match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)"
634
+ },
635
+ {
636
+ "name": "source.embedded.grace",
637
+ "begin": "\\{",
638
+ "end": "\\}",
639
+ "patterns": [
640
+ {
641
+ "include": "$self"
642
+ }
643
+ ],
644
+ "beginCaptures": {
645
+ "0": {
646
+ "name": "keyword.interpolation.begin.grace"
647
+ }
648
+ },
649
+ "endCaptures": {
650
+ "0": {
651
+ "name": "keyword.interpolation.end.grace"
652
+ }
653
+ }
654
+ }
655
+ ],
656
+ "beginCaptures": {
657
+ "0": {
658
+ "name": "punctuation.definition.string.begin.grace"
659
+ }
660
+ },
661
+ "endCaptures": {
662
+ "1": {
663
+ "name": "punctuation.definition.string.end.grace"
664
+ },
665
+ "2": {
666
+ "name": "invalid.illegal.grace"
667
+ }
668
+ }
669
+ },
670
+ "type": {
671
+ "name": "support.type.grace",
672
+ "match": "[A-z][A-z\\d']*(?![A-z\\d']|\\s*\\.\\s*[A-z])"
676
673
  }
677
- },
678
- "uuid": "ca03e751-04ef-4330-9a6b-9b99aae1c419"
679
- }
674
+ }
675
+ }