From fa76a24109f3c3287e4ee17b6270bfd5310c12f3 Mon Sep 17 00:00:00 2001 From: Aaron Tinio Date: Sun, 10 Apr 2022 12:13:56 +0100 Subject: [PATCH] patch 8.2.4729: HEEx and Surface templates do not need a separate filetype Problem: HEEx and Surface templates do not need a separate filetype. Solution: Use Eelixir for the similar filetypes. (Aaron Tinio, closes #10124) --- runtime/filetype.vim | 10 ++-------- src/testdir/test_filetype.vim | 4 +--- src/version.c | 2 ++ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 62afb375c..9816c04a5 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -416,9 +416,9 @@ au BufNewFile,BufRead *Eterm/*.cfg setf eterm " Elixir or Euphoria au BufNewFile,BufRead *.ex call dist#ft#ExCheck() -" Elixir +" Elixir, also used for HEEx and Surface au BufRead,BufNewFile mix.lock,*.exs setf elixir -au BufRead,BufNewFile *.eex,*.leex setf eelixir +au BufRead,BufNewFile *.eex,*.heex,*.leex,*.sface setf eelixir " Elvish au BufRead,BufNewFile *.elv setf elvish @@ -797,9 +797,6 @@ au BufRead,BufNewFile *.hcl setf hcl " Hercules au BufNewFile,BufRead *.vc,*.ev,*.sum,*.errsum setf hercules -" HEEx -au BufRead,BufNewFile *.heex setf heex - " HEX (Intel) au BufNewFile,BufRead *.hex,*.h32 setf hex @@ -1905,9 +1902,6 @@ au BufNewFile,BufRead */etc/sudoers,sudoers.tmp setf sudoers " SVG (Scalable Vector Graphics) au BufNewFile,BufRead *.svg setf svg -" Surface -au BufRead,BufNewFile *.sface setf surface - " Tads (or Nroff or Perl test file) au BufNewFile,BufRead *.t \ if !dist#ft#FTnroff() && !dist#ft#FTperl() | setf tads | endif diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 7a91cef8c..b1b912e01 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -166,7 +166,7 @@ let s:filename_checks = { \ 'edif': ['file.edf', 'file.edif', 'file.edo'], \ 'elinks': ['elinks.conf'], \ 'elixir': ['file.ex', 'file.exs', 'mix.lock'], - \ 'eelixir': ['file.eex', 'file.leex'], + \ 'eelixir': ['file.eex', 'file.heex', 'file.leex', 'file.sface'], \ 'elm': ['file.elm'], \ 'elmfilt': ['filter-rules'], \ 'elvish': ['file.elv'], @@ -237,7 +237,6 @@ let s:filename_checks = { \ 'hb': ['file.hb'], \ 'hcl': ['file.hcl'], \ 'hercules': ['file.vc', 'file.ev', 'file.sum', 'file.errsum'], - \ 'heex': ['file.heex'], \ 'hex': ['file.hex', 'file.h32'], \ 'hgcommit': ['hg-editor-file.txt'], \ 'hjson': ['file.hjson'], @@ -517,7 +516,6 @@ let s:filename_checks = { \ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'], \ 'stp': ['file.stp'], \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'], - \ 'surface': ['file.sface'], \ 'svg': ['file.svg'], \ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'], \ 'swift': ['file.swift'], diff --git a/src/version.c b/src/version.c index 9657184d2..5bffc8582 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4729, /**/ 4728, /**/ -- 2.40.0