[vim/vim] Python syntax don't highlight correctly numbers that includes `_` (Issue #11978)

16 views
Skip to first unread message

Vivian De Smedt

unread,
Feb 12, 2023, 9:23:37 AM2/12/23
to vim/vim, Subscribed

Steps to reproduce

  1. Edit a python file that includes a number of the kind 1_024
  2. The number is not highlighted as a number

Expected behaviour

The number should be highlighted as a normal number (e.g. 1024)

Since Python 3.6 (23rd December 2016) number literals can includes _.
It seems that the Vim syntax highlighting doesn't support it natively.

Version of Vim

Vim 9.0 trunk

Environment

Operating System: Windows

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11978@github.com>

Zvezdan Petkovic

unread,
Feb 12, 2023, 7:29:34 PM2/12/23
to vim/vim, Subscribed

There's already a pending change for this in PR #8033.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11978/1427179970@github.com>

dkearns

unread,
Mar 4, 2024, 7:22:32 AM3/4/24
to vim/vim, Subscribed

This was fixed in 71badf9.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11978/1976463537@github.com>

dkearns

unread,
Mar 4, 2024, 7:22:44 AM3/4/24
to vim/vim, Subscribed

Closed #11978 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/11978/issue_event/11998237433@github.com>

Reply all
Reply to author
Forward
0 new messages