forked from tree-sitter/tree-sitter-ql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce tags file * Ignore standard test file * Remove predicates in tags See tree-sitter/tree-sitter@ba70927 Co-authored-by: Max Brunsfeld <[email protected]>
- Loading branch information
1 parent
2420ec3
commit 8474d90
Showing
3 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
/yarn-error.log | ||
/binding.gyp | ||
/build | ||
test.ql | ||
.DS_Store | ||
package-lock.json |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(classlessPredicate | ||
name: (predicateName) @name) @definition.function | ||
|
||
(memberPredicate | ||
name: (predicateName) @name) @definition.method | ||
|
||
(aritylessPredicateExpr | ||
name: (literalId) @name) @reference.call | ||
|
||
(module | ||
name: (moduleName) @name) @definition.module | ||
|
||
(dataclass | ||
name: (className) @name) @definition.class | ||
|
||
(datatype | ||
name: (className) @name) @definition.class | ||
|
||
(datatypeBranch | ||
name: (className) @name) @definition.class | ||
|
||
(qualifiedRhs | ||
name: (predicateName) @name) @reference.call | ||
|
||
(typeExpr | ||
name: (className) @name) @reference.type |