Patch 9.0.1014
Problem:    Zir files are not recognized.
Solution:   Add a pattern for Zir files. (closes #11664)
Files:      runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-9.0.1013/runtime/filetype.vim        2022-11-26 13:03:16.607914472 
+0000
--- runtime/filetype.vim        2022-12-05 21:37:39.379161173 +0000
***************
*** 1855,1862 ****
  " (patterns ending in a start further below)
  au BufNewFile,BufRead 
.login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias  call dist#ft#CSH()
  
! " Zig
  au BufNewFile,BufRead *.zig                   setf zig
  
  " Z-Shell script (patterns ending in a star further below)
  au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks  setf zsh
--- 1855,1863 ----
  " (patterns ending in a start further below)
  au BufNewFile,BufRead 
.login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias  call dist#ft#CSH()
  
! " Zig and Zir (Zig Intermediate Representation)
  au BufNewFile,BufRead *.zig                   setf zig
+ au BufNewFile,BufRead *.zir                   setf zir
  
  " Z-Shell script (patterns ending in a star further below)
  au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks  setf zsh
*** ../vim-9.0.1013/src/testdir/test_filetype.vim       2022-11-26 
13:03:16.607914472 +0000
--- src/testdir/test_filetype.vim       2022-12-05 21:39:16.747144118 +0000
***************
*** 652,657 ****
--- 652,658 ----
      \ 'zig': ['file.zig'],
      \ 'zimbu': ['file.zu'],
      \ 'zimbutempl': ['file.zut'],
+     \ 'zir': ['file.zir'],
      \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', 
'.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zcompdump-file', 
'.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 
'zlog-file', 'zsh', 'zsh-file'],
      \
      \ 'help': [$VIMRUNTIME . '/doc/help.txt'],
*** ../vim-9.0.1013/src/version.c       2022-12-05 21:21:42.799308158 +0000
--- src/version.c       2022-12-05 21:38:31.379151838 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1014,
  /**/

-- 
Married is a three ring circus:
First comes the engagement ring.
Then comes the wedding ring.
Then comes the suffering.

 /// 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/20221205214240.559E01C1E36%40moolenaar.net.

Raspunde prin e-mail lui