aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-10-31 09:50:10 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-10-31 10:24:37 +0100
commit82e5066a7f8606dc677271049ead4829eb57935a (patch)
treebb640d1e130f610c1fe2181a1dcb6d92372ead8e
parent295920845ebd78b2bad210eba51824369de44b19 (diff)
downloadrneovim-82e5066a7f8606dc677271049ead4829eb57935a.tar.gz
rneovim-82e5066a7f8606dc677271049ead4829eb57935a.tar.bz2
rneovim-82e5066a7f8606dc677271049ead4829eb57935a.zip
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 https://github.com/vim/vim/commit/a68bd6f089239a51ba90026b18109707e601b107 Co-authored-by: Xudong Zheng <7pkvm5aw@slicealias.com>
-rw-r--r--runtime/lua/vim/filetype.lua1
-rw-r--r--test/old/testdir/test_filetype.vim2
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index aa74a67968..f6928c6428 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -402,6 +402,7 @@ local extension = {
dtso = 'dts',
its = 'dts',
keymap = 'dts',
+ overlay = 'dts',
dylan = 'dylan',
intr = 'dylanintr',
lid = 'dylanlid',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
index f8dde05415..6fc9f8e65c 100644
--- a/test/old/testdir/test_filetype.vim
+++ b/test/old/testdir/test_filetype.vim
@@ -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'],