Skip to content

Commit f1eeaa6

Browse files
committed
jimp: add support for double-quotes escaping
1 parent e81c62c commit f1eeaa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jimp.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ static bool jimp__get_token(Jimp *jimp)
220220
jimp->point++;
221221
jimp__append_to_string(jimp, '\\');
222222
break;
223+
case '"':
224+
jimp->point++;
225+
jimp__append_to_string(jimp, '"');
226+
break;
223227
default:
224228
jimp->token_start = jimp->point;
225229
jimp_diagf(jimp, "ERROR: invalid escape sequence\n");

0 commit comments

Comments
 (0)