Problem: Code style test fails.
Solution: Adjust test files.
let menuText = 'some long text to make sure the menu takes up all of the width of the window'
return #{
- \ words: [
- \ #{
- \ word: 'scrap',
- \ menu: menuText,
- \ info: "other words are\ncooler than this and some more text\nto make wrap",
- \ },
- \ #{
- \ word: 'scappier',
- \ menu: menuText,
- \ info: 'words are cool',
- \ },
- \ #{
- \ word: 'scrappier2',
- \ menu: menuText,
- \ info: 'words are cool',
- \ },
- \ ]
+ \ words: [
+ \ #{
+ \ word: 'scrap',
+ \ menu: menuText,
+ \ info: "other words are\ncooler than this and some more text\nto make wrap",
+ \ },
+ \ #{
+ \ word: 'scappier',
+ \ menu: menuText,
+ \ info: 'words are cool',
+ \ },
+ \ #{
+ \ word: 'scrappier2',
+ \ menu: menuText,
+ \ info: 'words are cool',
+ \ },
+ \ ]
\ }
endfunc
END
if 1
else
try | catch /pat/ | endtry
- try | catch /pat/
+ try | catch /pat/
endtry
- try
+ try
catch /pat/ | endtry
- try
- catch /pat/
+ try
+ catch /pat/
endtry
endif
endtry
assert_equal(266, n)
- l = [1, 2, 3]
+ l = [1, 2, 3]
try
[n] = l
catch /E1093:/
endfunc
set laststatus=2 statusline=%!Status()
redrawstatus
- set laststatus statusline=
+ set laststatus statusline=
END
v9.CheckScriptSuccess(lines)
enddef
END
v9.CheckScriptFailure(lines, 'E1269:')
enddef
-
+
def Test_lock_script_var()
var lines =<< trim END
vim9script
END
v9.CheckScriptSuccess(lines)
enddef
-
+
func Test_vim9script_not_global()
" check that items defined in Vim9 script are script-local, not global
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1258,
/**/
1257,
/**/