Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/go/injections.scm')
| -rw-r--r-- | runtime/queries/go/injections.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/queries/go/injections.scm b/runtime/queries/go/injections.scm index 8dd5c3c8..c0ff7e1c 100644 --- a/runtime/queries/go/injections.scm +++ b/runtime/queries/go/injections.scm @@ -43,6 +43,7 @@ ; https://pkg.go.dev/fmt#Printf ; https://pkg.go.dev/fmt#Sprintf ; https://pkg.go.dev/fmt#Scanf +; https://pkg.go.dev/fmt#Errorf ((call_expression function: (selector_expression operand: (identifier) @_module @@ -50,7 +51,7 @@ arguments: (argument_list . (interpreted_string_literal) @injection.content)) (#eq? @_module "fmt") - (#any-of? @_func "Printf" "Sprintf" "Scanf") + (#any-of? @_func "Printf" "Sprintf" "Scanf" "Errorf") (#set! injection.language "go-format-string")) ; https://pkg.go.dev/fmt#Fprintf |