From 6a2494fdffcb534ee74743e2857207543fa51563 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 3 Jul 2019 15:27:01 +0200 Subject: Allow underscore in labels. Signed-off-by: Pavel Pisa --- qtmips_gui/fixmatheval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_gui') 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); -- cgit v1.2.3