]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0960: filetype: hy history files are not recognized v9.1.0960
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Wed, 25 Dec 2024 09:33:57 +0000 (10:33 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 25 Dec 2024 09:33:57 +0000 (10:33 +0100)
Problem:  filetype: hy history files are not recognized
Solution: detect '*.hy', '.hy-history' files as hy filetype,
          detect '.lips_repl_history' files are scheme filetype
          (Wu, Zhenyu)

closes: #16298

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 3eb173646d5d9282219ea2d2595da25323e60a77..78a44f572c2e04b556154c52183941bcf5cb2b91 100644 (file)
@@ -1109,6 +1109,9 @@ au BufNewFile,BufRead */etc/hosts.allow,*/etc/hosts.deny  setf hostsaccess
 " Hurl
 au BufRead,BufNewFile *.hurl                   setf hurl
 
+" Hy
+au BufRead,BufNewFile *.hy,.hy-history         setf hy
+
 " Hyper Builder
 au BufNewFile,BufRead *.hb                     setf hb
 
@@ -2314,8 +2317,8 @@ au BufNewFile,BufRead *.zsh,*.zsh-theme,*.zunit           setf zsh
 " Salt state files
 au BufNewFile,BufRead *.sls                    setf salt
 
-" Scheme, Supertux configuration ("racket" patterns are now separate, see above)
-au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stsg,*/supertux2/config       setf scheme
+" Scheme, Supertux configuration, Lips.js history ("racket" patterns are now separate, see above)
+au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stsg,*/supertux2/config,.lips_repl_history    setf scheme
 
 " Screen RC
 au BufNewFile,BufRead .screenrc,screenrc       setf screen
index 20a11ae432b2cf3dbefed62cac506294b205d4f9..bb9cbbeb0377ecfe25aba70695212c4dce348fb3 100644 (file)
@@ -357,6 +357,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     htmlm4: ['file.html.m4'],
     httest: ['file.htt', 'file.htb'],
     hurl: ['file.hurl'],
+    hy: ['file.hy', '.hy-history'],
     hyprlang: ['hyprlock.conf', 'hyprland.conf', 'hypridle.conf', 'hyprpaper.conf', '/hypr/foo.conf'],
     i3config: ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'],
     ibasic: ['file.iba', 'file.ibi'],
@@ -671,7 +672,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     sather: ['file.sa'],
     sbt: ['file.sbt'],
     scala: ['file.scala'],
-    scheme: ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config'],
+    scheme: ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config', '.lips_repl_history'],
     scilab: ['file.sci', 'file.sce'],
     screen: ['.screenrc', 'screenrc'],
     scss: ['file.scss'],
index 9f2d5fe3da15d37321065d4d0b49a7e04fb4a00a..632b5590acd6f307da90f57e46b06a7a9e0eb1cd 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    960,
 /**/
     959,
 /**/