go.nvim/after/queries/go/injections.scm
Manuel 62e3838974
fix: latest treesitter expects ;; extends (#245)
If this comment is not present it will overwrite all existing queries
with the content of the respective file.
Also move files from queries/go -> after/queries/go to ensure they are
loaded after e.g. nvim-treesitter queries.
2022-11-24 03:06:50 +11:00

18 lines
373 B
Scheme

;; extends
(
(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"))