Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to use JuliaSyntax.jl v1.0.0 #9

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Rename haschildren() to is_leaf()
inkydragon committed Jan 28, 2025
commit 0ad6176ab46d356ad30c1e2bdb4e350ff93c62b4
2 changes: 1 addition & 1 deletion src/JuliaSyntaxHighlighting.jl
Original file line number Diff line number Diff line change
@@ -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