Do not unescape identifiers starting with \$

This commit is contained in:
Clifford Wolf 2013-03-01 01:10:11 +01:00
parent 4826dc6a87
commit 51c2b797b3
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ namespace RTLIL
static std::string unescape_id(std::string str) __attribute__((unused));
static std::string unescape_id(std::string str) {
if (str.size() > 0 && str[0] == '\\')
if (str.size() > 1 && str[0] == '\\' && str[1] != '$')
return str.substr(1);
return str;
}