diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-08 21:35:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-08 21:35:07 +0000 |
commit | 1588bc8ebee22f2855f27273fc2234fff370f86c (patch) | |
tree | 7ef17f0d3739007a97fbe09daa1f96757a8ac8f2 /runtime/indent | |
parent | ed0c62e7b16b62655824df28cdd6bd75aadbb8fc (diff) |
Update runtime files
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/vim.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/indent/vim.vim b/runtime/indent/vim.vim index e1b7876ba3..8579b3fb9f 100644 --- a/runtime/indent/vim.vim +++ b/runtime/indent/vim.vim @@ -1,7 +1,7 @@ " Vim indent file " Language: Vim script " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2022 Feb 23 +" Last Change: 2022 Mar 01 " Only load this indent file when no other was loaded. if exists("b:did_indent") @@ -105,7 +105,7 @@ function GetVimIndentIntern() " terminated dict. " ":function" starts a block but "function(" doesn't. if prev_text !~ '^\s*au\%[tocmd]' && prev_text !~ '^\s*{.*}' - let i = match(prev_text, '\(^\||\)\s*\(export\s\+\)\?\({\|\(if\|wh\%[ile]\|for\|try\|cat\%[ch]\|fina\|finall\%[y]\|def\|el\%[seif]\)\>\|fu\%[nction]\s\)') + let i = match(prev_text, '\(^\||\)\s*\(export\s\+\)\?\({\|\(if\|wh\%[ile]\|for\|try\|cat\%[ch]\|fina\|finall\%[y]\|def\|el\%[seif]\)\>\|fu\%[nction][! ]\)') if i >= 0 let ind += shiftwidth() if strpart(prev_text, i, 1) == '|' && has('syntax_items') |