Skip to content

Commit 8bba42c

Browse files
mlpoalecthomas
authored andcommitted
Update mimetypes in Python lexers
1 parent 515a389 commit 8bba42c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: lexers/p/python.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var Python = internal.Register(MustNewLazyLexer(
1111
Name: "Python",
1212
Aliases: []string{"python", "py", "python3", "py3"},
1313
Filenames: []string{"*.py", "*.pyi", "*.pyw", "*.sc", "SConstruct", "SConscript", "*.tac", "*.sage"},
14-
MimeTypes: []string{"text/x-python3", "application/x-python3"},
14+
MimeTypes: []string{"text/x-python", "application/x-python", "text/x-python3", "application/x-python3"},
1515
},
1616
pythonRules,
1717
))

Diff for: lexers/p/python2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var Python2 = internal.Register(MustNewLazyLexer(
1111
Name: "Python 2",
1212
Aliases: []string{"python2", "py2"},
1313
Filenames: []string{},
14-
MimeTypes: []string{"text/x-python", "application/x-python"},
14+
MimeTypes: []string{"text/x-python2", "application/x-python2"},
1515
},
1616
python2Rules,
1717
))

0 commit comments

Comments
 (0)