Skip to content

Commit e0b4206

Browse files
committed
Added block comments to the comment highlighting query
1 parent 5e1fcd9 commit e0b4206

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

queries/scala/highlights.scm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
"return" @keyword.return
237237

238238
(comment) @comment @spell
239+
(block_comment) @comment @spell
239240

240241
;; `case` is a conditional keyword in case_block
241242

test/highlight/comments.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22
// ^keyword
33
// ^parameter
44
// ^string
5+
6+
/*
7+
* Beep boop
8+
*/
9+
// <- comment
10+
11+
// Single line comment
12+
// <- comment

0 commit comments

Comments
 (0)