also keep underscore in id

This commit is contained in:
john30
2017-06-03 12:54:08 +02:00
parent 16fdf55d20
commit 26b89936a8
+1 -1
View File
@@ -962,7 +962,7 @@ result_t loadScanConfigFile(MessageMap* messages, symbol_t address, bool verbose
prefix.c_str(), getResultCode(result));
auto it = ident.begin();
while (it != ident.end()) {
if (!::isalnum(*it)) {
if (*it != '_' && !::isalnum(*it)) {
it = ident.erase(it);
} else {
*it = static_cast<char>(::tolower(*it));