patch 9.1.2062: filetype: djot files are not recognized

Commit: 
https://github.com/vim/vim/commit/8d0fcff002d1198f0a6cfe211f6bdcd91466e70f
Author: Hoang Nguyen <[email protected]>
Date:   Tue Jan 6 15:00:15 2026 +0000

    patch 9.1.2062: filetype: djot files are not recognized
    
    Problem:  filetype: djot files are not recognized
    Solution: Detect *.dj and *.djot files as djot filetype
              (Hoang Nguyen).
    
    Reference:
    - https://djot.net/
    
    closes: #19105
    
    Signed-off-by: Hoang Nguyen <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 0f28455b3..20c8d2ec8 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -1917,6 +1917,9 @@ const ft_from_ext = {
   # Diff files
   "diff": "diff",
   "rej": "diff",
+  # Djot
+  "dj": "djot",
+  "djot": "djot",
   # DOT
   "dot": "dot",
   "gv": "dot",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 6cbfbe2d1..4ae9b7b02 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -242,6 +242,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     dictdconf: ['dictd.conf', 'dictdfile.conf', 'dictd-file.conf'],
     diff: ['file.diff', 'file.rej'],
     dircolors: ['.dir_colors', '.dircolors', '/etc/DIR_COLORS', 
'any/etc/DIR_COLORS'],
+    djot: ['file.dj', 'file.djot'],
     dnsmasq: ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 
'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'],
     dockerfile: ['Containerfile', 'Dockerfile', 'dockerfile', 
'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 
'Containerfile.something'],
     dosbatch: ['file.bat'],
diff --git a/src/version.c b/src/version.c
index 2432ba9fb..8f4e2fa6d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2062,
 /**/
     2061,
 /**/

-- 
-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vd8lz-00H5nX-53%40256bit.org.

Raspunde prin e-mail lui