From 9bfb0caf1b4bafdac8eb964f38f7820740056fff Mon Sep 17 00:00:00 2001 From: Daniel S Poulin Date: Sun, 6 Mar 2022 00:24:24 -0500 Subject: Add comment textobject for surround selection and navigation (#1605) --- runtime/queries/tablegen/textobjects.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/queries/tablegen/textobjects.scm') 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 -- cgit v1.2.3-70-g09d2