mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
vim-patch:7961210b861c
runtime(python): Fix wrong define regex in ftplugin (vim/vim#14763)
7961210b86
Co-authored-by: Tom Picton <tom@tompicton.com>
This commit is contained in:
parent
bb789bd872
commit
e889f6781b
@ -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 = '^\(.\.\)\(\.*\)'
|
||||
|
Loading…
Reference in New Issue
Block a user