]> granicus.if.org Git - vim/commitdiff
patch 8.2.4733: HEEx and Surface do need a separate filetype v8.2.4733
authorAaron Tinio <aptinio@gmail.com>
Mon, 11 Apr 2022 10:37:13 +0000 (11:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 11 Apr 2022 10:37:13 +0000 (11:37 +0100)
Problem:    HEEx and Surface do need a separate filetype.
Solution:   Revert 8.2.4729. (closes #10147)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 9816c04a547f7e6b53bc383c7ac3bca24fec08a3..62afb375cba441ca764726935aa235991d27e30e 100644 (file)
@@ -416,9 +416,9 @@ au BufNewFile,BufRead *Eterm/*.cfg          setf eterm
 " Elixir or Euphoria
 au BufNewFile,BufRead *.ex call dist#ft#ExCheck()
 
-" Elixir, also used for HEEx and Surface
+" Elixir
 au BufRead,BufNewFile mix.lock,*.exs setf elixir
-au BufRead,BufNewFile *.eex,*.heex,*.leex,*.sface setf eelixir
+au BufRead,BufNewFile *.eex,*.leex setf eelixir
 
 " Elvish
 au BufRead,BufNewFile *.elv setf elvish
@@ -797,6 +797,9 @@ 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
 
@@ -1902,6 +1905,9 @@ 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
index b1b912e0167210f770ebc3cf889dc5b6b865d36e..a609de784d55cdc02cc3019a977badd27f3b1de2 100644 (file)
@@ -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.heex', 'file.leex', 'file.sface'],
+    \ 'eelixir': ['file.eex', 'file.leex'],
     \ 'elm': ['file.elm'],
     \ 'elmfilt': ['filter-rules'],
     \ 'elvish': ['file.elv'],
@@ -237,6 +237,7 @@ 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'],
@@ -516,6 +517,7 @@ 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'],
@@ -929,6 +931,7 @@ func Test_dat_file()
   call assert_equal('dat', &filetype)
   bwipe!
   call delete('datfile.DAT')
+  unlet g:filetype_dat
 
   filetype off
 endfunc
@@ -1523,6 +1526,7 @@ func Test_src_file()
   call assert_equal('src', &filetype)
   bwipe!
   call delete('srcfile.SRC')
+  unlet g:filetype_src
 
   filetype off
 endfunc
index 95486ba33a9da1c4d5e61403a3efbee6cdd31e49..cf575d1a5b0409fe9ea8a0c68ab3f10b45083739 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4733,
 /**/
     4732,
 /**/