@@ -221,7 +221,7 @@ function _hl_annotations!(highlights::Vector{@NamedTuple{region::UnitRange{Int},
221221 else
222222 literal_typedecl = findfirst (
223223 c -> kind (c) == K " ::" && JuliaSyntax. is_trivia (c),
224- node. args )
224+ children ( node) )
225225 if ! isnothing (literal_typedecl)
226226 shift = sum (c -> Int (c. span), node[1 : literal_typedecl])
227227 region = first (region)+ shift: last (region)
@@ -261,7 +261,7 @@ function _hl_annotations!(highlights::Vector{@NamedTuple{region::UnitRange{Int},
261261 else
262262 literal_where = findfirst (
263263 c -> kind (c) == K " where" && JuliaSyntax. is_trivia (c),
264- node. args )
264+ children ( node) )
265265 if ! isnothing (literal_where)
266266 shift = sum (c -> Int (c. span), node[1 : literal_where])
267267 region = first (region)+ shift: last (region)
@@ -281,7 +281,7 @@ function _hl_annotations!(highlights::Vector{@NamedTuple{region::UnitRange{Int},
281281 :julia_broadcast
282282 elseif nkind in (K " call" , K " dotcall" ) && JuliaSyntax. is_prefix_call (node)
283283 argoffset, arg1 = 0 , nothing
284- for arg in node. args
284+ for arg in children ( node)
285285 argoffset += arg. span
286286 if ! JuliaSyntax. is_trivia (arg)
287287 arg1 = arg
@@ -336,9 +336,9 @@ function _hl_annotations!(highlights::Vector{@NamedTuple{region::UnitRange{Int},
336336 :face , :julia_backslash_literal ))
337337 end
338338 end
339- isempty (node. args ) && return
339+ isempty (children ( node) ) && return
340340 lnode = node
341- for child in node. args
341+ for child in children ( node)
342342 cctx = HighlightContext (content, offset, lnode, pdepths)
343343 _hl_annotations! (highlights, GreenLineage (child, lineage), cctx)
344344 lnode = child
0 commit comments