From d9b3f2fe99e4bb7fb6649eee27382f25f20a4146 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 17 Feb 2003 11:18:06 +0000 Subject: Upgraded keyword list descriptions from Brian Quinlan. --- src/LexConf.cxx | 8 +++++++- src/LexCrontab.cxx | 11 +++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/LexConf.cxx b/src/LexConf.cxx index c8441f41e..c33cdb5ce 100644 --- a/src/LexConf.cxx +++ b/src/LexConf.cxx @@ -175,4 +175,10 @@ static void ColouriseConfDoc(unsigned int startPos, int length, int, WordList *k delete []buffer; } -LexerModule lmConf(SCLEX_CONF, ColouriseConfDoc, "conf"); +static const char * const confWordListDesc[] = { + "Directives", + "Parameters", + 0 +}; + +LexerModule lmConf(SCLEX_CONF, ColouriseConfDoc, "conf", 0, confWordListDesc); diff --git a/src/LexCrontab.cxx b/src/LexCrontab.cxx index 37729cbfd..d139bb4f1 100644 --- a/src/LexCrontab.cxx +++ b/src/LexCrontab.cxx @@ -62,7 +62,7 @@ static void ColouriseNncrontabDoc(unsigned int startPos, int length, int, WordLi state = SCE_NNCRONTAB_TASK; styler.ColourTo(i,SCE_NNCRONTAB_TASK); } - else if( ch == '\\' && (styler.SafeGetCharAt(i+1) == ' ' || + else if( ch == '\\' && (styler.SafeGetCharAt(i+1) == ' ' || styler.SafeGetCharAt(i+1) == '\t')) { // signals the start of an extended comment... state = SCE_NNCRONTAB_COMMENT; @@ -208,4 +208,11 @@ static void ColouriseNncrontabDoc(unsigned int startPos, int length, int, WordLi delete []buffer; } -LexerModule lmNncrontab(SCLEX_NNCRONTAB, ColouriseNncrontabDoc, "nncrontab"); +static const char * const cronWordListDesc[] = { + "Section keywords and Forth words", + "nnCrontab keywords", + "Modifiers", + 0 +}; + +LexerModule lmNncrontab(SCLEX_NNCRONTAB, ColouriseNncrontabDoc, "nncrontab", 0, cronWordListDesc); -- cgit v1.2.3