def get_lexer_by_name(_alias, **options):
 for (module_name, name, aliases, _, _) in LEXERS.itervalues():
  if (_alias in aliases):
   if (name not in _lexer_cache):
    _load_lexers(module_name)
   return _lexer_cache[name](**options)
 for cls in find_plugin_lexers():
  if (_alias in cls.aliases):
   return cls(**options)
 raise ClassNotFound(('no lexer for alias %r found' % _alias))

def get_lexer_by_name ( _alias , ** options ) : for ( module_name , name , aliases , _ , _ ) in LEXERS . itervalues ( ) : if ( _alias in aliases ) : if ( name not in _lexer_cache ) : _load_lexers ( module_name ) return _lexer_cache [ name ] ( ** options ) for cls in find_plugin_lexers ( ) : if ( _alias in cls . aliases ) : return cls ( ** options ) raise ClassNotFound ( ( 'no lexer for alias %r found' % _alias ) )
get a lexer by an alias .