Skip to content

Commit 8b4e32e

Browse files
authored
feat(lua): @comment.inner and @statement.outer (#728)
1 parent 88fce4e commit 8b4e32e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

queries/lua/textobjects.scm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
; class
2424
; comment
25-
(comment) @comment.outer
25+
(comment
26+
(comment_content) @comment.inner) @comment.outer
2627

2728
; conditional
2829
(if_statement
@@ -121,3 +122,6 @@
121122

122123
; scopename
123124
; statement
125+
(statement) @statement.outer
126+
127+
(return_statement) @statement.outer

0 commit comments

Comments
 (0)