Skip to content

Commit

Permalink
Rename haschildren() to is_leaf()
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 28, 2025
1 parent 235a2b9 commit 6f83679
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 @@ -195,7 +195,7 @@ function _hl_annotations!(highlights::Vector{@NamedTuple{region::UnitRange{Int},
!JuliaSyntax.is_prec_assignment(node) &&
!JuliaSyntax.is_word_operator(node) &&
nkind != K"." && nkind != K"..." &&
(JuliaSyntax.is_trivia(node) || !JuliaSyntax.haschildren(node))
(JuliaSyntax.is_trivia(node) || JuliaSyntax.is_leaf(node))
face = if nkind == K"Identifier"
if pkind == K"curly"
:julia_type
Expand Down

0 comments on commit 6f83679

Please sign in to comment.