1
0
forked from aniani/vim

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)
This commit is contained in:
Aaron Tinio
2022-04-10 12:13:56 +01:00
committed by Bram Moolenaar
parent 021996ffaa
commit fa76a24109
3 changed files with 5 additions and 11 deletions

View File

@@ -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