Skip to content

Commit

Permalink
fix: performance issue of comment doc queries (#171)
Browse files Browse the repository at this point in the history
Fixes #170 
Basically caused by inefficient highlight queries.
  • Loading branch information
blindFS authored Dec 17, 2024
1 parent f85d248 commit e36dde8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion queries/nu/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,12 @@ key: (identifier) @property
(shebang) @keyword.directive
(comment) @comment
(
(comment) @comment.documentation
(comment)+ @comment.documentation
.
(decl_def)
)
(
(parameter)
.
(comment) @comment.documentation
)

0 comments on commit e36dde8

Please sign in to comment.