Skip to content

Commit fc282a4

Browse files
committed
errortokens can't have trivia
1 parent 36c5005 commit fc282a4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/lists.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,11 @@ function parse_array_outer(ps::ParseState, trivia, isref)
164164
end
165165
end
166166

167-
168167
if length(trivia_bp) + 1 < length(args_list)
169-
return EXPR(:errortoken, args_list, trivia)
170-
else
171-
ret = _process_inner_array(args_list, trivia_bp)
168+
return EXPR(:hcat, EXPR[EXPR(:errortoken, args_list, nothing)], trivia)
172169
end
173170

171+
ret = _process_inner_array(args_list, trivia_bp)
174172
for t in trivia
175173
pushtotrivia!(ret, t)
176174
end

0 commit comments

Comments
 (0)