diff --git a/runtime/syntax/python.vim b/runtime/syntax/python.vim index 5c437b511f..320fd785c7 100644 --- a/runtime/syntax/python.vim +++ b/runtime/syntax/python.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Python " Maintainer: Zvezdan Petkovic -" Last Change: 2025 Aug 13 +" Last Change: 2025 Aug 18 " Credits: Neil Schemenauer " Dmitry Vasiliev " Rob B @@ -372,7 +372,7 @@ if !exists("python_no_doctest_highlight") endif " Sync at the beginning of (async) function or class definitions. -syn sync match pythonSync grouphere NONE "^\%(async\s\+def\|def\|class\)\s\+\h\w*\s*[(:]" +syn sync match pythonSync grouphere NONE "^\%(def\|class\|async\s\+def\)\s\+\h\w*\s*[(:]" " The default highlight links. Can be overridden later. hi def link pythonStatement Statement