diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-01-11 17:15:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 17:15:54 +0100 |
commit | 8c5c2136fef12e6fe00739c91ff994344ab5d466 (patch) | |
tree | b26b4937a6e294a4126f5a94602ddb86bb30ca5f | |
parent | 3d49d39cd8a322b201d0b72ff5372f871e1b93d2 (diff) | |
download | rneovim-8c5c2136fef12e6fe00739c91ff994344ab5d466.tar.gz rneovim-8c5c2136fef12e6fe00739c91ff994344ab5d466.tar.bz2 rneovim-8c5c2136fef12e6fe00739c91ff994344ab5d466.zip |
vim-patch:9.0.1176: smithy files are not recognized (#21751)
Problem: smithy files are not recognized.
Solution: Add a pattern for Smithy files. (Chris Kipp, closes vim/vim#11804)
https://github.com/vim/vim/commit/f68cddabffcbc5b8fbfe9003182cb4b55ff8d72c
Co-authored-by: Chris Kipp <ckipp@pm.me>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 7 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 7a1b79bba2..a6f40774d1 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -327,11 +327,7 @@ local extension = { end, eex = 'eelixir', leex = 'eelixir', - am = function(path, bufnr) - if not path:lower():find('makefile%.am$') then - return 'elf' - end - end, + am = 'elf', exs = 'elixir', elm = 'elm', elv = 'elvish', @@ -956,6 +952,7 @@ local extension = { hlp = 'smcl', smith = 'smith', smt = 'smith', + smithy = 'smithy', sml = 'sml', spt = 'snobol4', sno = 'snobol4', diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 52608b84cf..6b654bd032 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -529,6 +529,7 @@ let s:filename_checks = { \ 'smarty': ['file.tpl'], \ 'smcl': ['file.hlp', 'file.ihlp', 'file.smcl'], \ 'smith': ['file.smt', 'file.smith'], + \ 'smithy': ['file.smithy'], \ 'sml': ['file.sml'], \ 'snobol4': ['file.sno', 'file.spt'], \ 'solidity': ['file.sol'], |