Commits

Anonymous committed 35abe39

[svn] Add "bf" brainfuck alias.

Comments (0)

Files changed (2)

pygments/lexers/_mapping.py

 
 LEXERS = {
     'BooLexer': ('pygments.lexers.dotnet', 'Boo', ('boo',), ('*.boo',)),
-    'BrainfuckLexer': ('pygments.lexers.other', 'Brainfuck', ('brainfuck',), ('*.bf', '*.b')),
+    'BrainfuckLexer': ('pygments.lexers.other', 'Brainfuck', ('brainfuck', 'bf'), ('*.bf', '*.b')),
     'CLexer': ('pygments.lexers.compiled', 'C', ('c',), ('*.c', '*.h')),
     'CSharpLexer': ('pygments.lexers.dotnet', 'C#', ('csharp', 'c#'), ('*.cs',)),
     'CppLexer': ('pygments.lexers.compiled', 'C++', ('cpp', 'c++'), ('*.cpp', '*.hpp', '*.c++', '*.h++')),

pygments/lexers/other.py

 
 class BrainfuckLexer(RegexLexer):
     name = 'Brainfuck'
-    aliases = ['brainfuck']
+    aliases = ['brainfuck', 'bf']
     filenames = ['*.bf', '*.b']
 
     tokens = {