Skip to content

Commit 4411364

Browse files
committed
Use numchildren to check if node is empty
1 parent 70bb11a commit 4411364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JuliaSyntaxHighlighting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function _hl_annotations!(highlights::Vector{@NamedTuple{region::UnitRange{Int},
336336
:face, :julia_backslash_literal))
337337
end
338338
end
339-
isempty(children(node)) && return
339+
numchildren(node) == 0 && return
340340
lnode = node
341341
for child in children(node)
342342
cctx = HighlightContext(content, offset, lnode, pdepths)

0 commit comments

Comments
 (0)