]> granicus.if.org Git - vim/commitdiff
patch 9.0.1274: FIRRTL files are not recognized v9.0.1274
authorAmaan Qureshi <amaanq12@gmail.com>
Thu, 2 Feb 2023 13:30:13 +0000 (13:30 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Feb 2023 13:30:13 +0000 (13:30 +0000)
Problem:    FIRRTL files are not recognized.
Solution:   Add a pattern for FIRRTL files. (Amaan Qureshi, closes #11931)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 7810077cdbd42147b1b17c978c42deae07484b4d..6fa16a7e04cd096248491db31159d3f7aae8d36a 100644 (file)
@@ -671,6 +671,9 @@ autocmd BufRead,BufNewFile *.fnl            setf fennel
 " 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
 
index 03fd2354cdc63b397c773ee51418d4034aaa5528..101bdfd9704cb0a81c8dc44cad363eaa3b3a050b 100644 (file)
@@ -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'],
index ff2105c87a08a97ec63ae643bb1af7144290ed67..8facdc4e7fe70d70694614cf826709f2f06027f8 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1274,
 /**/
     1273,
 /**/