mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 02:44:44 +00:00
name mangling: also special case the backslash character
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user