Skip to content

Conversation

@f4nb0y
Copy link
Contributor

@f4nb0y f4nb0y commented Dec 14, 2025

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

Ref: #17788
Attn: @dkearns @zvezdan

Signed-off-by: Rob B <github@0x7e.net>
Signed-off-by: Rob B <github@0x7e.net>
@dkearns
Copy link
Contributor

dkearns commented Dec 15, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants