aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/tablegen
diff options
context:
space:
mode:
authorDaniel S Poulin2022-03-06 05:24:24 +0000
committerGitHub2022-03-06 05:24:24 +0000
commit9bfb0caf1b4bafdac8eb964f38f7820740056fff (patch)
treea2e8120456a2b3d3acb43f881c9499e71eb37fac /runtime/queries/tablegen
parent7633c5acd30258fc9caca926bfaa264d07d508ec (diff)
Add comment textobject for surround selection and navigation (#1605)
Diffstat (limited to 'runtime/queries/tablegen')
-rw-r--r--runtime/queries/tablegen/textobjects.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/tablegen/textobjects.scm b/runtime/queries/tablegen/textobjects.scm
index 2cb80268..89645b34 100644
--- a/runtime/queries/tablegen/textobjects.scm
+++ b/runtime/queries/tablegen/textobjects.scm
@@ -5,3 +5,12 @@
body: (_) @class.inside) @class.around
(_ argument: _ @parameter.inside)
+
+[
+ (comment)
+ (multiline_comment)
+] @comment.inside
+
+(comment)+ @comment.around
+
+(multiline_comment) @comment.around