diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-02-15 00:09:00 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-02-15 10:01:16 +0100 |
commit | 4f07ad77869b30ecf7b7b7ed9b53ffcda908c94b (patch) | |
tree | 9a04379512c9e856d2744947ef4de181c26de2ac | |
parent | 989312ed8435075947fcb5f1c6899b43519c37f6 (diff) | |
download | rneovim-4f07ad77869b30ecf7b7b7ed9b53ffcda908c94b.tar.gz rneovim-4f07ad77869b30ecf7b7b7ed9b53ffcda908c94b.tar.bz2 rneovim-4f07ad77869b30ecf7b7b7ed9b53ffcda908c94b.zip |
vim-patch:9.1.0108: filetype: no support for dtso files
Problem: filetype: no support for dtso files
Solution: Add detection for *.dtso files as dts file type
(Markus Schneider-Pargmann)
*.dtso files are devicetree overlay files which have the same syntax as dts or dtsi files.
closes: vim/vim#14026
https://github.com/vim/vim/commit/b1700fb33fe02838d679b9215e501455cf4c1156
Co-authored-by: Markus Schneider-Pargmann <msp@baylibre.com>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 7fa92d1664..e73d139d02 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -364,6 +364,7 @@ local extension = { d = detect.dtrace, dts = 'dts', dtsi = 'dts', + dtso = 'dts', dylan = 'dylan', intr = 'dylanintr', lid = 'dylanlid', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 904ff2e7c0..45b0258452 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -204,7 +204,7 @@ func s:GetFilenameChecks() abort \ 'dracula': ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'], \ 'dtd': ['file.dtd'], \ 'dtrace': ['/usr/lib/dtrace/io.d'], - \ 'dts': ['file.dts', 'file.dtsi'], + \ 'dts': ['file.dts', 'file.dtsi', 'file.dtso'], \ 'dune': ['jbuild', 'dune', 'dune-project', 'dune-workspace'], \ 'dylan': ['file.dylan'], \ 'dylanintr': ['file.intr'], |