diff options
Diffstat (limited to 'queries/d')
| -rw-r--r-- | queries/d/highlights.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/queries/d/highlights.scm b/queries/d/highlights.scm index 8bec1ca10..229a9bf55 100644 --- a/queries/d/highlights.scm +++ b/queries/d/highlights.scm @@ -4,7 +4,18 @@ (line_comment) (block_comment) (nesting_block_comment) -] @comment +] @comment @spell + +((line_comment) @comment.documentation + (#lua-match? @comment.documentation "^///[^/]")) +((line_comment) @comment.documentation + (#lua-match? @comment.documentation "^///$")) + +((block_comment) @comment.documentation + (#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$")) + +((nesting_block_comment) @comment.documentation + (#lua-match? @comment.documentation "^/[+][+][^+].*[+]/$")) [ "(" ")" |
