yanki 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/abap-DXFkqnOI.js +816 -0
  2. package/dist/actionscript-3-D6NljDpC.js +1 -0
  3. package/dist/ada-CowR2XfX.js +1 -0
  4. package/dist/andromeeda-YxQm0tCS.js +1 -0
  5. package/dist/angular-html-CZfDmWtJ.js +16 -0
  6. package/dist/angular-ts-CIhYrOL5.js +666 -0
  7. package/dist/apache-rS0jd3Ly.js +1 -0
  8. package/dist/apex-Sfo2eW0G.js +274 -0
  9. package/dist/apl-DPLNWaKG.js +87 -0
  10. package/dist/applescript-BXKAgOFh.js +38 -0
  11. package/dist/ara-CG4fK2Nq.js +21 -0
  12. package/dist/asciidoc-C539GviS.js +1 -0
  13. package/dist/asm-PWN5J14X.js +1 -0
  14. package/dist/astro-71xeBtnw.js +32 -0
  15. package/dist/aurora-x-BaWyeHV_.js +1 -0
  16. package/dist/awk-i0IPvypD.js +1 -0
  17. package/dist/ayu-dark-Bn5gmY5k.js +1 -0
  18. package/dist/ballerina-T9ysyp6P.js +62 -0
  19. package/dist/bat-BPiaQZfK.js +1 -0
  20. package/dist/beancount-Urb1RsFe.js +1 -0
  21. package/dist/berry-CxrokwfH.js +1 -0
  22. package/dist/bibtex-BaedD2tq.js +1 -0
  23. package/dist/bicep-3ghuYFLd.js +1 -0
  24. package/dist/bin/cli.js +10 -0
  25. package/dist/blade-D3A5GssZ.js +831 -0
  26. package/dist/c-RCJZWN-0.js +81 -0
  27. package/dist/cadence-Bgpqy2XC.js +1 -0
  28. package/dist/catppuccin-frappe-BsOrZxH8.js +1 -0
  29. package/dist/catppuccin-latte-BYdKNJ10.js +1 -0
  30. package/dist/catppuccin-macchiato-DVLwECkk.js +1 -0
  31. package/dist/catppuccin-mocha-CEfge3mM.js +1 -0
  32. package/dist/clarity-CIekO_uJ.js +1 -0
  33. package/dist/clojure-BF6G6X0H.js +1 -0
  34. package/dist/cmake-DXZpi2gR.js +1 -0
  35. package/dist/cobol-Bi0pgIzz.js +1 -0
  36. package/dist/codeowners-CGmujMTu.js +1 -0
  37. package/dist/codeql-BOpLLL-w.js +1 -0
  38. package/dist/coffee-Cp6Hkwsd.js +100 -0
  39. package/dist/common-lisp-C3qUB5O8.js +301 -0
  40. package/dist/cpp-CeZn6MzL.js +186 -0
  41. package/dist/crystal-B5pCH4eR.js +25 -0
  42. package/dist/csharp-DISxKEhY.js +756 -0
  43. package/dist/css-CbYhyuC0.js +505 -0
  44. package/dist/csv-B2DkETJQ.js +1 -0
  45. package/dist/cue-C6Aznpr-.js +1 -0
  46. package/dist/cypher-ByMv4Xf1.js +1 -0
  47. package/dist/d-PifQWv0n.js +1 -0
  48. package/dist/dark-plus-KEYLhlmT.js +1 -0
  49. package/dist/dart-DZLoTQm4.js +1 -0
  50. package/dist/dax-DsfXcHUZ.js +29 -0
  51. package/dist/desktop-D71BffLY.js +1 -0
  52. package/dist/diff-DvyTQcux.js +1 -0
  53. package/dist/docker-DNR26wTC.js +1 -0
  54. package/dist/dracula-DGO8GyiP.js +1 -0
  55. package/dist/dracula-soft-9B1nZgL-.js +1 -0
  56. package/dist/dream-maker-Eh5U-gDp.js +52 -0
  57. package/dist/elixir-Exce1dLy.js +17 -0
  58. package/dist/elm-D7CfdsEG.js +1 -0
  59. package/dist/emacs-lisp-51pKhIDe.js +5754 -0
  60. package/dist/erb-S7d1X-Y-.js +1 -0
  61. package/dist/erlang-DS9ZWoKD.js +1 -0
  62. package/dist/fennel-DuK7IM-L.js +1 -0
  63. package/dist/fish-DfeQjIbs.js +5 -0
  64. package/dist/fluent-KPqz0Sb3.js +1 -0
  65. package/dist/fortran-fixed-form-6v7-xzYY.js +1 -0
  66. package/dist/fortran-free-form-D6pmzCqS.js +1 -0
  67. package/dist/fsharp-JZjmD0Li.js +1 -0
  68. package/dist/gdresource-CFKM8Ske.js +1 -0
  69. package/dist/gdscript-CoEqzGFw.js +44 -0
  70. package/dist/gdshader-B_SUYfiV.js +1 -0
  71. package/dist/genie-DAfrLhwG.js +1 -0
  72. package/dist/gherkin-B0PjAhci.js +1 -0
  73. package/dist/git-commit-XY8bXq83.js +1 -0
  74. package/dist/git-rebase-BE3WlPTi.js +1 -0
  75. package/dist/github-dark-CzPA46E-.js +1 -0
  76. package/dist/github-dark-default-BXF7Vm5l.js +1 -0
  77. package/dist/github-dark-dimmed-CRDKj6ck.js +1 -0
  78. package/dist/github-light-CRlnGVMD.js +1 -0
  79. package/dist/github-light-default-UREJT2Bw.js +1 -0
  80. package/dist/gleam-Dd6f7Z5P.js +1 -0
  81. package/dist/glimmer-js-I0TZ3_O1.js +13 -0
  82. package/dist/glimmer-ts-CY38hlIb.js +13 -0
  83. package/dist/glsl-tOUOXML3.js +1 -0
  84. package/dist/gnuplot-nclm9rTJ.js +266 -0
  85. package/dist/go-BJn7Ek5W.js +1 -0
  86. package/dist/graphql-DwwLrXH1.js +4 -0
  87. package/dist/groovy-wChcbJ1V.js +37 -0
  88. package/dist/hack-DmjQSZc3.js +86 -0
  89. package/dist/haml-map1ik7u.js +1 -0
  90. package/dist/handlebars-CCc9qS91.js +1 -0
  91. package/dist/haskell-DOVD4hs_.js +559 -0
  92. package/dist/haxe-Dit6kIrv.js +11 -0
  93. package/dist/hcl-CpAANOdC.js +1 -0
  94. package/dist/hjson-DZqG9GXz.js +50 -0
  95. package/dist/hlsl-DmDrTTlz.js +1 -0
  96. package/dist/houston-CZZ6oYdA.js +1 -0
  97. package/dist/html-NmvpQUfQ.js +74 -0
  98. package/dist/html-derivative-QphQoco-.js +1 -0
  99. package/dist/http-B58UUte0.js +1 -0
  100. package/dist/hxml-4EC8aR1F.js +1 -0
  101. package/dist/hy-y-6HuL9l.js +3 -0
  102. package/dist/imba-CyaA9484.js +223 -0
  103. package/dist/index-UHZxbkBe.js +2 -0
  104. package/dist/ini-DeVv6D4_.js +1 -0
  105. package/dist/java-ClXEvkw9.js +68 -0
  106. package/dist/javascript-Dch3xQiY.js +699 -0
  107. package/dist/jinja-BrXMjE5a.js +1 -0
  108. package/dist/jison-DlEKeWyG.js +1 -0
  109. package/dist/json-CupVZNk8.js +25 -0
  110. package/dist/json5-Bh8mriwU.js +17 -0
  111. package/dist/jsonc-DYI1rfmx.js +25 -0
  112. package/dist/jsonl-BUpeXbsf.js +25 -0
  113. package/dist/jsonnet-C9d3aiqh.js +1 -0
  114. package/dist/jssm-Dble9ECP.js +1 -0
  115. package/dist/jsx-CsyrCbsw.js +699 -0
  116. package/dist/julia-jDzGJc6I.js +9 -0
  117. package/dist/kotlin-BIxS-Weu.js +1 -0
  118. package/dist/kusto-DGEpfOTx.js +1 -0
  119. package/dist/latex-bjPeSN-x.js +3 -0
  120. package/dist/less-Du6_OKDb.js +159 -0
  121. package/dist/lib/index.d.ts +1022 -0
  122. package/dist/lib/index.js +1 -0
  123. package/dist/light-plus-BsvsQ1iS.js +1 -0
  124. package/dist/liquid-DHpvaAyy.js +14 -0
  125. package/dist/log-Ksn5IXup.js +1 -0
  126. package/dist/logo-DdacRhvC.js +1 -0
  127. package/dist/lua-Cy9U1SwF.js +1 -0
  128. package/dist/make-B9S9BZZh.js +1 -0
  129. package/dist/markdown-BdfWgkoX.js +129 -0
  130. package/dist/marko-neMFgnTa.js +8 -0
  131. package/dist/material-theme-B2BuIiKK.js +1 -0
  132. package/dist/material-theme-darker-BrGg7AAd.js +1 -0
  133. package/dist/material-theme-lighter-DDRuGeQH.js +1 -0
  134. package/dist/material-theme-ocean-CBL0qBdF.js +1 -0
  135. package/dist/material-theme-palenight-D7gg1Usp.js +1 -0
  136. package/dist/matlab-Btshr8M_.js +70 -0
  137. package/dist/mdc-_-l14nii.js +76 -0
  138. package/dist/mdx-CBPJd_fO.js +1 -0
  139. package/dist/mermaid-Dkb1Nx48.js +1 -0
  140. package/dist/min-dark-iSbrOpM4.js +1 -0
  141. package/dist/min-light-BITGhEdf.js +1 -0
  142. package/dist/mojo--7WWnkdy.js +517 -0
  143. package/dist/monokai-sMI-pExk.js +1 -0
  144. package/dist/move-MN12aA4C.js +1 -0
  145. package/dist/narrat-B9CT-1u6.js +7 -0
  146. package/dist/nextflow-DBxHOdLe.js +1 -0
  147. package/dist/nginx-C3DmzmOp.js +1 -0
  148. package/dist/night-owl-BeocmOPF.js +1 -0
  149. package/dist/nim-BjhyiCLB.js +1 -0
  150. package/dist/nix-B7rNE5kf.js +1 -0
  151. package/dist/nord-CsyjKwr8.js +1 -0
  152. package/dist/nushell-CrgTADc5.js +1 -0
  153. package/dist/objective-c-DHmGyzbM.js +109 -0
  154. package/dist/objective-cpp-BWKJ1FCf.js +239 -0
  155. package/dist/ocaml-RqY_Nz63.js +1 -0
  156. package/dist/one-dark-pro-BTtaZsq5.js +1 -0
  157. package/dist/one-light-alpzPJ78.js +1 -0
  158. package/dist/pascal-B6ZnTe72.js +1 -0
  159. package/dist/perl-PZnu_VA7.js +1 -0
  160. package/dist/php-m9Z3qs_k.js +771 -0
  161. package/dist/plsql-BbJj1K1w.js +1 -0
  162. package/dist/po-HrnDn_2Q.js +1 -0
  163. package/dist/poimandres-Cda-MJFk.js +1 -0
  164. package/dist/postcss-DXT9h7v2.js +1 -0
  165. package/dist/powerquery-CApMHEaB.js +1 -0
  166. package/dist/powershell-9ZOzOPqN.js +1 -0
  167. package/dist/prisma-BBJYjQ0k.js +1 -0
  168. package/dist/prolog-BH_RS3WO.js +1 -0
  169. package/dist/proto-DOtRmeXT.js +1 -0
  170. package/dist/pug-jyQP1XtO.js +1 -0
  171. package/dist/puppet-37ic6j3l.js +1 -0
  172. package/dist/purescript-Bm5O5oLm.js +7 -0
  173. package/dist/python-DwuVtWc2.js +518 -0
  174. package/dist/qml-DM3j-f55.js +1 -0
  175. package/dist/qmldir-MS3qTAOR.js +1 -0
  176. package/dist/qss-FJDVp-XM.js +1 -0
  177. package/dist/r-BXfENWL6.js +1 -0
  178. package/dist/racket-BbLA0SU8.js +353 -0
  179. package/dist/raku-D384ylkT.js +1 -0
  180. package/dist/razor-DokJXJPk.js +40 -0
  181. package/dist/red-jaXbsbtS.js +1 -0
  182. package/dist/reg-CrhH3_Og.js +1 -0
  183. package/dist/regexp-C_ZPRiAj.js +26 -0
  184. package/dist/rel-BuawaRXJ.js +1 -0
  185. package/dist/riscv-D-aEEwJo.js +13 -0
  186. package/dist/rose-pine-BIAFg_EN.js +1 -0
  187. package/dist/rose-pine-dawn-C5m_N-6l.js +1 -0
  188. package/dist/rose-pine-moon-B9S0JTD1.js +1 -0
  189. package/dist/rst-DlAMacAQ.js +1 -0
  190. package/dist/ruby-eQ1iIi6H.js +80 -0
  191. package/dist/rust-DGxQkqYo.js +1 -0
  192. package/dist/sas-BhBoFsCt.js +1 -0
  193. package/dist/sass-CMDmr8et.js +2 -0
  194. package/dist/scala-Cd0cRMx9.js +5 -0
  195. package/dist/scheme-BTeww-4z.js +136 -0
  196. package/dist/scss-DoQ2ojfq.js +90 -0
  197. package/dist/shaderlab-Bb-6Dmi7.js +1 -0
  198. package/dist/shellscript-BZfs-ost.js +1 -0
  199. package/dist/shellsession-B6XH_PlG.js +1 -0
  200. package/dist/slack-dark-C7oZ9nno.js +1 -0
  201. package/dist/slack-ochin-hXH8Gyq8.js +1 -0
  202. package/dist/smalltalk-DSsji4Hu.js +1 -0
  203. package/dist/snazzy-light-CA9nliXM.js +1 -0
  204. package/dist/solarized-dark-C86elO-m.js +1 -0
  205. package/dist/solarized-light-xPNGhBYe.js +1 -0
  206. package/dist/solidity-CThH5sBG.js +1 -0
  207. package/dist/soy-rVg8SA9F.js +1 -0
  208. package/dist/sparql-Cmp61EUJ.js +1 -0
  209. package/dist/splunk-6XBPEST2.js +1 -0
  210. package/dist/sql-DxR2xW-a.js +21 -0
  211. package/dist/ssh-config-BH1M7C1g.js +1 -0
  212. package/dist/stata-DGeqZgIM.js +3 -0
  213. package/dist/stylus-DSrLtGYv.js +15 -0
  214. package/dist/svelte-BMtjZn0z.js +1 -0
  215. package/dist/swift-C8WrqfNz.js +544 -0
  216. package/dist/sync-DItkgf9b.js +303 -0
  217. package/dist/synthwave-84-BBDuFDsq.js +1 -0
  218. package/dist/system-verilog-BscxmKrE.js +8 -0
  219. package/dist/systemd-IQPSIA3x.js +1 -0
  220. package/dist/tasl-BxwAa5i0.js +1 -0
  221. package/dist/tcl-C_8Fx7bH.js +1 -0
  222. package/dist/terraform-DBeuZS66.js +1 -0
  223. package/dist/tex-BqVuN0dX.js +1 -0
  224. package/dist/tokyo-night-eJfcURhx.js +1 -0
  225. package/dist/toml-BT9ZzGyQ.js +69 -0
  226. package/dist/tsv-DnLUQrgA.js +1 -0
  227. package/dist/tsx-BlxWTfDV.js +699 -0
  228. package/dist/turtle-C15OxdQ5.js +1 -0
  229. package/dist/twig-DDlPLETn.js +40 -0
  230. package/dist/typescript-DC8MraHL.js +666 -0
  231. package/dist/typespec-Bx89rGXK.js +1 -0
  232. package/dist/typst-I4qd5QHW.js +10 -0
  233. package/dist/v-C2TBxDwV.js +1 -0
  234. package/dist/vala-CO5hpdkB.js +1 -0
  235. package/dist/vb-beD-FUib.js +1 -0
  236. package/dist/verilog-DVfdqzEq.js +1 -0
  237. package/dist/vesper-BSB_bK09.js +1 -0
  238. package/dist/vhdl-QZ3jNtnE.js +515 -0
  239. package/dist/viml-BLluXI4E.js +1 -0
  240. package/dist/vitesse-black-B3g-KkBK.js +1 -0
  241. package/dist/vitesse-dark-Bxkoe-BC.js +1 -0
  242. package/dist/vitesse-light-Br6ll-O0.js +1 -0
  243. package/dist/vue-B6Rs-4k4.js +6 -0
  244. package/dist/vue-html-Blw9Jzz9.js +1 -0
  245. package/dist/vyper-o-cPXEvd.js +575 -0
  246. package/dist/wasm-2oxoyaYy.js +1 -0
  247. package/dist/wasm-Cicx_DS6.js +1 -0
  248. package/dist/wenyan-Cavfe_d0.js +1 -0
  249. package/dist/wgsl-BZz1Hhek.js +1 -0
  250. package/dist/wikitext-zfUCmn4z.js +40 -0
  251. package/dist/wolfram-BICIrM8O.js +1 -0
  252. package/dist/xml-sp2Egr0Z.js +1 -0
  253. package/dist/xsl-BQYvujlj.js +1 -0
  254. package/dist/yaml-C5gCGmDW.js +200 -0
  255. package/dist/zenscript-B1nm99XP.js +2 -0
  256. package/dist/zig-xtV5iK4E.js +1 -0
  257. package/license.txt +21 -0
  258. package/package.json +109 -0
  259. package/readme.md +535 -0
