You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While #637 disallowed most non-printable characters, the parser and the function validate_string_literal allows a few whitespace characters.
Since there seems to be no use of allowing non-printable characters (< 32 or > 126), we can remove them (it is however a backwards incompatible change as we, today, allow few whitepspace characters to be escaped).
While #637 disallowed most non-printable characters, the parser and the function
validate_string_literal
allows a few whitespace characters.Since there seems to be no use of allowing non-printable characters (< 32 or > 126), we can remove them (it is however a backwards incompatible change as we, today, allow few whitepspace characters to be escaped).
This involves the following changes.
We need to ignore all escapes except for
\\
and\"
(as they are both needed to allow"
, a printable character, in strings).validate_string_literal
: remove exceptions made there for whitespaces.tests/typecheck/good/str-nonprint-char-1.scilexp
The text was updated successfully, but these errors were encountered: