mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -04:00
fix(highlights): improve member/property distinction
This commit is contained in:
parent
2f38c36294
commit
fa38f4e6f9
34 changed files with 106 additions and 95 deletions
|
|
@ -19,9 +19,10 @@
|
|||
|
||||
(comment) @comment @spell
|
||||
|
||||
(anchor_name) @type
|
||||
|
||||
(alias_name) @type
|
||||
[
|
||||
(anchor_name)
|
||||
(alias_name)
|
||||
] @label
|
||||
|
||||
(tag) @type
|
||||
|
||||
|
|
@ -37,13 +38,13 @@
|
|||
[
|
||||
(double_quote_scalar)
|
||||
(single_quote_scalar)
|
||||
] @variable.member))
|
||||
] @property))
|
||||
|
||||
(block_mapping_pair
|
||||
key:
|
||||
(flow_node
|
||||
(plain_scalar
|
||||
(string_scalar) @variable.member)))
|
||||
(string_scalar) @property)))
|
||||
|
||||
(flow_mapping
|
||||
(_
|
||||
|
|
@ -52,14 +53,14 @@
|
|||
[
|
||||
(double_quote_scalar)
|
||||
(single_quote_scalar)
|
||||
] @variable.member)))
|
||||
] @property)))
|
||||
|
||||
(flow_mapping
|
||||
(_
|
||||
key:
|
||||
(flow_node
|
||||
(plain_scalar
|
||||
(string_scalar) @variable.member))))
|
||||
(string_scalar) @property))))
|
||||
|
||||
[
|
||||
","
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue