[gtksourceview/cherry-pick-86e808a6: 3/3] Merge branch 'wip/chergert/fix-python3' into 'master'




commit 80c5af0a86c497a19c37cc190e279c0fbac4d1fc
Author: Christian Hergert <christian hergert me>
Date:   Wed Jul 28 21:28:17 2021 +0000

    Merge branch 'wip/chergert/fix-python3' into 'master'
    
    python.lang: make Python 3 the default
    
    Closes #137
    
    See merge request GNOME/gtksourceview!199
    
    (cherry picked from commit 86e808a671a5f6f6de7ab66e555d52e15edc425d)
    
    2bd455d9 python.lang: make Python 3 the default

 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 ea207158..4ac0d6be 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 fd939689..a7655194 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]