Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Parsing error inside vect expression with ~ #285

Closed
domluna opened this issue Jun 12, 2021 · 0 comments · Fixed by #288
Closed

Parsing error inside vect expression with ~ #285

domluna opened this issue Jun 12, 2021 · 0 comments · Fixed by #288
Labels

Comments

@domluna
Copy link

domluna commented Jun 12, 2021

On v3.2.2

[a~b] also results in the error

julia> s0 = "A[a~b]"
"A[a~b]"

julia> Meta.parse(s0)
:(A[a ~ b])

julia> CSTParser.parse(s0)
  1:6   call
  1:1    OP: ~
  2:4    ref
  2:2     A
  3:3     a
  5:6    errortoken
  5:5     b
  6:6     errortoken( CSTParser.Unknown)
  6:6      ]

ref domluna/JuliaFormatter.jl#427

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants