Skip to content

Commit c6afb72

Browse files
locnidetheHamsta
authored andcommitted
highlights(julia): add highlight for block comments
1 parent 31fe7ee commit c6afb72

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

queries/julia/highlights.scm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
(identifier)) @symbol
6868

6969
;; Parsing error! foo (::Type) gets parsed as two quote expressions
70-
(argument_list
70+
(argument_list
7171
(quote_expression
7272
(quote_expression
7373
(identifier) @type)))
@@ -123,7 +123,10 @@
123123

124124
(function_definition ["function" "end"] @keyword.function)
125125

126-
(comment) @comment
126+
[
127+
(comment)
128+
(block_comment)
129+
] @comment
127130

128131
[
129132
"const"

queries/julia/injections.scm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
; ((triple_string) @markdown
33
; (#offset! @markdown 0 3 0 -3))
44

5-
(comment) @comment
5+
[
6+
(comment)
7+
(block_comment)
8+
] @comment

0 commit comments

Comments
 (0)