From 3032c371bd9231f097226869e80bf56543ae2cab 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/LexPython.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/LexPython.cxx') diff --git a/src/LexPython.cxx b/src/LexPython.cxx index d7830b0b7..fcaa541ac 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -17,7 +17,7 @@ #include "Scintilla.h" #include "SciLexer.h" -static void classifyWordPy(unsigned int start, unsigned int end, WordList &keywords, StylingContext &styler, char *prevWord) { +static void classifyWordPy(unsigned int start, unsigned int end, WordList &keywords, BufferAccess &styler, char *prevWord) { char s[100]; bool wordIsNumber = isdigit(styler[start]); for (unsigned int i = 0; i < end - start + 1 && i < 30; i++) { @@ -37,12 +37,12 @@ static void classifyWordPy(unsigned int start, unsigned int end, WordList &keywo strcpy(prevWord, s); } -static bool IsPyComment(StylingContext &styler, int pos, int len) { +static bool IsPyComment(BufferAccess &styler, int pos, int len) { return len>0 && styler[pos]=='#'; } static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, - WordList *keywordlists[], StylingContext &styler) { + WordList *keywordlists[], BufferAccess &styler) { // Python uses a different mask because bad indentation is marked by oring with 32 styler.StartAt(startPos, 127); -- cgit v1.2.3