diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-09-06 07:08:08 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2025-09-06 07:08:23 +0800 |
| commit | b399a13f70887a9835c37710eb8d703ec01524b2 (patch) | |
| tree | a3d3ab6a910605cfa01c046f078fdb877af15dbd /runtime/syntax/python.vim | |
| parent | 665d5d80ac0be2c26c12dedd305329370110deaf (diff) | |
vim-patch:f1212a7: runtime(python): Do not match contained identifiers as pythonType
related: vim/vim#17962
closes: vim/vim#18206
https://github.com/vim/vim/commit/f1212a7b4554f2f544b581f7e819d6ef67c5e9ad
Co-authored-by: Rob B <github@0x7e.net>
Diffstat (limited to 'runtime/syntax/python.vim')
| -rw-r--r-- | runtime/syntax/python.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
