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