-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!(queries): adjust queries for tree-sitter-haskell rewrite (#162)
- Loading branch information
Showing
9 changed files
with
258 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,43 @@ | ||
;; describe (unqualified) | ||
(_ (_ (exp_apply | ||
(exp_name (variable) @func_name) | ||
(exp_literal) @namespace.name | ||
) | ||
(#any-of? @func_name | ||
"describe" | ||
"xdescribe" | ||
"context" | ||
"xcontext" | ||
) | ||
)) @namespace.definition | ||
;; describe | ||
(_ (_ (expression/apply | ||
function: [ | ||
(variable) @_func_name | ||
(qualified id: (variable) @_func_name) | ||
] | ||
argument: (expression/literal) @namespace.name) | ||
(#any-of? @_func_name | ||
"describe" | ||
"xdescribe" | ||
"context" | ||
"xcontext" | ||
))) @namespace.definition | ||
|
||
;; describe (qualified) | ||
(_ (_ (exp_apply | ||
(exp_name (qualified_variable (variable) @func_name)) | ||
(exp_literal) @namespace.name | ||
) | ||
(#any-of? @func_name | ||
"describe" | ||
"xdescribe" | ||
"context" | ||
"xcontext" | ||
) | ||
)) @namespace.definition | ||
;; test | ||
((expression/apply | ||
function: [ | ||
(variable) @_func_name | ||
(qualified id: (variable) @_func_name) | ||
] | ||
argument: (expression/literal) @test.name) | ||
(#any-of? @_func_name | ||
"it" | ||
"xit" | ||
"prop" | ||
"xprop" | ||
"specify" | ||
"xspecify")) @test.definition | ||
|
||
;; test (unqualified) | ||
((exp_apply | ||
(exp_name (variable) @func_name) | ||
(exp_literal) @test.name | ||
) | ||
(#any-of? @func_name | ||
"it" | ||
"xit" | ||
"prop" | ||
"xprop" | ||
"specify" | ||
"xspecify" | ||
) | ||
) @test.definition | ||
|
||
;; test (qualified) | ||
((exp_apply | ||
(exp_name (qualified_variable (variable) @func_name)) | ||
(exp_literal) @test.name | ||
) | ||
(#any-of? @func_name | ||
"it" | ||
"xit" | ||
"prop" | ||
"xprop" | ||
"specify" | ||
"xspecify" | ||
) | ||
) @test.definition | ||
;; test | ||
(_ (expression/apply | ||
function: [ | ||
(variable) @_func_name | ||
(qualified id: (variable) @_func_name) | ||
] | ||
argument: (expression/literal) @test.name) | ||
(#any-of? @_func_name | ||
"it" | ||
"xit" | ||
"prop" | ||
"xprop" | ||
"specify" | ||
"xspecify")) @test.definition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,22 @@ | ||
;; NOTE: The sydtest runner inclides all queries for hspec, too. | ||
;; NOTE: The sydtest runner includes all queries for hspec, too. | ||
|
||
;; test (unqualified) | ||
((exp_apply | ||
(exp_name (variable) @func_name) | ||
(exp_literal) @test.name | ||
) | ||
(#any-of? @func_name | ||
"itWithOuter" | ||
"xitWithOuter" | ||
"itWithBoth" | ||
"xitWithBoth" | ||
"itWithAll" | ||
"xitWithAll" | ||
"specifyWithOuter" | ||
"xspecifyWithOuter" | ||
"specifyWithBoth" | ||
"xspecifyWithBoth" | ||
"specifyWithAll" | ||
"xspecifyWithAll" | ||
) | ||
) @test.definition | ||
|
||
;; test (qualified) | ||
((exp_apply | ||
(exp_name (qualified_variable (variable) @func_name)) | ||
(exp_literal) @test.name | ||
) | ||
(#any-of? @func_name | ||
"itWithOuter" | ||
"xitWithOuter" | ||
"itWithBoth" | ||
"xitWithBoth" | ||
"itWithAll" | ||
"xitWithAll" | ||
"specifyWithOuter" | ||
"xspecifyWithOuter" | ||
"specifyWithBoth" | ||
"xspecifyWithBoth" | ||
"specifyWithAll" | ||
"xspecifyWithAll" | ||
) | ||
) @test.definition | ||
((expression/apply | ||
function: [ | ||
(variable) @_func_name | ||
(qualified id: (variable) @_func_name) | ||
] | ||
argument: (expression/literal) @test.name) | ||
(#any-of? @_func_name | ||
"itWithOuter" | ||
"xitWithOuter" | ||
"itWithBoth" | ||
"xitWithBoth" | ||
"itWithAll" | ||
"xitWithAll" | ||
"specifyWithOuter" | ||
"xspecifyWithOuter" | ||
"specifyWithBoth" | ||
"xspecifyWithBoth" | ||
"specifyWithAll" | ||
"xspecifyWithAll")) @test.definition |
Oops, something went wrong.