Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/godot-resource/textobjects.scm')
-rw-r--r--runtime/queries/godot-resource/textobjects.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/queries/godot-resource/textobjects.scm b/runtime/queries/godot-resource/textobjects.scm
new file mode 100644
index 00000000..aeb4e3eb
--- /dev/null
+++ b/runtime/queries/godot-resource/textobjects.scm
@@ -0,0 +1,23 @@
+(section
+ (identifier)
+ (_)
+ (property) @class.inside
+) @class.around
+
+(attribute
+ (identifier)
+ (_) @parameter.inside) @parameter.around
+
+(property
+ (path)
+ (_) @entry.inside) @entry.around
+
+(pair
+ (_) @entry.inside) @entry.around
+
+(array
+ (_) @entry.around)
+
+(comment) @comment.inside
+
+(comment)+ @comment.around