]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0109: filetype: no support for its files v9.1.0109
authorBrandon Maier <brandon.maier@collins.com>
Wed, 14 Feb 2024 20:31:47 +0000 (21:31 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 14 Feb 2024 20:33:40 +0000 (21:33 +0100)
Problem:  filetype: no support for its files
Solution: Add detection for *.its files as dts file type
          (Brandon Maier)

The '*.its' file type is for U-Boot Flattened Image Trees (FIT) which
use the flattened devicetree format.

See https://github.com/u-boot/u-boot/blob/master/doc/usage/fit/source_file_format.rst#terminology

closes: #14037

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 8a29621430579f0ddf0a027b9524459abe82ef89..708ce5adfe32e762f81dc16883c2c59b4e5fbdc3 100644 (file)
@@ -647,7 +647,7 @@ au BufNewFile,BufRead *.dsl
 au BufNewFile,BufRead *.dtd                    setf dtd
 
 " DTS/DSTI/DTSO (device tree files)
-au BufNewFile,BufRead *.dts,*.dtsi,*.dtso      setf dts
+au BufNewFile,BufRead *.dts,*.dtsi,*.dtso,*.its        setf dts
 
 " EDIF (*.edf,*.edif,*.edn,*.edo) or edn
 au BufNewFile,BufRead *.ed\(f\|if\|o\)         setf edif
index b38b28f38ad66c6cebff0d24cfe45eb42d187ba7..05d4754e5bf230f18dd366f02f334022a9f60b3f 100644 (file)
@@ -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', 'file.dtso'],
+    dts: ['file.dts', 'file.dtsi', 'file.dtso', 'file.its'],
     dune: ['jbuild', 'dune', 'dune-project', 'dune-workspace'],
     dylan: ['file.dylan'],
     dylanintr: ['file.intr'],
index cacfec5f43da94714c917490b2780059ec565be5..c347e9de016fa88f479aa1a862b17611bc75a7f9 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    109,
 /**/
     108,
 /**/