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:
Gregory Anders 2021-07-01 14:43:09 -06:00 committed by GitHub
parent 2e073285dc
commit dbbedfec88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
(escape_sequence) @string.escape
(capture) @type
(anonymous_node) @string
(predicate) @function
(predicate name: (identifier) @function)
(named_node
name: (identifier) @variable
(field_definition