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,41 +1,5 @@
1
1
  {
2
- "fileTypes": [
3
-
4
- ],
5
2
  "scopeName": "hint.message.haskell",
6
- "macros": {
7
- "identStartCharClass": "[\\p{Ll}_\\p{Lu}\\p{Lt}]",
8
- "identContCharClass": "[\\p{Ll}_\\p{Lu}\\p{Lt}']",
9
- "identCharClass": "[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']",
10
- "functionNameOne": "[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",
11
- "classNameOne": "[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",
12
- "functionName": "(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",
13
- "className": "[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*",
14
- "operatorChar": "(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))",
15
- "operator": "(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+",
16
- "operatorFun": "(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\))",
17
- "basicChar": "[\\ -\\[\\]-~]",
18
- "escapeChar": "\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])",
19
- "octalChar": "(?:\\\\o[0-7]+)",
20
- "hexChar": "(?:\\\\x[0-9A-Fa-f]+)",
21
- "controlChar": "(?:\\\\\\^[A-Z@\\[\\]\\\\^_])",
22
- "character": "(?:[\\ -\\[\\]-~]|\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])|(?:\\\\o[0-7]+)|(?:\\\\x[0-9A-Fa-f]+)|(?:\\\\\\^[A-Z@\\[\\]\\\\^_])|(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))",
23
- "functionList": "((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_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}_\\p{Lu}\\p{Lt}']))",
36
- "rb": "(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
37
- "b": "(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))|(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])))"
38
- },
39
3
  "patterns": [
40
4
  {
41
5
  "match": "^[^:]*:(.+)$",
@@ -69,13 +33,37 @@
69
33
  }
70
34
  ],
71
35
  "repository": {
36
+ "assignment_op": {
37
+ "patterns": [
38
+ {
39
+ "match": "=",
40
+ "captures": {
41
+ "0": {
42
+ "name": "keyword.operator.assignment.haskell"
43
+ }
44
+ }
45
+ }
46
+ ]
47
+ },
48
+ "attribute_name": {
49
+ "patterns": [
50
+ {
51
+ "name": "entity.other.attribute-name.haskell",
52
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
53
+ }
54
+ ]
55
+ },
72
56
  "block_comment": {
73
57
  "patterns": [
74
58
  {
75
59
  "name": "comment.block.haddock.haskell",
76
60
  "begin": "\\{-\\s*[|^]",
77
61
  "end": "-\\}",
78
- "applyEndPatternLast": 1,
62
+ "patterns": [
63
+ {
64
+ "include": "#block_comment"
65
+ }
66
+ ],
79
67
  "beginCaptures": {
80
68
  "0": {
81
69
  "name": "punctuation.definition.comment.haddock.haskell"
@@ -86,17 +74,17 @@
86
74
  "name": "punctuation.definition.comment.haddock.haskell"
87
75
  }
88
76
  },
89
- "patterns": [
90
- {
91
- "include": "#block_comment"
92
- }
93
- ]
77
+ "applyEndPatternLast": true
94
78
  },
95
79
  {
96
80
  "name": "comment.block.haskell",
97
81
  "begin": "\\{-",
98
82
  "end": "-\\}",
99
- "applyEndPatternLast": 1,
83
+ "patterns": [
84
+ {
85
+ "include": "#block_comment"
86
+ }
87
+ ],
100
88
  "beginCaptures": {
101
89
  "0": {
102
90
  "name": "punctuation.definition.comment.block.start.haskell"
@@ -107,14 +95,77 @@
107
95
  "name": "punctuation.definition.comment.block.end.haskell"
108
96
  }
109
97
  },
98
+ "applyEndPatternLast": true
99
+ }
100
+ ]
101
+ },
102
+ "c_preprocessor": {
103
+ "patterns": [
104
+ {
105
+ "name": "meta.preprocessor.c.haskell",
106
+ "begin": "^(?=#)",
107
+ "end": "(?\u003c!\\\\)(?=$)",
110
108
  "patterns": [
111
109
  {
112
- "include": "#block_comment"
110
+ "name": "keyword.control.c.haskell",
111
+ "match": "^#\\S+"
113
112
  }
114
113
  ]
115
114
  }
116
115
  ]
117
116
  },
117
+ "characters": {
118
+ "patterns": [
119
+ {
120
+ "name": "constant.character.escape.haskell",
121
+ "match": "\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\\u0026])"
122
+ },
123
+ {
124
+ "name": "constant.character.escape.octal.haskell",
125
+ "match": "(?:\\\\o[0-7]+)"
126
+ },
127
+ {
128
+ "name": "constant.character.escape.hexadecimal.haskell",
129
+ "match": "(?:\\\\x[0-9A-Fa-f]+)"
130
+ },
131
+ {
132
+ "name": "constant.character.escape.control.haskell",
133
+ "match": "(?:\\\\\\^[A-Z@\\[\\]\\\\^_])"
134
+ }
135
+ ]
136
+ },
137
+ "class_decl": {
138
+ "patterns": [
139
+ {
140
+ "name": "meta.declaration.class.haskell",
141
+ "begin": "^([ \\t]*)(class)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
142
+ "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(where)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|^(?!\\1[ \\t]|[ \\t]*$)",
143
+ "patterns": [
144
+ {
145
+ "include": "#type_signature"
146
+ }
147
+ ],
148
+ "beginCaptures": {
149
+ "2": {
150
+ "name": "keyword.other.class.haskell"
151
+ }
152
+ },
153
+ "endCaptures": {
154
+ "1": {
155
+ "name": "keyword.other.haskell"
156
+ }
157
+ }
158
+ }
159
+ ]
160
+ },
161
+ "comma": {
162
+ "patterns": [
163
+ {
164
+ "name": "punctuation.separator.comma.haskell",
165
+ "match": ","
166
+ }
167
+ ]
168
+ },
118
169
  "comments": {
119
170
  "patterns": [
120
171
  {
@@ -137,7 +188,7 @@
137
188
  ]
138
189
  },
139
190
  {
140
- "begin": "(^[ \\t]+)?(?=--+(?!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))))",
191
+ "begin": "(^[ \\t]+)?(?=--+(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))",
141
192
  "end": "(?!\\G)",
142
193
  "patterns": [
143
194
  {
@@ -157,169 +208,246 @@
157
208
  }
158
209
  ]
159
210
  },
160
- "characters": {
211
+ "common_toplevel": {
161
212
  "patterns": [
162
213
  {
163
- "match": "\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])",
164
- "name": "constant.character.escape.haskell"
214
+ "include": "#class_decl"
215
+ },
216
+ {
217
+ "include": "#instance_decl"
218
+ },
219
+ {
220
+ "include": "#deriving_instance_decl"
221
+ },
222
+ {
223
+ "include": "#foreign_import"
224
+ },
225
+ {
226
+ "include": "#regular_import"
165
227
  },
166
228
  {
167
- "match": "(?:\\\\o[0-7]+)",
168
- "name": "constant.character.escape.octal.haskell"
229
+ "include": "#data_decl"
169
230
  },
170
231
  {
171
- "match": "(?:\\\\x[0-9A-Fa-f]+)",
172
- "name": "constant.character.escape.hexadecimal.haskell"
232
+ "include": "#type_alias"
173
233
  },
174
234
  {
175
- "match": "(?:\\\\\\^[A-Z@\\[\\]\\\\^_])",
176
- "name": "constant.character.escape.control.haskell"
235
+ "include": "#c_preprocessor"
177
236
  }
178
237
  ]
179
238
  },
180
- "infix_op": {
239
+ "ctor_type_declaration": {
181
240
  "patterns": [
182
241
  {
183
- "name": "entity.name.function.infix.haskell",
184
- "match": "(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\))"
242
+ "name": "meta.ctor.type-declaration.haskell",
243
+ "contentName": "meta.type-signature.haskell",
244
+ "begin": "^([ \\t]*)(?:(?:((?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:\\((?!--+\\))(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+\\)))(?:(?:\\s*,\\s*)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:\\((?!--+\\))(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+\\))))*))(?:\\s*((?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))))",
245
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
246
+ "patterns": [
247
+ {
248
+ "include": "#type_signature"
249
+ }
250
+ ],
251
+ "beginCaptures": {
252
+ "2": {
253
+ "patterns": [
254
+ {
255
+ "include": "#type_ctor"
256
+ },
257
+ {
258
+ "include": "#infix_op"
259
+ }
260
+ ]
261
+ },
262
+ "3": {
263
+ "name": "keyword.other.double-colon.haskell"
264
+ }
265
+ }
185
266
  }
186
267
  ]
187
268
  },
188
- "module_exports": {
269
+ "data_decl": {
189
270
  "patterns": [
190
271
  {
191
- "name": "meta.declaration.exports.haskell",
192
- "begin": "\\(",
193
- "end": "\\)",
194
- "applyEndPatternLast": 1,
272
+ "name": "meta.declaration.type.data.haskell",
273
+ "begin": "^([ \\t]*)(data|newtype)\\s+((?:(?!=|where).)*)",
274
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
195
275
  "patterns": [
196
276
  {
197
277
  "include": "#comments"
198
278
  },
199
279
  {
200
- "include": "#function_name"
280
+ "include": "#where"
201
281
  },
202
282
  {
203
- "include": "#type_name"
283
+ "include": "#deriving"
204
284
  },
205
285
  {
206
- "include": "#comma"
286
+ "include": "#assignment_op"
207
287
  },
208
288
  {
209
- "name": "meta.other.constructor-list.haskell",
210
- "begin": "(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))\\s*\\(",
211
- "end": "\\)",
212
- "patterns": [
213
- {
214
- "include": "#type_ctor"
289
+ "match": "(?:(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)\\s*)(?:((?:(?!deriving)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:(?!deriving)(?:[\\w()'→⇒\\[\\],]|-\u003e|=\u003e)+\\s*)+))(?:(?:\\s+)(?:(?!deriving)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:(?!deriving)(?:[\\w()'→⇒\\[\\],]|-\u003e|=\u003e)+\\s*)+)))*)?))",
290
+ "captures": {
291
+ "1": {
292
+ "patterns": [
293
+ {
294
+ "include": "#type_ctor"
295
+ }
296
+ ]
215
297
  },
298
+ "2": {
299
+ "name": "meta.type-signature.haskell",
300
+ "patterns": [
301
+ {
302
+ "include": "#type_signature"
303
+ }
304
+ ]
305
+ }
306
+ }
307
+ },
308
+ {
309
+ "match": "\\|",
310
+ "captures": {
311
+ "0": {
312
+ "name": "punctuation.separator.pipe.haskell"
313
+ }
314
+ }
315
+ },
316
+ {
317
+ "name": "meta.declaration.type.data.record.block.haskell",
318
+ "begin": "\\{",
319
+ "end": "\\}",
320
+ "patterns": [
216
321
  {
217
- "include": "#attribute_name"
322
+ "include": "#comments"
218
323
  },
219
324
  {
220
325
  "include": "#comma"
221
326
  },
222
327
  {
223
- "match": "\\.\\.",
224
- "name": "keyword.operator.wildcard.haskell"
328
+ "include": "#record_field_declaration"
225
329
  }
226
- ]
330
+ ],
331
+ "beginCaptures": {
332
+ "0": {
333
+ "name": "keyword.operator.record.begin.haskell"
334
+ }
335
+ },
336
+ "endCaptures": {
337
+ "0": {
338
+ "name": "keyword.operator.record.end.haskell"
339
+ }
340
+ }
227
341
  },
228
342
  {
229
- "include": "#infix_op"
343
+ "include": "#ctor_type_declaration"
230
344
  }
231
- ]
345
+ ],
346
+ "beginCaptures": {
347
+ "2": {
348
+ "name": "keyword.other.data.haskell"
349
+ },
350
+ "3": {
351
+ "name": "meta.type-signature.haskell",
352
+ "patterns": [
353
+ {
354
+ "include": "#family_and_instance"
355
+ },
356
+ {
357
+ "include": "#type_signature"
358
+ }
359
+ ]
360
+ }
361
+ }
232
362
  }
233
363
  ]
234
364
  },
235
- "module_name": {
365
+ "deriving": {
236
366
  "patterns": [
237
367
  {
238
- "name": "support.other.module.haskell",
239
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
368
+ "include": "#deriving_list"
369
+ },
370
+ {
371
+ "include": "#deriving_simple"
372
+ },
373
+ {
374
+ "include": "#deriving_keyword"
240
375
  }
241
376
  ]
242
377
  },
243
- "module_name_prefix": {
378
+ "deriving_instance_decl": {
244
379
  "patterns": [
245
380
  {
246
- "name": "support.other.module.haskell",
247
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\."
381
+ "name": "meta.declaration.instance.deriving.haskell",
382
+ "contentName": "meta.type-signature.haskell",
383
+ "begin": "^([ \\t]*)(deriving\\s+instance)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
384
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
385
+ "patterns": [
386
+ {
387
+ "include": "#pragma"
388
+ },
389
+ {
390
+ "include": "#type_signature"
391
+ }
392
+ ],
393
+ "beginCaptures": {
394
+ "2": {
395
+ "name": "keyword.other.haskell"
396
+ }
397
+ }
248
398
  }
249
399
  ]
250
400
  },
251
- "pragma": {
401
+ "deriving_keyword": {
252
402
  "patterns": [
253
403
  {
254
- "name": "meta.preprocessor.haskell",
255
- "begin": "\\{-#",
256
- "end": "#-\\}",
257
- "patterns": [
258
- {
259
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))((?i:NOTINLINE CONSTRUCTORLIKE|NOINLINE CONSTRUCTORLIKE|INLINE CONSTRUCTORLIKE|SPECIALISE NOTINLINE|SPECIALIZE NOTINLINE|SPECIALISE NOINLINE|SPECIALIZE NOINLINE|NOTINLINE CONLIKE|SPECIALISE INLINE|SPECIALIZE INLINE|NOINLINE CONLIKE|VECTORISE SCALAR|VECTORIZE SCALAR|OPTIONS_HADDOCK|INLINE CONLIKE|OPTIONS_DERIVE|OPTIONS_CATCH|OPTIONS_NHC98|OPTIONS_HUGS|OVERLAPPABLE|NOVECTORISE|NOVECTORIZE|OPTIONS_GHC|OPTIONS_JHC|OPTIONS_YHC|OVERLAPPING|DEPRECATED|INCOHERENT|INLINEABLE|SPECIALISE|SPECIALIZE|GENERATED|INLINABLE|NOTINLINE|VECTORISE|VECTORIZE|CONTRACT|LANGUAGE|NOINLINE|NOUNPACK|OVERLAPS|INCLUDE|MINIMAL|OPTIONS|WARNING|CFILES|INLINE|SOURCE|UNPACK|CTYPE|RULES|CORE|LINE|ANN|SCC))(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
260
- "name": "keyword.other.preprocessor.haskell"
404
+ "name": "meta.deriving.haskell",
405
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(deriving)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
406
+ "captures": {
407
+ "1": {
408
+ "name": "keyword.other.haskell"
261
409
  }
262
- ]
410
+ }
263
411
  }
264
412
  ]
265
413
  },
266
- "function_type_declaration": {
414
+ "deriving_list": {
267
415
  "patterns": [
268
416
  {
269
- "name": "meta.function.type-declaration.haskell",
270
- "begin": "^([ \\t]*)(?:(?:((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\))))*)\\s*((?<!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))))))",
271
- "end": "^(?!\\1[ \\t]|[ \\t]*$)",
272
- "contentName": "meta.type-signature.haskell",
273
- "beginCaptures": {
274
- "2": {
275
- "patterns": [
276
- {
277
- "include": "#function_name"
278
- },
279
- {
280
- "include": "#infix_op"
281
- }
282
- ]
283
- },
284
- "3": {
285
- "name": "keyword.other.double-colon.haskell"
286
- }
287
- },
417
+ "name": "meta.deriving.haskell",
418
+ "begin": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(deriving)\\s*\\(",
419
+ "end": "\\)",
288
420
  "patterns": [
289
421
  {
290
- "include": "#type_signature"
422
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
423
+ "captures": {
424
+ "1": {
425
+ "name": "entity.other.inherited-class.haskell"
426
+ }
427
+ }
291
428
  }
292
- ]
429
+ ],
430
+ "beginCaptures": {
431
+ "1": {
432
+ "name": "keyword.other.haskell"
433
+ }
434
+ }
293
435
  }
294
436
  ]
295
437
  },
296
- "lazy_function_type_signature": {
438
+ "deriving_simple": {
297
439
  "patterns": [
298
440
  {
299
- "name": "meta.function.type-declaration.haskell",
300
- "begin": "^([ \\t]*)(((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\))))*))\\s*$",
301
- "end": "^(?!\\1[ \\t]|[ \\t]*$)",
302
- "contentName": "meta.type-signature.haskell",
303
- "beginCaptures": {
304
- "2": {
305
- "patterns": [
306
- {
307
- "include": "#function_name"
308
- },
309
- {
310
- "include": "#infix_op"
311
- }
312
- ]
313
- }
314
- },
315
- "patterns": [
316
- {
317
- "include": "#double_colon_operator"
441
+ "name": "meta.deriving.haskell",
442
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(deriving)\\s*([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
443
+ "captures": {
444
+ "1": {
445
+ "name": "keyword.other.haskell"
318
446
  },
319
- {
320
- "include": "#type_signature"
447
+ "2": {
448
+ "name": "entity.other.inherited-class.haskell"
321
449
  }
322
- ]
450
+ }
323
451
  }
324
452
  ]
325
453
  },
@@ -327,81 +455,117 @@
327
455
  "patterns": [
328
456
  {
329
457
  "name": "keyword.other.double-colon.haskell",
330
- "match": "(?<!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))"
458
+ "match": "(?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))"
331
459
  }
332
460
  ]
333
461
  },
334
- "ctor_type_declaration": {
462
+ "empty_list": {
335
463
  "patterns": [
336
464
  {
337
- "name": "meta.ctor.type-declaration.haskell",
338
- "begin": "^([ \\t]*)(?:(?:((?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\)))(?:(?:\\s*,\\s*)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\))))*))(?:\\s*((?<!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))))))",
465
+ "name": "constant.language.empty-list.haskell",
466
+ "match": "\\[\\]"
467
+ }
468
+ ]
469
+ },
470
+ "family_and_instance": {
471
+ "patterns": [
472
+ {
473
+ "name": "keyword.other.haskell",
474
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(family|instance)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
475
+ }
476
+ ]
477
+ },
478
+ "foreign_import": {
479
+ "patterns": [
480
+ {
481
+ "name": "meta.foreign.haskell",
482
+ "begin": "^([ \\t]*)(foreign)\\s+(import|export)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
339
483
  "end": "^(?!\\1[ \\t]|[ \\t]*$)",
340
- "contentName": "meta.type-signature.haskell",
484
+ "patterns": [
485
+ {
486
+ "match": "(?:un)?safe",
487
+ "captures": {
488
+ "0": {
489
+ "name": "keyword.other.haskell"
490
+ }
491
+ }
492
+ },
493
+ {
494
+ "include": "#function_type_declaration"
495
+ },
496
+ {
497
+ "include": "#haskell_expr"
498
+ },
499
+ {
500
+ "include": "#comments"
501
+ }
502
+ ],
341
503
  "beginCaptures": {
342
504
  "2": {
343
- "patterns": [
344
- {
345
- "include": "#type_ctor"
346
- },
347
- {
348
- "include": "#infix_op"
349
- }
350
- ]
505
+ "name": "keyword.other.haskell"
351
506
  },
352
507
  "3": {
353
- "name": "keyword.other.double-colon.haskell"
354
- }
355
- },
356
- "patterns": [
357
- {
358
- "include": "#type_signature"
508
+ "name": "keyword.other.haskell"
359
509
  }
360
- ]
510
+ }
361
511
  }
362
512
  ]
363
513
  },
364
- "record_field_declaration": {
514
+ "function_name": {
365
515
  "patterns": [
366
516
  {
367
- "name": "meta.record-field.type-declaration.haskell",
368
- "begin": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(?:(?:((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}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c![(),;\\[\\]`{}_\"']))+\\))))*)\\s*((?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))))",
528
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)|(?=(?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(\u003c-|=)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))",
529
+ "patterns": [
530
+ {
531
+ "include": "#type_signature"
532
+ }
533
+ ],
371
534
  "beginCaptures": {
372
- "1": {
535
+ "2": {
373
536
  "patterns": [
374
537
  {
375
- "include": "#attribute_name"
538
+ "include": "#function_name"
376
539
  },
377
540
  {
378
541
  "include": "#infix_op"
379
542
  }
380
543
  ]
381
544
  },
382
- "2": {
545
+ "3": {
383
546
  "name": "keyword.other.double-colon.haskell"
384
547
  }
385
- },
386
- "patterns": [
387
- {
388
- "include": "#type_signature"
389
- }
390
- ]
548
+ }
391
549
  }
392
550
  ]
393
551
  },
394
- "type_signature": {
552
+ "function_type_declaration_with_scoped_type": {
395
553
  "patterns": [
396
554
  {
397
- "include": "#pragma"
555
+ "include": "#scoped_type_override"
398
556
  },
399
557
  {
400
- "include": "#comments"
558
+ "include": "#function_type_declaration"
401
559
  },
402
560
  {
403
- "name": "keyword.other.forall.haskell",
404
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))forall(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
561
+ "include": "#multiline_type_declaration"
562
+ }
563
+ ]
564
+ },
565
+ "haskell_expr": {
566
+ "patterns": [
567
+ {
568
+ "include": "#infix_function"
405
569
  },
406
570
  {
407
571
  "include": "#unit"
@@ -409,106 +573,154 @@
409
573
  {
410
574
  "include": "#empty_list"
411
575
  },
576
+ {
577
+ "include": "#quasi_quotes"
578
+ },
579
+ {
580
+ "include": "#keywords"
581
+ },
582
+ {
583
+ "include": "#pragma"
584
+ },
412
585
  {
413
586
  "include": "#string"
414
587
  },
415
588
  {
416
- "name": "keyword.other.arrow.haskell",
417
- "match": "(?<!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))(->|→)(?!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))"
589
+ "include": "#newline_escape"
418
590
  },
419
591
  {
420
- "name": "keyword.other.big-arrow.haskell",
421
- "match": "(?<!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))(=>|⇒)(?!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))"
592
+ "include": "#quoted_character"
593
+ },
594
+ {
595
+ "include": "#comments"
596
+ },
597
+ {
598
+ "include": "#infix_op"
599
+ },
600
+ {
601
+ "include": "#comma"
602
+ },
603
+ {
604
+ "include": "#lit_num"
605
+ },
606
+ {
607
+ "include": "#scoped_type"
422
608
  },
423
609
  {
424
610
  "include": "#operator"
425
611
  },
426
612
  {
427
- "name": "variable.other.generic-type.haskell",
428
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
613
+ "include": "#identifier"
429
614
  },
430
615
  {
431
- "include": "#type_name"
616
+ "include": "#type_ctor"
432
617
  }
433
618
  ]
434
619
  },
435
- "unit": {
620
+ "haskell_source": {
436
621
  "patterns": [
437
622
  {
438
- "name": "constant.language.unit.haskell",
439
- "match": "\\(\\)"
440
- }
441
- ]
442
- },
443
- "empty_list": {
444
- "patterns": [
623
+ "include": "#shebang"
624
+ },
445
625
  {
446
- "name": "constant.language.empty-list.haskell",
447
- "match": "\\[\\]"
626
+ "include": "#module_decl"
627
+ },
628
+ {
629
+ "include": "#haskell_toplevel"
448
630
  }
449
631
  ]
450
632
  },
451
- "deriving": {
633
+ "haskell_toplevel": {
452
634
  "patterns": [
453
635
  {
454
- "include": "#deriving_list"
636
+ "include": "#liquidhaskell_annotation"
455
637
  },
456
638
  {
457
- "include": "#deriving_simple"
639
+ "include": "#common_toplevel"
458
640
  },
459
641
  {
460
- "include": "#deriving_keyword"
461
- }
462
- ]
463
- },
464
- "deriving_keyword": {
465
- "patterns": [
642
+ "include": "#function_type_declaration_with_scoped_type"
643
+ },
466
644
  {
467
- "name": "meta.deriving.haskell",
468
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(deriving)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
469
- "captures": {
470
- "1": {
471
- "name": "keyword.other.haskell"
472
- }
473
- }
645
+ "include": "#haskell_expr"
474
646
  }
475
647
  ]
476
648
  },
477
- "deriving_list": {
649
+ "hsig_decl": {
478
650
  "patterns": [
479
651
  {
480
- "name": "meta.deriving.haskell",
481
- "begin": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(deriving)\\s*\\(",
482
- "end": "\\)",
652
+ "name": "meta.declaration.module.haskell",
653
+ "begin": "^([ \\t]*)(signature)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
654
+ "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(where)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|^(?!\\1[ \\t]|[ \\t]*$)",
655
+ "patterns": [
656
+ {
657
+ "include": "#comments"
658
+ },
659
+ {
660
+ "include": "#module_name"
661
+ },
662
+ {
663
+ "include": "#module_exports"
664
+ },
665
+ {
666
+ "include": "#invalid"
667
+ }
668
+ ],
483
669
  "beginCaptures": {
484
- "1": {
670
+ "2": {
485
671
  "name": "keyword.other.haskell"
486
672
  }
487
673
  },
488
- "patterns": [
489
- {
490
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
491
- "captures": {
492
- "1": {
493
- "name": "entity.other.inherited-class.haskell"
494
- }
495
- }
674
+ "endCaptures": {
675
+ "1": {
676
+ "name": "keyword.other.haskell"
496
677
  }
497
- ]
678
+ }
498
679
  }
499
680
  ]
500
681
  },
501
- "deriving_simple": {
682
+ "hsig_source": {
502
683
  "patterns": [
503
684
  {
504
- "name": "meta.deriving.haskell",
505
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(deriving)\\s*([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
685
+ "include": "#hsig_decl"
686
+ },
687
+ {
688
+ "include": "#hsig_toplevel"
689
+ }
690
+ ]
691
+ },
692
+ "hsig_toplevel": {
693
+ "patterns": [
694
+ {
695
+ "include": "#common_toplevel"
696
+ },
697
+ {
698
+ "include": "#function_type_declaration"
699
+ },
700
+ {
701
+ "include": "#lazy_function_type_signature"
702
+ },
703
+ {
704
+ "include": "#comments"
705
+ }
706
+ ]
707
+ },
708
+ "identifier": {
709
+ "patterns": [
710
+ {
711
+ "name": "identifier.haskell",
712
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
506
713
  "captures": {
507
- "1": {
508
- "name": "keyword.other.haskell"
509
- },
510
- "2": {
511
- "name": "entity.other.inherited-class.haskell"
714
+ "0": {
715
+ "patterns": [
716
+ {
717
+ "include": "#module_name_prefix"
718
+ },
719
+ {
720
+ "name": "support.function.prelude.$1.haskell",
721
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(abs|acos|acosh|all|and|any|appendFile|asTypeOf|asin|asinh|atan|atan2|atanh|break|ceiling|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|errorWithoutStackTrace|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldMap|foldl|foldl1|foldr|foldr1|fromEnum|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|head|id|init|interact|ioError|isDenormalized|isIEEE|isInfinite|isNaN|isNegativeZero|iterate|last|lcm|length|lex|lines|log|logBase|lookup|map|mapM|mapM_|mappend|max|maxBound|maximum|maybe|mconcat|mempty|min|minBound|minimum|mod|negate|not|notElem|null|odd|or|otherwise|pi|pred|print|product|properFraction|pure|putChar|putStr|putStrLn|quot|quotRem|read|readFile|readIO|readList|readLn|readParen|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequenceA|sequence_|show|showChar|showList|showParen|showString|shows|showsPrec|significand|signum|sin|sinh|snd|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|toEnum|toInteger|toRational|traverse|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
722
+ }
723
+ ]
512
724
  }
513
725
  }
514
726
  }
@@ -530,72 +742,42 @@
530
742
  }
531
743
  ]
532
744
  },
533
- "quasi_quotes": {
745
+ "infix_op": {
534
746
  "patterns": [
535
747
  {
536
- "begin": "(\\[)((?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)(\\|)",
537
- "end": "(\\|)(\\])",
538
- "beginCaptures": {
539
- "1": {
540
- "name": "punctuation.definition.quasiquotes.begin.haskell"
541
- },
542
- "2": {
543
- "name": "entity.name.tag.haskell",
748
+ "name": "entity.name.function.operator.haskell",
749
+ "match": "(?:\\((?!--+\\))(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+\\))",
750
+ "captures": {
751
+ "0": {
544
752
  "patterns": [
545
753
  {
546
754
  "include": "#module_name_prefix"
755
+ },
756
+ {
757
+ "name": "support.operator.prelude.haskell",
758
+ "match": "^\\((\\!\\!|\\$\\!|\\$|\\\u0026\\\u0026|\\*|\\*\\*|\\*\\\u003e|\\+|\\+\\+|\\-|\\.|\\/|\\/\\=|\\\u003c\\$|\\\u003c\\$\\\u003e|\\\u003c|\\\u003c\\*|\\\u003c\\*\\\u003e|\\\u003c\\=|\\=\\\u003c\\\u003c|\\=\\=|\\\u003e|\\\u003e\\=|\\\u003e\\\u003e|\\\u003e\\\u003e\\=|\\^|\\^\\^|\\|\\|)\\)$"
547
759
  }
548
760
  ]
549
761
  }
550
- },
551
- "endCaptures": {
552
- "2": {
553
- "name": "punctuation.definition.quasiquotes.end.haskell"
554
- }
555
- },
556
- "contentName": "string.quoted.quasiquotes.haskell"
762
+ }
557
763
  }
558
764
  ]
559
765
  },
560
- "module_decl": {
766
+ "instance_decl": {
561
767
  "patterns": [
562
768
  {
563
- "name": "meta.declaration.module.haskell",
564
- "begin": "^([ \\t]*)(module)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
565
- "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(where)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|^(?!\\1[ \\t]|[ \\t]*$)",
566
- "beginCaptures": {
567
- "2": {
568
- "name": "keyword.other.haskell"
569
- }
570
- },
571
- "endCaptures": {
572
- "1": {
573
- "name": "keyword.other.haskell"
574
- }
575
- },
769
+ "name": "meta.declaration.instance.haskell",
770
+ "contentName": "meta.type-signature.haskell",
771
+ "begin": "^([ \\t]*)(instance)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
772
+ "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(where)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|^(?!\\1[ \\t]|[ \\t]*$)",
576
773
  "patterns": [
577
774
  {
578
- "include": "#comments"
579
- },
580
- {
581
- "include": "#module_name"
582
- },
583
- {
584
- "include": "#module_exports"
775
+ "include": "#pragma"
585
776
  },
586
777
  {
587
- "include": "#invalid"
778
+ "include": "#type_signature"
588
779
  }
589
- ]
590
- }
591
- ]
592
- },
593
- "hsig_decl": {
594
- "patterns": [
595
- {
596
- "name": "meta.declaration.module.haskell",
597
- "begin": "^([ \\t]*)(signature)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
598
- "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(where)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|^(?!\\1[ \\t]|[ \\t]*$)",
780
+ ],
599
781
  "beginCaptures": {
600
782
  "2": {
601
783
  "name": "keyword.other.haskell"
@@ -605,378 +787,319 @@
605
787
  "1": {
606
788
  "name": "keyword.other.haskell"
607
789
  }
608
- },
609
- "patterns": [
610
- {
611
- "include": "#comments"
612
- },
613
- {
614
- "include": "#module_name"
615
- },
616
- {
617
- "include": "#module_exports"
618
- },
619
- {
620
- "include": "#invalid"
621
- }
622
- ]
790
+ }
623
791
  }
624
792
  ]
625
793
  },
626
- "class_decl": {
794
+ "invalid": {
627
795
  "patterns": [
628
796
  {
629
- "name": "meta.declaration.class.haskell",
630
- "begin": "^([ \\t]*)(class)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
631
- "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(where)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|^(?!\\1[ \\t]|[ \\t]*$)",
632
- "beginCaptures": {
633
- "2": {
634
- "name": "keyword.other.class.haskell"
635
- }
636
- },
637
- "endCaptures": {
638
- "1": {
639
- "name": "keyword.other.haskell"
640
- }
641
- },
642
- "patterns": [
643
- {
644
- "include": "#type_signature"
645
- }
646
- ]
797
+ "name": "invalid.illegal.character-not-allowed-here.haskell",
798
+ "match": "\\S+"
647
799
  }
648
800
  ]
649
801
  },
650
- "instance_decl": {
802
+ "keywords": {
651
803
  "patterns": [
652
804
  {
653
- "name": "meta.declaration.instance.haskell",
654
- "begin": "^([ \\t]*)(instance)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
655
- "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(where)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|^(?!\\1[ \\t]|[ \\t]*$)",
805
+ "name": "keyword.other.$1.haskell",
806
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(deriving|where|data|type|newtype)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
807
+ },
808
+ {
809
+ "name": "keyword.operator.$1.haskell",
810
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(infix[lr]?)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
811
+ },
812
+ {
813
+ "name": "keyword.control.$1.haskell",
814
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(do|if|then|else|case|of|let|in|default|mdo|rec|proc)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
815
+ }
816
+ ]
817
+ },
818
+ "lazy_function_type_signature": {
819
+ "patterns": [
820
+ {
821
+ "name": "meta.function.type-declaration.haskell",
656
822
  "contentName": "meta.type-signature.haskell",
657
- "beginCaptures": {
658
- "2": {
659
- "name": "keyword.other.haskell"
660
- }
661
- },
662
- "endCaptures": {
663
- "1": {
664
- "name": "keyword.other.haskell"
665
- }
666
- },
823
+ "begin": "^([ \\t]*)(((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+\\))))*))\\s*$",
824
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
667
825
  "patterns": [
668
826
  {
669
- "include": "#pragma"
827
+ "include": "#double_colon_operator"
670
828
  },
671
829
  {
672
830
  "include": "#type_signature"
673
831
  }
674
- ]
832
+ ],
833
+ "beginCaptures": {
834
+ "2": {
835
+ "patterns": [
836
+ {
837
+ "include": "#function_name"
838
+ },
839
+ {
840
+ "include": "#infix_op"
841
+ }
842
+ ]
843
+ }
844
+ }
675
845
  }
676
846
  ]
677
847
  },
678
- "deriving_instance_decl": {
848
+ "liquidhaskell_annotation": {
679
849
  "patterns": [
680
850
  {
681
- "name": "meta.declaration.instance.deriving.haskell",
682
- "begin": "^([ \\t]*)(deriving\\s+instance)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
683
- "end": "^(?!\\1[ \\t]|[ \\t]*$)",
684
- "contentName": "meta.type-signature.haskell",
685
- "beginCaptures": {
686
- "2": {
687
- "name": "keyword.other.haskell"
688
- }
689
- },
851
+ "name": "block.liquidhaskell.haskell",
852
+ "contentName": "block.liquidhaskell.annotation.haskell",
853
+ "begin": "\\{-@(?!#)",
854
+ "end": "@-\\}",
690
855
  "patterns": [
691
856
  {
692
- "include": "#pragma"
693
- },
694
- {
695
- "include": "#type_signature"
857
+ "include": "annotation.liquidhaskell.haskell"
696
858
  }
697
859
  ]
698
860
  }
699
861
  ]
700
862
  },
701
- "foreign_import": {
863
+ "lit_num": {
702
864
  "patterns": [
703
865
  {
704
- "name": "meta.foreign.haskell",
705
- "begin": "^([ \\t]*)(foreign)\\s+(import|export)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
706
- "end": "^(?!\\1[ \\t]|[ \\t]*$)",
707
- "beginCaptures": {
708
- "2": {
709
- "name": "keyword.other.haskell"
710
- },
711
- "3": {
712
- "name": "keyword.other.haskell"
713
- }
714
- },
866
+ "name": "constant.numeric.hexfloat.haskell",
867
+ "match": "0[xX][0-9a-fA-F_]*(?:\\.[0-9a-fA-F_]+(?:[pP][+-]?[0-9_]+)?|[pP][+-]?[0-9_]+)"
868
+ },
869
+ {
870
+ "name": "constant.numeric.hexadecimal.haskell",
871
+ "match": "0[xX][_0-9a-fA-F]+"
872
+ },
873
+ {
874
+ "name": "constant.numeric.octal.haskell",
875
+ "match": "0[oO][_0-7]+"
876
+ },
877
+ {
878
+ "name": "constant.numeric.binary.haskell",
879
+ "match": "0[bB][_01]+"
880
+ },
881
+ {
882
+ "name": "constant.numeric.float.haskell",
883
+ "match": "[0-9][0-9_]*(?:\\.[0-9_]+(?:[eE][+-]?[0-9_]+)?|[eE][+-]?[0-9_]+)"
884
+ },
885
+ {
886
+ "name": "constant.numeric.decimal.haskell",
887
+ "match": "[0-9][_0-9]*"
888
+ }
889
+ ]
890
+ },
891
+ "module_decl": {
892
+ "patterns": [
893
+ {
894
+ "name": "meta.declaration.module.haskell",
895
+ "begin": "^([ \\t]*)(module)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
896
+ "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(where)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))|^(?!\\1[ \\t]|[ \\t]*$)",
715
897
  "patterns": [
716
898
  {
717
- "match": "(?:un)?safe",
718
- "captures": {
719
- "0": {
720
- "name": "keyword.other.haskell"
721
- }
722
- }
899
+ "include": "#comments"
723
900
  },
724
901
  {
725
- "include": "#function_type_declaration"
902
+ "include": "#module_name"
726
903
  },
727
904
  {
728
- "include": "#haskell_expr"
905
+ "include": "#module_exports"
729
906
  },
730
907
  {
731
- "include": "#comments"
908
+ "include": "#invalid"
732
909
  }
733
- ]
734
- }
735
- ]
736
- },
737
- "regular_import": {
738
- "patterns": [
739
- {
740
- "name": "meta.import.haskell",
741
- "begin": "^([ \\t]*)(import)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
742
- "end": "^(?!\\1[ \\t]|[ \\t]*$)",
910
+ ],
743
911
  "beginCaptures": {
744
912
  "2": {
745
913
  "name": "keyword.other.haskell"
746
914
  }
747
915
  },
748
- "patterns": [
749
- {
750
- "include": "#module_name"
751
- },
752
- {
753
- "include": "#module_exports"
754
- },
755
- {
756
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(qualified|as|hiding)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
757
- "captures": {
758
- "1": {
759
- "name": "keyword.other.haskell"
760
- }
761
- }
762
- },
763
- {
764
- "include": "#comments"
916
+ "endCaptures": {
917
+ "1": {
918
+ "name": "keyword.other.haskell"
765
919
  }
766
- ]
920
+ }
767
921
  }
768
922
  ]
769
923
  },
770
- "data_decl": {
924
+ "module_exports": {
771
925
  "patterns": [
772
926
  {
773
- "name": "meta.declaration.type.data.haskell",
774
- "begin": "^([ \\t]*)(data|newtype)\\s+((?:(?!=|where).)*)",
775
- "end": "^(?!\\1[ \\t]|[ \\t]*$)",
776
- "beginCaptures": {
777
- "2": {
778
- "name": "keyword.other.data.haskell"
779
- },
780
- "3": {
781
- "name": "meta.type-signature.haskell",
782
- "patterns": [
783
- {
784
- "include": "#family_and_instance"
785
- },
786
- {
787
- "include": "#type_signature"
788
- }
789
- ]
790
- }
791
- },
927
+ "name": "meta.declaration.exports.haskell",
928
+ "begin": "\\(",
929
+ "end": "\\)",
792
930
  "patterns": [
793
931
  {
794
932
  "include": "#comments"
795
933
  },
796
934
  {
797
- "include": "#where"
935
+ "include": "#c_preprocessor"
798
936
  },
799
937
  {
800
- "include": "#deriving"
938
+ "begin": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(module)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
939
+ "end": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
940
+ "patterns": [
941
+ {
942
+ "include": "#invalid"
943
+ }
944
+ ],
945
+ "beginCaptures": {
946
+ "1": {
947
+ "name": "keyword.other.haskell"
948
+ }
949
+ },
950
+ "endCaptures": {
951
+ "1": {
952
+ "name": "support.other.module.haskell"
953
+ }
954
+ }
801
955
  },
802
956
  {
803
- "include": "#assignment_op"
957
+ "include": "#function_name"
804
958
  },
805
959
  {
806
- "match": "(?:(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)\\s*)(?:((?:(?!deriving)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:(?!deriving)(?:[\\w()'→⇒\\[\\],]|->|=>)+\\s*)+))(?:(?:\\s+)(?:(?!deriving)(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*|(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:(?!deriving)(?:[\\w()'→⇒\\[\\],]|->|=>)+\\s*)+)))*)?))",
807
- "captures": {
808
- "1": {
809
- "patterns": [
810
- {
811
- "include": "#type_ctor"
812
- }
813
- ]
814
- },
815
- "2": {
816
- "name": "meta.type-signature.haskell",
817
- "patterns": [
818
- {
819
- "include": "#type_signature"
820
- }
821
- ]
822
- }
823
- }
960
+ "include": "#type_name"
824
961
  },
825
962
  {
826
- "match": "\\|",
827
- "captures": {
828
- "0": {
829
- "name": "punctuation.separator.pipe.haskell"
830
- }
831
- }
963
+ "include": "#comma"
832
964
  },
833
965
  {
834
- "name": "meta.declaration.type.data.record.block.haskell",
835
- "begin": "\\{",
836
- "beginCaptures": {
837
- "0": {
838
- "name": "keyword.operator.record.begin.haskell"
839
- }
840
- },
841
- "end": "\\}",
842
- "endCaptures": {
843
- "0": {
844
- "name": "keyword.operator.record.end.haskell"
845
- }
846
- },
966
+ "name": "meta.other.constructor-list.haskell",
967
+ "begin": "(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))\\s*\\(",
968
+ "end": "\\)",
847
969
  "patterns": [
848
970
  {
849
971
  "include": "#comments"
850
972
  },
973
+ {
974
+ "include": "#c_preprocessor"
975
+ },
976
+ {
977
+ "include": "#type_ctor"
978
+ },
979
+ {
980
+ "include": "#attribute_name"
981
+ },
851
982
  {
852
983
  "include": "#comma"
853
984
  },
854
985
  {
855
- "include": "#record_field_declaration"
986
+ "name": "keyword.operator.wildcard.haskell",
987
+ "match": "\\.\\."
856
988
  }
857
989
  ]
858
990
  },
859
991
  {
860
- "include": "#ctor_type_declaration"
992
+ "include": "#infix_op"
861
993
  }
862
- ]
994
+ ],
995
+ "applyEndPatternLast": true
863
996
  }
864
997
  ]
865
998
  },
866
- "type_alias": {
999
+ "module_name": {
867
1000
  "patterns": [
868
1001
  {
869
- "name": "meta.declaration.type.type.haskell",
870
- "begin": "^([ \\t]*)(type)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
871
- "end": "^(?!\\1[ \\t]|[ \\t]*$)",
1002
+ "name": "support.other.module.haskell",
1003
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1004
+ }
1005
+ ]
1006
+ },
1007
+ "module_name_prefix": {
1008
+ "patterns": [
1009
+ {
1010
+ "name": "support.other.module.haskell",
1011
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\."
1012
+ }
1013
+ ]
1014
+ },
1015
+ "multiline_type_declaration": {
1016
+ "patterns": [
1017
+ {
1018
+ "name": "meta.multiline.type-declaration.haskell",
872
1019
  "contentName": "meta.type-signature.haskell",
873
- "beginCaptures": {
874
- "2": {
875
- "name": "keyword.other.type.haskell"
876
- }
877
- },
1020
+ "begin": "^([ \\t]*)((?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))",
1021
+ "end": "^(?!\\1|[ \\t]*$)|(?=(?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(\u003c-|=)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))",
878
1022
  "patterns": [
879
- {
880
- "include": "#comments"
881
- },
882
- {
883
- "include": "#family_and_instance"
884
- },
885
- {
886
- "include": "#where"
887
- },
888
- {
889
- "include": "#assignment_op"
890
- },
891
1023
  {
892
1024
  "include": "#type_signature"
893
1025
  }
894
- ]
1026
+ ],
1027
+ "beginCaptures": {
1028
+ "2": {
1029
+ "name": "keyword.other.double-colon.haskell"
1030
+ }
1031
+ }
895
1032
  }
896
1033
  ]
897
1034
  },
898
- "keywords": {
1035
+ "newline_escape": {
899
1036
  "patterns": [
900
1037
  {
901
- "name": "keyword.other.haskell",
902
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(deriving|where|data|type|newtype)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
903
- },
904
- {
905
- "name": "keyword.other.haskell",
906
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(data|type|newtype)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
907
- },
1038
+ "name": "markup.other.escape.newline.haskell",
1039
+ "match": "\\\\$"
1040
+ }
1041
+ ]
1042
+ },
1043
+ "operator": {
1044
+ "patterns": [
908
1045
  {
909
1046
  "name": "keyword.operator.haskell",
910
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))infix[lr]?(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
911
- },
912
- {
913
- "name": "keyword.control.haskell",
914
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(do|if|then|else|case|of|let|in|default|mdo|rec|proc)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1047
+ "match": "(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+",
1048
+ "captures": {
1049
+ "0": {
1050
+ "patterns": [
1051
+ {
1052
+ "include": "#module_name_prefix"
1053
+ },
1054
+ {
1055
+ "name": "support.operator.prelude.haskell",
1056
+ "match": "^(\\!\\!|\\$\\!|\\$|\\\u0026\\\u0026|\\*|\\*\\*|\\*\\\u003e|\\+|\\+\\+|\\-|\\.|\\/|\\/\\=|\\\u003c\\$|\\\u003c\\$\\\u003e|\\\u003c|\\\u003c\\*|\\\u003c\\*\\\u003e|\\\u003c\\=|\\=\\\u003c\\\u003c|\\=\\=|\\\u003e|\\\u003e\\=|\\\u003e\\\u003e|\\\u003e\\\u003e\\=|\\^|\\^\\^|\\|\\|)$"
1057
+ }
1058
+ ]
1059
+ }
1060
+ }
915
1061
  }
916
1062
  ]
917
1063
  },
918
- "c_preprocessor": {
1064
+ "pragma": {
919
1065
  "patterns": [
920
1066
  {
921
- "name": "meta.preprocessor.c.haskell",
922
- "begin": "^(?=#)",
923
- "end": "(?<!\\\\)(?=$)",
1067
+ "name": "meta.preprocessor.haskell",
1068
+ "begin": "\\{-#",
1069
+ "end": "#-\\}",
924
1070
  "patterns": [
925
1071
  {
926
- "include": "source.c"
1072
+ "name": "keyword.other.preprocessor.haskell",
1073
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))((?i:NOTINLINE CONSTRUCTORLIKE|NOINLINE CONSTRUCTORLIKE|INLINE CONSTRUCTORLIKE|SPECIALISE NOTINLINE|SPECIALIZE NOTINLINE|SPECIALISE NOINLINE|SPECIALIZE NOINLINE|NOTINLINE CONLIKE|SPECIALISE INLINE|SPECIALIZE INLINE|NOINLINE CONLIKE|VECTORISE SCALAR|VECTORIZE SCALAR|OPTIONS_HADDOCK|INLINE CONLIKE|OPTIONS_DERIVE|OPTIONS_CATCH|OPTIONS_NHC98|OPTIONS_HUGS|OVERLAPPABLE|NOVECTORISE|NOVECTORIZE|OPTIONS_GHC|OPTIONS_JHC|OPTIONS_YHC|OVERLAPPING|DEPRECATED|INCOHERENT|INLINEABLE|SPECIALISE|SPECIALIZE|GENERATED|INLINABLE|NOTINLINE|VECTORISE|VECTORIZE|CONTRACT|LANGUAGE|NOINLINE|NOUNPACK|OVERLAPS|INCLUDE|MINIMAL|OPTIONS|WARNING|CFILES|INLINE|SOURCE|UNPACK|CTYPE|RULES|CORE|LINE|ANN|SCC))(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
927
1074
  }
928
1075
  ]
929
1076
  }
930
1077
  ]
931
1078
  },
932
- "string": {
1079
+ "quasi_quotes": {
933
1080
  "patterns": [
934
1081
  {
935
- "name": "string.quoted.double.haskell",
936
- "begin": "\"",
937
- "end": "\"",
1082
+ "contentName": "string.quoted.quasiquotes.haskell",
1083
+ "begin": "(\\[)((?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)(\\|)",
1084
+ "end": "(\\|)(\\])",
938
1085
  "beginCaptures": {
939
- "0": {
940
- "name": "punctuation.definition.string.begin.haskell"
941
- }
942
- },
943
- "endCaptures": {
944
- "0": {
945
- "name": "punctuation.definition.string.end.haskell"
946
- }
947
- },
948
- "patterns": [
949
- {
950
- "include": "#characters"
1086
+ "1": {
1087
+ "name": "punctuation.definition.quasiquotes.begin.haskell"
951
1088
  },
952
- {
953
- "begin": "\\\\\\s",
954
- "end": "\\\\",
955
- "beginCaptures": {
956
- "0": {
957
- "name": "markup.other.escape.newline.begin.haskell"
958
- }
959
- },
960
- "endCaptures": {
961
- "0": {
962
- "name": "markup.other.escape.newline.end.haskell"
963
- }
964
- },
1089
+ "2": {
1090
+ "name": "entity.name.tag.haskell",
965
1091
  "patterns": [
966
1092
  {
967
- "include": "#invalid"
1093
+ "include": "#module_name_prefix"
968
1094
  }
969
1095
  ]
970
1096
  }
971
- ]
972
- }
973
- ]
974
- },
975
- "newline_escape": {
976
- "patterns": [
977
- {
978
- "name": "markup.other.escape.newline.haskell",
979
- "match": "\\\\$"
1097
+ },
1098
+ "endCaptures": {
1099
+ "2": {
1100
+ "name": "punctuation.definition.quasiquotes.end.haskell"
1101
+ }
1102
+ }
980
1103
  }
981
1104
  ]
982
1105
  },
@@ -984,7 +1107,7 @@
984
1107
  "patterns": [
985
1108
  {
986
1109
  "name": "string.quoted.single.haskell",
987
- "match": "(')((?:[\\ -\\[\\]-~]|\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])|(?:\\\\o[0-7]+)|(?:\\\\x[0-9A-Fa-f]+)|(?:\\\\\\^[A-Z@\\[\\]\\\\^_])|(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))))(')",
1110
+ "match": "(')((?:[\\ -\\[\\]-~]|\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\\u0026])|(?:\\\\o[0-7]+)|(?:\\\\x[0-9A-Fa-f]+)|(?:\\\\\\^[A-Z@\\[\\]\\\\^_])|(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))(')",
988
1111
  "captures": {
989
1112
  "1": {
990
1113
  "name": "punctuation.definition.string.begin.haskell"
@@ -1003,23 +1126,86 @@
1003
1126
  }
1004
1127
  ]
1005
1128
  },
1006
- "scoped_type": {
1129
+ "record_field_declaration": {
1007
1130
  "patterns": [
1008
1131
  {
1009
- "match": "\\(((?<paren>(?:[^\\(\\)]|\\(\\g<paren>\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{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+\\))))*)\\s*((?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))))|})",
1136
+ "patterns": [
1137
+ {
1138
+ "include": "#type_signature"
1139
+ }
1140
+ ],
1141
+ "beginCaptures": {
1011
1142
  "1": {
1012
1143
  "patterns": [
1013
1144
  {
1014
- "include": "#haskell_expr"
1145
+ "include": "#attribute_name"
1146
+ },
1147
+ {
1148
+ "include": "#infix_op"
1015
1149
  }
1016
1150
  ]
1151
+ },
1152
+ "2": {
1153
+ "name": "keyword.other.double-colon.haskell"
1017
1154
  }
1018
1155
  }
1019
- },
1156
+ }
1157
+ ]
1158
+ },
1159
+ "regular_import": {
1160
+ "patterns": [
1020
1161
  {
1021
- "match": "((?<!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))))(.*?)(?=(?<!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))(<-|=)(?!(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"'])))|$)",
1022
- "captures": {
1162
+ "name": "meta.import.haskell",
1163
+ "begin": "^([ \\t]*)(import)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1164
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
1165
+ "patterns": [
1166
+ {
1167
+ "include": "#module_name"
1168
+ },
1169
+ {
1170
+ "include": "#module_exports"
1171
+ },
1172
+ {
1173
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(qualified|as|hiding)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1174
+ "captures": {
1175
+ "1": {
1176
+ "name": "keyword.other.haskell"
1177
+ }
1178
+ }
1179
+ },
1180
+ {
1181
+ "include": "#comments"
1182
+ }
1183
+ ],
1184
+ "beginCaptures": {
1185
+ "2": {
1186
+ "name": "keyword.other.haskell"
1187
+ }
1188
+ }
1189
+ }
1190
+ ]
1191
+ },
1192
+ "scoped_type": {
1193
+ "patterns": [
1194
+ {
1195
+ "match": "\\(((?\u003cparen\u003e(?:[^\\(\\)]|\\(\\g\u003cparen\u003e\\))*)(?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?\u003cparen2\u003e(?:[^\\(\\)]|\\(\\g\u003cparen2\u003e\\))*))\\)",
1196
+ "captures": {
1197
+ "1": {
1198
+ "patterns": [
1199
+ {
1200
+ "include": "#haskell_expr"
1201
+ }
1202
+ ]
1203
+ }
1204
+ }
1205
+ },
1206
+ {
1207
+ "match": "((?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))(.*?)(?=(?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(\u003c-|=)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))|$)",
1208
+ "captures": {
1023
1209
  "1": {
1024
1210
  "name": "keyword.other.double-colon.haskell"
1025
1211
  },
@@ -1038,7 +1224,7 @@
1038
1224
  "scoped_type_override": {
1039
1225
  "patterns": [
1040
1226
  {
1041
- "match": "^([ \\t]*)(?:(?:((?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{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?\u003c![(),;\\[\\]`{}_\"']))+\\)))(?:(?:\\s*,\\s*)(?:(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*|(?:\\((?!--+\\))(?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+\\))))*)\\s*((?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(?:::|∷)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))))))(.*)(?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(\u003c-|=)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))",
1042
1228
  "captures": {
1043
1229
  "2": {
1044
1230
  "patterns": [
@@ -1072,47 +1258,94 @@
1072
1258
  }
1073
1259
  ]
1074
1260
  },
1075
- "comma": {
1261
+ "shebang": {
1076
1262
  "patterns": [
1077
1263
  {
1078
- "name": "punctuation.separator.comma.haskell",
1079
- "match": ","
1264
+ "name": "comment.line.shebang.haskell",
1265
+ "match": "^\\#\\!.*\\brunhaskell\\b.*$"
1080
1266
  }
1081
1267
  ]
1082
1268
  },
1083
- "lit_num": {
1269
+ "string": {
1084
1270
  "patterns": [
1085
1271
  {
1086
- "name": "constant.numeric.hexadecimal.haskell",
1087
- "match": "0[xX][0-9a-fA-F]+"
1088
- },
1089
- {
1090
- "name": "constant.numeric.octal.haskell",
1091
- "match": "0[oO][0-7]+"
1092
- },
1093
- {
1094
- "name": "constant.numeric.float.haskell",
1095
- "match": "[0-9]+(\\.[0-9]+[eE][+-]?|\\.|[eE][+-]?)[0-9]+"
1096
- },
1097
- {
1098
- "name": "constant.numeric.decimal.haskell",
1099
- "match": "[0-9]+"
1272
+ "name": "string.quoted.double.haskell",
1273
+ "begin": "\"",
1274
+ "end": "\"",
1275
+ "patterns": [
1276
+ {
1277
+ "include": "#characters"
1278
+ },
1279
+ {
1280
+ "begin": "\\\\\\s",
1281
+ "end": "\\\\",
1282
+ "patterns": [
1283
+ {
1284
+ "include": "#invalid"
1285
+ }
1286
+ ],
1287
+ "beginCaptures": {
1288
+ "0": {
1289
+ "name": "markup.other.escape.newline.begin.haskell"
1290
+ }
1291
+ },
1292
+ "endCaptures": {
1293
+ "0": {
1294
+ "name": "markup.other.escape.newline.end.haskell"
1295
+ }
1296
+ }
1297
+ }
1298
+ ],
1299
+ "beginCaptures": {
1300
+ "0": {
1301
+ "name": "punctuation.definition.string.begin.haskell"
1302
+ }
1303
+ },
1304
+ "endCaptures": {
1305
+ "0": {
1306
+ "name": "punctuation.definition.string.end.haskell"
1307
+ }
1308
+ }
1100
1309
  }
1101
1310
  ]
1102
1311
  },
1103
- "operator": {
1312
+ "type_alias": {
1104
1313
  "patterns": [
1105
1314
  {
1106
- "name": "keyword.operator.haskell",
1107
- "match": "(?:[\\p{S}\\p{P}](?<![(),;\\[\\]`{}_\"']))+"
1315
+ "name": "meta.declaration.type.type.haskell",
1316
+ "contentName": "meta.type-signature.haskell",
1317
+ "begin": "^([ \\t]*)(type)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1318
+ "end": "^(?!\\1[ \\t]|[ \\t]*$)",
1319
+ "patterns": [
1320
+ {
1321
+ "include": "#comments"
1322
+ },
1323
+ {
1324
+ "include": "#family_and_instance"
1325
+ },
1326
+ {
1327
+ "include": "#where"
1328
+ },
1329
+ {
1330
+ "include": "#assignment_op"
1331
+ },
1332
+ {
1333
+ "include": "#type_signature"
1334
+ }
1335
+ ],
1336
+ "beginCaptures": {
1337
+ "2": {
1338
+ "name": "keyword.other.type.haskell"
1339
+ }
1340
+ }
1108
1341
  }
1109
1342
  ]
1110
1343
  },
1111
- "identifier": {
1344
+ "type_ctor": {
1112
1345
  "patterns": [
1113
1346
  {
1114
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1115
- "name": "identifier.haskell",
1347
+ "name": "entity.name.tag.haskell",
1348
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1116
1349
  "captures": {
1117
1350
  "0": {
1118
1351
  "patterns": [
@@ -1120,8 +1353,8 @@
1120
1353
  "include": "#module_name_prefix"
1121
1354
  },
1122
1355
  {
1123
- "name": "support.function.prelude.$1.haskell",
1124
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(abs|acos|acosh|all|and|any|appendFile|asTypeOf|asin|asinh|atan|atan2|atanh|break|ceiling|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldMap|foldl|foldl1|foldr|foldr1|fromEnum|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|head|id|init|interact|ioError|isDenormalized|isIEEE|isInfinite|isNaN|isNegativeZero|iterate|last|lcm|length|lex|lines|log|logBase|lookup|map|mapM|mapM_|mappend|max|maxBound|maximum|maybe|mconcat|mempty|min|minBound|minimum|mod|negate|not|notElem|null|odd|or|otherwise|pi|pred|print|product|properFraction|pure|putChar|putStr|putStrLn|quot|quotRem|read|readFile|readIO|readList|readLn|readParen|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequenceA|sequence_|show|showChar|showList|showParen|showString|shows|showsPrec|significand|signum|sin|sinh|snd|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|toEnum|toInteger|toRational|traverse|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1356
+ "name": "support.tag.prelude.$1.haskell",
1357
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(EQ|GT|LT|Left|Right|True|False)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1125
1358
  }
1126
1359
  ]
1127
1360
  }
@@ -1133,7 +1366,7 @@
1133
1366
  "patterns": [
1134
1367
  {
1135
1368
  "name": "entity.name.type.haskell",
1136
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1369
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1137
1370
  "captures": {
1138
1371
  "0": {
1139
1372
  "patterns": [
@@ -1142,11 +1375,11 @@
1142
1375
  },
1143
1376
  {
1144
1377
  "name": "entity.other.inherited-class.prelude.$1.haskell",
1145
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(Applicative|Bounded|Enum|Eq|Floating|Foldable|Fractional|Functor|Integral|Monad|Monoid|Num|Ord|Read|Real|RealFloat|RealFrac|Show|Traversable)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1378
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(Applicative|Bounded|Enum|Eq|Floating|Foldable|Fractional|Functor|Integral|Monad|Monoid|Num|Ord|Read|Real|RealFloat|RealFrac|Show|Traversable)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1146
1379
  },
1147
1380
  {
1148
1381
  "name": "support.class.prelude.$1.haskell",
1149
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(Either|FilePath|IO|IOError|Integer|Maybe|Ordering|Rational|ReadS|ShowS|String|Bool|Char|Double|Float|Int|Word)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1382
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(Either|FilePath|IO|IOError|Integer|Ordering|Rational|ReadS|ShowS|String|Bool|Char|Double|Float|Int|Just|Maybe|Nothing|Word)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1150
1383
  }
1151
1384
  ]
1152
1385
  }
@@ -1154,249 +1387,117 @@
1154
1387
  }
1155
1388
  ]
1156
1389
  },
1157
- "type_ctor": {
1390
+ "type_signature": {
1158
1391
  "patterns": [
1159
1392
  {
1160
- "name": "entity.name.tag.haskell",
1161
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1393
+ "include": "#pragma"
1394
+ },
1395
+ {
1396
+ "include": "#comments"
1397
+ },
1398
+ {
1399
+ "name": "keyword.other.forall.haskell",
1400
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))forall(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1401
+ },
1402
+ {
1403
+ "name": "constant.language.unit.promoted.haskell",
1404
+ "match": "'(\\(\\))",
1162
1405
  "captures": {
1163
- "0": {
1406
+ "1": {
1164
1407
  "patterns": [
1165
1408
  {
1166
- "include": "#module_name_prefix"
1167
- },
1168
- {
1169
- "name": "support.tag.prelude.$1.haskell",
1170
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(EQ|GT|Just|LT|Left|Nothing|Right|True|False)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1409
+ "include": "#unit"
1171
1410
  }
1172
1411
  ]
1173
1412
  }
1174
1413
  }
1175
- }
1176
- ]
1177
- },
1178
- "where": {
1179
- "patterns": [
1180
- {
1181
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))where(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1182
- "name": "keyword.other.haskell"
1183
- }
1184
- ]
1185
- },
1186
- "family_and_instance": {
1187
- "patterns": [
1188
- {
1189
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(family|instance)(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1190
- "name": "keyword.other.haskell"
1191
- }
1192
- ]
1193
- },
1194
- "invalid": {
1195
- "patterns": [
1196
- {
1197
- "match": "\\S+",
1198
- "name": "invalid.illegal.character-not-allowed-here.haskell"
1199
- }
1200
- ]
1201
- },
1202
- "function_name": {
1203
- "patterns": [
1414
+ },
1204
1415
  {
1205
- "name": "entity.name.function.haskell",
1206
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1207
- }
1208
- ]
1209
- },
1210
- "assignment_op": {
1211
- "patterns": [
1416
+ "include": "#unit"
1417
+ },
1212
1418
  {
1213
- "match": "=",
1419
+ "name": "constant.language.empty-list.promoted.haskell",
1420
+ "match": "'(\\[\\])",
1214
1421
  "captures": {
1215
- "0": {
1216
- "name": "keyword.operator.assignment.haskell"
1422
+ "1": {
1423
+ "patterns": [
1424
+ {
1425
+ "include": "#empty_list"
1426
+ }
1427
+ ]
1217
1428
  }
1218
1429
  }
1219
- }
1220
- ]
1221
- },
1222
- "attribute_name": {
1223
- "patterns": [
1224
- {
1225
- "name": "entity.other.attribute-name.haskell",
1226
- "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?<![\\p{Ll}_\\p{Lu}\\p{Lt}']))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1227
- }
1228
- ]
1229
- },
1230
- "liquidhaskell_annotation": {
1231
- "patterns": [
1232
- {
1233
- "name": "block.liquidhaskell.haskell",
1234
- "contentName": "block.liquidhaskell.annotation.haskell",
1235
- "begin": "\\{-@(?!#)",
1236
- "end": "@-\\}",
1237
- "patterns": [
1238
- {
1239
- "include": "annotation.liquidhaskell.haskell"
1240
- }
1241
- ]
1242
- }
1243
- ]
1244
- },
1245
- "shebang": {
1246
- "patterns": [
1247
- {
1248
- "name": "comment.line.shebang.haskell",
1249
- "match": "^\\#\\!.*\\brunhaskell\\b.*$"
1250
- }
1251
- ]
1252
- },
1253
- "haskell_expr": {
1254
- "patterns": [
1255
- {
1256
- "include": "#infix_function"
1257
- },
1258
- {
1259
- "include": "#unit"
1260
1430
  },
1261
1431
  {
1262
1432
  "include": "#empty_list"
1263
1433
  },
1264
- {
1265
- "include": "#quasi_quotes"
1266
- },
1267
- {
1268
- "include": "#keywords"
1269
- },
1270
- {
1271
- "include": "#pragma"
1272
- },
1273
1434
  {
1274
1435
  "include": "#string"
1275
1436
  },
1276
1437
  {
1277
- "include": "#newline_escape"
1278
- },
1279
- {
1280
- "include": "#quoted_character"
1281
- },
1282
- {
1283
- "include": "#comments"
1284
- },
1285
- {
1286
- "include": "#infix_op"
1287
- },
1288
- {
1289
- "include": "#comma"
1438
+ "name": "keyword.other.arrow.haskell",
1439
+ "match": "(?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(-\u003e|→)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))"
1290
1440
  },
1291
1441
  {
1292
- "include": "#lit_num"
1442
+ "name": "keyword.other.big-arrow.haskell",
1443
+ "match": "(?\u003c!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))(=\u003e|⇒)(?!(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"'])))"
1293
1444
  },
1294
1445
  {
1295
- "include": "#scoped_type"
1446
+ "name": "keyword.operator.promoted.haskell",
1447
+ "match": "'((?:(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?(?:[\\p{S}\\p{P}](?\u003c![(),;\\[\\]`{}_\"']))+)",
1448
+ "captures": {
1449
+ "1": {
1450
+ "patterns": [
1451
+ {
1452
+ "include": "#operator"
1453
+ }
1454
+ ]
1455
+ }
1456
+ }
1296
1457
  },
1297
1458
  {
1298
1459
  "include": "#operator"
1299
1460
  },
1300
1461
  {
1301
- "include": "#identifier"
1302
- },
1303
- {
1304
- "include": "#type_ctor"
1305
- }
1306
- ]
1307
- },
1308
- "common_toplevel": {
1309
- "patterns": [
1310
- {
1311
- "include": "#class_decl"
1312
- },
1313
- {
1314
- "include": "#instance_decl"
1315
- },
1316
- {
1317
- "include": "#deriving_instance_decl"
1318
- },
1319
- {
1320
- "include": "#foreign_import"
1321
- },
1322
- {
1323
- "include": "#regular_import"
1324
- },
1325
- {
1326
- "include": "#data_decl"
1327
- },
1328
- {
1329
- "include": "#type_alias"
1330
- },
1331
- {
1332
- "include": "#c_preprocessor"
1333
- }
1334
- ]
1335
- },
1336
- "function_type_declaration_with_scoped_type": {
1337
- "patterns": [
1338
- {
1339
- "include": "#scoped_type_override"
1340
- },
1341
- {
1342
- "include": "#function_type_declaration"
1343
- }
1344
- ]
1345
- },
1346
- "haskell_toplevel": {
1347
- "patterns": [
1348
- {
1349
- "include": "#liquidhaskell_annotation"
1350
- },
1351
- {
1352
- "include": "#common_toplevel"
1353
- },
1354
- {
1355
- "include": "#function_type_declaration_with_scoped_type"
1356
- },
1357
- {
1358
- "include": "#haskell_expr"
1359
- }
1360
- ]
1361
- },
1362
- "hsig_toplevel": {
1363
- "patterns": [
1364
- {
1365
- "include": "#common_toplevel"
1462
+ "name": "variable.other.generic-type.haskell",
1463
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*\\.)?[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1366
1464
  },
1367
1465
  {
1368
- "include": "#function_type_declaration"
1466
+ "name": "entity.name.type.promoted.haskell",
1467
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}'])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))'([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?:\\.[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)*)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))",
1468
+ "captures": {
1469
+ "1": {
1470
+ "patterns": [
1471
+ {
1472
+ "include": "#type_name"
1473
+ }
1474
+ ]
1475
+ }
1476
+ }
1369
1477
  },
1370
1478
  {
1371
- "include": "#lazy_function_type_signature"
1479
+ "include": "#type_name"
1372
1480
  },
1373
1481
  {
1374
- "include": "#comments"
1482
+ "include": "#lit_num"
1375
1483
  }
1376
1484
  ]
1377
1485
  },
1378
- "haskell_source": {
1486
+ "unit": {
1379
1487
  "patterns": [
1380
1488
  {
1381
- "include": "#shebang"
1382
- },
1383
- {
1384
- "include": "#module_decl"
1385
- },
1386
- {
1387
- "include": "#haskell_toplevel"
1489
+ "name": "constant.language.unit.haskell",
1490
+ "match": "\\(\\)"
1388
1491
  }
1389
1492
  ]
1390
1493
  },
1391
- "hsig_source": {
1494
+ "where": {
1392
1495
  "patterns": [
1393
1496
  {
1394
- "include": "#hsig_decl"
1395
- },
1396
- {
1397
- "include": "#hsig_toplevel"
1497
+ "name": "keyword.other.haskell",
1498
+ "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))where(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))"
1398
1499
  }
1399
1500
  ]
1400
1501
  }
1401
1502
  }
1402
- }
1503
+ }