savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
155 stars 12 forks source link

Add a compilation error for invalid escapes in string literals. #353

Closed jemc closed 1 year ago

jemc commented 1 year ago

This helps to prevent bugs wherein the user believes they have correctly written an escape code.

Prior to this commit, invalid escape code were treated as if they were literal characters, including the backslash character.

See discussion in #348