Skip to content

Commit

Permalink
Maybe improved highlight queries for doc comment contracts.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuttner committed Jan 18, 2025
1 parent 58dd318 commit 8b24f3e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,13 @@
(block_comment)
] @comment @spell

(doc_comment_text) @comment.documentation @spell
(doc_comment_contract_text) @comment.documentation @spell

(doc_comment (doc_comment_contract (at_ident) @keyword (#any-of? @keyword
"@require"
"@ensure")))
(doc_comment) @comment.documentation
(doc_comment_text) @spell
(doc_comment_contract name: (_) @markup.strong
(#any-of? @markup.strong
"@param"
"@return"
"@deprecated"
"@require"
"@ensure"
"@pure"))

0 comments on commit 8b24f3e

Please sign in to comment.