diff options
author | Georg Brandl <georg@python.org> | 2013-01-20 08:34:20 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-01-20 08:34:20 +0100 |
commit | ad5da8192ebd212ac156e5211f364de46b4b55ac (patch) | |
tree | 96ede1569570064c57257d0f096d260ca6413242 | |
parent | 9c7c4cc064e52e8623766eaeca0cab5f11af9b26 (diff) | |
download | pygments-ad5da8192ebd212ac156e5211f364de46b4b55ac.tar.gz |
Closes #837: add an alias for the RegeditLexer.
-rw-r--r-- | pygments/lexers/_mapping.py | 2 | ||||
-rw-r--r-- | pygments/lexers/text.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/_mapping.py b/pygments/lexers/_mapping.py index d5fb7252..9bb567f8 100644 --- a/pygments/lexers/_mapping.py +++ b/pygments/lexers/_mapping.py @@ -242,7 +242,7 @@ LEXERS = { 'RdLexer': ('pygments.lexers.math', 'Rd', ('rd',), ('*.Rd',), ('text/x-r-doc',)), 'RebolLexer': ('pygments.lexers.other', 'REBOL', ('rebol',), ('*.r', '*.r3'), ('text/x-rebol',)), 'RedcodeLexer': ('pygments.lexers.other', 'Redcode', ('redcode',), ('*.cw',), ()), - 'RegeditLexer': ('pygments.lexers.text', 'reg', (), ('*.reg',), ('text/x-windows-registry',)), + 'RegeditLexer': ('pygments.lexers.text', 'reg', ('registry',), ('*.reg',), ('text/x-windows-registry',)), 'RhtmlLexer': ('pygments.lexers.templates', 'RHTML', ('rhtml', 'html+erb', 'html+ruby'), ('*.rhtml',), ('text/html+ruby',)), 'RobotFrameworkLexer': ('pygments.lexers.other', 'RobotFramework', ('RobotFramework', 'robotframework'), ('*.txt', '*.robot'), ('text/x-robotframework',)), 'RstLexer': ('pygments.lexers.text', 'reStructuredText', ('rst', 'rest', 'restructuredtext'), ('*.rst', '*.rest'), ('text/x-rst', 'text/prs.fallenstein.rst')), diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py index 65d3cd92..5e340893 100644 --- a/pygments/lexers/text.py +++ b/pygments/lexers/text.py @@ -65,7 +65,7 @@ class RegeditLexer(RegexLexer): """ name = 'reg' - aliases = [] + aliases = ['registry'] filenames = ['*.reg'] mimetypes = ['text/x-windows-registry'] |