From 2016ba9b1ccbef2178c87f7694ccbcd00b492a67 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Nov 2011 22:37:19 -0600 Subject: Add bison support (cherry picked from commit a805660cba37d573bd07615cbdb36d3bba11ecc1) --- src/editor.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/editor.cpp') 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 ); } } -- cgit v1.2.1