diff options
author | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-02 13:30:13 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-02 13:30:13 +0000 |
commit | 685bf83b73d0fe6fd36bb2949bebd6aae66a139e (patch) | |
tree | b1b426a75df7d17d4f481a8f65282940651d6dce | |
parent | 8f531662e28c37560bf5ac20a059bf00d01ee5a4 (diff) | |
download | vim-git-685bf83b73d0fe6fd36bb2949bebd6aae66a139e.tar.gz |
patch 9.0.1274: FIRRTL files are not recognizedv9.0.1274
Problem: FIRRTL files are not recognized.
Solution: Add a pattern for FIRRTL files. (Amaan Qureshi, closes #11931)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 7810077cd..6fa16a7e0 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 03fd2354c..101bdfd97 100644 --- 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 index ff2105c87..8facdc4e7 100644 --- 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, |