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