changeset 28277:4e2753f7ec65 v8.2.4664

patch 8.2.4664: Elvish files are not recognized Commit: https://github.com/vim/vim/commit/c1658a196bb05dd96562fd0a92409be2201b62e9 Author: Bruno Roque <brunoroque06@gmail.com> Date: Sat Apr 2 10:48:24 2022 +0100 patch 8.2.4664: Elvish files are not recognized Problem: Elvish files are not recognized. Solution: Recognize .elv files. (Bruno Roque, closes https://github.com/vim/vim/issues/10058)
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Apr 2022 12:00:04 +0200
parents 84ae260b2ada
children c943820b9c01
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -420,6 +420,9 @@ au BufNewFile,BufRead *.ex call dist#ft#
 au BufRead,BufNewFile mix.lock,*.exs setf elixir
 au BufRead,BufNewFile *.eex,*.leex setf eelixir
 
+" Elvish
+au BufRead,BufNewFile *.elv setf elvish
+
 " Euphoria 3 or 4
 au BufNewFile,BufRead *.eu,*.ew,*.exu,*.exw  call dist#ft#EuphoriaCheck()
 if has("fname_case")
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -168,6 +168,7 @@ let s:filename_checks = {
     \ 'eelixir': ['file.eex', 'file.leex'],
     \ 'elm': ['file.elm'],
     \ 'elmfilt': ['filter-rules'],
+    \ 'elvish': ['file.elv'],
     \ 'epuppet': ['file.epp'],
     \ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'],
     \ 'eruby': ['file.erb', 'file.rhtml'],
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4664,
+/**/
     4663,
 /**/
     4662,