]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0196: filetype: support for gnuplot files is lacking v9.1.0196
authorRobbiZ98 <113035863+RobbiZ98@users.noreply.github.com>
Thu, 21 Mar 2024 19:24:51 +0000 (20:24 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 21 Mar 2024 19:24:51 +0000 (20:24 +0100)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 0f8ac8b9fda9f146df953aa4e5a0f6c2a2b2a058..d53671ac66a6fbd2ee822cacbdd854fd5d0ac2ff 100644 (file)
@@ -862,7 +862,7 @@ au BufNewFile,BufRead *.gts                 setf typescript.glimmer
 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
index 94f5812b52270ae0ae3e92f28eeef2d4f8ecb26b..d77e5e0ac7edd8a2e96c066fc473e837eccc43ab 100644 (file)
@@ -283,7 +283,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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'],
index bb2980b0b42fdc466722d127d39be5fdf757ac88..ad9f6e1dfa1e390d6be4e0b42ec568e1cf1eea73 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    196,
 /**/
     195,
 /**/