mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
fix(v): anchor comment highlight query
* fix(v): use `source_file` as parent node for comment highlight query * fix: correctly recognize doc comment
This commit is contained in:
parent
984604288d
commit
cf7baac35a
1 changed files with 1 additions and 0 deletions
|
|
@ -292,6 +292,7 @@
|
||||||
|
|
||||||
(_
|
(_
|
||||||
(line_comment)+ @comment.documentation
|
(line_comment)+ @comment.documentation
|
||||||
|
.
|
||||||
[
|
[
|
||||||
(function_declaration)
|
(function_declaration)
|
||||||
(type_declaration)
|
(type_declaration)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue