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

5 views
Skip to first unread message

Rob B

unread,
Dec 14, 2025, 4:24:23 AM (3 days ago) Dec 14
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 AM (yesterday) Dec 15
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>

Reply all
Reply to author
Forward
0 new messages