diff options
Diffstat (limited to 'qtmips_gui')
-rw-r--r-- | qtmips_gui/fixmatheval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/fixmatheval.cpp b/qtmips_gui/fixmatheval.cpp index c06d892..8852938 100644 --- a/qtmips_gui/fixmatheval.cpp +++ b/qtmips_gui/fixmatheval.cpp @@ -199,7 +199,7 @@ bool FmeExpression::parse(const QString &expression, QString &error) { QChar ch = 0; if (i < expression.size()) ch = expression.at(i); - if(!ch.isLetterOrNumber()|| (i >= expression.size())) { + if(!(ch.isLetterOrNumber() || (ch == '_')) || (i >= expression.size())) { if (in_word) { FmeNode *new_node = nullptr; QString word = expression.mid(word_start, i - word_start); |