]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(python): Also sync syntax at 'async def'
authorJon Parise <jon@indelible.org>
Mon, 11 Aug 2025 18:33:33 +0000 (20:33 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 11 Aug 2025 18:33:33 +0000 (20:33 +0200)
commitdba9eb46e622efe39331b75d0c57c5d8b61b526f
tree200f8c95c13b7de44c57e88fe760b08dbcabf3bd
parent6b9cf3139a666c97772bb895886ecf04b264dcc1
runtime(python): Also sync syntax at 'async def'

A file containing only async functions (`async def func()`) wouldn't
previously match the pythonSync pattern.

Also, this pattern only matches at the beginning of the line, so it
won't ever match method definitions (which are indented within class
scopes). Update the comment accordingly.

closes: #17963

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Zvezdan Petkovic <zpetkovic@acm.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/python.vim