mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.1.0960: filetype: hy history files are not recognized
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>
This commit is contained in:
parent
b6ab33bdb2
commit
a32daed559
@ -1109,6 +1109,9 @@ au BufNewFile,BufRead */etc/hosts.allow,*/etc/hosts.deny setf hostsaccess
|
|||||||
" Hurl
|
" Hurl
|
||||||
au BufRead,BufNewFile *.hurl setf hurl
|
au BufRead,BufNewFile *.hurl setf hurl
|
||||||
|
|
||||||
|
" Hy
|
||||||
|
au BufRead,BufNewFile *.hy,.hy-history setf hy
|
||||||
|
|
||||||
" Hyper Builder
|
" Hyper Builder
|
||||||
au BufNewFile,BufRead *.hb setf hb
|
au BufNewFile,BufRead *.hb setf hb
|
||||||
|
|
||||||
@ -2314,8 +2317,8 @@ au BufNewFile,BufRead *.zsh,*.zsh-theme,*.zunit setf zsh
|
|||||||
" Salt state files
|
" Salt state files
|
||||||
au BufNewFile,BufRead *.sls setf salt
|
au BufNewFile,BufRead *.sls setf salt
|
||||||
|
|
||||||
" Scheme, Supertux configuration ("racket" patterns are now separate, see above)
|
" Scheme, Supertux configuration, Lips.js history ("racket" patterns are now separate, see above)
|
||||||
au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stsg,*/supertux2/config setf scheme
|
au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stsg,*/supertux2/config,.lips_repl_history setf scheme
|
||||||
|
|
||||||
" Screen RC
|
" Screen RC
|
||||||
au BufNewFile,BufRead .screenrc,screenrc setf screen
|
au BufNewFile,BufRead .screenrc,screenrc setf screen
|
||||||
|
@ -357,6 +357,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
htmlm4: ['file.html.m4'],
|
htmlm4: ['file.html.m4'],
|
||||||
httest: ['file.htt', 'file.htb'],
|
httest: ['file.htt', 'file.htb'],
|
||||||
hurl: ['file.hurl'],
|
hurl: ['file.hurl'],
|
||||||
|
hy: ['file.hy', '.hy-history'],
|
||||||
hyprlang: ['hyprlock.conf', 'hyprland.conf', 'hypridle.conf', 'hyprpaper.conf', '/hypr/foo.conf'],
|
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'],
|
i3config: ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'],
|
||||||
ibasic: ['file.iba', 'file.ibi'],
|
ibasic: ['file.iba', 'file.ibi'],
|
||||||
@ -671,7 +672,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
sather: ['file.sa'],
|
sather: ['file.sa'],
|
||||||
sbt: ['file.sbt'],
|
sbt: ['file.sbt'],
|
||||||
scala: ['file.scala'],
|
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'],
|
scilab: ['file.sci', 'file.sce'],
|
||||||
screen: ['.screenrc', 'screenrc'],
|
screen: ['.screenrc', 'screenrc'],
|
||||||
scss: ['file.scss'],
|
scss: ['file.scss'],
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
960,
|
||||||
/**/
|
/**/
|
||||||
959,
|
959,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user