runtime(python): fix 'type' syntax highlighting
The previous patterns unintentionally highlighted words like 'typename'. addresses: https://github.com/vim/vim/pull/18090#issuecomment-3333025523 closes: #18394 Signed-off-by: Jon Parise <jon@indelible.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ef818ae444
commit
900c747da3
8
runtime/syntax/testdir/input/python_type.py
Normal file
8
runtime/syntax/testdir/input/python_type.py
Normal file
@ -0,0 +1,8 @@
|
||||
# Builtin
|
||||
type()
|
||||
|
||||
# Statement
|
||||
type Point = tuple[float, float]
|
||||
|
||||
# Should not match
|
||||
typename = ''
|
||||
Reference in New Issue
Block a user