mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 14:30:05 -04:00
feat(go): printf injections
https://pkg.go.dev/fmt#pkg-index https://pkg.go.dev/fmt#Fscanf https://pkg.go.dev/fmt#Appendf https://pkg.go.dev/fmt#Sscanf https://pkg.go.dev/testing#T.Skipf https://pkg.go.dev/testing#F.Logf The problem covered here: https://github.com/nvim-treesitter/nvim-treesitter/issues/2917
This commit is contained in:
parent
7e4e92432d
commit
f2119df35c
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
|||
(argument_list
|
||||
.
|
||||
(interpreted_string_literal) @injection.content))
|
||||
(#any-of? @_method "Printf" "Sprintf" "Fatalf" "Scanf")
|
||||
(#any-of? @_method "Printf" "Sprintf" "Fatalf" "Scanf" "Errorf" "Skipf" "Logf")
|
||||
(#set! injection.language "printf"))
|
||||
|
||||
((call_expression
|
||||
|
|
@ -37,5 +37,5 @@
|
|||
(_)
|
||||
.
|
||||
(interpreted_string_literal) @injection.content))
|
||||
(#eq? @_method "Fprintf")
|
||||
(#eq? @_method "Fprintf" "Fscanf" "Appendf" "Sscanf")
|
||||
(#set! injection.language "printf"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue