comparison src/testdir/test_vimscript.vim @ 11352:251f1833db7d v8.0.0561

patch 8.0.0561: undefined behavior when using backslash after empty line commit https://github.com/vim/vim/commit/478af67dd6a9adc456464c3736bda328ae3a28cb Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 10 22:22:42 2017 +0200 patch 8.0.0561: undefined behavior when using backslash after empty line Problem: Undefined behavior when using backslash after empty line. Solution: Check for an empty line. (Dominique Pelle, closes https://github.com/vim/vim/issues/1631)
author Christian Brabandt <cb@256bit.org>
date Mon, 10 Apr 2017 22:30:03 +0200
parents 1c4ebbae41d2
children 5be73ebf6a15
comparison
equal deleted inserted replaced
11351:9f40755e5429 11352:251f1833db7d
1308 call assert_exception('Vim(function):E126: Missing :endfunction') 1308 call assert_exception('Vim(function):E126: Missing :endfunction')
1309 endtry 1309 endtry
1310 endfunc 1310 endfunc
1311 1311
1312 "------------------------------------------------------------------------------- 1312 "-------------------------------------------------------------------------------
1313 " Test 96: line continuation {{{1
1314 "
1315 " Undefined behavior was detected by ubsan with line continuation
1316 " after an empty line.
1317 "-------------------------------------------------------------------------------
1318 func Test_script_emty_line_continuation()
1319
1320 \
1321 endfunc
1322
1323 "-------------------------------------------------------------------------------
1313 " Modelines {{{1 1324 " Modelines {{{1
1314 " vim: ts=8 sw=4 tw=80 fdm=marker 1325 " vim: ts=8 sw=4 tw=80 fdm=marker
1315 " vim: fdt=substitute(substitute(foldtext(),\ '\\%(^+--\\)\\@<=\\(\\s*\\)\\(.\\{-}\\)\:\ \\%(\"\ \\)\\=\\(Test\ \\d*\\)\:\\s*',\ '\\3\ (\\2)\:\ \\1',\ \"\"),\ '\\(Test\\s*\\)\\(\\d\\)\\D\\@=',\ '\\1\ \\2',\ "") 1326 " vim: fdt=substitute(substitute(foldtext(),\ '\\%(^+--\\)\\@<=\\(\\s*\\)\\(.\\{-}\\)\:\ \\%(\"\ \\)\\=\\(Test\ \\d*\\)\:\\s*',\ '\\3\ (\\2)\:\ \\1',\ \"\"),\ '\\(Test\\s*\\)\\(\\d\\)\\D\\@=',\ '\\1\ \\2',\ "")
1316 "------------------------------------------------------------------------------- 1327 "-------------------------------------------------------------------------------