diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/LexOthers.cxx | 13 | 
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; | 
