You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go.nvim/queries/go/injections.scm

17 lines
362 B
Scheme

(
(const_spec
name: (identifier) @_id
value: (expression_list (raw_string_literal) @sql))
(#contains? @_id "Query")
)
((composite_literal
type: (type_identifier) @_type
body: (literal_value
(keyed_element
(literal_element) @_key
(literal_element) @lua)))
(#eq? @_key "overrideScript")
(#eq? @_type "generatorTestCase"))