aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/SciLexer.h1
-rw-r--r--include/Scintilla.iface1
-rw-r--r--src/LexOthers.cxx4
3 files changed, 6 insertions, 0 deletions
diff --git a/include/SciLexer.h b/include/SciLexer.h
index 7419c43b0..c43a54134 100644
--- a/include/SciLexer.h
+++ b/include/SciLexer.h
@@ -225,6 +225,7 @@
#define SCE_ERR_CMD 4
#define SCE_ERR_BORLAND 5
#define SCE_ERR_PERL 6
+#define SCE_ERR_NET 7
#define SCE_ERR_DIFF_CHANGED 10
#define SCE_ERR_DIFF_ADDITION 11
#define SCE_ERR_DIFF_DELETION 12
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index bebe4a4e8..5c486aad3 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1432,6 +1432,7 @@ val SCE_ERR_MS=3
val SCE_ERR_CMD=4
val SCE_ERR_BORLAND=5
val SCE_ERR_PERL=6
+val SCE_ERR_NET=7
val SCE_ERR_DIFF_CHANGED=10
val SCE_ERR_DIFF_ADDITION=11
val SCE_ERR_DIFF_DELETION=12
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx
index bb84d9084..492661c62 100644
--- a/src/LexOthers.cxx
+++ b/src/LexOthers.cxx
@@ -352,6 +352,10 @@ static void ColouriseErrorListLine(
strstr(lineBuffer, " line ") < lineBuffer + lengthLine) {
// perl error message
styler.ColourTo(endPos, SCE_ERR_PERL);
+ } else if ((memcmp(lineBuffer, " at ", 6) == 0) &&
+ strstr(lineBuffer, ":line ")) {
+ // A .NET traceback
+ styler.ColourTo(endPos, SCE_ERR_NET);
} else {
// Look for <filename>:<line>:message
// Look for <filename>(line)message