Unnamed repository; edit this file 'description' to name the repository.
rust: Highlight `/` and `!` within comments as comments
| -rw-r--r-- | runtime/queries/rust/highlights.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 89449202..32424ac2 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -30,6 +30,8 @@ (string_literal) (raw_string_literal) ] @string +(outer_doc_comment_marker "/" @comment) +(inner_doc_comment_marker "!" @comment) [ (line_comment) (block_comment) |