From 34388c5cc5a3fc92d4cb94d815671b483295ba54 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 17 Sep 2018 20:48:33 +0200 Subject: [PATCH] name mangling: also special case the backslash character --- compiler/ccgutils.nim | 1 + lib/packages/docutils/rst.nim | 1 + 2 files changed, 2 insertions(+) diff --git a/compiler/ccgutils.nim b/compiler/ccgutils.nim index 75cd3d35d8..6d2f33f2d3 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 d6527be64a..161509afe6 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"