diff --git a/runtime/syntax/python.vim b/runtime/syntax/python.vim index ec3be3422b..b2f866b8b3 100644 --- a/runtime/syntax/python.vim +++ b/runtime/syntax/python.vim @@ -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