]> granicus.if.org Git - vim/commitdiff
patch 8.2.4781: Maxima files are not recognized v8.2.4781
authorDoron Behar <doron.behar@gmail.com>
Mon, 18 Apr 2022 13:32:42 +0000 (14:32 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 18 Apr 2022 13:32:42 +0000 (14:32 +0100)
Problem:    Maxima files are not recognized.
Solution:   Add patterns to detect Maxima files. (Doron Behar, closes #10211)

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

index c322b2e90cda3603b0c3382b8c461a63d1a8c818..09d0d7c3c7722298de1cc110bad5c9e4fe8ba269 100644 (file)
@@ -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()
index 6f7c6b4fc5921268e26b9d6c11a221f640449a18..390bc9c570f726fe936a929869d6b912f49059a2 100644 (file)
@@ -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',
index fd461229f88173255789145830448fe1689b7cfb..eb05f882235af4bd7a4d5b9a467592c786e4dcb9 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4781,
 /**/
     4780,
 /**/