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

Record field access using raw strings breaks parser #4539

Open
postsolar opened this issue Mar 8, 2024 · 1 comment
Open

Record field access using raw strings breaks parser #4539

postsolar opened this issue Mar 8, 2024 · 1 comment

Comments

@postsolar
Copy link

postsolar commented Mar 8, 2024

Description

The parser doesn't correctly handle situations where record access syntax is used with raw (triple-quote) strings.

To Reproduce

https://try.purescript.org/?code=LYewJgrgNgpgBAWQIYEsB2cDuALGAnGAKEKTjzgF4yA6AIgA9a6BPJ29gL3duJABdc5AFxC4ASTR9C-QZTgBGQkA

And, more severe:
https://try.purescript.org/?code=LYewJgrgNgpgBAWQIYEsB2cDuALGAnGAKEIDM4APOAXgoDoAiRwpQx%2B44VDGsEQuOLAAucJNTgBGfoJABzAMrYQmUYSA

Expected behavior

Additional context

PureScript version

0.15.13, 0.15.15

@natefaubion
Copy link
Contributor

Honestly, I would consider the first example more severe since it parses, but obviously ignores the type signature somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants