Related to #15974 and #16870.
closes: #17116
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
\ 'string'
" END_INDENT
+ When an indent script utilises timed "search*()"es and supports related
+ timeout configuration, consider setting a generous timeout value from
+ INDENT_EXE lines (look at "g:vim_indent" in "testdir/vim.in" for details).
Note that the command is not undone, you may need to reverse the effect for
the next block of lines.
# vim: set filetype=bitbake :
# START_INDENT
+# INDENT_EXE let g:pyindent_searchpair_timeout = 64
+# INDENT_EXE runtime autoload/python.vim
FOO = " \
bar \
baz \
# vim: set filetype=bitbake :
# START_INDENT
+# INDENT_EXE let g:pyindent_searchpair_timeout = 64
+# INDENT_EXE runtime autoload/python.vim
FOO = " \
bar \
baz \
% START_INDENT
+% INDENT_EXE let b:html_indent_line_limit = 64
<html>
<body>
<style>
% START_INDENT
+% INDENT_EXE let b:html_indent_line_limit = 64
<html>
<body>
<style>
# vim: set ft=python sw=4 et:
# START_INDENT
+# INDENT_EXE let g:pyindent_searchpair_timeout = 256
+# INDENT_EXE runtime autoload/python.vim
dict = {
'a': 1,
'b': 2,
# vim: set ft=python sw=4 et:
# START_INDENT
+# INDENT_EXE let g:pyindent_searchpair_timeout = 256
+# INDENT_EXE runtime autoload/python.vim
dict = {
'a': 1,
'b': 2,
set debug=throw
set nomore
-" Remember the directory where we started.
-let indentDir = getcwd()
-cd ../../src/testdir
-
-" Needed for ValgrindOrAsan().
-source shared.vim
-exe 'cd ' .. fnameescape(indentDir)
-
-if ValgrindOrAsan()
- let g:vim_indent = {"searchpair_timeout": 1024}
- let g:python_indent = {"searchpair_timeout": 1024}
-endif
-
au! SwapExists * call HandleSwapExists()
func HandleSwapExists()
" Ignore finding a swap file for the test input and output, the user might be
" vim: set ft=vim sw=4 :
" START_INDENT
+" INDENT_EXE let g:vim_indent = {'searchpair_timeout': 1024}
+" INDENT_EXE runtime autoload/dist/vimindent.vim
func Some()
let x = 1
endfunc
" vim: set ft=vim sw=4 :
" START_INDENT
+" INDENT_EXE let g:vim_indent = {'searchpair_timeout': 1024}
+" INDENT_EXE runtime autoload/dist/vimindent.vim
func Some()
let x = 1
endfunc
# vim: set ft=vim sw=4 :
# START_INDENT
+# INDENT_EXE let g:vim_indent = {'searchpair_timeout': 8192}
+# INDENT_EXE runtime autoload/dist/vimindent.vim
var result = Func(
arg1,
arg2
# END_INDENT
# START_INDENT
-# INDENT_EXE let g:vim_indent = {'more_in_bracket_block': v:true}
+# INDENT_EXE let g:vim_indent.more_in_bracket_block = v:true
def Select(Cont: func(func(any)), Pred: func(any): bool): func(func(any))
return (Emit: func(any)) => {
Cont((t: any) => {
# END_INDENT
# START_INDENT
-# INDENT_EXE unlet! g:vim_indent
+# INDENT_EXE let g:vim_indent = {'searchpair_timeout': 8192}
# END_INDENT
# START_INDENT
# vim: set ft=vim sw=4 :
# START_INDENT
+# INDENT_EXE let g:vim_indent = {'searchpair_timeout': 8192}
+# INDENT_EXE runtime autoload/dist/vimindent.vim
var result = Func(
arg1,
arg2
# END_INDENT
# START_INDENT
-# INDENT_EXE let g:vim_indent = {'more_in_bracket_block': v:true}
+# INDENT_EXE let g:vim_indent.more_in_bracket_block = v:true
def Select(Cont: func(func(any)), Pred: func(any): bool): func(func(any))
return (Emit: func(any)) => {
Cont((t: any) => {
# END_INDENT
# START_INDENT
-# INDENT_EXE unlet! g:vim_indent
+# INDENT_EXE let g:vim_indent = {'searchpair_timeout': 8192}
# END_INDENT
# START_INDENT