# HG changeset patch # User Bram Moolenaar # Date 1675345504 -3600 # Node ID f9dbb07cad5a0b30cd27454a4975f06c4e2cc77b # Parent 88ccc21894a4842ad8e1c6935d0f33af409f1c38 patch 9.0.1274: FIRRTL files are not recognized Commit: https://github.com/vim/vim/commit/685bf83b73d0fe6fd36bb2949bebd6aae66a139e Author: Amaan Qureshi Date: Thu Feb 2 13:30:13 2023 +0000 patch 9.0.1274: FIRRTL files are not recognized Problem: FIRRTL files are not recognized. Solution: Add a pattern for FIRRTL files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/11931) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -671,6 +671,9 @@ autocmd BufRead,BufNewFile *.fnl setf f " Fetchmail RC file au BufNewFile,BufRead .fetchmailrc setf fetchmail +" FIRRTL - Flexible Internal Representation for RTL +au BufNewFile,BufRead *.fir setf firrtl + " Fish shell au BufNewFile,BufRead *.fish setf fish diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -197,6 +197,7 @@ let s:filename_checks = { \ 'fennel': ['file.fnl'], \ 'fetchmail': ['.fetchmailrc'], \ 'fgl': ['file.4gl', 'file.4gh', 'file.m4gl'], + \ 'firrtl': ['file.fir'], \ 'fish': ['file.fish'], \ 'focexec': ['file.fex', 'file.focexec'], \ 'form': ['file.frm'], diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1274, +/**/ 1273, /**/ 1272,