Skip to content

Commit

Permalink
Replace K"true" and K"false" with K"Bool"
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 27, 2025
1 parent 8d618f8 commit d56aaf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function _hl_annotations!(highlights::Vector{@NamedTuple{region::UnitRange{Int},
(highlights[end] = (highlights[end][1], :face, :julia_char_delim))
:julia_char
elseif nkind == K"'" && kind(lnode) == K"Char"; :julia_char_delim
elseif nkind == K"true" || nkind == K"false"; :julia_bool
elseif nkind == K"Bool"; :julia_bool
elseif JuliaSyntax.is_number(nkind); :julia_number
elseif JuliaSyntax.is_prec_assignment(nkind) && JuliaSyntax.is_trivia(node);
if nkind == K"="
Expand Down

0 comments on commit d56aaf6

Please sign in to comment.