Skip to content

Commit 0b826f8

Browse files
ribru17clason
authored andcommitted
fix(v): reflect new comment structure in parser
1 parent d2a4ffc commit 0b826f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

queries/v/textobjects.scm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@
3535

3636
;; comment
3737
; leave space after comment marker if there is one
38-
((comment) @comment.inner @comment.outer
38+
((line_comment) @comment.inner @comment.outer
3939
(#offset! @comment.inner 0 3 0)
4040
(#lua-match? @comment.outer "// .*"))
4141

4242
; else remove everything accept comment marker
43-
((comment) @comment.inner @comment.outer
43+
((line_comment) @comment.inner @comment.outer
4444
(#offset! @comment.inner 0 2 0))
4545

46+
(block_comment) @comment.inner @comment.outer
47+
4648
;; conditional
4749
(if_expression
4850
block: (block . "{" . (_) @_start @_end (_)? @_end . "}"

0 commit comments

Comments
 (0)