diff options
author | Martin Tournoij <martin@arp242.net> | 2022-10-16 12:49:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-16 12:49:12 +0100 |
commit | bd053f894b0d7652928201faa68c53d1ce2acdc5 (patch) | |
tree | 717cbbda10877e01c7a4c7df72136c60059a7e95 /src/testdir | |
parent | d8cd6f7427bc89aa38f42cc44f58bf5fb5f0f972 (diff) | |
download | vim-git-bd053f894b0d7652928201faa68c53d1ce2acdc5.tar.gz |
patch 9.0.0771: cannot always tell the difference beween tex and rexx filesv9.0.0771
Problem: Cannot always tell the difference beween tex and rexx files.
Solution: Recognize tex by a leading backslash. (Martin Tournoij,
closes #11380)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_filetype.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 0fb73b7df..281642ee9 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -1741,6 +1741,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') |