Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
feat(nvim): more treesitter go injections
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Feb 17, 2023
1 parent 0242464 commit 809fa38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvim/config/after/queries/go/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
; inject sql in single line strings
(call_expression
(selector_expression
field: (field_identifier) @_field (#any-of? @_field "GetContext" "ExecContext" "SelectContext"))
field: (field_identifier) @_field (#any-of? @_field "GetContext" "ExecContext" "SelectContext" "In"))
(argument_list
(interpreted_string_literal) @sql)
(#offset! @sql 0 1 0 -1)) ; wtf does this do?

; inject sql in multi line strings
(call_expression
(selector_expression
field: (field_identifier) @_field (#any-of? @_field "GetContext" "ExecContext" "SelectContext"))
field: (field_identifier) @_field (#any-of? @_field "GetContext" "ExecContext" "SelectContext" "In"))
(argument_list
(raw_string_literal) @sql)
(#offset! @sql 0 1 0 -1)) ; wtf does this do?

0 comments on commit 809fa38

Please sign in to comment.