@@ -0,0 +1,559 @@
1
+ const e=Object.freeze({displayName:"Haskell",fileTypes:["hs","hs-boot","hsig"],name:"haskell",patterns:[{include:"#liquid_haskell"},{include:"#comment_like"},{include:"#numeric_literals"},{include:"#string_literal"},{include:"#char_literal"},{match:"(?<!@|#)-\\}",name:"invalid"},{captures:{1:{name:"punctuation.paren.haskell"},2:{name:"punctuation.paren.haskell"}},match:"(\\()\\s*(\\))",name:"constant.language.unit.haskell"},{captures:{1:{name:"punctuation.paren.haskell"},2:{name:"keyword.operator.hash.haskell"},3:{name:"keyword.operator.hash.haskell"},4:{name:"punctuation.paren.haskell"}},match:"(\\()(#)\\s*(#)(\\))",name:"constant.language.unit.unboxed.haskell"},{captures:{1:{name:"punctuation.paren.haskell"},2:{name:"punctuation.paren.haskell"}},match:"(\\()\\s*,[\\s,]*(\\))",name:"support.constant.tuple.haskell"},{captures:{1:{name:"punctuation.paren.haskell"},2:{name:"keyword.operator.hash.haskell"},3:{name:"keyword.operator.hash.haskell"},4:{name:"punctuation.paren.haskell"}},match:"(\\()(#)\\s*,[\\s,]*(#)(\\))",name:"support.constant.tuple.unboxed.haskell"},{captures:{1:{name:"punctuation.bracket.haskell"},2:{name:"punctuation.bracket.haskell"}},match:"(\\[)\\s*(\\])",name:"constant.language.empty-list.haskell"},{begin:"(\\b(?<!')(module)|^(signature))(\\b(?!'))",beginCaptures:{2:{name:"keyword.other.module.haskell"},3:{name:"keyword.other.signature.haskell"}},end:"(?=\\b(?<!')where\\b(?!'))",name:"meta.declaration.module.haskell",patterns:[{include:"#comment_like"},{include:"#module_name"},{include:"#module_exports"},{match:"[a-z]+",name:"invalid"}]},{include:"#ffi"},{begin:"^(\\s*)(class)(\\b(?!'))",beginCaptures:{2:{name:"keyword.other.class.haskell"}},end:`(?x)
2
+
3
+ (?=(?<!')\\bwhere\\b(?!'))
4
+
5
+ |(?=\\}|;)
6
+ |^(?!
7
+ \\1\\s+\\S
8
+ | \\s*
9
+ (?: $
10
+ |\\{-[^@]
11
+ |--+
12
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
13
+
14
+
15
+ )`,name:"meta.declaration.class.haskell",patterns:[{include:"#comment_like"},{include:"#where"},{include:"#type_signature"}]},{begin:`(?x)
16
+ ^(\\s*)(data|newtype)(?:\\s+(instance))?\\s+
17
+
18
+ ((?:(?!
19
+
20
+ (?:
21
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
22
+ (?:=|--+)
23
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
24
+ )
25
+
26
+ | (?:\\b(?<!')(?:where|deriving)\\b(?!'))
27
+
28
+ | {-
29
+
30
+ ).)*)
31
+ (?=\\b(?<!'')where\\b(?!''))`,beginCaptures:{2:{name:"keyword.other.$2.haskell"},3:{name:"keyword.other.instance.haskell"},4:{patterns:[{include:"#type_signature"}]}},end:`(?x)
32
+
33
+ (?=(?<!')\\bderiving\\b(?!'))
34
+
35
+ |(?=\\}|;)
36
+ |^(?!
37
+ \\1\\s+\\S
38
+ | \\s*
39
+ (?: $
40
+ |\\{-[^@]
41
+ |--+
42
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
43
+
44
+
45
+ )
46
+ `,name:"meta.declaration.$2.generalized.haskell",patterns:[{include:"#comment_like"},{begin:`(?x)
47
+ (?<!')\\b(where)
48
+ \\s*(\\{)(?!-)`,beginCaptures:{1:{name:"keyword.other.where.haskell"},2:{name:"punctuation.brace.haskell"}},end:"(\\})",endCaptures:{1:{name:"punctuation.brace.haskell"}},patterns:[{include:"#comment_like"},{include:"#gadt_constructor"},{match:";",name:"punctuation.semicolon.haskell"}]},{match:"\\b(?<!')(where)\\b(?!')",name:"keyword.other.where.haskell"},{include:"#deriving"},{include:"#gadt_constructor"}]},{include:"#role_annotation"},{begin:"^(\\s*)(pattern)\\s+(.*?)\\s+(::|\u2237)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])",beginCaptures:{2:{name:"keyword.other.pattern.haskell"},3:{patterns:[{include:"#comma"},{include:"#data_constructor"}]},4:{name:"keyword.operator.double-colon.haskell"}},end:`(?x)
49
+ (?=\\}|;)
50
+ |^(?!
51
+ \\1\\s+\\S
52
+ | \\s*
53
+ (?: $
54
+ |\\{-[^@]
55
+ |--+
56
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
57
+
58
+
59
+ )
60
+ `,name:"meta.declaration.pattern.type.haskell",patterns:[{include:"#type_signature"}]},{begin:"^\\s*(pattern)\\b(?!')",captures:{1:{name:"keyword.other.pattern.haskell"}},end:`(?x)
61
+ (?=\\}|;)
62
+ |^(?!
63
+ \\1\\s+\\S
64
+ | \\s*
65
+ (?: $
66
+ |\\{-[^@]
67
+ |--+
68
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
69
+
70
+
71
+ )
72
+ `,name:"meta.declaration.pattern.haskell",patterns:[{include:"$self"}]},{begin:`(?x)
73
+
74
+ ^(\\s*)(data|newtype)(?:\\s+(family|instance))?\\s+
75
+
76
+ (((?!
77
+
78
+ (?:
79
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
80
+ (?:=|--+)
81
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
82
+ )
83
+
84
+ | (?:\\b(?<!')(?:where|deriving)\\b(?!'))
85
+
86
+ | {-
87
+
88
+ ).)*)`,beginCaptures:{2:{name:"keyword.other.$2.haskell"},3:{name:"keyword.other.$3.haskell"},4:{patterns:[{include:"#type_signature"}]}},end:`(?x)
89
+
90
+ (?=\\}|;)
91
+ |^(?!
92
+ \\1\\s+\\S
93
+ | \\s*
94
+ (?: $
95
+ |\\{-[^@]
96
+ |--+
97
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
98
+
99
+
100
+ )`,name:"meta.declaration.$2.algebraic.haskell",patterns:[{include:"#comment_like"},{include:"#deriving"},{include:"#forall"},{include:"#adt_constructor"},{include:"#context"},{include:"#record_decl"},{include:"#type_signature"}]},{begin:`(?x)
101
+
102
+ ^(\\s*)(type)\\s+(family)\\b(?!')
103
+
104
+ (((?!
105
+
106
+ (?:
107
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
108
+ (?:=|--+)
109
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
110
+ )
111
+
112
+ | \\b(?<!')where\\b(?!')
113
+
114
+ | {-
115
+
116
+ ).)*)`,beginCaptures:{2:{name:"keyword.other.type.haskell"},3:{name:"keyword.other.family.haskell"},4:{patterns:[{include:"#comment_like"},{include:"#where"},{include:"#type_signature"}]}},end:`(?x)
117
+ (?=\\}|;)
118
+ |^(?!
119
+ \\1\\s+\\S
120
+ | \\s*
121
+ (?: $
122
+ |\\{-[^@]
123
+ |--+
124
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
125
+
126
+
127
+ )
128
+ `,name:"meta.declaration.type.family.haskell",patterns:[{include:"#comment_like"},{include:"#where"},{include:"#type_signature"}]},{begin:`(?x)
129
+
130
+ ^(\\s*)(type)(?:\\s+(instance))?\\s+
131
+
132
+ (((?!
133
+
134
+ (?:
135
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
136
+ (?:=|--+|::|\u2237)
137
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
138
+ )
139
+
140
+ | {-
141
+
142
+ ).)*)`,beginCaptures:{2:{name:"keyword.other.type.haskell"},3:{name:"keyword.other.instance.haskell"},4:{patterns:[{include:"#type_signature"}]}},end:`(?x)
143
+ (?=\\}|;)
144
+ |^(?!
145
+ \\1\\s+\\S
146
+ | \\s*
147
+ (?: $
148
+ |\\{-[^@]
149
+ |--+
150
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
151
+
152
+
153
+ )
154
+ `,name:"meta.declaration.type.haskell",patterns:[{include:"#type_signature"}]},{begin:"^(\\s*)(instance)(\\b(?!'))",beginCaptures:{2:{name:"keyword.other.instance.haskell"}},end:`(?x)
155
+
156
+ (?=\\b(?<!')(where)\\b(?!'))
157
+
158
+ |(?=\\}|;)
159
+ |^(?!
160
+ \\1\\s+\\S
161
+ | \\s*
162
+ (?: $
163
+ |\\{-[^@]
164
+ |--+
165
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
166
+
167
+
168
+ )
169
+ `,name:"meta.declaration.instance.haskell",patterns:[{include:"#comment_like"},{include:"#where"},{include:"#type_signature"}]},{begin:"^(\\s*)(import)(\\b(?!'))",beginCaptures:{2:{name:"keyword.other.import.haskell"}},end:`(?x)
170
+
171
+ (?=\\b(?<!')(where)\\b(?!'))
172
+
173
+ |(?=\\}|;)
174
+ |^(?!
175
+ \\1\\s+\\S
176
+ | \\s*
177
+ (?: $
178
+ |\\{-[^@]
179
+ |--+
180
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
181
+
182
+
183
+ )
184
+ `,name:"meta.import.haskell",patterns:[{include:"#comment_like"},{include:"#where"},{captures:{1:{name:"keyword.other.$1.haskell"}},match:"(qualified|as|hiding)"},{include:"#module_name"},{include:"#module_exports"}]},{include:"#deriving"},{include:"#layout_herald"},{include:"#keyword"},{captures:{1:{name:"keyword.other.$1.haskell"},2:{patterns:[{include:"#comment_like"},{include:"#integer_literals"},{include:"#infix_op"}]}},match:"^\\s*(infix[lr]?)\\s+(.*)",name:"meta.fixity-declaration.haskell"},{include:"#overloaded_label"},{include:"#type_application"},{include:"#reserved_symbol"},{include:"#fun_decl"},{include:"#qualifier"},{include:"#data_constructor"},{include:"#start_type_signature"},{include:"#prefix_op"},{include:"#infix_op"},{begin:"(\\()(#)\\s",beginCaptures:{1:{name:"punctuation.paren.haskell"},2:{name:"keyword.operator.hash.haskell"}},end:"(#)(\\))",endCaptures:{1:{name:"keyword.operator.hash.haskell"},2:{name:"punctuation.paren.haskell"}},patterns:[{include:"#comma"},{include:"$self"}]},{begin:"(\\()",beginCaptures:{1:{name:"punctuation.paren.haskell"}},end:"(\\))",endCaptures:{1:{name:"punctuation.paren.haskell"}},patterns:[{include:"#comma"},{include:"$self"}]},{include:"#quasi_quote"},{begin:"(\\[)",beginCaptures:{1:{name:"punctuation.bracket.haskell"}},end:"(\\])",endCaptures:{1:{name:"punctuation.bracket.haskell"}},patterns:[{include:"#comma"},{include:"$self"}]},{include:"#record"}],repository:{adt_constructor:{patterns:[{include:"#comment_like"},{begin:`(?x)
185
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
186
+ (?:(=)|(\\|))
187
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])`,beginCaptures:{1:{name:"keyword.operator.eq.haskell"},2:{name:"keyword.operator.pipe.haskell"}},end:`(?x)
188
+ (?:\\G|^)\\s*
189
+ (?:
190
+
191
+ (?:
192
+
193
+ (?<!')\\b((?:[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'\\.])+)
194
+
195
+ | ('?
196
+ (?<paren>
197
+ \\(
198
+ (?:
199
+ [^\\(\\)]*
200
+ | \\g<paren>
201
+ )*
202
+ \\)
203
+ )
204
+ )
205
+
206
+ | ('?
207
+ (?<brac>
208
+ \\(
209
+ (?:
210
+ [^\\[\\]]*
211
+ | \\g<brac>
212
+ )*
213
+ \\]
214
+ )
215
+ )
216
+ )
217
+
218
+ \\s*
219
+
220
+ (?:(?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])(:[\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]*)
221
+
222
+ | (\`)([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)(\`)
223
+ )
224
+
225
+ )
226
+ |
227
+ (?:(?<!')\\b([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*))
228
+ |
229
+ (\\()\\s*(:[\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]*)\\s*(\\))`,endCaptures:{1:{patterns:[{include:"#type_signature"}]},2:{patterns:[{include:"#type_signature"}]},4:{patterns:[{include:"#type_signature"}]},6:{name:"constant.other.operator.haskell"},7:{name:"punctuation.backtick.haskell"},8:{name:"constant.other.haskell"},9:{name:"punctuation.backtick.haskell"},10:{name:"constant.other.haskell"},11:{name:"punctuation.paren.haskell"},12:{name:"constant.other.operator.haskell"},13:{name:"punctuation.paren.haskell"}},patterns:[{include:"#comment_like"},{include:"#deriving"},{include:"#record_decl"},{include:"#forall"},{include:"#context"}]}]},block_comment:{applyEndPatternLast:1,begin:"\\{-",captures:{0:{name:"punctuation.definition.comment.haskell"}},end:"-\\}",name:"comment.block.haskell",patterns:[{include:"#block_comment"}]},char_literal:{captures:{1:{name:"punctuation.definition.string.begin.haskell"},2:{name:"constant.character.escape.haskell"},3:{name:"constant.character.escape.octal.haskell"},4:{name:"constant.character.escape.hexadecimal.haskell"},5:{name:"constant.character.escape.control.haskell"},6:{name:"punctuation.definition.string.end.haskell"}},match:`(?x)
230
+ (?<![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])
231
+ (')
232
+ (?:
233
+ [\\ -\\[\\]-~]
234
+ | (\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE
235
+ |DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS
236
+ |US|SP|DEL|[abfnrtv\\\\\\"'\\\\&]))
237
+ | (\\\\o[0-7]+)
238
+ | (\\\\x[0-9A-Fa-f]+)
239
+ | (\\\\\\^[A-Z@\\[\\]\\\\\\^_])
240
+ )
241
+ (')
242
+ `,name:"string.quoted.single.haskell"},comma:{match:",",name:"punctuation.separator.comma.haskell"},comment_like:{patterns:[{include:"#cpp"},{include:"#pragma"},{include:"#comments"}]},comments:{patterns:[{begin:"^(\\s*)(--\\s[\\|\\$])",beginCaptures:{2:{name:"punctuation.whitespace.comment.leading.haskell"}},end:"(?=^(?!\\1--+(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])))",name:"comment.block.documentation.haskell"},{begin:"(^[ \\t]+)?(--\\s[\\^\\*])",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.haskell"}},end:"\\n",name:"comment.line.documentation.haskell"},{applyEndPatternLast:1,begin:"\\{-\\s?[\\|\\$\\*\\^]",captures:{0:{name:"punctuation.definition.comment.haskell"}},end:"-\\}",name:"comment.block.documentation.haskell",patterns:[{include:"#block_comment"}]},{begin:"(^[ \\t]+)?(?=--+(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]))",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.haskell"}},comment:"Operators may begin with '--' as long as they are not entirely composed of '-' characters. This means comments can't be immediately followed by an allowable operator character.",end:"(?!\\G)",patterns:[{begin:"--",beginCaptures:{0:{name:"punctuation.definition.comment.haskell"}},end:"\\n",name:"comment.line.double-dash.haskell"}]},{include:"#block_comment"}]},context:{captures:{1:{patterns:[{include:"#comment_like"},{include:"#type_signature"}]},2:{name:"keyword.operator.big-arrow.haskell"}},match:`(?x)
243
+ (.*)
244
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
245
+ (=>|\u21D2)
246
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
247
+ `},cpp:{captures:{1:{name:"punctuation.definition.preprocessor.c"}},comment:`In addition to Haskell's "native" syntax, GHC permits the C preprocessor to be run on a source file.`,match:"^(#).*$",name:"meta.preprocessor.c"},data_constructor:{match:"\\b(?<!')[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(?![\\.'\\w])",name:"constant.other.haskell"},deriving:{patterns:[{begin:"^(\\s*)(deriving)\\s+(?:(via|stock|newtype|anyclass)\\s+)?",beginCaptures:{2:{name:"keyword.other.deriving.haskell"},3:{name:"keyword.other.deriving.strategy.$3.haskell"}},end:`(?x)
248
+
249
+ (?=\\}|;)
250
+ |^(?!
251
+ \\1\\s+\\S
252
+ | \\s*
253
+ (?: $
254
+ |\\{-[^@]
255
+ |--+
256
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
257
+
258
+
259
+ )`,name:"meta.deriving.haskell",patterns:[{include:"#comment_like"},{match:"(?<!')\\b(instance)\\b(?!')",name:"keyword.other.instance.haskell"},{captures:{1:{name:"keyword.other.deriving.strategy.$1.haskell"}},match:"(?<!')\\b(via|stock|newtype|anyclass)\\b(?!')"},{include:"#type_signature"}]},{begin:"(deriving)(?:\\s+(stock|newtype|anyclass))?\\s*(\\()",beginCaptures:{1:{name:"keyword.other.deriving.haskell"},2:{name:"keyword.other.deriving.strategy.$2.haskell"},3:{name:"punctuation.paren.haskell"}},end:"(\\))",endCaptures:{1:{name:"punctuation.paren.haskell"}},name:"meta.deriving.haskell",patterns:[{include:"#type_signature"}]},{captures:{1:{name:"keyword.other.deriving.haskell"},2:{name:"keyword.other.deriving.strategy.$2.haskell"},3:{patterns:[{include:"#type_signature"}]},5:{name:"keyword.other.deriving.strategy.via.haskell"},6:{patterns:[{include:"#type_signature"}]}},match:`(?x)
260
+ (deriving)(?:\\s+(stock|newtype|anyclass))?\\s+
261
+ ([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)
262
+ (\\s+(via)\\s+(.*)$)?
263
+ `,name:"meta.deriving.haskell"},{match:"(?<!')\\b(via)\\b(?!')",name:"keyword.other.deriving.strategy.via.haskell"}]},double_colon:{captures:{1:{name:"keyword.operator.double-colon.haskell"}},match:"\\s*(::|\u2237)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])\\s*"},export_constructs:{patterns:[{include:"#comment_like"},{begin:"\\b(?<!')(pattern)\\b(?!')",beginCaptures:{1:{name:"keyword.other.pattern.haskell"}},end:`(?x)
264
+
265
+ ([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)
266
+
267
+ | (\\()\\s*(:[\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+)\\s*(\\))`,endCaptures:{1:{name:"constant.other.haskell"},2:{name:"punctuation.paren.haskell"},3:{name:"constant.other.operator.haskell"},4:{name:"punctuation.paren.haskell"}},patterns:[{include:"#comment_like"}]},{begin:"\\b(?<!')(type)\\b(?!')",beginCaptures:{1:{name:"keyword.other.type.haskell"}},end:`(?x)
268
+
269
+ ([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)
270
+
271
+ | (\\()\\s*([\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+)\\s*(\\))`,endCaptures:{1:{name:"storage.type.haskell"},2:{name:"punctuation.paren.haskell"},3:{name:"storage.type.operator.haskell"},4:{name:"punctuation.paren.haskell"}},patterns:[{include:"#comment_like"}]},{match:"(?<!')\\b[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",name:"entity.name.function.haskell"},{match:"(?<!')\\b[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",name:"storage.type.haskell"},{include:"#record_wildcard"},{include:"#reserved_symbol"},{include:"#prefix_op"}]},ffi:{begin:"^(\\s*)(foreign)\\s+(import|export)\\s+",beginCaptures:{2:{name:"keyword.other.foreign.haskell"},3:{name:"keyword.other.$3.haskell"}},end:`(?x)
272
+ (?=\\}|;)
273
+ |^(?!
274
+ \\1\\s+\\S
275
+ | \\s*
276
+ (?: $
277
+ |\\{-[^@]
278
+ |--+
279
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
280
+
281
+
282
+ )
283
+ `,name:"meta.$3.foreign.haskell",patterns:[{include:"#comment_like"},{captures:{1:{name:"keyword.other.calling-convention.$1.haskell"}},match:"\\b(?<!')(ccall|cplusplus|dotnet|jvm|stdcall|prim|capi)\\s+"},{begin:`(?=")|(?=\\b(?<!')([\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)\\b(?!'))`,end:"(?=(::|\u2237)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']]))",patterns:[{include:"#comment_like"},{captures:{1:{name:"keyword.other.safety.$1.haskell"},2:{name:"entity.name.foreign.haskell",patterns:[{include:"#string_literal"}]},3:{name:"entity.name.function.haskell"},4:{name:"entity.name.function.infix.haskell"}},match:`(?x)
284
+ \\b(?<!')(safe|unsafe|interruptible)\\b(?!')
285
+ \\s*
286
+ ("(?:\\\\"|[^"])*")?
287
+ \\s*
288
+ (?:
289
+ (?:\\b(?<!'')([\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)\\b(?!'))
290
+ |(?:\\(\\s*(?!--+\\))([\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+)\\s*\\))
291
+ )
292
+ `},{captures:{1:{name:"keyword.other.safety.$1.haskell"},2:{name:"entity.name.foreign.haskell",patterns:[{include:"#string_literal"}]}},match:`(?x)
293
+ \\b(?<!')(safe|unsafe|interruptible)\\b(?!')
294
+ \\s*
295
+ ("(?:\\\\"|[^"])*")?
296
+ \\s*$
297
+ `},{captures:{0:{name:"entity.name.foreign.haskell",patterns:[{include:"#string_literal"}]}},match:`(?x)
298
+ "(?:\\\\"|[^"])*"`},{captures:{1:{name:"entity.name.function.haskell"},2:{name:"punctuation.paren.haskell"},3:{name:"entity.name.function.infix.haskell"},4:{name:"punctuation.paren.haskell"}},match:`(?x)
299
+ (?:\\b(?<!'')([\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)\\b(?!'))
300
+ |(?:(\\()\\s*(?!--+\\))([\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+)\\s*(\\)))
301
+ `}]},{include:"#double_colon"},{include:"#type_signature"}]},float_literals:{captures:{1:{name:"constant.numeric.floating.decimal.haskell"},2:{name:"constant.numeric.floating.hexadecimal.haskell"}},comment:"Floats are decimal or hexadecimal",match:`(?x)
302
+ \\b(?<!')
303
+ (?:
304
+ ([0-9][_0-9]*\\.[0-9][_0-9]*(?:[eE][-+]?[0-9][_0-9]*)?
305
+ |[0-9][_0-9]*[eE][-+]?[0-9][_0-9]*
306
+ )
307
+ |
308
+ (0[xX]_*[0-9a-fA-F][_0-9a-fA-F]*\\.[0-9a-fA-F][_0-9a-fA-F]*(?:[pP][-+]?[0-9][_0-9]*)?
309
+ |0[xX]_*[0-9a-fA-F][_0-9a-fA-F]*[pP][-+]?[0-9][_0-9]*
310
+ )
311
+ )\\b(?!')`},forall:{begin:"\\b(?<!')(forall|\u2200)\\b(?!')",beginCaptures:{1:{name:"keyword.other.forall.haskell"}},end:"(\\.)|(->|\u2192)",endCaptures:{1:{name:"keyword.operator.period.haskell"},2:{name:"keyword.operator.arrow.haskell"}},patterns:[{include:"#comment_like"},{include:"#type_variable"},{include:"#type_signature"}]},fun_decl:{begin:`(?x)^(\\s*)
312
+ (?<fn>
313
+ (?:
314
+ [\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*\\#*
315
+ | \\(\\s*
316
+ (?!--+\\))
317
+ [\\p{S}\\p{P}&&[^(),:;\\[\\]\`{}_"']]
318
+ [\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]*
319
+ \\s*\\)
320
+ )
321
+ (?:\\s*,\\s*\\g<fn>)?
322
+ )
323
+ \\s*(?<![\\p{S}\\p{P}&&[^\\),;\\]\`}_"']])(::|\u2237)(?![\\p{S}\\p{P}&&[^\\(,;\\[\`{_"']])
324
+ `,beginCaptures:{2:{name:"entity.name.function.haskell",patterns:[{include:"#reserved_symbol"},{include:"#prefix_op"}]},3:{name:"keyword.operator.double-colon.haskell"}},end:`(?x)
325
+
326
+
327
+ (?=
328
+
329
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
330
+
331
+ ((<-|\u2190)|(=)|(-<|\u21A2)|(-<<|\u291B))
332
+
333
+ ([(),;\\[\\]\`{}_"']|[^\\p{S}\\p{P}])
334
+ )
335
+
336
+ |(?=\\}|;)
337
+ |^(?!
338
+ \\1\\s+\\S
339
+ | \\s*
340
+ (?: $
341
+ |\\{-[^@]
342
+ |--+
343
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
344
+
345
+
346
+ )
347
+ `,name:"meta.function.type-declaration.haskell",patterns:[{include:"#type_signature"}]},gadt_constructor:{patterns:[{begin:`(?x)
348
+ ^(\\s*)
349
+ (?:
350
+ (\\b(?<!')[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)
351
+ |(\\()\\s*(:[\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]*)\\s*(\\))
352
+ )`,beginCaptures:{2:{name:"constant.other.haskell"},3:{name:"punctuation.paren.haskell"},4:{name:"constant.other.operator.haskell"},5:{name:"punctuation.paren.haskell"}},end:`(?x)
353
+
354
+ (?=\\b(?<!'')deriving\\b(?!'))
355
+
356
+ |(?=\\}|;)
357
+ |^(?!
358
+ \\1\\s+\\S
359
+ | \\s*
360
+ (?: $
361
+ |\\{-[^@]
362
+ |--+
363
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
364
+
365
+
366
+ )
367
+ `,patterns:[{include:"#comment_like"},{include:"#deriving"},{include:"#double_colon"},{include:"#record_decl"},{include:"#type_signature"}]},{begin:`(?x)
368
+ (\\b(?<!')[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}]*)
369
+ |(\\()\\s*(:[\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]*)\\s*(\\))`,beginCaptures:{1:{name:"constant.other.haskell"},2:{name:"punctuation.paren.haskell"},3:{name:"constant.other.operator.haskell"},4:{name:"punctuation.paren.haskell"}},end:"$",patterns:[{include:"#comment_like"},{include:"#deriving"},{include:"#double_colon"},{include:"#record_decl"},{include:"#type_signature"}]}]},infix_op:{patterns:[{captures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"entity.name.namespace.haskell"},3:{name:"keyword.operator.infix.haskell"}},comment:`In case this regex seems overly general, note that Haskell permits the definition of new operators which can be nearly any string of punctuation characters, such as $%^&*.
370
+ `,match:`(?x)
371
+ ((?:(?<!'')('')?[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'']*\\.)*)
372
+ (\\#+|[\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+(?<!\\#))`},{captures:{1:{name:"punctuation.backtick.haskell"},2:{name:"entity.name.namespace.haskell"},3:{patterns:[{include:"#data_constructor"}]},4:{name:"punctuation.backtick.haskell"}},comment:`In case this regex seems unusual for an infix operator, note that Haskell
373
+ allows any ordinary function application (elem 4 [1..10]) to be rewritten
374
+ as an infix expression (4 \`elem\` [1..10]).
375
+ `,match:"(`)((?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'']*\\.)*)([\\p{Ll}\\p{Lu}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'']*)(`)",name:"keyword.operator.function.infix.haskell"}]},inline_phase:{begin:"\\[",beginCaptures:{0:{name:"punctuation.bracket.haskell"}},end:"\\]",endCaptures:{0:{name:"punctuation.bracket.haskell"}},name:"meta.inlining-phase.haskell",patterns:[{match:"~",name:"punctuation.tilde.haskell"},{include:"#integer_literals"},{match:"\\w*",name:"invalid"}]},integer_literals:{captures:{1:{name:"constant.numeric.integral.decimal.haskell"},2:{name:"constant.numeric.integral.hexadecimal.haskell"},3:{name:"constant.numeric.integral.octal.haskell"},4:{name:"constant.numeric.integral.binary.haskell"}},match:`(?x)
376
+ \\b(?<!')
377
+ (?:
378
+ ([0-9][_0-9]*)
379
+ | (0[xX]_*[0-9a-fA-F][_0-9a-fA-F]*)
380
+ | (0[oO]_*[0-7][_0-7]*)
381
+ | (0[bB]_*[01][_01]*)
382
+ )
383
+ \\b(?!')`},keyword:{captures:{1:{name:"keyword.other.$1.haskell"},2:{name:"keyword.control.$2.haskell"}},match:"\\b(?<!')(?:(where|let|in|default)|(m?do|if|then|else|case|of|proc|rec))\\b(?!')"},layout_herald:{begin:`(?x)
384
+ (?<!')\\b(?:(where|let|m?do)|(of))
385
+ \\s*(\\{)(?!-)`,beginCaptures:{1:{name:"keyword.other.$1.haskell"},2:{name:"keyword.control.of.haskell"},3:{name:"punctuation.brace.haskell"}},end:"(\\})",endCaptures:{1:{name:"punctuation.brace.haskell"}},patterns:[{include:"$self"},{match:";",name:"punctuation.semicolon.haskell"}]},liquid_haskell:{begin:"\\{-@",end:"@-\\}",name:"block.liquidhaskell.haskell",patterns:[{include:"$self"}]},module_exports:{applyEndPatternLast:1,begin:"\\(",beginCaptures:{0:{name:"punctuation.paren.haskell"}},end:"\\)",endCaptures:{0:{name:"punctuation.paren.haskell"}},name:"meta.declaration.exports.haskell",patterns:[{include:"#comment_like"},{captures:{1:{name:"keyword.other.module.haskell"}},match:"\\b(?<!')(module)\\b(?!')"},{include:"#comma"},{include:"#export_constructs"},{begin:"\\(",beginCaptures:{0:{name:"punctuation.paren.haskell"}},end:"\\)",endCaptures:{0:{name:"punctuation.paren.haskell"}},patterns:[{include:"#comment_like"},{include:"#record_wildcard"},{include:"#export_constructs"},{include:"#comma"}]}]},module_name:{match:"(?<conid>[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*(\\.\\g<conid>)?)",name:"entity.name.namespace.haskell"},numeric_literals:{patterns:[{include:"#float_literals"},{include:"#integer_literals"}]},overloaded_label:{patterns:[{captures:{1:{name:"keyword.operator.prefix.hash.haskell"},2:{patterns:[{include:"#string_literal"}]}},match:`(?x)
386
+ (?<![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}\\p{S}\\p{P}&&[^(,;\\[\`{]])
387
+ (\\#)
388
+ (?:
389
+
390
+ ("(?:\\\\"|[^"])*")
391
+
392
+ |[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'\\.]+
393
+ )`,name:"entity.name.label.haskell"}]},pragma:{begin:"\\{-#",end:"#-\\}",name:"meta.preprocessor.haskell",patterns:[{begin:"(?xi) \\b(?<!')(LANGUAGE)\\b(?!')",beginCaptures:{1:{name:"keyword.other.preprocessor.pragma.haskell"}},end:"(?=#-\\})",patterns:[{match:`(?x)
394
+ (?:No)?
395
+ (?:AutoDeriveTypeable|DatatypeContexts|DoRec|IncoherentInstances|MonadFailDesugaring|MonoPatBinds|NullaryTypeClasses|OverlappingInstances|PatternSignatures|RecordPuns|RelaxedPolyRec)`,name:"invalid.deprecated"},{captures:{1:{name:"keyword.other.preprocessor.extension.haskell"}},match:`(?x)
396
+ (
397
+ (?:No)?
398
+ (?:AllowAmbiguousTypes|AlternativeLayoutRule|AlternativeLayoutRuleTransitional|Arrows|BangPatterns|BinaryLiterals|CApiFFI|CPP|CUSKs|ConstrainedClassMethods|ConstraintKinds|DataKinds|DefaultSignatures|DeriveAnyClass|DeriveDataTypeable|DeriveFoldable|DeriveFunctor|DeriveGeneric|DeriveLift|DeriveTraversable|DerivingStrategies|DerivingVia|DisambiguateRecordFields|DoAndIfThenElse|BlockArguments|DuplicateRecordFields|EmptyCase|EmptyDataDecls|EmptyDataDeriving|ExistentialQuantification|ExplicitForAll|ExplicitNamespaces|ExtendedDefaultRules|FlexibleContexts|FlexibleInstances|ForeignFunctionInterface|FunctionalDependencies|GADTSyntax|GADTs|GHCForeignImportPrim|Generali(?:s|z)edNewtypeDeriving|ImplicitParams|ImplicitPrelude|ImportQualifiedPost|ImpredicativeTypes|TypeFamilyDependencies|InstanceSigs|ApplicativeDo|InterruptibleFFI|JavaScriptFFI|KindSignatures|LambdaCase|LiberalTypeSynonyms|MagicHash|MonadComprehensions|MonoLocalBinds|MonomorphismRestriction|MultiParamTypeClasses|MultiWayIf|NumericUnderscores|NPlusKPatterns|NamedFieldPuns|NamedWildCards|NegativeLiterals|HexFloatLiterals|NondecreasingIndentation|NumDecimals|OverloadedLabels|OverloadedLists|OverloadedStrings|PackageImports|ParallelArrays|ParallelListComp|PartialTypeSignatures|PatternGuards|PatternSynonyms|PolyKinds|PolymorphicComponents|QuantifiedConstraints|PostfixOperators|QuasiQuotes|Rank2Types|RankNTypes|RebindableSyntax|RecordWildCards|RecursiveDo|RelaxedLayout|RoleAnnotations|ScopedTypeVariables|StandaloneDeriving|StarIsType|StaticPointers|Strict|StrictData|TemplateHaskell|TemplateHaskellQuotes|StandaloneKindSignatures|TraditionalRecordSyntax|TransformListComp|TupleSections|TypeApplications|TypeInType|TypeFamilies|TypeOperators|TypeSynonymInstances|UnboxedTuples|UnboxedSums|UndecidableInstances|UndecidableSuperClasses|UnicodeSyntax|UnliftedFFITypes|UnliftedNewtypes|ViewPatterns)
399
+ )`},{include:"#comma"}]},{begin:`(?xi)
400
+ \\b(?<!')(SPECIALI(?:S|Z)E)
401
+ (?:
402
+ \\s*( \\[ [^\\[\\]]* \\])?\\s*
403
+ |\\s+
404
+ )
405
+ (instance)\\b(?!')`,beginCaptures:{1:{name:"keyword.other.preprocessor.pragma.haskell"},2:{patterns:[{include:"#inline_phase"}]},3:{name:"keyword.other.instance.haskell"}},end:"(?=#-\\})",patterns:[{include:"#type_signature"}]},{begin:`(?xi)
406
+ \\b(?<!')(SPECIALI(?:S|Z)E)\\b(?!')
407
+ (?:\\s+(INLINE)\\b(?!'))?
408
+ (?:\\s*(\\[ [^\\[\\]]* \\])?)
409
+ \\s*`,beginCaptures:{1:{name:"keyword.other.preprocessor.pragma.haskell"},2:{name:"keyword.other.preprocessor.pragma.haskell"},3:{patterns:[{include:"#inline_phase"}]}},end:"(?=#-\\})",patterns:[{include:"$self"}]},{match:`(?xi) \\b(?<!')
410
+ (LANGUAGE|OPTIONS_GHC|INCLUDE
411
+ |MINIMAL|UNPACK|OVERLAPS|INCOHERENT
412
+ |NOUNPACK|SOURCE|OVERLAPPING|OVERLAPPABLE|INLINE
413
+ |NOINLINE|INLINE?ABLE|CONLIKE|LINE|COLUMN|RULES
414
+ |COMPLETE)\\b(?!')`,name:"keyword.other.preprocessor.haskell"},{begin:"(?i)\\b(DEPRECATED|WARNING)\\b",beginCaptures:{1:{name:"keyword.other.preprocessor.pragma.haskell"}},end:"(?=#-\\})",patterns:[{include:"#string_literal"}]}]},prefix_op:{patterns:[{captures:{1:{name:"punctuation.paren.haskell"},2:{name:"entity.name.function.infix.haskell"},3:{name:"punctuation.paren.haskell"}},comment:`An operator cannot be composed entirely of '-' characters; instead, it should be matched as a comment.
415
+ `,match:`(?x)
416
+ (\\()\\s*(?!(?:--+|\\.\\.)\\))(\\#+|[\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+(?<!\\#))\\s*(\\))`}]},qualifier:{match:"\\b(?<!')[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*\\.",name:"entity.name.namespace.haskell"},quasi_quote:{patterns:[{begin:`(?x)
417
+ (\\[)
418
+ (e|d|p)?
419
+ (\\|\\|?)`,beginCaptures:{1:{name:"keyword.operator.quasi-quotation.begin.haskell"},2:{name:"entity.name.quasi-quoter.haskell"},3:{name:"keyword.operator.quasi-quotation.begin.haskell"}},end:"\\3\\]",endCaptures:{0:{name:"keyword.operator.quasi-quotation.end.haskell"}},name:"meta.quasi-quotation.haskell",patterns:[{include:"$self"}]},{begin:`(?x)
420
+ (\\[)
421
+ (t)
422
+ (\\|\\|?)`,beginCaptures:{1:{name:"keyword.operator.quasi-quotation.begin.haskell"},2:{name:"entity.name.quasi-quoter.haskell"},3:{name:"keyword.operator.quasi-quotation.begin.haskell"}},end:"\\3\\]",endCaptures:{0:{name:"keyword.operator.quasi-quotation.end.haskell"}},name:"meta.quasi-quotation.haskell",patterns:[{include:"#type_signature"}]},{begin:`(?x)
423
+ (\\[)
424
+ (?:(\\$\\$)|(\\$))?
425
+ ((?:[^\\s\\p{S}\\p{P}]|[\\.'_])*)
426
+ (\\|\\|?)`,beginCaptures:{1:{name:"keyword.operator.quasi-quotation.begin.haskell"},2:{name:"keyword.operator.prefix.double-dollar.haskell"},3:{name:"keyword.operator.prefix.dollar.haskell"},4:{name:"entity.name.quasi-quoter.haskell",patterns:[{include:"#qualifier"}]},5:{name:"keyword.operator.quasi-quotation.begin.haskell"}},end:"\\5\\]",endCaptures:{0:{name:"keyword.operator.quasi-quotation.end.haskell"}},name:"meta.quasi-quotation.haskell"}]},record:{begin:"({)(?!-)",beginCaptures:{1:{name:"punctuation.brace.haskell"}},end:"(?<!-)(})",endCaptures:{1:{name:"punctuation.brace.haskell"}},name:"meta.record.haskell",patterns:[{include:"#comment_like"},{include:"#record_field"}]},record_decl:{begin:"({)(?!-)",beginCaptures:{1:{name:"punctuation.brace.haskell"}},end:"(?<!-)(})",endCaptures:{1:{name:"punctuation.brace.haskell"}},name:"meta.record.definition.haskell",patterns:[{include:"#comment_like"},{include:"#record_decl_field"}]},record_decl_field:{begin:`(?x)
427
+ (?:([\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)
428
+ |(\\()\\s*([\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+)\\s*(\\))
429
+ )
430
+ `,beginCaptures:{1:{name:"variable.other.member.definition.haskell"},2:{name:"punctuation.paren.haskell"},3:{name:"variable.other.member.definition.haskell"},4:{name:"punctuation.paren.haskell"}},end:"(,)|(?=})",endCaptures:{1:{name:"punctuation.comma.haskell"}},patterns:[{include:"#comment_like"},{include:"#comma"},{include:"#double_colon"},{include:"#type_signature"},{include:"#record_decl_field"}]},record_field:{patterns:[{begin:`(?x)
431
+ (?:([\\p{Ll}\\p{Lu}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}\\.']*)
432
+ |(\\()\\s*([\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+)\\s*(\\))
433
+ )
434
+ `,beginCaptures:{1:{name:"variable.other.member.haskell",patterns:[{include:"#qualifier"}]},2:{name:"punctuation.paren.haskell"},3:{name:"variable.other.member.haskell"},4:{name:"punctuation.paren.haskell"}},end:"(,)|(?=})",endCaptures:{1:{name:"punctuation.comma.haskell"}},patterns:[{include:"#comment_like"},{include:"#comma"},{include:"$self"}]},{include:"#record_wildcard"}]},record_wildcard:{captures:{1:{name:"variable.other.member.wildcard.haskell"}},match:`(?x)
435
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
436
+ (\\.\\.)
437
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])`},reserved_symbol:{patterns:[{captures:{1:{name:"keyword.operator.double-dot.haskell"},2:{name:"keyword.operator.colon.haskell"},3:{name:"keyword.operator.eq.haskell"},4:{name:"keyword.operator.lambda.haskell"},5:{name:"keyword.operator.pipe.haskell"},6:{name:"keyword.operator.arrow.left.haskell"},7:{name:"keyword.operator.arrow.haskell"},8:{name:"keyword.operator.arrow.left.tail.haskell"},9:{name:"keyword.operator.arrow.left.tail.double.haskell"},10:{name:"keyword.operator.arrow.tail.haskell"},11:{name:"keyword.operator.arrow.tail.double.haskell"},12:{name:"keyword.other.forall.haskell"}},match:`(?x)
438
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"'']])
439
+ (?:
440
+ (\\.\\.)
441
+ |(:)
442
+ |(=)
443
+ |(\\\\)
444
+ |(\\|)
445
+ |(<-|\u2190)
446
+ |(->|\u2192)
447
+ |(-<|\u21A2)
448
+ |(-<<|\u291B)
449
+ |(>-|\u291A)
450
+ |(>>-|\u291C)
451
+ |(\u2200)
452
+ )
453
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"'']])`},{captures:{1:{name:"keyword.operator.postfix.hash.haskell"}},match:`(?x)
454
+ (?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}\\p{S}\\p{P}&&[^\\#,;\\[\`{]])
455
+ (\\#+)
456
+ (?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}\\p{S}\\p{P}&&[^),;\\]\`}]])`},{captures:{1:{name:"keyword.operator.infix.tight.at.haskell"}},match:`(?x)
457
+ (?<=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}\\)\\}\\]])
458
+ (@)
459
+ (?=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}\\(\\[\\{])`},{captures:{1:{name:"keyword.operator.prefix.tilde.haskell"},2:{name:"keyword.operator.prefix.bang.haskell"},3:{name:"keyword.operator.prefix.minus.haskell"},4:{name:"keyword.operator.prefix.dollar.haskell"},5:{name:"keyword.operator.prefix.double-dollar.haskell"}},match:`(?x)
460
+ (?<![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}\\p{S}\\p{P}&&[^(,;\\[\`{]])
461
+ (?:(~)|(!)|(-)|(\\$)|(\\$\\$))
462
+ (?=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}\\(\\{\\[])`}]},role_annotation:{patterns:[{begin:"^(\\s*)(type)\\s+(role)\\b(?!')",beginCaptures:{2:{name:"keyword.other.type.haskell"},3:{name:"keyword.other.role.haskell"}},end:`(?x)
463
+ (?=\\}|;)
464
+ |^(?!
465
+ \\1\\s+\\S
466
+ | \\s*
467
+ (?: $
468
+ |\\{-[^@]
469
+ |--+
470
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
471
+
472
+
473
+ )`,name:"meta.role-annotation.haskell",patterns:[{include:"#comment_like"},{include:"#type_constructor"},{captures:{1:{name:"keyword.other.role.$1.haskell"}},match:"\\b(?<!')(nominal|representational|phantom)\\b(?!')"}]}]},start_type_signature:{patterns:[{begin:"^(\\s*)(::|\u2237)(?![\\p{S}\\p{P}&&[^\\(,;\\[`{_\"']])\\s*",beginCaptures:{2:{name:"keyword.operator.double-colon.haskell"}},end:`(?x)
474
+
475
+ (?=
476
+ \\#?\\)
477
+ |\\]
478
+ |,
479
+ |(?<!')\\b(in|then|else|of)\\b(?!')
480
+ |
481
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
482
+ (?:
483
+ (\\\\|\u03BB)
484
+ |(<-|\u2190)
485
+ |(=)
486
+ |(-<|\u21A2)
487
+ |(-<<|\u291B)
488
+ )
489
+ ([(),;\\[\\]\`{}_"']|[^\\p{S}\\p{P}])
490
+ |(\\#|@)-\\}
491
+
492
+ | (?=\\}|;)
493
+ |^(?!
494
+ \\1\\s*\\S
495
+ | \\s*
496
+ (?: $
497
+ |\\{-[^@]
498
+ |--+
499
+ (?![\\p{S}\\p{P}&&[^(),;\\[\\]{}\`_"']]).*$)
500
+
501
+
502
+ )
503
+ )`,name:"meta.type-declaration.haskell",patterns:[{include:"#type_signature"}]},{begin:"(?<![\\p{S}\\p{P}&&[^\\(,;\\[`{_\"']])(::|\u2237)(?![\\p{S}\\p{P}&&[^\\(,;\\[`{_\"']])",beginCaptures:{1:{name:"keyword.operator.double-colon.haskell"}},end:`(?x)
504
+
505
+ (?=
506
+ \\#?\\)
507
+ |\\]
508
+ |,
509
+ |\\b(?<!')(in|then|else|of)\\b(?!')
510
+ |(\\#|@)-\\}
511
+ |
512
+ (?<![\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']])
513
+ (?:
514
+ (\\\\|\u03BB)
515
+ |(<-|\u2190)
516
+ |(=)
517
+ |(-<|\u21A2)
518
+ |(-<<|\u291B)
519
+ )
520
+ ([(),;\\[\\]\`{}_"']|[^\\p{S}\\p{P}])
521
+
522
+ |(?=\\}|;)
523
+ |$
524
+ )`,patterns:[{include:"#type_signature"}]}]},string_literal:{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.haskell"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.haskell"}},name:"string.quoted.double.haskell",patterns:[{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\\\\\\"'\\&])`,name:"constant.character.escape.haskell"},{match:"\\\\o[0-7]+|\\\\x[0-9A-Fa-f]+|\\\\[0-9]+",name:"constant.character.escape.octal.haskell"},{match:"\\\\\\^[A-Z@\\[\\]\\\\\\^_]",name:"constant.character.escape.control.haskell"},{begin:"\\\\\\s",beginCaptures:{0:{name:"constant.character.escape.begin.haskell"}},end:"\\\\",endCaptures:{0:{name:"constant.character.escape.end.haskell"}},patterns:[{match:"\\S+",name:"invalid.illegal.character-not-allowed-here.haskell"}]}]},type_application:{patterns:[{begin:`(?<=[\\s,;\\[\\]{}"])(@)(')?(\\()`,beginCaptures:{1:{name:"keyword.operator.prefix.at.haskell"},2:{name:"keyword.operator.promotion.haskell"},3:{name:"punctuation.paren.haskell"}},end:"\\)",endCaptures:{0:{name:"punctuation.paren.haskell"}},name:"meta.type-application.haskell",patterns:[{include:"#type_signature"}]},{begin:`(?<=[\\s,;\\[\\]{}"])(@)(')?(\\[)`,beginCaptures:{1:{name:"keyword.operator.prefix.at.haskell"},2:{name:"keyword.operator.promotion.haskell"},3:{name:"punctuation.bracket.haskell"}},end:"\\]",endCaptures:{0:{name:"punctuation.bracket.haskell"}},name:"meta.type-application.haskell",patterns:[{include:"#type_signature"}]},{begin:'(?<=[\\s,;\\[\\]{}"])(@)(?=\\")',beginCaptures:{1:{name:"keyword.operator.prefix.at.haskell"}},end:'(?<=\\")',name:"meta.type-application.haskell",patterns:[{include:"#string_literal"}]},{begin:`(?<=[\\s,;\\[\\]{}"])(@)(?=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])`,beginCaptures:{1:{name:"keyword.operator.prefix.at.haskell"}},end:"(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])",name:"meta.type-application.haskell",patterns:[{include:"#type_signature"}]}]},type_constructor:{patterns:[{captures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"entity.name.namespace.haskell"},3:{name:"storage.type.haskell"}},match:`(?x)
525
+
526
+ (')?
527
+
528
+ ((?:\\b[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*\\.)*)
529
+
530
+ (\\b[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)`},{captures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"punctuation.paren.haskell"},3:{name:"entity.name.namespace.haskell"},4:{name:"storage.type.operator.haskell"},5:{name:"punctuation.paren.haskell"}},match:`(?x)
531
+
532
+ (')?
533
+
534
+ (\\()\\s*
535
+
536
+ ((?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*\\.)*)
537
+
538
+ ([\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+)
539
+
540
+ \\s*(\\))`}]},type_operator:{patterns:[{captures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"entity.name.namespace.haskell"},3:{name:"storage.type.operator.infix.haskell"}},match:`(?x)
541
+
542
+ (?:(?<!')('))?
543
+
544
+ ((?:\\b[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*\\.)*)
545
+
546
+ (?![#@]?-})(\\#+|[\\p{S}\\p{P}&&[^(),;\\[\\]\`{}_"']]+(?<!\\#))
547
+ `},{captures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"punctuation.backtick.haskell"},3:{name:"entity.name.namespace.haskell"},4:{name:"storage.type.infix.haskell"},5:{name:"punctuation.backtick.haskell"}},match:`(?x)
548
+
549
+ (')?
550
+
551
+ (\\\`)
552
+
553
+ ((?:[\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*\\.)*)
554
+
555
+ ([\\p{Lu}\\p{Lt}][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*)
556
+
557
+ (\`)`}]},type_signature:{patterns:[{include:"#comment_like"},{captures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"punctuation.paren.haskell"},3:{name:"punctuation.paren.haskell"}},match:"(')?(\\()\\s*(\\))",name:"support.constant.unit.haskell"},{captures:{1:{name:"punctuation.paren.haskell"},2:{name:"keyword.operator.hash.haskell"},3:{name:"keyword.operator.hash.haskell"},4:{name:"punctuation.paren.haskell"}},match:"(\\()(#)\\s*(#)(\\))",name:"support.constant.unit.unboxed.haskell"},{captures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"punctuation.paren.haskell"},3:{name:"punctuation.paren.haskell"}},match:"(')?(\\()\\s*,[\\s,]*(\\))",name:"support.constant.tuple.haskell"},{captures:{1:{name:"punctuation.paren.haskell"},2:{name:"keyword.operator.hash.haskell"},3:{name:"keyword.operator.hash.haskell"},4:{name:"punctuation.paren.haskell"}},match:"(\\()(#)\\s*(#)(\\))",name:"support.constant.unit.unboxed.haskell"},{captures:{1:{name:"punctuation.paren.haskell"},2:{name:"keyword.operator.hash.haskell"},3:{name:"keyword.operator.hash.haskell"},4:{name:"punctuation.paren.haskell"}},match:"(\\()(#)\\s*,[\\s,]*(#)(\\))",name:"support.constant.tuple.unboxed.haskell"},{captures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"punctuation.bracket.haskell"},3:{name:"punctuation.bracket.haskell"}},match:"(')?(\\[)\\s*(\\])",name:"support.constant.empty-list.haskell"},{include:"#integer_literals"},{match:"(::|\u2237)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])",name:"keyword.operator.double-colon.haskell"},{include:"#forall"},{match:"=>|\u21D2",name:"keyword.operator.big-arrow.haskell"},{include:"#string_literal"},{match:"'[^']'",name:"invalid"},{include:"#type_application"},{include:"#reserved_symbol"},{include:"#type_operator"},{include:"#type_constructor"},{begin:"(\\()(#)",beginCaptures:{1:{name:"punctuation.paren.haskell"},2:{name:"keyword.operator.hash.haskell"}},end:"(#)(\\))",endCaptures:{1:{name:"keyword.operator.hash.haskell"},2:{name:"punctuation.paren.haskell"}},patterns:[{include:"#comma"},{include:"#type_signature"}]},{begin:"(')?(\\()",beginCaptures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"punctuation.paren.haskell"}},end:"(\\))",endCaptures:{1:{name:"punctuation.paren.haskell"}},patterns:[{include:"#comma"},{include:"#type_signature"}]},{begin:"(')?(\\[)",beginCaptures:{1:{name:"keyword.operator.promotion.haskell"},2:{name:"punctuation.bracket.haskell"}},end:"(\\])",endCaptures:{1:{name:"punctuation.bracket.haskell"}},patterns:[{include:"#comma"},{include:"#type_signature"}]},{include:"#type_variable"}]},type_variable:{match:"\\b(?<!')(?!(?:forall|deriving)\\b(?!'))[\\p{Ll}_][\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']*",name:"variable.other.generic-type.haskell"},where:{patterns:[{begin:`(?x)
558
+ (?<!')\\b(where)
559
+ \\s*(\\{)(?!-)`,beginCaptures:{1:{name:"keyword.other.where.haskell"},2:{name:"punctuation.brace.haskell"}},end:"(\\})",endCaptures:{1:{name:"punctuation.brace.haskell"}},patterns:[{include:"$self"},{match:";",name:"punctuation.semicolon.haskell"}]},{match:"\\b(?<!')(where)\\b(?!')",name:"keyword.other.where.haskell"}]}},scopeName:"source.haskell",aliases:["hs"]});var n=[e];export{n as default};