aboutsummaryrefslogtreecommitdiffstats
path: root/queries/hack
diff options
context:
space:
mode:
Diffstat (limited to 'queries/hack')
-rw-r--r--queries/hack/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/hack/highlights.scm b/queries/hack/highlights.scm
index ffb365c87..a75b166ca 100644
--- a/queries/hack/highlights.scm
+++ b/queries/hack/highlights.scm
@@ -12,7 +12,10 @@
[
(comment)
(heredoc)
-] @comment
+] @comment @spell
+
+((comment) @comment.documentation
+ (#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
"function" @keyword.function