diff options
| author | kraftwerk28 <kefirchik3@gmail.com> | 2022-04-10 22:56:35 +0300 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-04-11 10:52:34 +0200 |
| commit | 93de9cc7a003080ba6fb0bd5e530bceb9d9f48bd (patch) | |
| tree | b00d1e093e8a602867104f183076616ecee9c1ab | |
| parent | d79b169af574dbe53556a5ad7aa3443d9ec4f69a (diff) | |
Add c injection for cgo comments
| -rw-r--r-- | queries/go/injections.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/queries/go/injections.scm b/queries/go/injections.scm index 4bb7d675..2391c1a7 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 |
