Mercurial > vim
view runtime/indent/testdir/vim.ok @ 26540:682ff45f289f v8.2.3799
patch 8.2.3799: edit test hangs or fails
Commit: https://github.com/vim/vim/commit/80d60910ff493f7b8ea52156e4c7df7e70a348c6
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 13 19:14:52 2021 +0000
patch 8.2.3799: edit test hangs or fails
Problem: Edit test hangs or fails.
Solution: Do not rethrow an exception when inside try/catch.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Dec 2021 20:15:03 +0100 |
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