runtime(python): Highlight built-in constants in Python

Also add syntax tests for those newly constants.

closes: #17788
closes: #18922

Signed-off-by: Rob B <github@0x7e.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Rob B
2026-01-26 18:52:04 +00:00
committed by Christian Brabandt
parent ca6726285c
commit 632fd8bb96
10 changed files with 146 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
# Built-in Constants
# https://docs.python.org/3/library/constants.html
# VIM_TEST_SETUP unlet g:python_constant_highlight
# VIM_TEST_SETUP unlet g:python_no_builtin_highlight
test = False
test = True
test = None
test = NotImplemented
test = Ellipsis
test = __debug__