mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
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:
parent
295920845e
commit
82e5066a7f
@ -402,6 +402,7 @@ local extension = {
|
||||
dtso = 'dts',
|
||||
its = 'dts',
|
||||
keymap = 'dts',
|
||||
overlay = 'dts',
|
||||
dylan = 'dylan',
|
||||
intr = 'dylanintr',
|
||||
lid = 'dylanlid',
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user