|
1 | 1 | " Vim support file to detect file types |
2 | 2 | " |
3 | 3 | " Maintainer: The Vim Project <https://github.com/vim/vim> |
4 | | -" Last Change: 2026 Mar 23 |
| 4 | +" Last Change: 2026 Mar 24 |
5 | 5 | " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
6 | 6 |
|
7 | 7 | " If the filetype can be detected from extension or file name(the final path component), |
@@ -119,10 +119,13 @@ au BufNewFile,BufRead */boot/grub/menu.lst,*/boot/grub/grub.conf,*/etc/grub.conf |
119 | 119 | " *.mc omitted - used by dist#ft#McSetf() |
120 | 120 | au BufNewFile,BufRead *.demo,*.dm{1,2,3,t},*.wxm,maxima-init.mac setf maxima |
121 | 121 |
|
| 122 | +" ObjectScript routine or assembly |
| 123 | +au BufNewFile,BufRead *.mac call dist#ft#FTmac() |
| 124 | + |
122 | 125 | " Assembly (all kinds) |
123 | 126 | " *.lst is not pure assembly, it has two extra columns (address, byte codes) |
124 | 127 | " *.[sS], *.[aA] usually Assembly - GNU |
125 | | -au BufNewFile,BufRead *.asm,*.[sS],*.[aA],*.mac,*.lst call dist#ft#FTasm() |
| 128 | +au BufNewFile,BufRead *.asm,*.[sS],*.[aA],*.lst call dist#ft#FTasm() |
126 | 129 |
|
127 | 130 | " BASIC or Visual Basic |
128 | 131 | au BufNewFile,BufRead *.bas call dist#ft#FTbas() |
@@ -572,6 +575,9 @@ au BufNewFile,BufRead *.pro call dist#ft#ProtoCheck('idlang') |
572 | 575 | " Initng |
573 | 576 | au BufNewFile,BufRead */etc/initng/*/*.i,*.ii setf initng |
574 | 577 |
|
| 578 | +" Intel HEX or ObjectScript routine |
| 579 | +au BufNewFile,BufRead *.int call dist#ft#FTint() |
| 580 | + |
575 | 581 | " Innovation Data Processing |
576 | 582 | au BufNewFile,BufRead upstream.dat\c,upstream.*.dat\c,*.upstream.dat\c setf upstreamdat |
577 | 583 | au BufNewFile,BufRead fdrupstream.log,upstream.log\c,upstream.*.log\c,*.upstream.log\c,UPSTREAM-*.log\c setf upstreamlog |
|
0 commit comments