From 93de9cc7a003080ba6fb0bd5e530bceb9d9f48bd Mon Sep 17 00:00:00 2001 From: kraftwerk28 Date: Sun, 10 Apr 2022 22:56:35 +0300 Subject: [PATCH] Add c injection for cgo comments --- queries/go/injections.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/queries/go/injections.scm b/queries/go/injections.scm index 4bb7d675d..2391c1a7a 100644 --- a/queries/go/injections.scm +++ b/queries/go/injections.scm @@ -1 +1,6 @@ +((comment) @c (#offset! @c 1 0 0 -2) + (import_declaration + (import_spec path: (interpreted_string_literal) @_import_path)) + (#eq? @_import_path "\"C\"")) + (comment) @comment