name mangling: also special case the backslash character

This commit is contained in:
Araq
2018-09-17 20:48:33 +02:00
parent a0914eff5d
commit 34388c5cc5
2 changed files with 2 additions and 0 deletions

View File

@@ -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"

View File

@@ -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"