code: def find_ignored_languages(source):
      
      for (index, line) in enumerate(source.splitlines()):
          match = RSTCHECK_COMMENT_RE.match(line)
          if match:
              key_and_value = line[match.end():].strip().split('=')
              if len(key_and_value) != 2:
                  raise Error('Expected "key=value" syntax',
                              line_number=index + 1)
  
              if key_and_value[0] == 'ignore-language':
                  for language in key_and_value[1].split(','):
                      yield language.strip()
docs: Yield ignored languages.
  
      Languages are ignored via comment.
  
      For example, to ignore C++, JSON, and Python:
  
      >>> list(find_ignored_languages('''
      ... Example
      ... =======
      ...
      ... .. rstcheck: ignore-language=cpp,json
      ...
      ... .. rstcheck: ignore-language=python
      ... '''))
      ['cpp', 'json', 'python']