patch 9.0.2137: Can't detect angular & mustache filetypes

Commit: 
https://github.com/vim/vim/commit/7bed263c343c62129c5d8f51796895a28db1b312
Author: ObserverOfTime <chronobser...@disroot.org>
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 <chronobser...@disroot.org>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 7033dadde..0317ccc93 100644
--- 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
index 9aa440318..0de4c807a 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -319,6 +319,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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'],
+    'html.angular': ['file.component.html'],
     htmlm4: ['file.html.m4'],
     httest: ['file.htt', 'file.htb'],
     hurl: ['file.hurl'],
@@ -466,6 +467,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     mojo: ['file.mojo', 'file.🔥'],
     mupad: ['file.mu'],
     mush: ['file.mush'],
+    mustache: ['file.mustache'],
     muttrc: ['Muttngrc', 'Muttrc', '.muttngrc', '.muttngrc-file', '.muttrc',
              '.muttrc-file', '/.mutt/muttngrc', '/.mutt/muttngrc-file',
              '/.mutt/muttrc', '/.mutt/muttrc-file', '/.muttng/muttngrc',
diff --git a/src/version.c b/src/version.c
index f408e0beb..1476f981b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2137,
 /**/
     2136,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1r8k9z-008kxi-AT%40256bit.org.

Raspunde prin e-mail lui