fakevim: start working on some syntax highlighting infrastructure

This commit is contained in:
hjk
2010-04-27 18:02:19 +02:00
parent a3aa879827
commit a5e7cfe734
5 changed files with 200 additions and 3 deletions

View File

@@ -27,8 +27,6 @@
**
**************************************************************************/
#include "fakevimhandler.h"
//
// ATTENTION:
//
@@ -59,6 +57,9 @@
// if the last movement command was exclusive (MoveExclusive).
// The value of m_tc.anchor() is not used.
#include "fakevimhandler.h"
#include "fakevimsyntax.h"
#include <utils/qtcassert.h>
#include <QtCore/QDebug>
@@ -686,9 +687,11 @@ FakeVimHandler::Private::Mappings FakeVimHandler::Private::m_mappings;
FakeVimHandler::Private::Private(FakeVimHandler *parent, QWidget *widget)
{
//static PythonHighlighterRules pythonRules;
q = parent;
m_textedit = qobject_cast<QTextEdit *>(widget);
m_plaintextedit = qobject_cast<QPlainTextEdit *>(widget);
//new Highlighter(EDITOR(document()), &pythonRules);
init();
}