summaryrefslogtreecommitdiff
path: root/runtime/queries/gdscript/textobjects.scm
diff options
context:
space:
mode:
authorErasin2022-09-10 13:47:08 +0000
committerGitHub2022-09-10 13:47:08 +0000
commita15420ed1c3b46df0dade6ec6d05a0e4b26e06e0 (patch)
tree88a0574b7cf9cff426ed1579343ea3f5b2a7e6e9 /runtime/queries/gdscript/textobjects.scm
parent54e78dd24f2cfcf98a974d6f4d5846cc1cb5c9eb (diff)
Add textobject for gdscript (#3760)
Diffstat (limited to 'runtime/queries/gdscript/textobjects.scm')
-rw-r--r--runtime/queries/gdscript/textobjects.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/queries/gdscript/textobjects.scm b/runtime/queries/gdscript/textobjects.scm
new file mode 100644
index 00000000..08954468
--- /dev/null
+++ b/runtime/queries/gdscript/textobjects.scm
@@ -0,0 +1,17 @@
+
+(class_definition
+ (body) @class.inside) @class.around
+
+(function_definition
+ (body) @function.inside) @function.around
+
+(parameters
+ [
+ (identifier)
+ (typed_parameter)
+ (default_parameter)
+ (typed_default_parameter)
+ ] @parameter.inside @parameter.around)
+
+(comment) @comment.inside
+(comment)+ @comment.around