summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2022-04-18 14:32:42 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-18 14:32:42 +0100
commitd0a20c9d111da75febb60ffee2e15f727ab6a5ad (patch)
tree869cd923db5bbda93cb5ea4465544b84467caba6 /runtime
parent03cca297df5210f94be2246cfdb1ee9a30454bea (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)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim4
1 files changed, 4 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()