feat: add Luadoc

This commit is contained in:
Amaan Qureshi 2023-03-19 08:09:12 -04:00
parent 581fc14cea
commit bc23db2515
5 changed files with 149 additions and 0 deletions

View file

@ -19,6 +19,10 @@
;; highlight string as query if starts with `;; query`
((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))
((comment) @luadoc
(#lua-match? @luadoc "[-][-][-][%s]*@")
(#offset! @luadoc 0 3 0 0))
; string.match("123", "%d+")
(function_call
(dot_index_expression