mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
Add c injection for cgo comments
This commit is contained in:
parent
d79b169af5
commit
93de9cc7a0
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
(comment) @comment
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue