diff options
author | Timothy Pearson <[email protected]> | 2011-11-27 22:37:19 -0600 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-07-29 19:24:38 +0200 |
commit | 2016ba9b1ccbef2178c87f7694ccbcd00b492a67 (patch) | |
tree | cda37d25ad87fa0a6280cca1d28b3cd534a31633 /src/editor.cpp | |
parent | d145ebef561899ba37d855517e23e0f25932b384 (diff) | |
download | abakus-2016ba9b1ccbef2178c87f7694ccbcd00b492a67.tar.gz abakus-2016ba9b1ccbef2178c87f7694ccbcd00b492a67.zip |
Add bison support
(cherry picked from commit a805660cba37d573bd07615cbdb36d3bba11ecc1)
Diffstat (limited to 'src/editor.cpp')
-rw-r--r-- | src/editor.cpp | 5 |
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 ); } } |