gluon-lang / gluon

A static, type inferred and embeddable language written in Rust.

Home Page:https://gluon-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raw string literal causes parsing error

crides opened this issue · comments

This causes a parsing error in Gluon: r"asdf":

error: unterminated string literal
  ┌─ test:1:1
  │
1 │ ╭ r"asdf"
2 │ │
  │ ╰^

In comparison, this parses:

r"asdf""

The result of which is "asdf\"".

This is tested on v0.17.1, on commit e150b9f8, so in terms of parsing is master.