diff options
author | Markus F.X.J. Oberhumer <markus@oberhumer.com> | 2017-05-16 18:09:24 +0200 |
---|---|---|
committer | Markus F.X.J. Oberhumer <markus@oberhumer.com> | 2017-05-16 18:09:24 +0200 |
commit | 87888e8129a7162cab546451ee3473d9bc5bbd63 (patch) | |
tree | c33a7ed6723046e59593f901ae804bcbc6889dc3 /compiler/astalgo.nim | |
parent | 8dd5e94f5aa1950c7df3a7459422e5f69e294a40 (diff) | |
download | Nim-87888e8129a7162cab546451ee3473d9bc5bbd63.tar.gz |
Ascii character code 127 (DEL) is not printable.
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r-- | compiler/astalgo.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 77108eb7b..3afb2eaeb 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -215,7 +215,7 @@ proc rspaces(x: int): Rope = proc toYamlChar(c: char): string = case c - of '\0'..'\x1F', '\x80'..'\xFF': result = "\\u" & strutils.toHex(ord(c), 4) + of '\0'..'\x1F', '\x7F'..'\xFF': result = "\\u" & strutils.toHex(ord(c), 4) of '\'', '\"', '\\': result = '\\' & c else: result = $c |