Mercurial > hg > octave-terminal
changeset 13342:642978643d3f
Imaginary numbers are rendered correctly.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Wed, 06 Apr 2011 15:04:19 +0200 |
parents | 6442fb2e1dfa |
children | 0c9cf8be675e |
files | gui//octaveterminal.cpp gui//terminalhighlighter.cpp |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui//octaveterminal.cpp +++ b/gui//octaveterminal.cpp @@ -50,6 +50,7 @@ } void OctaveTerminal::sendCommand(QString command) { + m_octaveOutput->append(">" + command); addRequest(command + "\n"); }
--- a/gui//terminalhighlighter.cpp +++ b/gui//terminalhighlighter.cpp @@ -37,7 +37,7 @@ numberFormat.setForeground(Qt::darkGreen); numberFormat.setFontWeight(QFont::Bold); - rule.pattern = QRegExp("\\b[0-9\\.]+\\b"); + rule.pattern = QRegExp("\\b[0-9\\.]+[i]?\\b"); rule.format = numberFormat; highlightingRules.append(rule);