runtime(python): optimize pythonSync pattern

Commit: 
https://github.com/vim/vim/commit/2f7e4eb335df389d73aaeb2ff6879b233c1a293f
Author: Jon Parise <j...@indelible.org>
Date:   Mon Aug 18 21:06:50 2025 +0200

    runtime(python): optimize pythonSync pattern
    
    Order the keywords by expected frequency: "def" and "class" are assumed
    to be more likely than "async def" in the majority of Python code.
    
    closes: #18032
    
    Signed-off-by: Jon Parise <j...@indelible.org>
    Signed-off-by: Zvezdan Petkovic <zpetko...@acm.org>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/python.vim b/runtime/syntax/python.vim
index 5c437b511..320fd785c 100644
--- a/runtime/syntax/python.vim
+++ b/runtime/syntax/python.vim
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language:    Python
 " Maintainer:  Zvezdan Petkovic <zpetko...@acm.org>
-" Last Change: 2025 Aug 13
+" Last Change: 2025 Aug 18
 " Credits:     Neil Schemenauer <n...@python.ca>
 "              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

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uo5K0-005O8v-0x%40256bit.org.

Raspunde prin e-mail lui