diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-02-15 00:10:03 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-02-15 10:01:16 +0100 |
commit | 7ed75d410a23f3fbf0e509433ce8bee32fd63963 (patch) | |
tree | 7a0dfa74c1f287ea34ceeb302abe3a3049cf8912 | |
parent | 4f07ad77869b30ecf7b7b7ed9b53ffcda908c94b (diff) | |
download | rneovim-7ed75d410a23f3fbf0e509433ce8bee32fd63963.tar.gz rneovim-7ed75d410a23f3fbf0e509433ce8bee32fd63963.tar.bz2 rneovim-7ed75d410a23f3fbf0e509433ce8bee32fd63963.zip |
vim-patch:9.1.0109: filetype: no support for its files
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: vim/vim#14037
https://github.com/vim/vim/commit/cf1d65e060e32ba8a0ba99fc299dc192fe4aa961
Co-authored-by: Brandon Maier <brandon.maier@collins.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 e73d139d02..65f07f02d1 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -365,6 +365,7 @@ local extension = { dts = 'dts', dtsi = 'dts', dtso = 'dts', + its = 'dts', dylan = 'dylan', intr = 'dylanintr', lid = 'dylanlid', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 45b0258452..13cd1e5cb5 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', 'file.dtso'], + \ 'dts': ['file.dts', 'file.dtsi', 'file.dtso', 'file.its'], \ 'dune': ['jbuild', 'dune', 'dune-project', 'dune-workspace'], \ 'dylan': ['file.dylan'], \ 'dylanintr': ['file.intr'], |