forked from aniani/vim
patch 8.2.4733: HEEx and Surface do need a separate filetype
Problem: HEEx and Surface do need a separate filetype. Solution: Revert 8.2.4729. (closes #10147)
This commit is contained in:
committed by
Bram Moolenaar
parent
c6e0a5e98c
commit
4232dff815
@@ -416,9 +416,9 @@ au BufNewFile,BufRead *Eterm/*.cfg setf eterm
|
|||||||
" Elixir or Euphoria
|
" Elixir or Euphoria
|
||||||
au BufNewFile,BufRead *.ex call dist#ft#ExCheck()
|
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 mix.lock,*.exs setf elixir
|
||||||
au BufRead,BufNewFile *.eex,*.heex,*.leex,*.sface setf eelixir
|
au BufRead,BufNewFile *.eex,*.leex setf eelixir
|
||||||
|
|
||||||
" Elvish
|
" Elvish
|
||||||
au BufRead,BufNewFile *.elv setf elvish
|
au BufRead,BufNewFile *.elv setf elvish
|
||||||
@@ -797,6 +797,9 @@ au BufRead,BufNewFile *.hcl setf hcl
|
|||||||
" Hercules
|
" Hercules
|
||||||
au BufNewFile,BufRead *.vc,*.ev,*.sum,*.errsum setf hercules
|
au BufNewFile,BufRead *.vc,*.ev,*.sum,*.errsum setf hercules
|
||||||
|
|
||||||
|
" HEEx
|
||||||
|
au BufRead,BufNewFile *.heex setf heex
|
||||||
|
|
||||||
" HEX (Intel)
|
" HEX (Intel)
|
||||||
au BufNewFile,BufRead *.hex,*.h32 setf hex
|
au BufNewFile,BufRead *.hex,*.h32 setf hex
|
||||||
|
|
||||||
@@ -1902,6 +1905,9 @@ au BufNewFile,BufRead */etc/sudoers,sudoers.tmp setf sudoers
|
|||||||
" SVG (Scalable Vector Graphics)
|
" SVG (Scalable Vector Graphics)
|
||||||
au BufNewFile,BufRead *.svg setf svg
|
au BufNewFile,BufRead *.svg setf svg
|
||||||
|
|
||||||
|
" Surface
|
||||||
|
au BufRead,BufNewFile *.sface setf surface
|
||||||
|
|
||||||
" Tads (or Nroff or Perl test file)
|
" Tads (or Nroff or Perl test file)
|
||||||
au BufNewFile,BufRead *.t
|
au BufNewFile,BufRead *.t
|
||||||
\ if !dist#ft#FTnroff() && !dist#ft#FTperl() | setf tads | endif
|
\ if !dist#ft#FTnroff() && !dist#ft#FTperl() | setf tads | endif
|
||||||
|
@@ -166,7 +166,7 @@ let s:filename_checks = {
|
|||||||
\ 'edif': ['file.edf', 'file.edif', 'file.edo'],
|
\ 'edif': ['file.edf', 'file.edif', 'file.edo'],
|
||||||
\ 'elinks': ['elinks.conf'],
|
\ 'elinks': ['elinks.conf'],
|
||||||
\ 'elixir': ['file.ex', 'file.exs', 'mix.lock'],
|
\ 'elixir': ['file.ex', 'file.exs', 'mix.lock'],
|
||||||
\ 'eelixir': ['file.eex', 'file.heex', 'file.leex', 'file.sface'],
|
\ 'eelixir': ['file.eex', 'file.leex'],
|
||||||
\ 'elm': ['file.elm'],
|
\ 'elm': ['file.elm'],
|
||||||
\ 'elmfilt': ['filter-rules'],
|
\ 'elmfilt': ['filter-rules'],
|
||||||
\ 'elvish': ['file.elv'],
|
\ 'elvish': ['file.elv'],
|
||||||
@@ -237,6 +237,7 @@ let s:filename_checks = {
|
|||||||
\ 'hb': ['file.hb'],
|
\ 'hb': ['file.hb'],
|
||||||
\ 'hcl': ['file.hcl'],
|
\ 'hcl': ['file.hcl'],
|
||||||
\ 'hercules': ['file.vc', 'file.ev', 'file.sum', 'file.errsum'],
|
\ 'hercules': ['file.vc', 'file.ev', 'file.sum', 'file.errsum'],
|
||||||
|
\ 'heex': ['file.heex'],
|
||||||
\ 'hex': ['file.hex', 'file.h32'],
|
\ 'hex': ['file.hex', 'file.h32'],
|
||||||
\ 'hgcommit': ['hg-editor-file.txt'],
|
\ 'hgcommit': ['hg-editor-file.txt'],
|
||||||
\ 'hjson': ['file.hjson'],
|
\ 'hjson': ['file.hjson'],
|
||||||
@@ -516,6 +517,7 @@ let s:filename_checks = {
|
|||||||
\ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'],
|
\ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'],
|
||||||
\ 'stp': ['file.stp'],
|
\ 'stp': ['file.stp'],
|
||||||
\ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'],
|
\ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'],
|
||||||
|
\ 'surface': ['file.sface'],
|
||||||
\ 'svg': ['file.svg'],
|
\ 'svg': ['file.svg'],
|
||||||
\ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'],
|
\ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'],
|
||||||
\ 'swift': ['file.swift'],
|
\ 'swift': ['file.swift'],
|
||||||
@@ -929,6 +931,7 @@ func Test_dat_file()
|
|||||||
call assert_equal('dat', &filetype)
|
call assert_equal('dat', &filetype)
|
||||||
bwipe!
|
bwipe!
|
||||||
call delete('datfile.DAT')
|
call delete('datfile.DAT')
|
||||||
|
unlet g:filetype_dat
|
||||||
|
|
||||||
filetype off
|
filetype off
|
||||||
endfunc
|
endfunc
|
||||||
@@ -1523,6 +1526,7 @@ func Test_src_file()
|
|||||||
call assert_equal('src', &filetype)
|
call assert_equal('src', &filetype)
|
||||||
bwipe!
|
bwipe!
|
||||||
call delete('srcfile.SRC')
|
call delete('srcfile.SRC')
|
||||||
|
unlet g:filetype_src
|
||||||
|
|
||||||
filetype off
|
filetype off
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4733,
|
||||||
/**/
|
/**/
|
||||||
4732,
|
4732,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user