mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
D: fix duplicate @namespace capture
The previous query was highlighting everything inside that node, but we only want to highlight the identifiers. Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1930/files#r735105675
This commit is contained in:
parent
bd13991050
commit
0dd147e6b7
1 changed files with 2 additions and 4 deletions
|
|
@ -250,10 +250,8 @@
|
|||
|
||||
(fundamental_type) @type.builtin
|
||||
|
||||
[
|
||||
(module_name)
|
||||
(module_fully_qualified_name)
|
||||
] @namespace
|
||||
(module_fully_qualified_name (packages (package_name) @namespace))
|
||||
(module_name) @namespace
|
||||
|
||||
(at_attribute) @attribute
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue