summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/ccgutils.nim1
-rw-r--r--lib/packages/docutils/rst.nim1
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/ccgutils.nim b/compiler/ccgutils.nim
index 75cd3d35d..6d2f33f2d 100644
--- a/compiler/ccgutils.nim
+++ b/compiler/ccgutils.nim
@@ -92,6 +92,7 @@ proc mangle*(name: string): string =
     of '+': special "plus"
     of '-': special "minus"
     of '/': special "slash"
+    of '\\': special "backslash"
     of '=': special "eq"
     of '<': special "lt"
     of '>': special "gt"
diff --git a/lib/packages/docutils/rst.nim b/lib/packages/docutils/rst.nim
index d6527be64..161509afe 100644
--- a/lib/packages/docutils/rst.nim
+++ b/lib/packages/docutils/rst.nim
@@ -399,6 +399,7 @@ proc rstnodeToRefnameAux(n: PRstNode, r: var string, b: var bool) =
       of '+': special "plus"
       of '-': special "minus"
       of '/': special "slash"
+      of '\\': special "backslash"
       of '=': special "eq"
       of '<': special "lt"
       of '>': special "gt"