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 28, 2025
1 parent 455c7e8 commit d5d2c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JuliaSyntaxHighlighting.jl
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 d5d2c33

Please sign in to comment.