Skip to content

Commit

Permalink
Support block comments
Browse files Browse the repository at this point in the history
Modify comment handling in textobjects and highlights to support new TS-scala node type 'block_comment'
  • Loading branch information
jpaju committed Jan 21, 2024
1 parent 8f2f4c1 commit 75cc9cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/queries/scala/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@

"return" @keyword.control.return

(comment) @comment
[(comment) (block_comment)] @comment

;; `case` is a conditional keyword in case_block

Expand Down
4 changes: 2 additions & 2 deletions runtime/queries/scala/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@

; Comment queries

(comment) @comment.inside
(comment) @comment.around ; Does not match consecutive block comments
[(comment) (block_comment)] @comment.inside
[(comment) (block_comment)] @comment.around ; Does not match consecutive block comments


; Test queries
Expand Down

0 comments on commit 75cc9cc

Please sign in to comment.