@kong-ui-public/documentation 0.3.42 → 0.4.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 (155) hide show
  1. package/dist/Tableau10-GLA_9iAD-BMurskAd.js +9 -0
  2. package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
  3. package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
  4. package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
  5. package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
  6. package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
  7. package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
  8. package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
  9. package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
  10. package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
  11. package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
  12. package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
  13. package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
  14. package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
  15. package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
  16. package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
  17. package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
  18. package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
  19. package/dist/docker-B10O2enb-B10O2enb.js +7 -0
  20. package/dist/documentation.es.js +5 -3130
  21. package/dist/documentation.umd.js +10152 -50
  22. package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
  23. package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
  24. package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
  25. package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
  26. package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
  27. package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
  28. package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
  29. package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
  30. package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
  31. package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
  32. package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
  33. package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
  34. package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
  35. package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
  36. package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
  37. package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
  38. package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
  39. package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
  40. package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
  41. package/dist/index-B-5DuDrq.js +29996 -0
  42. package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
  43. package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
  44. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  45. package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
  46. package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
  47. package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
  48. package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
  49. package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
  50. package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
  51. package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
  52. package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
  53. package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
  54. package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
  55. package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
  56. package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
  57. package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
  58. package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
  59. package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
  60. package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
  61. package/dist/make-whncTQWE-whncTQWE.js +7 -0
  62. package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
  63. package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
  64. package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
  65. package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
  66. package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
  67. package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
  68. package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
  69. package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
  70. package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
  71. package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
  72. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  73. package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
  74. package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
  75. package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
  76. package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
  77. package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
  78. package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
  79. package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
  80. package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
  81. package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
  82. package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
  83. package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
  84. package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
  85. package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
  86. package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
  87. package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
  88. package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
  89. package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
  90. package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
  91. package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
  92. package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
  93. package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
  94. package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
  95. package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
  96. package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
  97. package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
  98. package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
  99. package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
  100. package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
  101. package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
  102. package/dist/style.css +1 -1
  103. package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
  104. package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
  105. package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
  106. package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
  107. package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
  108. package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
  109. package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
  110. package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
  111. package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
  112. package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
  113. package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
  114. package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
  115. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
  116. package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
  117. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
  118. package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
  119. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
  120. package/dist/types/composables/useI18n.d.ts +4 -0
  121. package/dist/types/composables/useI18n.d.ts.map +1 -1
  122. package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
  123. package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
  124. package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
  125. package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
  126. package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
  127. package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
  128. package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
  129. package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
  130. package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
  131. package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
  132. package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
  133. package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
  134. package/package.json +13 -13
  135. package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
  136. package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
  137. package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
  138. package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
  139. package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
  140. package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
  141. package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
  142. package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
  143. package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
  144. package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
  145. package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
  146. package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
  147. package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
  148. package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
  149. package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
  150. package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
  151. package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
  152. package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
  153. package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
  154. package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
  155. package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
@@ -0,0 +1,565 @@
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+(::|∷)(?![\\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
+ (?:=|--+|::|∷)
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
+ (=>|⇒)
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*(::|∷)(?![\\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: "(?=(::|∷)(?![\\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|∀)\\b(?!')", beginCaptures: { 1: { name: "keyword.other.forall.haskell" } }, end: "(\\.)|(->|→)", 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}&&[^\\),;\\]\`}_"']])(::|∷)(?![\\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
+ ((<-|←)|(=)|(-<|↢)|(-<<|⤛))
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
+ |(<-|←)
446
+ |(->|→)
447
+ |(-<|↢)
448
+ |(-<<|⤛)
449
+ |(>-|⤚)
450
+ |(>>-|⤜)
451
+ |(∀)
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*)(::|∷)(?![\\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
+ (\\\\|λ)
484
+ |(<-|←)
485
+ |(=)
486
+ |(-<|↢)
487
+ |(-<<|⤛)
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}&&[^\\(,;\\[`{_\"']])(::|∷)(?![\\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
+ (\\\\|λ)
515
+ |(<-|←)
516
+ |(=)
517
+ |(-<|↢)
518
+ |(-<<|⤛)
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: "(::|∷)(?![\\p{S}\\p{P}&&[^(),;\\[\\]`{}_\"']])", name: "keyword.operator.double-colon.haskell" }, { include: "#forall" }, { match: "=>|⇒", 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"] });
560
+ var a = [
561
+ e
562
+ ];
563
+ export {
564
+ a as default
565
+ };