vim-patch:f1212a7: runtime(python): Do not match contained identifiers as pythonType

related: vim/vim#17962
closes: vim/vim#18206

f1212a7b45

Co-authored-by: Rob B <github@0x7e.net>
This commit is contained in:
zeertzjq
2025-09-06 07:08:08 +08:00
parent 665d5d80ac
commit b399a13f70

View File

@@ -229,10 +229,10 @@ syn region pythonFStringField
\ start=/{/
\ end=/\%(=\s*\)\=\%(!\a\s*\)\=\%(:\%({\_[^}]*}\|[^{}]*\)\+\)\=}/
\ contained
\ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonDoctest,pythonDoctestValue,@Spell
\ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonType,pythonDoctest,pythonDoctestValue,@Spell
syn match pythonFStringFieldSkip /(\_[^()]*)\|\[\_[^][]*]\|{\_[^{}]*}/
\ contained
\ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonDoctest,pythonDoctestValue,@Spell
\ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonType,pythonDoctest,pythonDoctestValue,@Spell
" Doubled braces are not replacement fields
syn match pythonFStringSkip /{{/ transparent contained contains=NONE