diff options
Diffstat (limited to 'src/testdir/vim9.vim')
-rw-r--r-- | src/testdir/vim9.vim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testdir/vim9.vim b/src/testdir/vim9.vim index bb50db08e9..5877a79ef2 100644 --- a/src/testdir/vim9.vim +++ b/src/testdir/vim9.vim @@ -195,14 +195,14 @@ endfunc # CheckLegacyAndVim9Success() export def CheckTransLegacySuccess(lines: list<string>) var legacylines = lines->mapnew((_, v) => - v->substitute('\<VAR\>', 'let', 'g') - ->substitute('\<LET\>', 'let', 'g') - ->substitute('\<LSTART\>', '{', 'g') - ->substitute('\<LMIDDLE\>', '->', 'g') + v->substitute('\<VAR\>', 'let', 'g') + ->substitute('\<LET\>', 'let', 'g') + ->substitute('\<LSTART\>', '{', 'g') + ->substitute('\<LMIDDLE\>', '->', 'g') ->substitute('\<LEND\>', '}', 'g') ->substitute('\<TRUE\>', '1', 'g') ->substitute('\<FALSE\>', '0', 'g') - ->substitute('#"', ' "', 'g')) + ->substitute('#"', ' "', 'g')) CheckLegacySuccess(legacylines) enddef @@ -262,14 +262,14 @@ export def CheckLegacyAndVim9Failure(lines: list<string>, error: any) endif var legacylines = lines->mapnew((_, v) => - v->substitute('\<VAR\>', 'let', 'g') - ->substitute('\<LET\>', 'let', 'g') - ->substitute('#"', ' "', 'g')) + v->substitute('\<VAR\>', 'let', 'g') + ->substitute('\<LET\>', 'let', 'g') + ->substitute('#"', ' "', 'g')) CheckLegacyFailure(legacylines, legacyError) var vim9lines = lines->mapnew((_, v) => - v->substitute('\<VAR\>', 'var', 'g') - ->substitute('\<LET ', '', 'g')) + v->substitute('\<VAR\>', 'var', 'g') + ->substitute('\<LET ', '', 'g')) CheckDefExecFailure(vim9lines, defError) CheckScriptFailure(['vim9script'] + vim9lines, scriptError) enddef |