Skip to content

Commit

Permalink
fix: parameter comment doc highlight (#172)
Browse files Browse the repository at this point in the history
The doc comment string of a parameter is actually parsed as a child node

Forgot to check it in #171 .
  • Loading branch information
blindFS authored Dec 18, 2024
1 parent e36dde8 commit dc22e25
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions queries/nu/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit dc22e25

Please sign in to comment.