mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
query: Only highlight predicate name (#1461)
Only highlight the name of the predicate using TSFunction rather than the entire predicate block.
This commit is contained in:
parent
2e073285dc
commit
dbbedfec88
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
(capture) @type
|
(capture) @type
|
||||||
(anonymous_node) @string
|
(anonymous_node) @string
|
||||||
(predicate) @function
|
(predicate name: (identifier) @function)
|
||||||
(named_node
|
(named_node
|
||||||
name: (identifier) @variable
|
name: (identifier) @variable
|
||||||
(field_definition
|
(field_definition
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue