Decision Log

Backslash \ for string continuation

Context:  Strings are frequently-used in ZGL.  Being able to break a string across multiple lines while suppressing newlines helps ergonomics.

Decision:  The ZGL grammar will allow \ as a string continuation character for strings.  It works the same way as it does in Rust:

when an unescaped U+005C character (\) occurs immediately before the line-break, then the U+005C character, the line-break, and all whitespace at the beginning of the next line are ignored.

Consequences:  This requires simple changes to the parser and syntax highlighters.

Status:  Accepted on 2021-02-25.  Updated on 2021-03-08.

Created: 2021-02-25   ·   Updated: 2021-02-25