diff options
author | Araq <rumpf_a@web.de> | 2018-09-17 20:48:33 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-17 20:48:55 +0200 |
commit | 34388c5cc5a3fc92d4cb94d815671b483295ba54 (patch) | |
tree | 29aa26991784047dc10d4b4343cd19a3375fb505 | |
parent | a0914eff5ddf58a0931ab2584729d19565ef2fff (diff) | |
download | Nim-34388c5cc5a3fc92d4cb94d815671b483295ba54.tar.gz |
name mangling: also special case the backslash character
-rw-r--r-- | compiler/ccgutils.nim | 1 | ||||
-rw-r--r-- | lib/packages/docutils/rst.nim | 1 |
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" |