Skip to content
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

| mistreated in two-char strings #73

Closed
chunkybanana opened this issue Jun 2, 2021 · 8 comments
Closed

| mistreated in two-char strings #73

chunkybanana opened this issue Jun 2, 2021 · 8 comments

Comments

@chunkybanana
Copy link
Member

The | character is behaving strangely in two-character strings. It works fine in the global scope, but this errors:

1[‛| ]

Try it Online!

This also happens with other structures. What I think's happening is that the parser is singling out these even when in two-char strings. Single characters work fine though.

@chunkybanana
Copy link
Member Author

Adding to the TWO_CHARS constant in the parser might fix the problem, but I can't test this.

@chunkybanana
Copy link
Member Author

Oh wait it's in the ONE_CHARS right now. That's probably the problem.

@chunkybanana
Copy link
Member Author

Forget what I said, that's a slightly different deprecated character. If I figure out how to fix this (unlikely) I'm tidying up the mess.

@chunkybanana
Copy link
Member Author

Update: Partially fixed - attempting to close a for loop errors.

@chunkybanana
Copy link
Member Author

I officially give up on this.

@lyxal
Copy link
Member

lyxal commented Jun 2, 2021

Yes.

@lyxal
Copy link
Member

lyxal commented Jun 2, 2021

I can see why it's happening, give me 30 mins

@lyxal
Copy link
Member

lyxal commented Jun 2, 2021

Done

@lyxal lyxal closed this as completed Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants