diff options
author | Markus Schneider-Pargmann <msp@baylibre.com> | 2024-02-14 20:44:28 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-14 20:44:28 +0100 |
commit | b1700fb33fe02838d679b9215e501455cf4c1156 (patch) | |
tree | e9f1656059c425999e15d95dbdeb85007033b575 | |
parent | 49f2ba6d41d3c6142deaa4a50b0b16e03969a904 (diff) |
patch 9.1.0108: filetype: no support for dtso filesv9.1.0108
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: #14026
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/filetype.vim | 4 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 17fe86d7b4..8a29621430 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -646,8 +646,8 @@ au BufNewFile,BufRead *.dsl " DTD (Document Type Definition for XML) au BufNewFile,BufRead *.dtd setf dtd -" DTS/DSTI (device tree files) -au BufNewFile,BufRead *.dts,*.dtsi setf dts +" DTS/DSTI/DTSO (device tree files) +au BufNewFile,BufRead *.dts,*.dtsi,*.dtso setf dts " EDIF (*.edf,*.edif,*.edn,*.edo) or edn au BufNewFile,BufRead *.ed\(f\|if\|o\) setf edif diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 544557afb0..b38b28f38a 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -214,7 +214,7 @@ def s:GetFilenameChecks(): dict<list<string>> 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'], diff --git a/src/version.c b/src/version.c index 96f1a556af..cacfec5f43 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 108, +/**/ 107, /**/ 106, |