feat(groovy): update highlights from upstream (#5076)

Groovydoc multiline comment support.
This commit is contained in:
Piotr Bugała 2023-07-07 08:58:44 +02:00 committed by GitHub
parent e1ab5391e5
commit 4cc1b342f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View file

@ -192,7 +192,7 @@
"revision": "5e66e961eee421786bdda8495ed1db045e06b5fe"
},
"groovy": {
"revision": "7ebfaf33a0f68f9283be17903ebecfdac05a1f3b"
"revision": "54c7da8b167261e76c79513c0364a01836093526"
},
"hack": {
"revision": "95e63e79e0d9f91000bd11d458997fabed1bb1e2"

View file

@ -43,7 +43,19 @@
(string) @string
(comment) @comment
[
(line_comment)
(block_comment)
] @comment @spell
((block_comment) @comment.documentation
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
((line_comment) @comment.documentation
(#lua-match? @comment.documentation "^///[^/]"))
((line_comment) @comment.documentation
(#lua-match? @comment.documentation "^///$"))
(operators) @operator
(leading_key) @operator