Skip to content

Commit b856d3e

Browse files
committed
I don't know what's happening.
1 parent 858e285 commit b856d3e

File tree

6 files changed

+58
-2
lines changed

6 files changed

+58
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
;; case expressions
2+
(exp_case
3+
(alts
4+
(alt
5+
.
6+
(_) @argumentOrParameter
7+
)
8+
)
9+
.
10+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
;; guard equations
2+
(guard_equation
3+
[
4+
;; ... with a SINGLE guard
5+
(guards
6+
.
7+
(guard) @condition @condition.domain.start
8+
.
9+
)
10+
;; ... with MULTIPLE guards
11+
(guards
12+
.
13+
(guard) @condition.start @condition.domain.start
14+
(guard) @condition.end @condition.domain.start
15+
.
16+
)
17+
]
18+
.
19+
(_) @condition.domain.end
20+
)
21+
22+
;; case expressions
23+
(exp_case
24+
(_) @condition
25+
.
26+
)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
;; function definitions
2+
(function
3+
rhs: (_) @value
4+
)
5+
6+
;; guard equations
7+
(guard_equation
8+
(guards)
9+
.
10+
(_) @value
11+
)
12+
13+
;; case expressions
14+
(exp_case
15+
(alts
16+
(alt
17+
(_) @value
18+
.
19+
)
20+
)
21+
.
22+
)

queries/haskell.scm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
;; import haskell.branch.scm
2-
;; import haskell.branch.iteration.scm
31
;; import haskell.functionName.scm
42
;; import haskell.name.function.scm
53
;; import haskell.namedFunction.scm

0 commit comments

Comments
 (0)