Mercurial > vim
changeset 34721:75b23b16fe3f v9.1.0239
patch 9.1.0239: filetype: gnuplot history files are not recognised
Commit: https://github.com/vim/vim/commit/8e47eb31cc8b29a223f1706730b8f4a5598d59ce
Author: Wu, Zhenyu <wuzhenyu@ustc.edu>
Date: Sun Mar 31 19:10:18 2024 +0200
patch 9.1.0239: filetype: gnuplot history files are not recognised
Problem: filetype: gnuplot history files are not recognised
Solution: detect .gnuplot_history files as gnuplot
(Wu, Zhenyu)
closes: #14360
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 31 Mar 2024 19:15:07 +0200 |
parents | c141ebb86a6f |
children | 0e2928c6c073 |
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 @@ -865,7 +865,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,.gnuplot_history 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', 'file.gnuplot'], + gnuplot: ['file.gpi', '.gnuplot', 'file.gnuplot', '.gnuplot_history'], go: ['file.go'], gomod: ['go.mod'], gosum: ['go.sum', 'go.work.sum'],