diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-01 01:10:11 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-01 01:10:11 +0100 |
commit | 51c2b797b34e1681bc5dbfcbebc1f45ca2294c0b (patch) | |
tree | a18a13d158a528f8cd1c115fffce905c308309e2 /kernel | |
parent | 4826dc6a8769c190ae74d2e2d22955484183d3bb (diff) | |
download | yosys-51c2b797b34e1681bc5dbfcbebc1f45ca2294c0b.tar.gz yosys-51c2b797b34e1681bc5dbfcbebc1f45ca2294c0b.tar.bz2 yosys-51c2b797b34e1681bc5dbfcbebc1f45ca2294c0b.zip |
Do not unescape identifiers starting with \$
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtlil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 1f45d1204..15fec2690 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -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; } |