[gtksourceview] language-specs: Add a content type for python3.lang



commit e157a66e57f751e3743c2b680263f3e97fd7ad95
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Mar 2 12:02:32 2017 +0000

    language-specs: Add a content type for python3.lang
    
    Bug #100034 in shared-mime-info adds a new text/x-python3 content type
    to distinguish Python 3 files from Python 2. Use that if available to
    select python3.lang over python.lang.
    
    See https://bugs.freedesktop.org/show_bug.cgi?id=100034.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779468

 data/language-specs/python3.lang |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/data/language-specs/python3.lang b/data/language-specs/python3.lang
index 4d99440..7906392 100644
--- a/data/language-specs/python3.lang
+++ b/data/language-specs/python3.lang
@@ -22,6 +22,7 @@
 -->
 <language id="python3" _name="Python 3" version="2.0" _section="Script">
   <metadata>
+    <property name="mimetypes">text/x-python3</property>
     <property name="globs">*.py3</property>
     <property name="line-comment-start">#</property>
   </metadata>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]