Skip to content

.<: and .>: should not be parsed as unary operators #38

@c42f

Description

@c42f

From #31 (comment)

  • Unary versions .<: and .>: parse but they shouldn't.
  • Also, them not being translated to the dotted versions in the Expr conversion is weird.
julia> JuliaSyntax.parseall(Expr, ".<: b", rule=:statement)
:(<:b)

julia> Meta.parse(".<: b")
ERROR: Base.Meta.ParseError("\".<:\" is not a unary operator")
Stacktrace:
...

julia> JuliaSyntax.parseall(Expr, ".>: b", rule=:statement)
:(>:b)

julia> Meta.parse(".>: b")
ERROR: Base.Meta.ParseError("\".>:\" is not a unary operator")
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions