mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
feat(injections): add printf format strings
This commit is contained in:
parent
5b90ea2aba
commit
17fae3f4a3
13 changed files with 181 additions and 0 deletions
|
|
@ -7,3 +7,10 @@
|
|||
((block_comment) @injection.content
|
||||
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
|
||||
(#set! injection.language "doxygen"))
|
||||
|
||||
((method_invocation
|
||||
name: (identifier) @_method
|
||||
arguments: (argument_list
|
||||
. (string_literal . (_) @injection.content)))
|
||||
(#any-of? @_method "format" "printf")
|
||||
(#set! injection.language "printf"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue