summaryrefslogtreecommitdiffstats
path: root/src/editor.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-27 22:37:19 -0600
committerTimothy Pearson <[email protected]>2011-11-27 22:37:19 -0600
commita805660cba37d573bd07615cbdb36d3bba11ecc1 (patch)
treedf8f6692bc9d8e82b2a6de9c8035ab71878f27a1 /src/editor.cpp
parentcb997f2b156551f638e497638f91d6e4eb17877a (diff)
downloadabakus-a805660cba37d573bd07615cbdb36d3bba11ecc1.tar.gz
abakus-a805660cba37d573bd07615cbdb36d3bba11ecc1.zip
Add bison support
Diffstat (limited to 'src/editor.cpp')
-rw-r--r--src/editor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/editor.cpp b/src/editor.cpp
index f4a4276..470198b 100644
--- a/src/editor.cpp
+++ b/src/editor.cpp
@@ -184,7 +184,12 @@ int EditorHighlighter::highlightParagraph ( const TQString & text, int )
case Token::Identifier:
{
color = editor->highlightColor( Editor::Variable );
+#ifndef QT_NO_STL
if( binary_search( fnames.constBegin(), fnames.constEnd(), text) ) {
+#else // QT_NO_STL
+ #warning "Not using STL libraries; performance may be degraded..."
+ if( fnames.find( text) != fnames.end()) {
+#endif // QT_NO_STL
color = editor->highlightColor( Editor::FunctionName );
}
}