code: def match(self, filename, line, codes):
          
          if self.regex_match_any(line, codes):
              if self._vary_codes:
                  self.codes = tuple([codes[-1]])
              return True
docs: Match rule and set attribute codes.