mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 16:23:48 +00:00
vim-patch:9.2.0589: filetype: xinitrc files are not recognized (#40102)
Problem: filetype: xinitrc files are not recognized
Solution: Detect xinitrc and xserverrc files as sh filetype
(Enrico Maria De Angelis)
Reference:
https://wiki.archlinux.org/title/Xinit#Configuration
closes: vim/vim#20419
5b76ddcc52
Co-authored-by: Enrico Maria De Angelis <enricomaria.dean6elis@gmail.com>
This commit is contained in:
@@ -2165,6 +2165,9 @@ local pattern = {
|
||||
['/etc/serial%.conf$'] = 'setserial',
|
||||
['/etc/udev/cdsymlinks%.conf$'] = 'sh',
|
||||
['/etc/profile$'] = detect.sh,
|
||||
['^/etc/X11/xinit/xinitrc$'] = 'sh',
|
||||
['^/etc/X11/xinit/xinitrc%.d/'] = 'sh',
|
||||
['^/etc/X11/xinit/xserverrc$'] = 'sh',
|
||||
['/etc/slp%.conf$'] = 'slpconf',
|
||||
['/etc/slp%.reg$'] = 'slpreg',
|
||||
['/etc/slp%.spi$'] = 'slpspi',
|
||||
@@ -2528,6 +2531,8 @@ local pattern = {
|
||||
['/%.icewm/menu$'] = 'icemenu',
|
||||
['/%.libao$'] = 'libao',
|
||||
['/%.pinforc$'] = 'pinfo',
|
||||
['^${HOME}/%.xinitrc$'] = 'sh',
|
||||
['^${HOME}/%.xserverrc$'] = 'sh',
|
||||
['/%.cargo/credentials$'] = 'toml',
|
||||
['/%.init/.*%.override$'] = 'upstart',
|
||||
['/%.kube/kuberc$'] = 'yaml',
|
||||
|
||||
Reference in New Issue
Block a user