From 4862ab0aca21e92771b72e2d7e70424b250f0dd4 Mon Sep 17 00:00:00 2001 From: Baraa Homsi <49784526+bodby@users.noreply.github.com> Date: Wed, 22 Jan 2025 15:58:01 +0000 Subject: [PATCH] fix(nix): shorter sub-attribute function highlight query (#7579) --- queries/nix/highlights.scm | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/queries/nix/highlights.scm b/queries/nix/highlights.scm index 785d249b9..24e685a32 100644 --- a/queries/nix/highlights.scm +++ b/queries/nix/highlights.scm @@ -116,17 +116,9 @@ (attrpath (identifier) @variable.member)))) -(apply_expression - function: [ - (select_expression - attrpath: (attrpath - . - attr: (identifier) @function.call .)) - (select_expression - attrpath: (attrpath - (_) - attr: (identifier) @function.call .)) - ]) +function: (select_expression + attrpath: (attrpath + attr: (identifier) @function.call .)) ; builtin functions (with builtins prefix) (select_expression