[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
- [RFE] python-mode: removing `file` keyword from syntax highlight, Konstantin Kharlamov, 2025/01/22
- Re: [RFE] python-mode: removing `file` keyword from syntax highlight, Konstantin Kharlamov, 2025/01/24
- Re: [RFE] python-mode: removing `file` keyword from syntax highlight, kobarity, 2025/01/24
- Re: [RFE] python-mode: removing `file` keyword from syntax highlight, Kévin Le Gouguec, 2025/01/25
- Re: [RFE] python-mode: removing `file` keyword from syntax highlight, Ship Mints, 2025/01/25
- Re: [RFE] python-mode: removing `file` keyword from syntax highlight, kobarity, 2025/01/25
- Re: [RFE] python-mode: removing `file` keyword from syntax highlight, Konstantin Kharlamov, 2025/01/25
- Re: [RFE] python-mode: removing `file` keyword from syntax highlight, kobarity, 2025/01/27
- [PATCH] Remove Python2 "file" from the list of keywords, Konstantin Kharlamov, 2025/01/29
- Re: [PATCH] Remove Python2 "file" from the list of keywords, kobarity, 2025/01/29
- Re: [PATCH v2] Remove Python2 "file" from the list of keywords, Konstantin Kharlamov, 2025/01/29
- Re: [PATCH v2] Remove Python2 "file" from the list of keywords, Stefan Kangas, 2025/01/29