summaryrefslogtreecommitdiff
path: root/tests/list
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-03-02 11:58:56 +0000
committerBastien Nocera <hadess@hadess.net>2017-03-09 14:15:01 +0100
commit0676217e4e4429453d8e86479cdae616ab057482 (patch)
tree025fe1db4e6e99188d19b3717d3bbae0dde45860 /tests/list
parent4ab969c398671c519a10a601ad3eeb46f04361de (diff)
downloadshared-mime-info-0676217e4e4429453d8e86479cdae616ab057482.tar.gz
Add text/x-python3 content type
This derives from the text/x-python content type, and is attached to files with a .py3 extension, or which have a python3 shebang line. Otherwise, text/x-python is preferred. This is necessary because Python 3 is not compatible with Python 2, and introduces some new keywords (such as ‘nonlocal’) which need to be syntax highlighted differently (for example). https://bugs.freedesktop.org/show_bug.cgi?id=100034
Diffstat (limited to 'tests/list')
-rw-r--r--tests/list3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/list b/tests/list
index 52cd5ac8..557a19af 100644
--- a/tests/list
+++ b/tests/list
@@ -314,6 +314,9 @@ test.jnlp application/x-java-jnlp-file
# Python script
test.py text/x-python
test.pyx text/x-python ox
+# Python 3 script
+test3.py text/x-python3 x
+test.py3 text/x-python3
# Perl
test.pl application/x-perl
test.pm application/x-perl