From 981ca7e353da6ea69eaafe4348fda5e800f9e1d8 Mon Sep 17 00:00:00 2001 From: zc he Date: Wed, 18 Dec 2024 08:50:36 +0800 Subject: fix(nu): perf issue of highlight.scm (#7475) --- queries/nu/highlights.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'queries/nu') diff --git a/queries/nu/highlights.scm b/queries/nu/highlights.scm index 3c663da24..ecf7280c9 100644 --- a/queries/nu/highlights.scm +++ b/queries/nu/highlights.scm @@ -355,8 +355,9 @@ key: (identifier) @property (comment) @comment @spell -((comment) @comment.documentation @spell +((comment)+ @comment.documentation @spell + . (decl_def)) -((parameter) +(parameter (comment) @comment.documentation @spell) -- cgit v1.2.3-70-g09d2