view src/testdir/test_modeline.vim @ 14946:8ca1dc213836 v8.1.0484

patch 8.1.0484: some file types are not recognized commit https://github.com/vim/vim/commit/38654503b04dd5ff4813f81892d9f62db1ff01b9 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 19 16:27:31 2018 +0200 patch 8.1.0484: some file types are not recognized Problem: Some file types are not recognized. Solution: Update the file type detection.
author Bram Moolenaar <Bram@vim.org>
date Fri, 19 Oct 2018 16:30:09 +0200
parents 68722ba52971
children 85467d180844
line wrap: on
line source

" Tests for parsing the modeline.

func Test_modeline_invalid()
  " This was reading before allocated memory.
  call writefile(['vi:0', 'nothing'], 'Xmodeline')
  call assert_fails('split Xmodeline', 'E518:')
  bwipe!
  call delete('Xmodeline')
endfunc