Skip to content

Expression parsed differently in v1.12.5 (again) #61056

@schillic

Description

@schillic

There was a parser change in v1.12.0 that has been fixed (#59911) and seems to have been finally backported to v1.12.5 (but still not yet to v1.13.0-beta2 by the way). However, things still do not work fully as expected with a larger example, which is given below (and used to work before v1.12).

# v1.11.9 (expected result):
julia> :(x' = A * x)
:(x' = A * x)

# v1.12.4:
julia> :(x' = A * x)
:(x' = begin
          #= REPL[1]:1 =#
          A * x
      end)

# v1.12.5:
julia> :(x' = A * x)
:(x' = (#= REPL[1]:1 =#)(*, A, x))

# v1.13.0-beta2 (only for the record; same as v1.12.4):
julia> :(x' = A * x)
:(x' = begin
          #= REPL[1]:1 =#
          A * x
      end)

As the OP in #59911, I would mainly like to know whether this is the new intended behavior or considered an unintended change that is going to be changed back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions