1 // Scintilla source code edit control
2 /** @file LexerSimple.h
3 ** A simple lexer with no state.
5 // Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
13 // A simple lexer with no state
14 class LexerSimple
: public LexerBase
{
15 const LexerModule
*module
;
16 std::string wordLists
;
18 explicit LexerSimple(const LexerModule
*module_
);
19 const char * SCI_METHOD
DescribeWordListSets();
20 void SCI_METHOD
Lex(Sci_PositionU startPos
, Sci_Position lengthDoc
, int initStyle
, IDocument
*pAccess
);
21 void SCI_METHOD
Fold(Sci_PositionU startPos
, Sci_Position lengthDoc
, int initStyle
, IDocument
*pAccess
);