mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
injections(lua): tweak query to capture string content (#4707)
This commit is contained in:
parent
87faf372eb
commit
75f911d01f
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@
|
|||
(#any-of? @_method "\"nvim_exec_lua\"" "'nvim_exec_lua'" "[[nvim_exec_lua]]"))
|
||||
|
||||
; highlight string as query if starts with `;; query`
|
||||
((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))
|
||||
(string content: _ @query (#lua-match? @query "^%s*;+%s?query"))
|
||||
|
||||
((comment) @luadoc
|
||||
(#lua-match? @luadoc "[-][-][-][%s]*@")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue