We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d05ad0b commit 46acbecCopy full SHA for 46acbec
1 file changed
extensions/rust/highlights.scm
@@ -8,7 +8,7 @@
8
9
; Assume all-caps names are constants
10
((identifier) @constant
11
- (#match? @constant "^[A-Z][A-Z\\d_]+$'"))
+ (#match? @constant "^[A-Z][A-Z\\d_]+$"))
12
13
; Assume uppercase names are enum constructors
14
((identifier) @constructor
@@ -70,8 +70,10 @@
70
(line_comment) @comment
71
(block_comment) @comment
72
73
-(line_comment (doc_comment)) @comment.documentation
74
-(block_comment (doc_comment)) @comment.documentation
+((line_comment) @comment.documentation
+ (#match? @comment.documentation "^///|^//!"))
75
+((block_comment) @comment.documentation
76
+ (#match? @comment.documentation "^/\\*\\*|^/\\*!"))
77
78
"(" @punctuation.bracket
79
")" @punctuation.bracket
0 commit comments