mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 21:38:19 +00:00
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:
@@ -229,10 +229,10 @@ syn region pythonFStringField
|
|||||||
\ start=/{/
|
\ start=/{/
|
||||||
\ end=/\%(=\s*\)\=\%(!\a\s*\)\=\%(:\%({\_[^}]*}\|[^{}]*\)\+\)\=}/
|
\ end=/\%(=\s*\)\=\%(!\a\s*\)\=\%(:\%({\_[^}]*}\|[^{}]*\)\+\)\=}/
|
||||||
\ contained
|
\ contained
|
||||||
\ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonDoctest,pythonDoctestValue,@Spell
|
\ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonType,pythonDoctest,pythonDoctestValue,@Spell
|
||||||
syn match pythonFStringFieldSkip /(\_[^()]*)\|\[\_[^][]*]\|{\_[^{}]*}/
|
syn match pythonFStringFieldSkip /(\_[^()]*)\|\[\_[^][]*]\|{\_[^{}]*}/
|
||||||
\ contained
|
\ contained
|
||||||
\ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonDoctest,pythonDoctestValue,@Spell
|
\ contains=ALLBUT,pythonFStringField,pythonClass,pythonFunction,pythonType,pythonDoctest,pythonDoctestValue,@Spell
|
||||||
|
|
||||||
" Doubled braces are not replacement fields
|
" Doubled braces are not replacement fields
|
||||||
syn match pythonFStringSkip /{{/ transparent contained contains=NONE
|
syn match pythonFStringSkip /{{/ transparent contained contains=NONE
|
||||||
|
Reference in New Issue
Block a user