code: def _tryMatch(self, textToMatchObject):
          
          for rule in self.context.rules:
              ruleTryMatchResult = rule.tryMatch(textToMatchObject)
              if ruleTryMatchResult is not None:
                  _logger.debug('\tmatched rule %s at %d in included context %s/%s',
                                rule.shortId(),
                                textToMatchObject.currentColumnIndex,
                                self.context.parser.syntax.name,
                                self.context.name)
                  return ruleTryMatchResult
          else:
              return None
docs: Try to find themselves in the text.
          Returns (count, matchedRule) or (None, None) if doesn't match