diff options
author | LosFarmosCTL <80157503+LosFarmosCTL@users.noreply.github.com> | 2024-09-10 20:44:59 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-09-10 20:44:59 +0200 |
commit | 03cac4b70d819148f4b4404701b8f331a3af0fb6 (patch) | |
tree | 62b54f5db260d832b3dfae2bf90d571d99481871 | |
parent | d30ffdca495d116da359aaea806ad0da7b4b6c75 (diff) |
patch 9.1.0725: filetype: swiftinterface files are not recognizedv9.1.0725
Problem: filetype: swiftinterface files are not recognized
Solution: Detect '*.swiftinterface' files as swift filetype
(LosFarmosCTL)
closes: #15658
Signed-off-by: LosFarmosCTL <80157503+LosFarmosCTL@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/filetype.vim | 2 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 220b37173e..3af6d03eac 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2371,7 +2371,7 @@ au BufNewFile,BufRead *.sml setf sml au BufNewFile,BufRead *.cm setf voscm " Swift -au BufNewFile,BufRead *.swift setf swift +au BufNewFile,BufRead *.swift,*.swiftinterface setf swift au BufNewFile,BufRead *.swift.gyb setf swiftgyb " Swift Intermediate Language or SILE diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 1e6c39ed99..c10023d94c 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -712,7 +712,7 @@ def s:GetFilenameChecks(): dict<list<string>> svg: ['file.svg'], svn: ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'], swayconfig: ['/home/user/.sway/config', '/home/user/.config/sway/config', '/etc/sway/config', '/etc/xdg/sway/config'], - swift: ['file.swift'], + swift: ['file.swift', 'file.swiftinterface'], swiftgyb: ['file.swift.gyb'], swig: ['file.swg', 'file.swig'], sysctl: ['/etc/sysctl.conf', '/etc/sysctl.d/file.conf', 'any/etc/sysctl.conf', 'any/etc/sysctl.d/file.conf'], diff --git a/src/version.c b/src/version.c index c8c0caf59b..62b2ab55c4 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 725, +/**/ 724, /**/ 723, |