changeset 31883:f9dbb07cad5a v9.0.1274

patch 9.0.1274: FIRRTL files are not recognized Commit: https://github.com/vim/vim/commit/685bf83b73d0fe6fd36bb2949bebd6aae66a139e Author: Amaan Qureshi <amaanq12@gmail.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Feb 2023 14:45:04 +0100
parents 88ccc21894a4
children 27f905bc04df
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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'],
--- 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,