@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 +3 -2
- package/grammar/exp.js +3 -0
- package/grammar/inline.js +2 -0
- package/package.json +6 -7
- package/queries/highlights.scm +2 -0
- package/src/node-types.json +4 -0
- package/tree-sitter-haskell.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/WillBooster/tree-sitter-haskell/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-haskell/actions/workflows/test-rust.yml)
|
|
7
7
|
[](https://github.com/semantic-release/semantic-release)
|
|
8
|
-
[](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
|
|
9
9
|
[](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**:
|
|
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
|
+
"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.
|
|
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
|
|
54
|
-
"oxfmt": "0.
|
|
55
|
-
"oxlint": "1.
|
|
56
|
-
"oxlint-tsgolint": "7.0.
|
|
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
|
},
|
package/queries/highlights.scm
CHANGED
package/src/node-types.json
CHANGED
package/tree-sitter-haskell.wasm
CHANGED
|
Binary file
|