Skip to content

Commit

Permalink
Multiline not being scaped bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmasoldi3r committed Sep 27, 2020
1 parent 909cf0b commit 0c8b6a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "charon",
"version": "0.13.0",
"version": "0.13.1",
"preview": true,
"description": "Charon language compiler",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ ${formatCodeSlice(this.code, key._location, 2)}`);
case 'SYMBOL':
return this.genSymbol(term);
default:
return term.value;
return term.value.replace(/\n/g, '\\n').replace(/\r/g, '\\r');
}
}
}
Expand Down

0 comments on commit 0c8b6a8

Please sign in to comment.