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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221016114943.DA1271C11B0%40moolenaar.net.

Raspunde prin e-mail lui