aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-03-11 21:19:14 -0500
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-03-11 21:19:14 -0500
commit98958ec99aad3157066d67d53f2e2b9b72fe50c7 (patch)
tree7342667eb227177722c23a280b9fa8f09b2c2296 /modules
parentd2eb0c2891f6bc468912ab69cbac40327bf18ff6 (diff)
Do not mark GCC-style "note:" output as compile/run/build/test errors.
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/run.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 743ee5cb..3e0b4295 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -98,8 +98,10 @@ local function scan_for_error(message, ext_or_lexer)
end
i = i + 1
end
+ local lower_message = message:lower()
detail.warning =
- message:lower():find('warning') and not message:lower():find('error')
+ (lower_message:find('warning') or lower_message:find('note')) and
+ not lower_message:find('error')
-- Compile and run commands specify the file extension or lexer name used
-- to determine the command, so the error patterns used are guaranteed to
-- be correct. Build and test commands have no such context and instead