mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html#formatted(java.lang.Object...)
28 lines
663 B
Scheme
28 lines
663 B
Scheme
([
|
|
(block_comment)
|
|
(line_comment)
|
|
] @injection.content
|
|
(#set! injection.language "comment"))
|
|
|
|
((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"))
|
|
|
|
((method_invocation
|
|
object:
|
|
(string_literal
|
|
(string_fragment) @injection.content)
|
|
name: (identifier) @_method)
|
|
(#eq? @_method "formatted")
|
|
(#set! injection.language "printf"))
|