patch 9.2.1249: filetype: Intel ISPC files are not recognized

Problem:  filetype: Intel Implicit SPMD Program Compiler files are not
          recognized
Solution: Detect *.ispc and *.isph files as ispc filetype
          (Mao-Yining)

Reference:
https://ispc.github.io/

closes: #21597

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Mao-Yining authored and Christian Brabandt committed 2026-10-27 15:04:01 +00:00
1 parent 547be96aa3
commit 311b1cfe83
3 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -3,7 +3,7 @@ vim9script
# Vim functions for file type detection
#
# Maintainer: The Vim Project <https://github.com/vim/vim>
# Last Change: 2026 Sep 24
# Last Change: 2026 Oct 18
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
# These functions are moved here from runtime/filetype.vim to make startup
@@ -2299,6 +2299,9 @@ const ft_from_ext = {
"INI": "dosini",
# Inko
"inko": "inko",
# ISPC (Implicit SPMD Program Compiler)
"ispc": "ispc",
"isph": "ispc",
# Inno Setup
"iss": "iss",
# J
+1
View File
@@ -411,6 +411,7 @@ def s:GetFilenameChecks(): dict<list<string>>
inko: ['file.inko'],
ipfilter: ['ipf.conf', 'ipf6.conf', 'ipf.rules'],
ipkg: ['file.ipkg'],
ispc: ['file.ispc', 'file.isph'],
iss: ['file.iss'],
ist: ['file.ist', 'file.mst'],
j: ['file.ijs'],
+2
View File
@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1249,
/**/
1248,
/**/