comparison src/testdir/test_filetype.vim @ 30873:d4c8fdaa3ae7 v9.0.0771

patch 9.0.0771: cannot always tell the difference beween tex and rexx files Commit: https://github.com/vim/vim/commit/bd053f894b0d7652928201faa68c53d1ce2acdc5 Author: Martin Tournoij <martin@arp242.net> Date: Sun Oct 16 12:49:12 2022 +0100 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 #11380)
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Oct 2022 14:00:05 +0200
parents 93d8f81b8610
children ebcaf6bbb410
comparison
equal deleted inserted replaced
30872:e96a9b7caa0d 30873:d4c8fdaa3ae7
1739 call writefile(['%'], 'Xfile.cls') 1739 call writefile(['%'], 'Xfile.cls')
1740 split Xfile.cls 1740 split Xfile.cls
1741 call assert_equal('tex', &filetype) 1741 call assert_equal('tex', &filetype)
1742 bwipe! 1742 bwipe!
1743 1743
1744 call writefile(['\NeedsTeXFormat{LaTeX2e}'], 'Xfile.cls')
1745 split Xfile.cls
1746 call assert_equal('tex', &filetype)
1747 bwipe!
1748
1744 " Rexx 1749 " Rexx
1745 1750
1746 call writefile(['# rexx'], 'Xfile.cls') 1751 call writefile(['# rexx'], 'Xfile.cls')
1747 split Xfile.cls 1752 split Xfile.cls
1748 call assert_equal('rexx', &filetype) 1753 call assert_equal('rexx', &filetype)