From 17d68ac13c902f55253b7facb47df4c0ae532575 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 16 Feb 2024 11:47:10 +0100 Subject: feat(rust): add doc comments --- queries/rust/highlights.scm | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index c651f34fa..f5fff58d0 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -220,20 +220,11 @@ (block_comment) ] @comment @spell -((line_comment) @comment.documentation - (#lua-match? @comment.documentation "^///[^/]")) +(line_comment + (doc_comment)) @comment.documentation -((line_comment) @comment.documentation - (#lua-match? @comment.documentation "^///$")) - -((line_comment) @comment.documentation - (#lua-match? @comment.documentation "^//!")) - -((block_comment) @comment.documentation - (#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$")) - -((block_comment) @comment.documentation - (#lua-match? @comment.documentation "^/[*][!]")) +(block_comment + (doc_comment)) @comment.documentation (boolean_literal) @boolean -- cgit v1.2.3-70-g09d2