aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexOthers.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-05-14 13:14:10 +0000
committernyamatongwe <devnull@localhost>2003-05-14 13:14:10 +0000
commitcdc0cb6a7459576de1d8e2d8641e929f088aa9a2 (patch)
tree7cfc51bf2be058cef570e6d2bc99840ac3c0d7d8 /src/LexOthers.cxx
parent2d5cbdb242f107837767a0c9d50f3667fd65a5a8 (diff)
downloadscintilla-mirror-cdc0cb6a7459576de1d8e2d8641e929f088aa9a2.tar.gz
Moved lmNull into LexOthers.cxx as there was a report that the current
location trips a bug in MSVC 7.1.
Diffstat (limited to 'src/LexOthers.cxx')
-rw-r--r--src/LexOthers.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx
index 6d537c9b6..45e2d5154 100644
--- a/src/LexOthers.cxx
+++ b/src/LexOthers.cxx
@@ -626,9 +626,20 @@ static const char * const emptyWordListDesc[] = {
0
};
+static void ColouriseNullDoc(unsigned int startPos, int length, int, WordList *[],
+ Accessor &styler) {
+ // Null language means all style bytes are 0 so just mark the end - no need to fill in.
+ if (length > 0) {
+ styler.StartAt(startPos + length - 1);
+ styler.StartSegment(startPos + length - 1);
+ styler.ColourTo(startPos + length - 1, 0);
+ }
+}
+
LexerModule lmBatch(SCLEX_BATCH, ColouriseBatchDoc, "batch", 0, batchWordListDesc);
LexerModule lmDiff(SCLEX_DIFF, ColouriseDiffDoc, "diff", 0, emptyWordListDesc);
LexerModule lmProps(SCLEX_PROPERTIES, ColourisePropsDoc, "props", 0, emptyWordListDesc);
LexerModule lmMake(SCLEX_MAKEFILE, ColouriseMakeDoc, "makefile", 0, emptyWordListDesc);
LexerModule lmErrorList(SCLEX_ERRORLIST, ColouriseErrorListDoc, "errorlist", 0, emptyWordListDesc);
LexerModule lmLatex(SCLEX_LATEX, ColouriseLatexDoc, "latex", 0, emptyWordListDesc);
+LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null");