mirror of
https://github.com/vim/vim.git
synced 2025-10-21 08:24:06 -04:00
runtime(hare): update for Hare 0.25.2
closes: #18222 Signed-off-by: Amelia Clarke <selene@perilune.dev> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
6bb16d2cee
commit
6d68508e62
@@ -1708,6 +1708,7 @@ endfunc
|
||||
|
||||
func Test_haredoc_file()
|
||||
filetype on
|
||||
|
||||
call assert_true(mkdir('foo/bar', 'pR'))
|
||||
|
||||
call writefile([], 'README', 'D')
|
||||
@@ -1715,28 +1716,37 @@ func Test_haredoc_file()
|
||||
call assert_notequal('haredoc', &filetype)
|
||||
bwipe!
|
||||
|
||||
let g:filetype_haredoc = 3
|
||||
call writefile([], 'foo/bar/bar.ha', 'D')
|
||||
split README
|
||||
call assert_equal('haredoc', &filetype)
|
||||
bwipe!
|
||||
|
||||
let g:filetype_haredoc = 2
|
||||
split README
|
||||
call assert_notequal('haredoc', &filetype)
|
||||
bwipe!
|
||||
|
||||
call writefile([], 'foo/foo.ha', 'D')
|
||||
split README
|
||||
call assert_equal('haredoc', &filetype)
|
||||
bwipe!
|
||||
|
||||
let g:filetype_haredoc = 1
|
||||
split README
|
||||
call assert_notequal('haredoc', &filetype)
|
||||
bwipe!
|
||||
|
||||
call writefile([], 'foo/quux.ha')
|
||||
call writefile([], 'main.ha', 'D')
|
||||
split README
|
||||
call assert_equal('haredoc', &filetype)
|
||||
bwipe!
|
||||
call delete('foo/quux.ha')
|
||||
|
||||
call writefile([], 'foo/bar/baz.ha', 'D')
|
||||
let g:filetype_haredoc = 0
|
||||
split README
|
||||
call assert_notequal('haredoc', &filetype)
|
||||
bwipe!
|
||||
|
||||
let g:haredoc_search_depth = 2
|
||||
split README
|
||||
call assert_equal('haredoc', &filetype)
|
||||
bwipe!
|
||||
unlet g:filetype_haredoc
|
||||
unlet g:haredoc_search_depth
|
||||
|
||||
filetype off
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user