0
0
mirror of https://github.com/vim/vim.git synced 2025-11-13 22:54:27 -05:00

patch 9.1.1878: filetype: Soy files are not recognized

Problem:  filetype: Soy files are not recognized
Solution: Detect *.soy files as soy filetype,
          include a soy filetype plugin (Riley Bruins)

closes: #18640

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Riley Bruins
2025-10-26 20:00:03 +00:00
committed by Christian Brabandt
parent 6a8ab8f5d4
commit 9fff99c3c2
5 changed files with 20 additions and 0 deletions

1
.github/MAINTAINERS vendored
View File

@@ -289,6 +289,7 @@ runtime/ftplugin/slint.vim @ribru17
runtime/ftplugin/snakemake.vim @ribru17
runtime/ftplugin/solidity.vim @coti-z
runtime/ftplugin/solution.vim @dkearns
runtime/ftplugin/soy.vim @ribru17
runtime/ftplugin/spajson.vim @dseomn
runtime/ftplugin/spec.vim @ignatenkobrain
runtime/ftplugin/squirrel.vim @ribru17

View File

@@ -2714,6 +2714,8 @@ const ft_from_ext = {
"hlp": "smcl",
"ihlp": "smcl",
"smcl": "smcl",
# Soy
"soy": "soy",
# Stored Procedures
"stp": "stp",
# Standard ML

14
runtime/ftplugin/soy.vim Normal file
View File

@@ -0,0 +1,14 @@
" Vim filetype plugin
" Language: Soy (Closure Templates)
" Maintainer: Riley Bruins <ribru17@gmail.com>
" Last Change: 2025 Oct 24
if exists('b:did_ftplugin')
finish
endif
let b:did_ftplugin = 1
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
setlocal commentstring=//\ %s
let b:undo_ftplugin = "setlocal comments< commentstring<"

View File

@@ -747,6 +747,7 @@ def s:GetFilenameChecks(): dict<list<string>>
snobol4: ['file.sno', 'file.spt'],
solidity: ['file.sol'],
solution: ['file.sln'],
soy: ['file.soy'],
spajson: ['any/pipewire/file.conf', 'any/pipewire/file.conf.d/other.conf',
'any/wireplumber/file.conf', 'any/wireplumber/file.conf.d/other.conf'],
sparql: ['file.rq', 'file.sparql'],

View File

@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1878,
/**/
1877,
/**/