mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.4766: KRL files using "deffct" not recognized
Problem: KRL files using "deffct" not recognized. Solution: Adjust the pattern used for matching. (Patrick Meiser-Knosowski, closes #10200)
This commit is contained in:
@@ -768,7 +768,7 @@ func Test_filetype_indent_off()
|
||||
endfunc
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Tests for specific extentions and filetypes.
|
||||
" Tests for specific extensions and filetypes.
|
||||
" Keep sorted.
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
@@ -1562,11 +1562,13 @@ func Test_src_file()
|
||||
bwipe!
|
||||
call delete('srcfile.Src')
|
||||
|
||||
" KRL global def with embedded spaces, file starts with empty line(s).
|
||||
call writefile(['', 'global def srcfile()'], 'srcfile.SRC')
|
||||
split srcfile.SRC
|
||||
call assert_equal('krl', &filetype)
|
||||
bwipe!
|
||||
" KRL global deffct with embedded spaces, file starts with empty line(s).
|
||||
for text in ['global def srcfile()', 'global deffct srcfile()']
|
||||
call writefile(['', text], 'srcfile.SRC')
|
||||
split srcfile.SRC
|
||||
call assert_equal('krl', &filetype, text)
|
||||
bwipe!
|
||||
endfor
|
||||
|
||||
" User may overrule file inspection
|
||||
let g:filetype_src = 'src'
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4766,
|
||||
/**/
|
||||
4765,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user