injections(go): avoid running queries on all comments

Fixes #3187
Fixes #3263
This commit is contained in:
Stephan Seitz 2022-08-05 21:59:04 +02:00
parent 373b15ecee
commit f68a1b16ce

View file

@ -1,6 +1 @@
((comment) @c (#offset! @c 1 0 0 -2)
(import_declaration
(import_spec path: (interpreted_string_literal) @_import_path))
(#eq? @_import_path "\"C\""))
(comment) @comment