# HG changeset patch # User Christian Brabandt # Date 1701362707 -3600 # Node ID 27bf2e1c3017d32e8dc43dec9b46a97f12c8e7ea # Parent a44e1238a6d24b0daa8c6d66dcdd1b28cd9a6951 patch 9.0.2137: Can't detect angular & mustache filetypes Commit: https://github.com/vim/vim/commit/7bed263c343c62129c5d8f51796895a28db1b312 Author: ObserverOfTime Date: Thu Nov 30 17:41:19 2023 +0100 patch 9.0.2137: Can't detect angular & mustache filetypes Problem: Can't detect angular & mustache filetypes Solution: Detect *.mustache as Mustache filetype; detect *.component.html as html.angular filetype closes: #13594 Signed-off-by: ObserverOfTime Signed-off-by: Christian Brabandt diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -95,6 +95,9 @@ au BufNewFile,BufRead *.aidl setf aidl " AMPL au BufNewFile,BufRead *.run setf ampl +" Angular in HTML +au BufNewFile,BufRead *.component.html setf html.angular + " Ant au BufNewFile,BufRead build.xml setf ant @@ -1397,6 +1400,9 @@ au BufRead,BufNewFile *.mu setf mupad " Mush au BufNewFile,BufRead *.mush setf mush +" Mustache +au BufNewFile,BufRead *.mustache setf mustache + " Mutt setup file (also for Muttng) au BufNewFile,BufRead Mutt{ng,}rc setf muttrc diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -319,6 +319,7 @@ def s:GetFilenameChecks(): dict