diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-05-13 22:46:34 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-05-14 08:27:30 +0200 |
commit | e889f6781b19b091c23c78741ba2dfe54a34b758 (patch) | |
tree | 73cb307b7bbf3bbb6dafd5ce9dc52477c7346774 /runtime/ftplugin/python.vim | |
parent | bb789bd872d91a0adca4e891de6397ec54eecc89 (diff) | |
download | rneovim-e889f6781b19b091c23c78741ba2dfe54a34b758.tar.gz rneovim-e889f6781b19b091c23c78741ba2dfe54a34b758.tar.bz2 rneovim-e889f6781b19b091c23c78741ba2dfe54a34b758.zip |
vim-patch:7961210b861c
runtime(python): Fix wrong define regex in ftplugin (vim/vim#14763)
https://github.com/vim/vim/commit/7961210b861ce9a1a773cfc1fe96b388216bb1f2
Co-authored-by: Tom Picton <tom@tompicton.com>
Diffstat (limited to 'runtime/ftplugin/python.vim')
-rw-r--r-- | runtime/ftplugin/python.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/python.vim b/runtime/ftplugin/python.vim index 3a7190201f..c000296726 100644 --- a/runtime/ftplugin/python.vim +++ b/runtime/ftplugin/python.vim @@ -3,7 +3,7 @@ " Maintainer: Tom Picton <tom@tompicton.com> " Previous Maintainer: James Sully <sullyj3@gmail.com> " Previous Maintainer: Johannes Zellner <johannes@zellner.org> -" 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 = '^\(.\.\)\(\.*\)' |