From e36dde8d98549da7c9ef9e8f8698a3e77d4015ac Mon Sep 17 00:00:00 2001 From: zc he Date: Tue, 17 Dec 2024 11:18:39 +0800 Subject: [PATCH] fix: performance issue of comment doc queries (#171) Fixes #170 Basically caused by inefficient highlight queries. --- queries/nu/highlights.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/queries/nu/highlights.scm b/queries/nu/highlights.scm index 28e4b97..dfd6f46 100644 --- a/queries/nu/highlights.scm +++ b/queries/nu/highlights.scm @@ -312,10 +312,12 @@ key: (identifier) @property (shebang) @keyword.directive (comment) @comment ( - (comment) @comment.documentation + (comment)+ @comment.documentation + . (decl_def) ) ( (parameter) + . (comment) @comment.documentation )