diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-01-21 23:12:31 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-01-21 23:19:16 -0500 |
commit | 4bd7f1133ba8dabe4953144db001ca417afebb8e (patch) | |
tree | ae1924aab60c09abe732b66e4baf367b9587ea22 /src | |
parent | 94cb3b4b3513510893bd9ee4afc00223956e9238 (diff) | |
download | rneovim-4bd7f1133ba8dabe4953144db001ca417afebb8e.tar.gz rneovim-4bd7f1133ba8dabe4953144db001ca417afebb8e.tar.bz2 rneovim-4bd7f1133ba8dabe4953144db001ca417afebb8e.zip |
vim-patch:8.2.2384: turtle filetype not recognized
Problem: Turtle filetype not recognized.
Solution: Add a rule to detect turtle files. (closes vim/vim#7722)
https://github.com/vim/vim/commit/5e6a7aa2b26077775906eb8411952dc6259694de
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 180170fe9a..815827e224 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -692,6 +692,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 |