Mercurial > vim
changeset 34609:141b9498a7f5 v9.1.0196
patch 9.1.0196: filetype: support for gnuplot files is lacking
Commit: https://github.com/vim/vim/commit/3a6bd0c5c743bf69d2e8af4c8b3c6b2cb5f3631a
Author: RobbiZ98 <113035863+RobbiZ98@users.noreply.github.com>
Date: Thu Mar 21 20:24:51 2024 +0100
patch 9.1.0196: filetype: support for gnuplot files is lacking
Problem: filetype: support for gnuplot files is lacking
Solution: Also detect *.gnuplot files
(RobbiZ98)
closes: #14243
Signed-off-by: RobbiZ98 <113035863+RobbiZ98@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Mar 2024 20:30:05 +0100 |
parents | 75853631a1ce |
children | b46d4877f2a2 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -862,7 +862,7 @@ au BufNewFile,BufRead *.gts setf types au BufNewFile,BufRead *.gjs setf javascript.glimmer " Gnuplot scripts -au BufNewFile,BufRead *.gpi,.gnuplot setf gnuplot +au BufNewFile,BufRead *.gpi,*.gnuplot setf gnuplot " Go (Google) au BufNewFile,BufRead *.go setf go
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -283,7 +283,7 @@ def s:GetFilenameChecks(): dict<list<str glsl: ['file.glsl'], gn: ['file.gn', 'file.gni'], gnash: ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'], - gnuplot: ['file.gpi', '.gnuplot'], + gnuplot: ['file.gpi', '.gnuplot', 'file.gnuplot'], go: ['file.go'], gomod: ['go.mod'], gosum: ['go.sum', 'go.work.sum'],