Skip to content

Commit

Permalink
vim-patch:9.1.0109: filetype: no support for its files
Browse files Browse the repository at this point in the history
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

vim/vim@cf1d65e

Co-authored-by: Brandon Maier <brandon.maier@collins.com>
  • Loading branch information
clason and blmaier committed Feb 15, 2024
1 parent 4f07ad7 commit 7ed75d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions runtime/lua/vim/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ local extension = {
dts = 'dts',
dtsi = 'dts',
dtso = 'dts',
its = 'dts',
dylan = 'dylan',
intr = 'dylanintr',
lid = 'dylanlid',
Expand Down
2 changes: 1 addition & 1 deletion test/old/testdir/test_filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 7ed75d4

Please sign in to comment.