@@ -19,12 +19,13 @@ enum MessageFilter:
1919 import Diagnostic .*
2020 this match
2121 case Any => true
22+ case Configuration => message.isInstanceOf [ConfigurationWarning ]
2223 case Deprecated => message.isInstanceOf [DeprecationWarning ]
2324 case Feature => message.isInstanceOf [FeatureWarning ]
2425 case Unchecked => message.isInstanceOf [UncheckedWarning ]
2526 case MessageID (errorId) => message.msg.errorId == errorId
2627 case MessagePattern (pattern) =>
27- val noHighlight = message.msg.message.replaceAll(" \\ e\\ [[\\ d;]*[^\\ d;]" ," " )
28+ val noHighlight = message.msg.message.replaceAll(" \\ e\\ [[\\ d;]*[^\\ d;]" , " " )
2829 pattern.findFirstIn(noHighlight).nonEmpty
2930 case SourcePattern (pattern) =>
3031 val source = message.position.orElse(NoSourcePosition ).source()
@@ -39,7 +40,7 @@ enum MessageFilter:
3940 case _ => false
4041 case None => false
4142
42- case Any , Deprecated , Feature , Unchecked , None
43+ case Any , Configuration , Deprecated , Feature , Unchecked , None
4344 case MessagePattern (pattern : Regex )
4445 case MessageID (errorId : ErrorMessageID )
4546 case SourcePattern (pattern : Regex )
@@ -98,6 +99,7 @@ object WConf:
9899 catch case _ : IllegalArgumentException => Left (s " unknown error message name: $conf" )
99100
100101 case " cat" => conf match
102+ case " configuration" => Right (Configuration )
101103 case " deprecation" => Right (Deprecated )
102104 case " feature" => Right (Feature )
103105 case " unchecked" => Right (Unchecked )
0 commit comments