@willbooster/tree-sitter-haskell 1.0.4 → 1.0.6
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 +1 -1
- package/grammar/exp.js +3 -0
- package/grammar/inline.js +2 -0
- package/package.json +4 -5
- package/queries/highlights.scm +3 -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
|
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.6",
|
|
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
|
|
53
|
+
"lefthook": "2.2.1",
|
|
54
54
|
"oxfmt": "0.72.0",
|
|
55
55
|
"oxlint": "1.87.0",
|
|
56
|
-
"oxlint-tsgolint": "7.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
|
@@ -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))
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"then"
|
|
68
69
|
"else"
|
|
69
70
|
"case"
|
|
71
|
+
"cases"
|
|
70
72
|
"of"
|
|
71
73
|
] @keyword.conditional
|
|
72
74
|
|
|
@@ -81,6 +83,7 @@
|
|
|
81
83
|
(constructor_operator)
|
|
82
84
|
(all_names)
|
|
83
85
|
(wildcard)
|
|
86
|
+
(typed_hole)
|
|
84
87
|
"."
|
|
85
88
|
".."
|
|
86
89
|
"="
|
package/src/node-types.json
CHANGED
package/tree-sitter-haskell.wasm
CHANGED
|
Binary file
|