aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-04-02 13:36:19 +0200
committerGitHub <noreply@github.com>2022-04-02 13:36:19 +0200
commite45d141e28a4b31b4c98f7ed1655e9c7141ae74f (patch)
tree5b2b4bb49bdf1108936048a6f906d3708eb9f17d
parentaf1b61f342618aa8d27c6e1dcbb0e360920ca89e (diff)
downloadrneovim-e45d141e28a4b31b4c98f7ed1655e9c7141ae74f.tar.gz
rneovim-e45d141e28a4b31b4c98f7ed1655e9c7141ae74f.tar.bz2
rneovim-e45d141e28a4b31b4c98f7ed1655e9c7141ae74f.zip
vim-patch:8.2.4664: Elvish files are not recognized (#17963)
Problem: Elvish files are not recognized. Solution: Recognize .elv files. (Bruno Roque, closes vim/vim#10058) https://github.com/vim/vim/commit/c1658a196bb05dd96562fd0a92409be2201b62e9
-rw-r--r--runtime/filetype.vim3
-rw-r--r--runtime/lua/vim/filetype.lua1
-rw-r--r--src/nvim/testdir/test_filetype.vim1
3 files changed, 5 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 65e0b49e61..2f4b03606c 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -416,6 +416,9 @@ au BufNewFile,BufRead *.ex call dist#ft#ExCheck()
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/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 927ef36391..65edaed530 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -177,6 +177,7 @@ local extension = {
leex = "eelixir",
exs = "elixir",
elm = "elm",
+ elv = "elvish",
epp = "epuppet",
erl = "erlang",
hrl = "erlang",
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim
index dd08d8bd09..720c003ace 100644
--- a/src/nvim/testdir/test_filetype.vim
+++ b/src/nvim/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'],