# HG changeset patch # User Bram Moolenaar # Date 1648893604 -7200 # Node ID 4e2753f7ec65b3088c35c3b89b1e17dddae3949e # Parent 84ae260b2adad1a875f6ba0c95db68926e39a2b6 patch 8.2.4664: Elvish files are not recognized Commit: https://github.com/vim/vim/commit/c1658a196bb05dd96562fd0a92409be2201b62e9 Author: Bruno Roque 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) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- 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") diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- 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'], diff --git a/src/version.c b/src/version.c --- 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,