neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 4f07ad77869b30ecf7b7b7ed9b53ffcda908c94b
parent 989312ed8435075947fcb5f1c6899b43519c37f6
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Thu, 15 Feb 2024 00:09:00 +0100

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>

Diffstat:
Mruntime/lua/vim/filetype.lua | 1+
Mtest/old/testdir/test_filetype.vim | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 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 @@ -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'],