You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meta.parse in non-greedy mode uses the character stream position (via io.pos in jl-parse-one), but the parser may already have read the next token using peek-token. This can cause the returned position to be inconsistent. For example:
julia> Meta.parse("x,", 1, greedy=false)
(:x, 2)
julia> Meta.parse(":,", 1, greedy=false)
(:(:), 3) # should this be (:(:), 2) ?
I found this problem while chasing down a bug in Base.shell_parse caused by #32408.
The text was updated successfully, but these errors were encountered:
c42f
added
parser
Language parsing and surface syntax
bug
Indicates an unexpected problem or unintended behavior
labels
Aug 19, 2019
Meta.parse
in non-greedy mode uses the character stream position (viaio.pos
injl-parse-one
), but the parser may already have read the next token usingpeek-token
. This can cause the returned position to be inconsistent. For example:I found this problem while chasing down a bug in
Base.shell_parse
caused by #32408.The text was updated successfully, but these errors were encountered: