[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/cantor/src/backends/sage
From:       Alexander Rieder <alexanderrieder () gmail ! com>
Date:       2009-12-07 0:36:13
Message-ID: 1260146173.411006.24924.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1059581 by arieder:

disable syntax highlighting outside of the command cell, for sage backend


 M  +1 -1      sagehighlighter.cpp  


--- trunk/KDE/kdeedu/cantor/src/backends/sage/sagehighlighter.cpp #1059580:1059581
@@ -126,7 +126,7 @@
 
 void SageHighlighter::highlightBlock(const QString& text)
 {
-    if(text.isEmpty())
+    if(text.isEmpty()||currentBlockType()!=DefaultHighlighter::CommandBlock)
         return;
 
     //Do some backend independent highlighting (brackets etc.)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic