patch 9.1.1889: filetype: not all AppleScript files are recognized

Commit: 
https://github.com/vim/vim/commit/69dd5906fd9723774715ec37ad3b44652938f655
Author: Samuel Huang <[email protected]>
Date:   Fri Oct 31 09:03:04 2025 +0000

    patch 9.1.1889: filetype: not all AppleScript files are recognized
    
    Problem:  filetype: not all AppleScript files are recognized
    Solution: Detect *.applescript files as applescript filetype
              (Samuel Huang)
    
    Reference:
    https://en.wikipedia.org/wiki/AppleScript
    
    closes: #18672
    
    Signed-off-by: Samuel Huang <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 791dccf67..88e81099e 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -3,7 +3,7 @@ vim9script
 # Vim functions for file type detection
 #
 # Maintainer:          The Vim Project <https://github.com/vim/vim>
-# Last Change:         2025 Oct 28
+# Last Change:         2025 Oct 31
 # Former Maintainer:   Bram Moolenaar <[email protected]>
 
 # These functions are moved here from runtime/filetype.vim to make startup
@@ -1659,6 +1659,7 @@ const ft_from_ext = {
   # XA65 MOS6510 cross assembler
   "a65": "a65",
   # Applescript
+  "applescript": "applescript",
   "scpt": "applescript",
   # Applix ELF
   "am": "elf",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index f7d95082d..31aa2b2d5 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -114,7 +114,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     apachestyle: ['/etc/proftpd/file.config,/etc/proftpd/conf.file/file', 
'/etc/proftpd/conf.file/file', '/etc/proftpd/file.conf', 
'/etc/proftpd/file.conf-file',
       'any/etc/proftpd/conf.file/file', 'any/etc/proftpd/file.conf', 
'any/etc/proftpd/file.conf-file', 'proftpd.conf', 'proftpd.conf-file'],
     apkbuild: ['APKBUILD'],
-    applescript: ['file.scpt'],
+    applescript: ['file.scpt', 'file.applescript'],
     aptconf: ['apt.conf', '/.aptitude/config', 'any/.aptitude/config'],
     arch: ['.arch-inventory', '=tagging-method'],
     arduino: ['file.ino', 'file.pde'],
diff --git a/src/version.c b/src/version.c
index ef98c1696..4e0477dd9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1889,
 /**/
     1888,
 /**/

-- 
-- 
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/E1vElDw-00Dfyc-FP%40256bit.org.

Raspunde prin e-mail lui