diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-19 08:09:12 -0400 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-20 04:20:49 -0400 |
| commit | bc23db25153efd480392ee479784d5bbac4b1913 (patch) | |
| tree | c47e66dd666781c6750d0b2f3c4be38c178954d5 /queries/lua | |
| parent | queries(lua): add more keywords related to variable/function builtins, debug,... (diff) | |
| download | nvim-treesitter-bc23db25153efd480392ee479784d5bbac4b1913.tar nvim-treesitter-bc23db25153efd480392ee479784d5bbac4b1913.tar.gz nvim-treesitter-bc23db25153efd480392ee479784d5bbac4b1913.tar.bz2 nvim-treesitter-bc23db25153efd480392ee479784d5bbac4b1913.tar.lz nvim-treesitter-bc23db25153efd480392ee479784d5bbac4b1913.tar.xz nvim-treesitter-bc23db25153efd480392ee479784d5bbac4b1913.tar.zst nvim-treesitter-bc23db25153efd480392ee479784d5bbac4b1913.zip | |
feat: add Luadoc
Diffstat (limited to 'queries/lua')
| -rw-r--r-- | queries/lua/injections.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/lua/injections.scm b/queries/lua/injections.scm index 14714573a..51957461e 100644 --- a/queries/lua/injections.scm +++ b/queries/lua/injections.scm @@ -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 |
