runtime(python): Fix wrong define regex in ftplugin (#14763)
Commit:
https://github.com/vim/vim/commit/7961210b861ce9a1a773cfc1fe96b388216bb1f2
Author: Tom Picton <[email protected]>
Date: Mon May 13 16:00:40 2024 -0400
runtime(python): Fix wrong define regex in ftplugin
(https://github.com/vim/vim/issues/14763)
Signed-off-by: Tom Picton <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/python.vim b/runtime/ftplugin/python.vim
index 3a7190201..c00029672 100644
--- a/runtime/ftplugin/python.vim
+++ b/runtime/ftplugin/python.vim
@@ -3,7 +3,7 @@
" Maintainer: Tom Picton <[email protected]>
" Previous Maintainer: James Sully <[email protected]>
" Previous Maintainer: Johannes Zellner <[email protected]>
-" Last Change: 2024/05/11
+" Last Change: 2024/05/13
" https://github.com/tpict/vim-ftplugin-python
if exists("b:did_ftplugin") | finish | endif
@@ -14,7 +14,7 @@ set cpo&vim
setlocal cinkeys-=0#
setlocal indentkeys-=0#
setlocal include=^\s*\(from\\|import\)
-setlocal define=^\s*\([async ]\?def\\|class\)
+setlocal define=^\s*\(\(async\s\+\)\?def\\|class\)
" For imports with leading .., append / and replace additional .s with ../
let b:grandparent_match = '^\(.\.\)\(\.*\)'
--
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1s6c4d-00HSI4-LZ%40256bit.org.