vim-patch:15070ee: runtime(python): Update syntax, fix pythonEllipsis pattern (#35724)

fixes: vim/vim#18263
closes: vim/vim#18264

15070eee2f

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
zeertzjq
2025-09-12 08:17:04 +08:00
committed by GitHub
parent 855eede11e
commit 0f3fef9bab

View File

@@ -314,7 +314,7 @@ if !exists("python_no_builtin_highlight")
\ contains=ALLBUT,pythonBuiltin,pythonClass,pythonFunction,pythonType,pythonAsync \ contains=ALLBUT,pythonBuiltin,pythonClass,pythonFunction,pythonType,pythonAsync
\ transparent \ transparent
" the ellipsis literal `...` can be used in multiple syntactic contexts " the ellipsis literal `...` can be used in multiple syntactic contexts
syn match pythonEllipsis "\.\@1<!.\.\.\ze\.\@!" display syn match pythonEllipsis "\.\@1<!\.\.\.\ze\.\@!" display
endif endif
" From the 'Python Library Reference' class hierarchy at the bottom. " From the 'Python Library Reference' class hierarchy at the bottom.