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)
c1658a196b
This commit is contained in:
Christian Clason
2022-04-02 13:36:19 +02:00
committed by GitHub
parent af1b61f342
commit e45d141e28
3 changed files with 5 additions and 0 deletions

View File

@@ -416,6 +416,9 @@ au BufNewFile,BufRead *.ex call dist#ft#ExCheck()
au BufRead,BufNewFile mix.lock,*.exs setf elixir au BufRead,BufNewFile mix.lock,*.exs setf elixir
au BufRead,BufNewFile *.eex,*.leex setf eelixir au BufRead,BufNewFile *.eex,*.leex setf eelixir
" Elvish
au BufRead,BufNewFile *.elv setf elvish
" Euphoria 3 or 4 " Euphoria 3 or 4
au BufNewFile,BufRead *.eu,*.ew,*.exu,*.exw call dist#ft#EuphoriaCheck() au BufNewFile,BufRead *.eu,*.ew,*.exu,*.exw call dist#ft#EuphoriaCheck()
if has("fname_case") if has("fname_case")

View File

@@ -177,6 +177,7 @@ local extension = {
leex = "eelixir", leex = "eelixir",
exs = "elixir", exs = "elixir",
elm = "elm", elm = "elm",
elv = "elvish",
epp = "epuppet", epp = "epuppet",
erl = "erlang", erl = "erlang",
hrl = "erlang", hrl = "erlang",

View File

@@ -168,6 +168,7 @@ let s:filename_checks = {
\ 'eelixir': ['file.eex', 'file.leex'], \ 'eelixir': ['file.eex', 'file.leex'],
\ 'elm': ['file.elm'], \ 'elm': ['file.elm'],
\ 'elmfilt': ['filter-rules'], \ 'elmfilt': ['filter-rules'],
\ 'elvish': ['file.elv'],
\ 'epuppet': ['file.epp'], \ 'epuppet': ['file.epp'],
\ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'], \ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'],
\ 'eruby': ['file.erb', 'file.rhtml'], \ 'eruby': ['file.erb', 'file.rhtml'],