[gtksourceview/wip/chergert/fix-python3] python.lang: make Python 3 the default




commit 2bd455d9489401439535ca8404dbd52a4a3c2b62
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 28 14:27:11 2021 -0700

    python.lang: make Python 3 the default
    
    Python 2 has been EOL'd for quite some time. So we want "Python" to just
    mean "Python 3" at this point.
    
    This also alters the default for the user in a subtle way because the
    list uses g_utf8_collate() to sort, meaning "Python" sorts before
    "Python 2". Since they have the same mime-types and globs, what was
    Python 3 will now sort first.
    
    Fixes #137

 data/language-specs/python.lang  | 2 +-
 data/language-specs/python3.lang | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/language-specs/python.lang b/data/language-specs/python.lang
index ab0cd45e..8fef6606 100644
--- a/data/language-specs/python.lang
+++ b/data/language-specs/python.lang
@@ -24,7 +24,7 @@
  along with this library; if not, see <http://www.gnu.org/licenses/>.
 
 -->
-<language id="python" name="Python" version="2.0" _section="Script">
+<language id="python" name="Python 2" version="2.0" _section="Script">
   <metadata>
     <property name="mimetypes">text/x-python;application/x-python</property>
     <property name="globs">*.py</property>
diff --git a/data/language-specs/python3.lang b/data/language-specs/python3.lang
index eaebf410..8fbb4755 100644
--- a/data/language-specs/python3.lang
+++ b/data/language-specs/python3.lang
@@ -20,10 +20,10 @@
  along with this library; if not, see <http://www.gnu.org/licenses/>.
 
 -->
-<language id="python3" name="Python 3" version="2.0" _section="Script">
+<language id="python3" name="Python" version="2.0" _section="Script">
   <metadata>
-    <property name="mimetypes">text/x-python3</property>
-    <property name="globs">*.py3</property>
+    <property name="mimetypes">text/x-python;application/x-python;text/x-python3</property>
+    <property name="globs">*.py;*.py3</property>
     <property name="line-comment-start">#</property>
   </metadata>
 


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