[vim/vim] runtime/syntax: Highlight built-in constants in Python (PR #18922)

9 views
Skip to first unread message

Rob B

unread,
Dec 14, 2025, 4:24:23 AM12/14/25
to vim/vim, Subscribed

Optionally highlight https://docs.python.org/3/library/constants.html as Constant

Ref: #17788
Attn: @dkearns @zvezdan


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18922

Commit Summary

File Changes

(6 files)

Patch Links:


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

dkearns

unread,
Dec 15, 2025, 10:33:17 AM12/15/25
to vim/vim, Subscribed
dkearns left a comment (vim/vim#18922)

Thanks @f4nb0y.

I think it would be more flexible to always match the booleans and other constants without the config variable guard as pythonBoolean, and pythonConstant, in the initial keyword block around line 100, and hi-link them by default to pythonStatement, Statement, or Keyword. This is how pythonAsync is handled, for example.

The config variable would then only override the hi-link commands.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18922/c3656282090@github.com>

Christian Brabandt

unread,
4:52 PM (6 hours ago) 4:52 PM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18922)

@f4nb0y would you make the suggested change?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18922/c3746730258@github.com>

Reply all
Reply to author
Forward
0 new messages