1 // Scintilla source code edit control
3 ** Lexer for no language. Used for plain text and unrecognized files.
5 // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
16 #include "Scintilla.h"
20 #include "LexAccessor.h"
22 #include "StyleContext.h"
23 #include "CharacterSet.h"
24 #include "LexerModule.h"
27 using namespace Scintilla
;
30 static void ColouriseNullDoc(Sci_PositionU startPos
, Sci_Position length
, int, WordList
*[],
32 // Null language means all style bytes are 0 so just mark the end - no need to fill in.
34 styler
.StartAt(startPos
+ length
- 1);
35 styler
.StartSegment(startPos
+ length
- 1);
36 styler
.ColourTo(startPos
+ length
- 1, 0);
40 LexerModule
lmNull(SCLEX_NULL
, ColouriseNullDoc
, "null");