emacs-devel
[Top][All Lists]
Advanced

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

Re: [RFE] python-mode: removing `file` keyword from syntax highlight


From: Howard Melman
Subject: Re: [RFE] python-mode: removing `file` keyword from syntax highlight
Date: Fri, 24 Jan 2025 14:14:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

Konstantin Kharlamov <Hi-Angel@yandex.ru> writes:

>> I am also one of those in a position where I still need to support
>> Python 2 code.
>> 
>> However, I know that Python 2 has already been EOL for a long time
>> and that very few people still use it.  Furthermore, even if some
>> keywords are not highlighted, it does not mean that we cannot edit
>> Python 2 code.  So I am not strongly against removing the Python 2
>> keywords if many people want to.
>
> I see. Okay, what do you think then about adding to the mode
> initialization a check that would check if the first line of the buffer
> has word `python2`, and would otherwise assume it is python3 and turn
> off the python2 keywords highlight?

Why not have a python2-mode that derives from python-mode
with a few changes in it?

-- 

Howard




reply via email to

[Prev in Thread] Current Thread [Next in Thread]