@willbooster/tree-sitter-haskell 1.0.3 → 1.0.5

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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Test](https://github.com/WillBooster/tree-sitter-haskell/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-haskell/actions/workflows/test.yml)
6
6
  [![Test rust](https://github.com/WillBooster/tree-sitter-haskell/actions/workflows/test-rust.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-haskell/actions/workflows/test-rust.yml)
7
7
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
8
- [![wbfy](https://img.shields.io/badge/wbfy-20.36.11-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
+ [![wbfy](https://img.shields.io/badge/wbfy-20.41.8-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
9
9
  [![crates.io](https://img.shields.io/crates/v/willbooster-tree-sitter-haskell.svg)](https://crates.io/crates/willbooster-tree-sitter-haskell)
10
10
 
11
11
  Haskell grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
@@ -23,7 +23,8 @@ readme that the comments in `grammar.js` refer to.
23
23
 
24
24
  The fork's main differences from upstream 0.23.1 are:
25
25
 
26
- - **Comment scanning**: an ordinary line comment does not absorb a following marked Haddock comment.
26
+ - **Comment scanning**: empty block comments such as `{--}` terminate at their closing delimiter and preserve following code.
27
+ An ordinary line comment does not absorb a following marked Haddock comment.
27
28
  Unmarked continuation lines remain in their preceding Haddock block, including space or tab indentation and LF or CRLF newlines.
28
29
  First-column ordinary comments combine with LF line endings.
29
30
  CRLF and indented ordinary comments remain separate comment nodes.
package/grammar/exp.js CHANGED
@@ -25,6 +25,8 @@ module.exports = {
25
25
  $.label,
26
26
  ),
27
27
 
28
+ _exp_typed_hole: _ => '_',
29
+
28
30
  _exp_th_quoted_name: $ => choice(
29
31
  seq('\'', field('name', choice($._vars, $._cons))),
30
32
  prec('prefix', seq('\'\'', field('type', $.type))),
@@ -396,6 +398,7 @@ module.exports = {
396
398
  alias($._exp_case, $.case),
397
399
  alias($._exp_multi_way_if, $.multi_way_if),
398
400
  $._exp_name,
401
+ alias($._exp_typed_hole, $.typed_hole),
399
402
  $._universal,
400
403
  ),
401
404
 
package/grammar/inline.js CHANGED
@@ -44,6 +44,7 @@ module.exports = {
44
44
  // ------------------------------------------------
45
45
 
46
46
  $._exp_name,
47
+ $._exp_typed_hole,
47
48
  $._exp_greedy,
48
49
  $._let,
49
50
 
@@ -54,6 +55,7 @@ module.exports = {
54
55
  $._pat_apply_arg,
55
56
  $._pat_name,
56
57
  $._pat_texp,
58
+ $._pat_wildcard,
57
59
 
58
60
  // ------------------------------------------------
59
61
  // type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-haskell",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Haskell grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -47,17 +47,16 @@
47
47
  "@vitest/browser-playwright": "5.0.3",
48
48
  "@willbooster/oxfmt-config": "1.2.2",
49
49
  "@willbooster/oxlint-config": "1.4.8",
50
- "@willbooster/wb": "22.24.0",
50
+ "@willbooster/wb": "22.26.1",
51
51
  "@willbooster/web-tree-sitter": "2.0.2",
52
52
  "conventional-changelog-conventionalcommits": "10.4.0",
53
- "lefthook": "2.1.16",
54
- "oxfmt": "0.71.0",
55
- "oxlint": "1.86.0",
56
- "oxlint-tsgolint": "7.0.2003",
53
+ "lefthook": "2.2.1",
54
+ "oxfmt": "0.72.0",
55
+ "oxlint": "1.87.0",
56
+ "oxlint-tsgolint": "7.0.2004",
57
57
  "playwright": "1.63.0",
58
58
  "semantic-release": "25.0.9",
59
59
  "sort-package-json": "4.0.0",
60
- "typescript": "7.0.2",
61
60
  "vitest": "5.0.3",
62
61
  "wrangler": "4.147.0"
63
62
  },
@@ -6,6 +6,7 @@
6
6
 
7
7
  (pattern/wildcard) @variable
8
8
 
9
+
9
10
  (decl/function
10
11
  patterns: (patterns
11
12
  (_) @variable.parameter))
@@ -81,6 +82,7 @@
81
82
  (constructor_operator)
82
83
  (all_names)
83
84
  (wildcard)
85
+ (typed_hole)
84
86
  "."
85
87
  ".."
86
88
  "="
@@ -373,6 +373,10 @@
373
373
  "type": "tuple",
374
374
  "named": true
375
375
  },
376
+ {
377
+ "type": "typed_hole",
378
+ "named": true
379
+ },
376
380
  {
377
381
  "type": "typed_quote",
378
382
  "named": true
Binary file
package/tree-sitter.json CHANGED
@@ -15,7 +15,7 @@
15
15
  }
16
16
  ],
17
17
  "metadata": {
18
- "version": "1.0.3",
18
+ "version": "1.0.5",
19
19
  "license": "MIT",
20
20
  "description": "Haskell grammar for tree-sitter",
21
21
  "authors": [