Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/scala/textobjects.scm')
-rw-r--r--runtime/queries/scala/textobjects.scm14
1 files changed, 4 insertions, 10 deletions
diff --git a/runtime/queries/scala/textobjects.scm b/runtime/queries/scala/textobjects.scm
index 21286b3e..fe0b8c25 100644
--- a/runtime/queries/scala/textobjects.scm
+++ b/runtime/queries/scala/textobjects.scm
@@ -1,15 +1,12 @@
; Function queries
(function_definition
- body: (_) @function.inside) @function.around ; Does not include end marker
+ body: (_) @function.inside) @function.around
+; Does not match block lambdas or Scala 3 braceless lambdas
(lambda_expression
(_) @function.inside) @function.around
-; Scala 3 braceless lambda
-(colon_argument
- (_) @function.inside) @function.around
-
; Class queries
@@ -35,9 +32,6 @@
(parameters
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
-(class_parameters
- ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
-
(parameter_types
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
@@ -57,8 +51,8 @@
; Comment queries
-[(comment) (block_comment)] @comment.inside
-[(comment) (block_comment)] @comment.around ; Does not match consecutive block comments
+(comment) @comment.inside
+(comment) @comment.around ; Does not match consecutive block comments
; Test queries