forked from aniani/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: #15963
Signed-off-by: Xudong Zheng <7pkvm5aw@slicealias.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
d52fb2fabd
commit
a68bd6f089
@@ -754,8 +754,12 @@ au BufNewFile,BufRead *.dsl
|
||||
" DTD (Document Type Definition for XML)
|
||||
au BufNewFile,BufRead *.dtd setf dtd
|
||||
|
||||
" DTS/DSTI/DTSO (device tree files)
|
||||
au BufNewFile,BufRead *.dts,*.dtsi,*.dtso,*.its,*.keymap setf dts
|
||||
" Devicetree (.its for U-Boot Flattened Image Trees, .keymap for ZMK keymap, and
|
||||
" .overlay for Zephyr overlay)
|
||||
au BufNewFile,BufRead *.dts,*.dtsi,*.dtso setf dts
|
||||
au BufNewFile,BufRead *.its setf dts
|
||||
au BufNewFile,BufRead *.keymap setf dts
|
||||
au BufNewFile,BufRead *.overlay setf dts
|
||||
|
||||
" Earthfile
|
||||
au BufNewFile,BufRead Earthfile setf earthfile
|
||||
|
||||
Reference in New Issue
Block a user