We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a4ffc commit 0b826f8Copy full SHA for 0b826f8
queries/v/textobjects.scm
@@ -35,14 +35,16 @@
35
36
;; comment
37
; leave space after comment marker if there is one
38
-((comment) @comment.inner @comment.outer
+((line_comment) @comment.inner @comment.outer
39
(#offset! @comment.inner 0 3 0)
40
(#lua-match? @comment.outer "// .*"))
41
42
; else remove everything accept comment marker
43
44
(#offset! @comment.inner 0 2 0))
45
46
+(block_comment) @comment.inner @comment.outer
47
+
48
;; conditional
49
(if_expression
50
block: (block . "{" . (_) @_start @_end (_)? @_end . "}"
0 commit comments