summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/msgs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index 0d30651bb..acf171cbe 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -532,7 +532,7 @@ var
 proc toCChar*(c: char): string =
   case c
   of '\0'..'\x1F', '\x80'..'\xFF': result = '\\' & toOctal(c)
-  of '\'', '\"', '\\': result = '\\' & c
+  of '\'', '\"', '\\', '?': result = '\\' & c
   else: result = $(c)
 
 proc makeCString*(s: string): Rope =