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 <hi@sgh.ng>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Samuel Huang
2025-10-31 09:03:04 +00:00
committed by Christian Brabandt
parent 4105ef16e3
commit 69dd5906fd
3 changed files with 5 additions and 2 deletions

View File

@ -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 <Bram@vim.org>
# 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",