mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
feat: add Luadoc
This commit is contained in:
parent
581fc14cea
commit
bc23db2515
5 changed files with 149 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue