def find_lexer_class(name):
 if (name in _lexer_cache):
  return _lexer_cache[name]
 for (module_name, lname, aliases, _, _) in LEXERS.itervalues():
  if (name == lname):
   _load_lexers(module_name)
   return _lexer_cache[name]
 for cls in find_plugin_lexers():
  if (cls.name == name):
   return cls

def find_lexer_class ( name ) : if ( name in _lexer_cache ) : return _lexer_cache [ name ] for ( module_name , lname , aliases , _ , _ ) in LEXERS . itervalues ( ) : if ( name == lname ) : _load_lexers ( module_name ) return _lexer_cache [ name ] for cls in find_plugin_lexers ( ) : if ( cls . name == name ) : return cls
lookup a lexer class by name .