aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-04-14 21:55:30 +0000
committernyamatongwe <unknown>2004-04-14 21:55:30 +0000
commitc258d8c3005c86f9016db52dbedd1a6c6cff6f66 (patch)
treeba60f32b2b76be047ecea207b0b4b4365f094f19 /src
parentf8483df12a021c8b4afd74361840f14e0868f9c1 (diff)
downloadscintilla-mirror-c258d8c3005c86f9016db52dbedd1a6c6cff6f66.tar.gz
Minor formatting edits from Philippe.
Diffstat (limited to 'src')
-rw-r--r--src/LexOthers.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx
index 4d1fa1546..df02d16a9 100644
--- a/src/LexOthers.cxx
+++ b/src/LexOthers.cxx
@@ -477,14 +477,14 @@ static void ColouriseErrorListLine(
styler.ColourTo(endPos, SCE_ERR_DIFF_ADDITION);
} else if (lineBuffer[0] == '-' && lineBuffer[1] == '-' && lineBuffer[2] == '-') {
styler.ColourTo(endPos, SCE_ERR_DIFF_MESSAGE);
+ } else if (lineBuffer[0] == '-') {
+ styler.ColourTo(endPos, SCE_ERR_DIFF_DELETION);
} else if (strstart(lineBuffer, "cf90-")) {
// Absoft Pro Fortran 90/95 v8.2 error and/or warning message
styler.ColourTo(endPos, SCE_ERR_ABSF);
} else if (strstart(lineBuffer, "fortcom:")) {
// Intel Fortran Compiler v8.0 error/warning message
styler.ColourTo(endPos, SCE_ERR_IFORT);
- } else if (lineBuffer[0] == '-') {
- styler.ColourTo(endPos, SCE_ERR_DIFF_DELETION);
} else if (strstr(lineBuffer, "File \"") && strstr(lineBuffer, ", line ")) {
styler.ColourTo(endPos, SCE_ERR_PYTHON);
} else if (strstr(lineBuffer, " in ") && strstr(lineBuffer, " on line ")) {
@@ -506,7 +506,7 @@ static void ColouriseErrorListLine(
(strstr(lineBuffer, "at line " ) < (lineBuffer + lengthLine)) &&
strstr(lineBuffer, "file ") &&
(strstr(lineBuffer, "file ") < (lineBuffer + lengthLine))) {
- // Lua error message
+ // Lua 4 error message
styler.ColourTo(endPos, SCE_ERR_LUA);
} else if (strstr(lineBuffer, " at " ) &&
(strstr(lineBuffer, " at " ) < (lineBuffer + lengthLine)) &&
@@ -544,7 +544,7 @@ static void ColouriseErrorListLine(
}
} else if ((ch == '(') && Is1To9(chNext)) {
// May be Microsoft
- // Check againt '0' often removes phone numbers
+ // Check against '0' often removes phone numbers
state = 10;
} else if (ch == '\t') {
// May be CTags
@@ -570,10 +570,11 @@ static void ColouriseErrorListLine(
state = unRecognized;
}
} else if (state == 12) {
- if ((ch == ' ') && (chNext == ':'))
+ if ((ch == ' ') && (chNext == ':')) {
state = 13;
- else
+ } else {
state = unRecognized;
+ }
} else if (state == 14) {
if (ch == ')') {
state = 15;