mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05:00
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:
committed by
Christian Brabandt
parent
4105ef16e3
commit
69dd5906fd
3
runtime/autoload/dist/ft.vim
vendored
3
runtime/autoload/dist/ft.vim
vendored
@@ -3,7 +3,7 @@ vim9script
|
|||||||
# Vim functions for file type detection
|
# Vim functions for file type detection
|
||||||
#
|
#
|
||||||
# Maintainer: The Vim Project <https://github.com/vim/vim>
|
# 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>
|
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
# These functions are moved here from runtime/filetype.vim to make startup
|
# These functions are moved here from runtime/filetype.vim to make startup
|
||||||
@@ -1659,6 +1659,7 @@ const ft_from_ext = {
|
|||||||
# XA65 MOS6510 cross assembler
|
# XA65 MOS6510 cross assembler
|
||||||
"a65": "a65",
|
"a65": "a65",
|
||||||
# Applescript
|
# Applescript
|
||||||
|
"applescript": "applescript",
|
||||||
"scpt": "applescript",
|
"scpt": "applescript",
|
||||||
# Applix ELF
|
# Applix ELF
|
||||||
"am": "elf",
|
"am": "elf",
|
||||||
|
|||||||
@@ -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',
|
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'],
|
'any/etc/proftpd/conf.file/file', 'any/etc/proftpd/file.conf', 'any/etc/proftpd/file.conf-file', 'proftpd.conf', 'proftpd.conf-file'],
|
||||||
apkbuild: ['APKBUILD'],
|
apkbuild: ['APKBUILD'],
|
||||||
applescript: ['file.scpt'],
|
applescript: ['file.scpt', 'file.applescript'],
|
||||||
aptconf: ['apt.conf', '/.aptitude/config', 'any/.aptitude/config'],
|
aptconf: ['apt.conf', '/.aptitude/config', 'any/.aptitude/config'],
|
||||||
arch: ['.arch-inventory', '=tagging-method'],
|
arch: ['.arch-inventory', '=tagging-method'],
|
||||||
arduino: ['file.ino', 'file.pde'],
|
arduino: ['file.ino', 'file.pde'],
|
||||||
|
|||||||
@@ -729,6 +729,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1889,
|
||||||
/**/
|
/**/
|
||||||
1888,
|
1888,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user