vim-patch:9.1.0823: filetype: Zephyr overlay files not recognized

Problem:  filetype: Zephyr overlay files not recognized
Solution: detect '*.overlay' files as dts filetype,
          include syntax tests for DTS files
          (Xudong Zheng)

Reference:
https://docs.zephyrproject.org/latest/build/dts/howtos.html

closes: vim/vim#15963

a68bd6f089

Co-authored-by: Xudong Zheng <7pkvm5aw@slicealias.com>
This commit is contained in:
Christian Clason 2024-10-31 09:50:10 +01:00 committed by Christian Clason
parent 295920845e
commit 82e5066a7f
2 changed files with 2 additions and 1 deletions

View File

@ -402,6 +402,7 @@ local extension = {
dtso = 'dts',
its = 'dts',
keymap = 'dts',
overlay = 'dts',
dylan = 'dylan',
intr = 'dylanintr',
lid = 'dylanlid',

View File

@ -239,7 +239,7 @@ func s:GetFilenameChecks() abort
\ 'dracula': ['file.drac', 'file.drc', 'file.lvs', 'file.lpe', 'drac.file'],
\ 'dtd': ['file.dtd'],
\ 'dtrace': ['/usr/lib/dtrace/io.d'],
\ 'dts': ['file.dts', 'file.dtsi', 'file.dtso', 'file.its', 'file.keymap'],
\ 'dts': ['file.dts', 'file.dtsi', 'file.dtso', 'file.its', 'file.keymap', 'file.overlay'],
\ 'dune': ['jbuild', 'dune', 'dune-project', 'dune-workspace', 'dune-file'],
\ 'dylan': ['file.dylan'],
\ 'dylanintr': ['file.intr'],