view runtime/indent/testdir/vim.ok @ 28871:18604231a1d1 v8.2.4958

patch 8.2.4958: a couple conditions are always true Commit: https://github.com/vim/vim/commit/dd41037552c1be3548d2ce34bb1c889f14edb553 Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sun May 15 13:59:11 2022 +0100 patch 8.2.4958: a couple conditions are always true Problem: A couple conditions are always true. Solution: Remove the conditions. (Goc Dundar, closes https://github.com/vim/vim/issues/10428)
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 May 2022 15:00:02 +0200
parents 5b37a0bf7e3a
children d314efe6447a
line wrap: on
line source

" vim: set ft=vim sw=4 :

" START_INDENT

func Some()
    let x = 1
endfunc

let cmd =
	    \ 'some '
	    \ 'string'

if 1
    let x = [
		\ ]
endif

" TODO: add searchpair() to find matching {
"for x in [
"{
"key: 'value'
"},
"]
"eval 0
"endfor

for x in [
	{key: 'value'},
	]
    eval 0
endfor

" END_INDENT

" START_INDENT
" INDENT_EXE let g:vim_indent_cont = 6

let cmd =
      \ 'some '
      \ 'string'

" END_INDENT

" START_INDENT
" INDENT_EXE let g:vim_indent_cont = 5

let list = [
     \ 'one',
     \ 'two']

" END_INDENT

" START_INDENT
" INDENT_EXE unlet g:vim_indent_cont

let list = [
    'one',
    'two',
    ]
echo

" END_INDENT

" START_INDENT
" INDENT_AT  this-line
func Some()
    let f = x " this-line
endfunc
" END_INDENT

" START_INDENT
" INDENT_NEXT  next-line
func Some()
     " next-line
     let f = x
endfunc
" END_INDENT

" START_INDENT
" INDENT_PREV  prev-line
func Some()
    let f = x
" prev-line
endfunc
" END_INDENT

" START_INDENT
let a =<< END
    nothing
END
" END_INDENT

" START_INDENT
" INDENT_AT  this-line
let a=<< trim END
   blah
      blah
      blah this-line
END
" END_INDENT