Skip to content

Record field access using raw strings breaks parser #4539

Open

Description

@postsolar

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

Activity

  1. natefaubion commented on Mar 8, 2024

    @natefaubion
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions