mirror of
https://github.com/janet-lang/janet
synced 2025-09-21 20:24:11 +00:00
Fix hex escapes.
This commit is contained in:
@@ -191,7 +191,7 @@ static void popstate(DstParser *p, Dst val) {
|
|||||||
static int checkescape(uint8_t c) {
|
static int checkescape(uint8_t c) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
default: return -1;
|
default: return -1;
|
||||||
case 'h': return 1;
|
case 'x': return 1;
|
||||||
case 'n': return '\n';
|
case 'n': return '\n';
|
||||||
case 't': return '\t';
|
case 't': return '\t';
|
||||||
case 'r': return '\r';
|
case 'r': return '\r';
|
||||||
|
Reference in New Issue
Block a user