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',
|
||||
|
||||
@@ -745,7 +745,7 @@ func s:GetFilenameChecks() abort
|
||||
\ '/tmp/bash-fc-3Ozjlw', '/tmp/bash-fc.3Ozjlw', 'PKGBUILD', 'file.bash', '/usr/share/doc/bash-completion/filter.sh',
|
||||
\ '/etc/udev/cdsymlinks.conf', 'any/etc/udev/cdsymlinks.conf', 'file.bats', '.ash_history', 'any/etc/neofetch/config.conf', '.xprofile',
|
||||
\ 'user-dirs.defaults', 'user-dirs.dirs', 'makepkg.conf', '.makepkg.conf', 'file.mdd', 'file.cygport', '.envrc', '.envrc.file', 'file.envrc', 'devscripts.conf',
|
||||
\ '.devscripts', 'file.lo', 'file.la', 'file.lai'],
|
||||
\ '.devscripts', 'file.lo', 'file.la', 'file.lai', '/etc/X11/xinit/xinitrc', '/etc/X11/xinit/xserverrc', '~/.xinitrc', '/etc/X11/xinit/xinitrc.d/foobar'],
|
||||
\ 'shaderslang': ['file.slang'],
|
||||
\ 'sieve': ['file.siv', 'file.sieve'],
|
||||
\ 'sil': ['file.sil'],
|
||||
|
||||
Reference in New Issue
Block a user