Skip to content

Commit a0ad642

Browse files
committed
Basic support for map & move anonymousFunction, functionCall, functionCallee, list, string to main file
1 parent 1ca43d7 commit a0ad642

File tree

6 files changed

+36
-19
lines changed

6 files changed

+36
-19
lines changed

queries/haskell.scm

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,43 @@
1-
;; import haskell/haskell.anonymousFunction.scm
21
;; import haskell/haskell.argumentOrParameter.scm
32
;; import haskell/haskell.argumentOrParameter.iteration.scm
43
;; import haskell/haskell.branch.scm
54
;; import haskell/haskell.branch.iteration.scm
6-
;; import haskell/haskell.functionCall.scm
7-
;; import haskell/haskell.functionCallee.scm
85
;; import haskell/haskell.functionName.scm
9-
;; import haskell/haskell.list.scm
106
;; import haskell/haskell.name.function.scm
117
;; import haskell/haskell.namedFunction.scm
12-
;; import haskell/haskell.string.scm
8+
9+
;; All short declarations are below.
10+
11+
;; anonymousFunction
12+
(exp_lambda) @anonymousFunction
13+
(exp_lambda_case) @anonymousFunction
14+
15+
;; functionCall
16+
(exp_apply) @functionCall
17+
(exp_type_application) @functionCall
18+
(pat_apply) @functionCall
19+
(type_apply) @functionCall
20+
21+
;; functionCallee
22+
(exp_apply . (_) @functionCallee)
23+
(exp_type_application . (_) @functionCallee)
24+
(pat_apply . (_) @functionCallee
25+
(type_apply . (_) @functionCallee)
26+
27+
;; list
28+
(exp_list) @list
29+
(exp_list_comprehension) @list
30+
(exp_tuple) @list
31+
(exp_unboxed_tuple) @list
32+
(pat_list) @list
33+
(pat_tuple) @list
34+
(pat_unboxed_tuple) @list
35+
(type_tuple) @list
36+
(type_unboxed_tuple) @list
37+
38+
;; map
39+
(exp_record) @map
40+
(pat_record) @map
41+
42+
;; string
43+
(string) @string

queries/haskell/haskell.anonymousFunction.scm

Lines changed: 0 additions & 3 deletions
This file was deleted.

queries/haskell/haskell.functionCall.scm

Lines changed: 0 additions & 2 deletions
This file was deleted.

queries/haskell/haskell.functionCallee.scm

Lines changed: 0 additions & 5 deletions
This file was deleted.

queries/haskell/haskell.list.scm

Lines changed: 0 additions & 2 deletions
This file was deleted.

queries/haskell/haskell.string.scm

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)