Patch 9.0.0771
Problem: Cannot always tell the difference beween tex and rexx files.
Solution: Recognize tex by a leading backslash. (Martin Tournoij,
closes #11380)
Files: runtime/autoload/dist/ft.vim, src/testdir/test_filetype.vim
*** ../vim-9.0.0770/runtime/autoload/dist/ft.vim 2022-09-01 15:00:17.988986827 +0100
--- runtime/autoload/dist/ft.vim 2022-10-16 12:45:12.489864394 +0100
***************
*** 145,151 ****
return
endif
! if getline(1) =~ '^%'
setf tex
elseif getline(1)[0] == '#' && getline(1) =~ 'rexx'
setf rexx
--- 145,151 ----
return
endif
! if getline(1) =~ '^\v%(\%|\\)'
setf tex
elseif getline(1)[0] == '#' && getline(1) =~ 'rexx'
setf rexx
*** ../vim-9.0.0770/src/testdir/test_filetype.vim 2022-10-14 20:24:20.309925391 +0100
--- src/testdir/test_filetype.vim 2022-10-16 12:45:12.489864394 +0100
***************
*** 1741,1746 ****
--- 1741,1751 ----
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')
*** ../vim-9.0.0770/src/version.c 2022-10-16 11:30:44.440748725 +0100
--- src/version.c 2022-10-16 12:46:55.918828524 +0100
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 771,
/**/
--
Every person is responsible for the choices he makes.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///