diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-07-10 19:47:28 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-11 00:41:40 +0200 |
commit | afbe7736a4966f22146d857f246eac01cd080773 (patch) | |
tree | 4edd8706be74cea37110d5c47d8a0391d055e8ea /test | |
parent | f24dd5481b34b8386a0742f2cade0e877702fcbe (diff) | |
download | rneovim-afbe7736a4966f22146d857f246eac01cd080773.tar.gz rneovim-afbe7736a4966f22146d857f246eac01cd080773.tar.bz2 rneovim-afbe7736a4966f22146d857f246eac01cd080773.zip |
vim-patch:9.1.0555: filetype: angular ft detection is still problematic
Problem: filetype: angular ft detection is still problematic
(after 9.1.0551)
Solution: detect htmlangular filetype only by inspecting the content,
do not try to determine it from a generic name like
'*.component.html'
For the reasons mentioned here:
https://github.com/vim/vim/pull/13594#issuecomment-1834465890
related: vim/vim#15190
related: vim/vim#13594
related: vim/vim#13604
https://github.com/vim/vim/commit/c03f631b7b01e672787b222a55898f8dcac8d859
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_filetype.vim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index f2591c8577..a6df28696c 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -336,8 +336,7 @@ func s:GetFilenameChecks() abort \ 'hoon': ['file.hoon'], \ 'hostconf': ['/etc/host.conf', 'any/etc/host.conf'], \ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny', 'any/etc/hosts.allow', 'any/etc/hosts.deny'], - \ 'html': ['file.html', 'file.htm', 'file.cshtml'], - \ 'htmlangular': ['file.component.html'], + \ 'html': ['file.html', 'file.htm', 'file.cshtml', 'file.component.html'], \ 'htmlm4': ['file.html.m4'], \ 'httest': ['file.htt', 'file.htb'], \ 'hurl': ['file.hurl'], |