aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua
diff options
context:
space:
mode:
Diffstat (limited to 'queries/lua')
-rw-r--r--queries/lua/highlights.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index 1c17d823b..fa2eff68d 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -187,6 +187,12 @@
(comment) @comment @spell
+((comment) @comment.documentation
+ (#lua-match? @comment.documentation "^[-][-][-]"))
+
+((comment) @comment.documentation
+ (#lua-match? @comment.documentation "^[-][-](%s?)@"))
+
(hash_bang_line) @preproc
(number) @number