Skip to content

Incorrect precedence for indexing vs macros. #115

@oscardssmith

Description

@oscardssmith

On Julia master:

julia> dump(:(@a[1]))
Expr
  head: Symbol macrocall
  args: Array{Any}((3,))
    1: Symbol @a
    2: LineNumberNode
      line: Int64 1
      file: Symbol REPL[3]
    3: Expr
      head: Symbol vect
      args: Array{Any}((1,))
        1: Int64 1

with JuliaSyntax

julia> dump(:(@a[1]))
Expr
  head: Symbol macrocall
  args: Array{Any}((2,))
    1: Expr
      head: Symbol ref
      args: Array{Any}((2,))
        1: Symbol @a
        2: Int64 1
    2: LineNumberNode
      line: Int64 1
      file: Symbol REPL[26]

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