parent
143ba48d6c
commit
eb724b580e
|
@ -572,7 +572,7 @@ object Reporting {
|
|||
if (!arg.endsWith("$")) pat += '$'
|
||||
regex(pat.toString).map(SourcePattern)
|
||||
} else {
|
||||
Left(s"filter not yet implemented: $s")
|
||||
Left(s"unknown filter: $s")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3796,10 +3796,13 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
|
|||
val filters = (info.assocs: @unchecked) match {
|
||||
case Nil => List(MessageFilter.Any)
|
||||
case (_, LiteralAnnotArg(s)) :: Nil =>
|
||||
val (ms, fs) = separateE(s.stringValue.split('&').map(WConf.parseFilter(_, runReporting.rootDirPrefix)).toList)
|
||||
if (ms.nonEmpty)
|
||||
reporter.error(info.pos, s"Invalid message filter:\n${ms.mkString("\n")}")
|
||||
fs
|
||||
if (s.stringValue.isEmpty) List()
|
||||
else {
|
||||
val (ms, fs) = separateE(s.stringValue.split('&').map(WConf.parseFilter(_, runReporting.rootDirPrefix)).toList)
|
||||
if (ms.nonEmpty)
|
||||
reporter.error(info.pos, s"Invalid message filter:\n${ms.mkString("\n")}")
|
||||
fs
|
||||
}
|
||||
}
|
||||
val (start, end) =
|
||||
if (settings.Yrangepos) {
|
||||
|
|
Loading…
Reference in New Issue