diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-04-17 10:15:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-17 10:15:41 +0200 |
commit | 670ecfc0cd81d7ec213591c96d45922390d109b9 (patch) | |
tree | 7e4edd6bf57e5b314f15fd44c2d0c8e27ee66231 /src | |
parent | ae325e627484fa0402a3fd8c75508c8c0f82a9c3 (diff) | |
download | rneovim-670ecfc0cd81d7ec213591c96d45922390d109b9.tar.gz rneovim-670ecfc0cd81d7ec213591c96d45922390d109b9.tar.bz2 rneovim-670ecfc0cd81d7ec213591c96d45922390d109b9.zip |
vim-patch:8.2.4766: KRL files using "deffct" not recognized (#18137)
Problem: KRL files using "deffct" not recognized.
Solution: Adjust the pattern used for matching. (Patrick Meiser-Knosowski,
closes vim/vim#10200)
https://github.com/vim/vim/commit/93c7a45e86934a92ec513b437fe9b8cc343c53e3
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 85d9a75824..2a26c58bb6 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -743,7 +743,7 @@ func Test_setfiletype_completion() endfunc """"""""""""""""""""""""""""""""""""""""""""""""" -" Tests for specific extentions and filetypes. +" Tests for specific extensions and filetypes. " Keep sorted. """"""""""""""""""""""""""""""""""""""""""""""""" @@ -1535,11 +1535,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' |