Skip to content

Commit

Permalink
Fix highlight of where command as builtin (#101)
Browse files Browse the repository at this point in the history
Apologies, in #100 I hadn't realized the where command is special-cased
in the parser and hence requires a separate capture to highlight
properly. This ensures the `where` command is also highlighted as
built-in.
  • Loading branch information
hedyhli committed Jun 13, 2024
1 parent 781c859 commit 0bb9a60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions queries/nu/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ key: (identifier) @property
head: (_) @function
)

"where" @function.builtin

(path
["." "?"] @punctuation.delimiter
) @variable.parameter
Expand Down

0 comments on commit 0bb9a60

Please sign in to comment.