comparison runtime/indent/vim.vim @ 26100:babd9f1dbe12

Update runtime files Commit: https://github.com/vim/vim/commit/113cb513f76d8866cbb6dc85fa18aded753e01da Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 7 20:27:04 2021 +0000 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Nov 2021 21:30:10 +0100
parents 5bda4653aced
children c725b8e17f1f
comparison
equal deleted inserted replaced
26099:7dbc843d95ff 26100:babd9f1dbe12
1 " Vim indent file 1 " Vim indent file
2 " Language: Vim script 2 " Language: Vim script
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2021 Apr 18 4 " Last Change: 2021 Nov 03
5 5
6 " Only load this indent file when no other was loaded. 6 " Only load this indent file when no other was loaded.
7 if exists("b:did_indent") 7 if exists("b:did_indent")
8 finish 8 finish
9 endif 9 endif
105 if prev_text !~ '^\s*au\%[tocmd]' && prev_text !~ '^\s*{.*}' 105 if prev_text !~ '^\s*au\%[tocmd]' && prev_text !~ '^\s*{.*}'
106 let i = match(prev_text, '\(^\||\)\s*\(export\s\+\)\?\({\|\(if\|wh\%[ile]\|for\|try\|cat\%[ch]\|fina\|finall\%[y]\|fu\%[nction]\|def\|el\%[seif]\)\>\)') 106 let i = match(prev_text, '\(^\||\)\s*\(export\s\+\)\?\({\|\(if\|wh\%[ile]\|for\|try\|cat\%[ch]\|fina\|finall\%[y]\|fu\%[nction]\|def\|el\%[seif]\)\>\)')
107 if i >= 0 107 if i >= 0
108 let ind += shiftwidth() 108 let ind += shiftwidth()
109 if strpart(prev_text, i, 1) == '|' && has('syntax_items') 109 if strpart(prev_text, i, 1) == '|' && has('syntax_items')
110 \ && synIDattr(synID(lnum, i, 1), "name") =~ '\(Comment\|String\)$' 110 \ && synIDattr(synID(lnum, i, 1), "name") =~ '\(Comment\|String\|PatSep\)$'
111 let ind -= shiftwidth() 111 let ind -= shiftwidth()
112 endif 112 endif
113 endif 113 endif
114 endif 114 endif
115 endif 115 endif