From 42799425f8c02442df8b1af1a024a3fe8fa6e93f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 4 Apr 2000 09:17:32 +0000 Subject: Split a Document based Accessor (DocumentAccessor) off from the old accessor which is now called WindowAccessor. Accessor.h defines a common interface which is the type consumed by the lexers. --- src/ScintillaBase.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ScintillaBase.cxx') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 21f984044..76177f242 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -15,6 +15,8 @@ #include "SciLexer.h" #include "PropSet.h" #include "Accessor.h" +#include "WindowAccessor.h" +#include "DocumentAccessor.h" #include "KeyWords.h" #endif #include "ContractionState.h" @@ -276,7 +278,8 @@ void ScintillaBase::Colourise(int start, int end) { end = lengthDoc; int len = end - start; - StylingContext styler(wMain.GetID(), props); + //WindowAccessor styler(wMain.GetID(), props); + DocumentAccessor styler(pdoc, props); int styleStart = 0; if (start > 0) -- cgit v1.2.3