Skip to content

Commit 448761b

Browse files
committed
Fix array error handling?
1 parent 8c494eb commit 448761b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/components/lists.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,7 @@ function _process_inner_array(args_list, trivia_bp)
217217
i = findnext(==(bp), trivia_bp, i0)
218218
i === nothing && (i = length(args_list))
219219
if !checkbounds(Bool, args_list, i0:i) || !checkbounds(Bool, trivia_bp, i0:(i-1))
220-
err = EXPR(:errortoken, EXPR[], EXPR[])
221-
222-
for a in args_list[i0:end]
223-
push!(err, a)
224-
end
225-
push!(ret, err)
226-
break
220+
return EXPR(:errortoken, args_list, EXPR[])
227221
end
228222
inner_args = args_list[i0:i]
229223
inner_trivia = trivia_bp[i0:(i-1)]

0 commit comments

Comments
 (0)