diff options
author | Doron Behar <doron.behar@gmail.com> | 2022-04-18 14:32:42 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-18 14:32:42 +0100 |
commit | d0a20c9d111da75febb60ffee2e15f727ab6a5ad (patch) | |
tree | 869cd923db5bbda93cb5ea4465544b84467caba6 | |
parent | 03cca297df5210f94be2246cfdb1ee9a30454bea (diff) |
patch 8.2.4781: Maxima files are not recognizedv8.2.4781
Problem: Maxima files are not recognized.
Solution: Add patterns to detect Maxima files. (Doron Behar, closes #10211)
-rw-r--r-- | runtime/filetype.vim | 4 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index c322b2e90c..09d0d7c3c7 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -158,6 +158,10 @@ au BufNewFile,BufRead *.asp " Grub (must be before catch *.lst) au BufNewFile,BufRead */boot/grub/menu.lst,*/boot/grub/grub.conf,*/etc/grub.conf setf grub +" Maxima, see: +" https://maxima.sourceforge.io/docs/manual/maxima_71.html#file_005ftype_005fmaxima +au BufNewFile,BufRead *.mc,*.demo,*.dem,*.dm{1,2,3,t},*.wxm,maxima-init.mac setf maxima + " Assembly (all kinds) " *.lst is not pure assembly, it has two extra columns (address, byte codes) au BufNewFile,BufRead *.asm,*.[sS],*.[aA],*.mac,*.lst call dist#ft#FTasm() diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 6f7c6b4fc5..390bc9c570 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -337,6 +337,8 @@ let s:filename_checks = { \ 'markdown': ['file.markdown', 'file.mdown', 'file.mkd', 'file.mkdn', 'file.mdwn', 'file.md'], \ 'mason': ['file.mason', 'file.mhtml', 'file.comp'], \ 'master': ['file.mas', 'file.master'], + \ 'maxima': ['file.mc', 'file.demo', 'file.dem', 'file.dmt', 'file.dm1', 'file.dm2', 'file.dm3', + \ 'file.wxm', 'maxima-init.mac'], \ 'mel': ['file.mel'], \ 'meson': ['meson.build', 'meson_options.txt'], \ 'messages': ['/log/auth', '/log/cron', '/log/daemon', '/log/debug', '/log/kern', '/log/lpr', '/log/mail', '/log/messages', '/log/news/news', '/log/syslog', '/log/user', diff --git a/src/version.c b/src/version.c index fd461229f8..eb05f88223 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4781, +/**/ 4780, /**/ 4779, |