We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77ddb4a commit dbe8e3bCopy full SHA for dbe8e3b
src/lpython/parser/tokenizer.re
@@ -825,7 +825,7 @@ std::string pickle_token(int token, const YYSTYPE &yystype)
825
} else if (token == yytokentype::TK_IMAG_NUM) {
826
t += " " + std::to_string(yystype.f) + "j";
827
} else if (token == yytokentype::TK_STRING) {
828
- t = t + " " + "\"" + yystype.string.str() + "\"";
+ t = t + " " + "\"" + str_escape_c(yystype.string.str()) + "\"";
829
} else if (token == yytokentype::TK_TYPE_COMMENT) {
830
t = t + " " + "\"" + yystype.string.str() + "\"";
831
} else if (token == yytokentype::TK_TYPE_IGNORE) {
0 commit comments