summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorMartin Tournoij <martin@arp242.net>2022-10-16 12:49:12 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-16 12:49:12 +0100
commitbd053f894b0d7652928201faa68c53d1ce2acdc5 (patch)
tree717cbbda10877e01c7a4c7df72136c60059a7e95 /src/testdir
parentd8cd6f7427bc89aa38f42cc44f58bf5fb5f0f972 (diff)
downloadvim-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.vim5
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')