From dc22e2577eb09d1d0de50802c59da2eca98a0e7b Mon Sep 17 00:00:00 2001 From: zc he Date: Wed, 18 Dec 2024 08:54:35 +0800 Subject: [PATCH] fix: parameter comment doc highlight (#172) The doc comment string of a parameter is actually parsed as a child node Forgot to check it in #171 . --- queries/nu/highlights.scm | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/queries/nu/highlights.scm b/queries/nu/highlights.scm index dfd6f46..5fbc61b 100644 --- a/queries/nu/highlights.scm +++ b/queries/nu/highlights.scm @@ -311,13 +311,9 @@ key: (identifier) @property (shebang) @keyword.directive (comment) @comment -( - (comment)+ @comment.documentation - . - (decl_def) -) -( - (parameter) - . - (comment) @comment.documentation -) +((comment)+ @comment.documentation @spell + . + (decl_def)) + +(parameter + (comment) @comment.documentation @spell)