Skip to content

Commit 685bf83

Browse files
amaanqbrammool
authored andcommitted
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 #11931)
1 parent 8f53166 commit 685bf83

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,9 @@ autocmd BufRead,BufNewFile *.fnl setf fennel
671671
" Fetchmail RC file
672672
au BufNewFile,BufRead .fetchmailrc setf fetchmail
673673

674+
" FIRRTL - Flexible Internal Representation for RTL
675+
au BufNewFile,BufRead *.fir setf firrtl
676+
674677
" Fish shell
675678
au BufNewFile,BufRead *.fish setf fish
676679

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ let s:filename_checks = {
197197
\ 'fennel': ['file.fnl'],
198198
\ 'fetchmail': ['.fetchmailrc'],
199199
\ 'fgl': ['file.4gl', 'file.4gh', 'file.m4gl'],
200+
\ 'firrtl': ['file.fir'],
200201
\ 'fish': ['file.fish'],
201202
\ 'focexec': ['file.fex', 'file.focexec'],
202203
\ 'form': ['file.frm'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1274,
698700
/**/
699701
1273,
700702
/**/

0 commit comments

Comments
 (0)