mirror of https://github.com/helix-editor/helix
fix: Rust now correctly highlights doc comments as @comment.{block,line}.documentation instead of @comment
parent
fbe9785613
commit
ae3eac8aeb
|
@ -106,12 +106,28 @@
|
||||||
(string_literal)
|
(string_literal)
|
||||||
(raw_string_literal)
|
(raw_string_literal)
|
||||||
] @string
|
] @string
|
||||||
(outer_doc_comment_marker "/" @comment)
|
|
||||||
(inner_doc_comment_marker "!" @comment)
|
; -------
|
||||||
[
|
; Comments
|
||||||
(line_comment)
|
; -------
|
||||||
(block_comment)
|
|
||||||
] @comment
|
(line_comment) @comment.line
|
||||||
|
(block_comment) @comment.block
|
||||||
|
|
||||||
|
; Doc Comments
|
||||||
|
(line_comment
|
||||||
|
(outer_doc_comment_marker "/" @comment.line.documentation)
|
||||||
|
(doc_comment)) @comment.line.documentation
|
||||||
|
(line_comment
|
||||||
|
(inner_doc_comment_marker "!" @comment.line.documentation)
|
||||||
|
(doc_comment)) @comment.line.documentation
|
||||||
|
|
||||||
|
(block_comment
|
||||||
|
(outer_doc_comment_marker) @comment.block.documentation
|
||||||
|
(doc_comment) "*/" @comment.block.documentation) @comment.block.documentation
|
||||||
|
(block_comment
|
||||||
|
(inner_doc_comment_marker) @comment.block.documentation
|
||||||
|
(doc_comment) "*/" @comment.block.documentation) @comment.block.documentation
|
||||||
|
|
||||||
; ---
|
; ---
|
||||||
; Extraneous
|
; Extraneous
|
||||||
|
|
Loading…
Reference in New Issue