aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexCrontab.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexCrontab.cxx')
-rw-r--r--src/LexCrontab.cxx11
1 files changed, 9 insertions, 2 deletions
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);