diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-10-06 21:25:05 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-10-13 15:31:30 -0400 |
commit | a0a0cd0caa2fc05e184afe6b932dc3e730a70351 (patch) | |
tree | 36c15770fc59cea675ae719c408b9df33717b6ae /prism | |
parent | 8e223366fc30720582f9348f7a1426fe1fa7a9db (diff) | |
download | ruby-a0a0cd0caa2fc05e184afe6b932dc3e730a70351.tar.gz |
[ruby/prism] Fix escaped 8 and escaped 9
https://github.com/ruby/prism/commit/c3a46e2de5
Diffstat (limited to 'prism')
-rw-r--r-- | prism/unescape.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/prism/unescape.c b/prism/unescape.c index 8634c41123..10dd0c685c 100644 --- a/prism/unescape.c +++ b/prism/unescape.c @@ -211,8 +211,7 @@ unescape( } return backslash + 2; // \nnn octal bit pattern, where nnn is 1-3 octal digits ([0-7]) - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': { + case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': { uint8_t value; const uint8_t *cursor = backslash + unescape_octal(backslash, &value, end); |