Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/ponylang/textobjects.scm')
-rw-r--r--runtime/queries/ponylang/textobjects.scm64
1 files changed, 0 insertions, 64 deletions
diff --git a/runtime/queries/ponylang/textobjects.scm b/runtime/queries/ponylang/textobjects.scm
deleted file mode 100644
index 0f24583d..00000000
--- a/runtime/queries/ponylang/textobjects.scm
+++ /dev/null
@@ -1,64 +0,0 @@
-;; Queries for helix to select textobjects: https://docs.helix-editor.com/usage.html#textobjects
-;; function.inside
-;; function.around
-;; class.inside
-;; class.around
-;; test.inside
-;; test.around
-;; parameter.inside
-;; comment.inside
-;; comment.around
-
-;; Queries for navigating using textobjects
-
-[
- (line_comment)
- (block_comment)
-] @comment.inside
-
-(line_comment)+ @comment.around
-(block_comment) @comment.around
-
-(entity members: (members)? @class.inside) @class.around
-(object members: (members)? @class.inside) @class.around
-
-(method
- body: (block)? @function.inside
-) @function.around
-(behavior
- body: (block)? @function.inside
-) @function.around
-(constructor
- body: (block)? @function.inside
-) @function.around
-(lambda
- body: (block)? @function.inside
-) @function.outside
-
-(params
- ((_) @parameter.inside . ","? @parameter.around) @parameter.around
-)
-(lambda
- params: ((_) @parameter.inside . ","? @parameter.around) @parameter.around
-)
-(typeargs
- ((_) @parameter.inside . ","? @parameter.around) @parameter.around
-)
-(typeparams
- ((_) @parameter.inside . ","? @parameter.around) @parameter.around
-)
-(arguments
- positional: (positional_args
- ((_) @parameter.inside . ","? @parameter.around)? @parameter.around)
- ; TODO: get named args right
- named: (named_args ((_) @parameter.inside . ","? @parameter.around)? @parameter.around)
-)
-
-(
- (entity
- provides: (type (nominal_type name: (identifier) @_provides))
- members: (members) @test.inside
- ) @test.outside
- (#eq? @_provides "UnitTest")
-)
-