mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 06:16:08 +00:00
vim-patch:9.0.0771: cannot always tell the difference beween tex and … (#20687)
vim-patch:9.0.0771: cannot always tell the difference beween tex and rexx files
Problem: Cannot always tell the difference beween tex and rexx files.
Solution: Recognize tex by a leading backslash. (Martin Tournoij,
closes vim/vim#11380)
bd053f894b
This commit is contained in:

committed by
GitHub

parent
8617101b6b
commit
d44f088834
@@ -1768,6 +1768,11 @@ func Test_cls_file()
|
||||
call assert_equal('tex', &filetype)
|
||||
bwipe!
|
||||
|
||||
call writefile(['\NeedsTeXFormat{LaTeX2e}'], 'Xfile.cls')
|
||||
split Xfile.cls
|
||||
call assert_equal('tex', &filetype)
|
||||
bwipe!
|
||||
|
||||
" Rexx
|
||||
|
||||
call writefile(['# rexx'], 'Xfile.cls')
|
||||
|
Reference in New Issue
Block a user