diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-11 18:38:54 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-11 18:40:46 +0800 |
commit | 2dc86ef3b2328e5ee7b2d814cda05da17ec25eaa (patch) | |
tree | fa993ab69ff68e6029c28ff9888fed285134ce11 /runtime | |
parent | 18ed556bbd95a7d3d925432e71c33dcfc6bf47b8 (diff) | |
download | rneovim-2dc86ef3b2328e5ee7b2d814cda05da17ec25eaa.tar.gz rneovim-2dc86ef3b2328e5ee7b2d814cda05da17ec25eaa.tar.bz2 rneovim-2dc86ef3b2328e5ee7b2d814cda05da17ec25eaa.zip |
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 vim/vim#10147)
https://github.com/vim/vim/commit/4232dff815db1a727cb1aea26783267d8bd731c3
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 10 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index d28c13e16c..c5690ba716 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -412,9 +412,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 @@ -793,6 +793,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 @@ -1898,6 +1901,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 diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index a4d0264384..880b99a2fa 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -173,9 +173,7 @@ local extension = { lid = "dylanlid", ecd = "ecd", eex = "eelixir", - heex = "eelixir", leex = "eelixir", - sface = "eelixir", exs = "elixir", elm = "elm", elv = "elvish", @@ -269,6 +267,7 @@ local extension = { ev = "hercules", vc = "hercules", hcl = "hcl", + heex = "heex", hex = "hex", ["h32"] = "hex", hjson = "hjson", @@ -645,6 +644,7 @@ local extension = { mata = "stata", ado = "stata", stp = "stp", + sface = "surface", svelte = "svelte", svg = "svg", swift = "swift", |