From 87a3a96b3d5047f28d5d89b935014da1fcde1975 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 13 Jul 2010 21:44:00 +1000 Subject: For new lexer design change includes to add new files and remove unused files. Normalise order of includes. Minor fixes for compatibility with new lexer design. --- lexers/LexScriptol.cxx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'lexers/LexScriptol.cxx') diff --git a/lexers/LexScriptol.cxx b/lexers/LexScriptol.cxx index 76c38e6b6..756efb67f 100644 --- a/lexers/LexScriptol.cxx +++ b/lexers/LexScriptol.cxx @@ -5,18 +5,23 @@ #include #include -#include #include #include +#include +#include -#include "Platform.h" - -#include "PropSet.h" -#include "Accessor.h" -#include "KeyWords.h" +#include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" +#include "PropSetSimple.h" +#include "WordList.h" +#include "LexAccessor.h" +#include "Accessor.h" +#include "StyleContext.h" +#include "CharacterSet.h" +#include "LexerModule.h" + #ifdef SCI_NAMESPACE using namespace Scintilla; #endif @@ -48,10 +53,9 @@ static void ClassifyWordSol(unsigned int start, unsigned int end, WordList &keyw static bool IsSolComment(Accessor &styler, int pos, int len) { - char c; if(len > 0) { - c = styler[pos]; + char c = styler[pos]; if(c == '`') return true; if(len > 1) { @@ -328,7 +332,7 @@ static void ColouriseSolDoc(unsigned int startPos, int length, int initStyle, state = SCE_SCRIPTOL_DEFAULT; } } - + } chPrev2 = chPrev; chPrev = ch; -- cgit v1.2.3