Correct syntax in filter so that it parses warning blocks too