summary refs log tree commit diff stats
path: root/compiler/astalgo.nim
diff options
context:
space:
mode:
authorMarkus F.X.J. Oberhumer <markus@oberhumer.com>2017-05-16 18:09:24 +0200
committerMarkus F.X.J. Oberhumer <markus@oberhumer.com>2017-05-16 18:09:24 +0200
commit87888e8129a7162cab546451ee3473d9bc5bbd63 (patch)
treec33a7ed6723046e59593f901ae804bcbc6889dc3 /compiler/astalgo.nim
parent8dd5e94f5aa1950c7df3a7459422e5f69e294a40 (diff)
downloadNim-87888e8129a7162cab546451ee3473d9bc5bbd63.tar.gz
Ascii character code 127 (DEL) is not printable.
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r--compiler/astalgo.nim2
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