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)
5e6a7aa2b2
This commit is contained in:
Jan Edmund Lazo
2021-01-21 23:12:31 -05:00
parent 94cb3b4b35
commit 4bd7f1133b
2 changed files with 24 additions and 2 deletions

View File

@@ -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