mirror of https://github.com/YosysHQ/yosys.git
pass jny: fixed the backslash escape for strings
This commit is contained in:
parent
cae5ea8337
commit
2e792857e9
|
@ -55,8 +55,7 @@ struct JnyWriter
|
||||||
for(; itr != str.end(); ++itr) {
|
for(; itr != str.end(); ++itr) {
|
||||||
switch (*itr) {
|
switch (*itr) {
|
||||||
case '\\': {
|
case '\\': {
|
||||||
newstr += *itr++;
|
newstr += "\\\\";
|
||||||
newstr += *itr;
|
|
||||||
break;
|
break;
|
||||||
} case '\n': {
|
} case '\n': {
|
||||||
newstr += "\\n";
|
newstr += "\\n";
|
||||||
|
|
Loading…
Reference in New Issue