vim-patch:9.0.2061: not able to detect xkb filetypes

Problem:  not able to detect xkb filetypes
Solution: Detect files below /u/s/X11/xkb as xkb files (without adding
          an extra filetype)

Those files are used from the X11 xkb extension

closes: vim/vim#13401

ae9021a840

Co-authored-by: Guido Cella <guido@guidocella.xyz>
This commit is contained in:
Christian Clason
2023-10-23 19:24:52 +02:00
parent 5f0224e848
commit 94fee35446
2 changed files with 6 additions and 0 deletions

View File

@@ -1982,6 +1982,11 @@ local pattern = {
['.*/Xresources/.*'] = starsetf('xdefaults'),
['.*/app%-defaults/.*'] = starsetf('xdefaults'),
['.*/etc/xinetd%.conf'] = 'xinetd',
['.*/usr/share/X11/xkb/compat/.*'] = starsetf('xkb'),
['.*/usr/share/X11/xkb/geometry/.*'] = starsetf('xkb'),
['.*/usr/share/X11/xkb/keycodes/.*'] = starsetf('xkb'),
['.*/usr/share/X11/xkb/symbols/.*'] = starsetf('xkb'),
['.*/usr/share/X11/xkb/types/.*'] = starsetf('xkb'),
['.*/etc/blkid%.tab'] = 'xml',
['.*/etc/blkid%.tab%.old'] = 'xml',
['.*%.vbproj%.user'] = 'xml',