mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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]]"))
|
(#any-of? @_method "\"nvim_exec_lua\"" "'nvim_exec_lua'" "[[nvim_exec_lua]]"))
|
||||||
|
|
||||||
; highlight string as query if starts with `;; query`
|
; 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
|
((comment) @luadoc
|
||||||
(#lua-match? @luadoc "[-][-][-][%s]*@")
|
(#lua-match? @luadoc "[-][-][-][%s]*@")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue