Mercurial > vim
diff src/testdir/test_filetype.vim @ 23685:eb30aed2059f v8.2.2384
patch 8.2.2384: turtle filetype not recognized
Commit: https://github.com/vim/vim/commit/5e6a7aa2b26077775906eb8411952dc6259694de
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 21 14:45:13 2021 +0100
patch 8.2.2384: turtle filetype not recognized
Problem: Turtle filetype not recognized.
Solution: Add a rule to detect turtle files. (closes https://github.com/vim/vim/issues/7722)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 Jan 2021 15:00:05 +0100 |
parents | 334012f134f8 |
children | c5b5e7520fe2 |
line wrap: on
line diff
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -733,6 +733,23 @@ func Test_ts_file() filetype off endfunc +func Test_ttl_file() + filetype on + + call writefile(['@base <http://example.org/> .'], 'Xfile.ttl') + split Xfile.ttl + call assert_equal('turtle', &filetype) + bwipe! + + call writefile(['looks like Tera Term Language'], 'Xfile.ttl') + split Xfile.ttl + call assert_equal('teraterm', &filetype) + bwipe! + + call delete('Xfile.ttl') + filetype off +endfunc + func Test_pp_file() filetype on