lean4-htt/tests/lean/string_gaps_err_newline.lean
Kyle Miller bcbcf50442
feat: string gaps for continuing string literals across multiple lines (#2821)
Implements "gaps" in string literals. These are escape sequences of the
form `"\" newline whitespace+` that have the interpretation of an empty
string. For example,
```
  "this is \
     a string"
```
is equivalent to `"this is a string"`. These are modeled after string
continuations in
[Rust](https://doc.rust-lang.org/beta/reference/tokens.html#string-literals).

Implements RFC #2838
2023-12-07 08:17:00 +00:00

9 lines
130 B
Text

/-!
# String gaps error test
A string gap shouldn't have more than one trailing newline according to RFC #2838
-/
#eval "a\
b"