aboutsummaryrefslogtreecommitdiff
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-04-20 21:45:22 +0200
committerGitHub <noreply@github.com>2022-04-20 21:45:22 +0200
commitbfd6eb4404d7250d1b59fc24f08a9392fba0c043 (patch)
tree7a8db32308fb7d69cb5468d9e940b6e999748750 /runtime/filetype.vim
parent85b13f6db4428ff111af6986d0e5719140de3767 (diff)
parent63eb7e865b3c702d09bfa475587f646722996a56 (diff)
downloadrneovim-bfd6eb4404d7250d1b59fc24f08a9392fba0c043.tar.gz
rneovim-bfd6eb4404d7250d1b59fc24f08a9392fba0c043.tar.bz2
rneovim-bfd6eb4404d7250d1b59fc24f08a9392fba0c043.zip
Merge pull request #18185 from clason/vim-8.2.4781
vim-patch:8.2.{4781,4793}: maxima files are not recognized
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim14
1 files changed, 11 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 08dfe6223f..e72d6fc0c0 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -151,14 +151,21 @@ au BufNewFile,BufRead *.asp
\ setf aspvbs |
\ endif
-" Grub (must be before catch *.lst)
+" Grub (must be before pattern *.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
+" Must be before the pattern *.mac.
+" *.dem omitted - also used by gnuplot demos
+" *.mc omitted - used by dist#ft#McSetf()
+au BufNewFile,BufRead *.demo,*.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()
-" Macro (VAX)
+" Assembly - Macro (VAX)
au BufNewFile,BufRead *.mar setf vmasm
" Atlas
@@ -1674,7 +1681,8 @@ au BufNewFile,BufRead *.siv,*.sieve setf sieve
" Sendmail
au BufNewFile,BufRead sendmail.cf setf sm
-" Sendmail .mc files are actually m4. Could also be MS Message text file.
+" Sendmail .mc files are actually m4. Could also be MS Message text file or
+" Maxima.
au BufNewFile,BufRead *.mc call dist#ft#McSetf()
" Services