-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistent .op parsing for unicode operators #9684
Comments
As noted on the mailing list this particular example is due to julia's space sensative parsing but operations like: julia> parse("5 .⊕ 10")
ERROR: ParseError("extra token \"10\" after end of expression")
in parse at string.jl:1257
in parse at string.jl:1267 could be parsed correctly. |
@jakebolewski, look at the example more closely. The problem is not that it is space-sensitive, the problem is that
|
I've added the missing unicode operators that were special cased by the parser in 1101086. I agree a more general solution would be nice. |
backport pending label for 1101086 - it's harder to lose track of as an issue label than a commit comment |
Closing this, as the immediate inconsistency is fixed. If people want more dot parsing of unicode operators (not to mention operators with combining characters like |
(cherry picked from commit 9322f20) Conflicts: test/runtests.jl
backported in 68d11e4, and tests in a09b2fa |
As discussed on the mailing list, there is an annoying inconsistency in the parser:
It would be nice to fix this by modifying the parser to treat
.
followed by any Unicode operator in the same way, so that we get "dot" versions of all the Unicode operators rather than having to manually add each operator twice. See also #6929 (comment)The text was updated successfully, but these errors were encountered: