aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-02-17 11:18:04 +0000
committernyamatongwe <devnull@localhost>2003-02-17 11:18:04 +0000
commit42f022fc914d6888f55af7e96add39aca735d102 (patch)
treead61b2ce296b7a28adb62c17edf927faef2a6417 /src
parent7adcd85e2cdaabba181c1e535348807882f47eba (diff)
downloadscintilla-mirror-42f022fc914d6888f55af7e96add39aca735d102.tar.gz
Upgraded keyword list descriptions from Brian Quinlan.
Diffstat (limited to 'src')
-rw-r--r--src/LexBullant.cxx20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/LexBullant.cxx b/src/LexBullant.cxx
index 1f76ffcf0..902f89c1e 100644
--- a/src/LexBullant.cxx
+++ b/src/LexBullant.cxx
@@ -30,18 +30,6 @@ static int classifyWordBullant(unsigned int start, unsigned int end, WordList &k
else {
if (keywords.InList(s)) {
chAttr = SCE_C_WORD;
-/* if (strcmp(s, "end method") == 0 ||
- strcmp(s, "end case") == 0 ||
- strcmp(s, "end class") == 0 ||
- strcmp(s, "end debug") == 0 ||
- strcmp(s, "end test") == 0 ||
- strcmp(s, "end if") == 0 ||
- strcmp(s, "end lock") == 0 ||
- strcmp(s, "end transaction") == 0 ||
- strcmp(s, "end trap") == 0 ||
- strcmp(s, "end until") == 0 ||
- strcmp(s, "end while") == 0)
- lev = -1;*/
if (strcmp(s, "end") == 0)
lev = -1;
else if (strcmp(s, "method") == 0 ||
@@ -80,7 +68,6 @@ static void ColouriseBullantDoc(unsigned int startPos, int length, int initStyle
char chNext = styler[startPos];
unsigned int lengthDoc = startPos + length;
int visibleChars = 0;
- // int blockChange = 0;
styler.StartSegment(startPos);
int endFoundThisLine = 0;
for (unsigned int i = startPos; i < lengthDoc; i++) {
@@ -230,4 +217,9 @@ static void ColouriseBullantDoc(unsigned int startPos, int length, int initStyle
}
}
-LexerModule lmBullant(SCLEX_BULLANT, ColouriseBullantDoc, "bullant");
+static const char * const bullantWordListDesc[] = {
+ "Keywords",
+ 0
+};
+
+LexerModule lmBullant(SCLEX_BULLANT, ColouriseBullantDoc, "bullant", 0, bullantWordListDesc);