Patch 8.2.5015
Problem: Hoon and Moonscript files are not recognized.
Solution: Add filetype patterns. (Goc Dundar, closes #10478)
Files: runtime/filetype.vim, src/testdir/test_filetype.vim
*** ../vim-8.2.5014/runtime/filetype.vim 2022-05-02 23:50:24.389602160
+0100
--- runtime/filetype.vim 2022-05-25 12:40:17.450281754 +0100
***************
*** 409,415 ****
" Dockerfile; Podman uses the same syntax with name Containerfile
" Also see Dockerfile.* below.
! au BufNewFile,BufRead Containerfile,Dockerfile,*.Dockerfile setf dockerfile
" WildPackets EtherPeek Decoder
au BufNewFile,BufRead *.dcd setf dcd
--- 409,415 ----
" Dockerfile; Podman uses the same syntax with name Containerfile
" Also see Dockerfile.* below.
! au BufNewFile,BufRead Containerfile,Dockerfile,dockerfile,*.[dD]ockerfile
setf dockerfile
" WildPackets EtherPeek Decoder
au BufNewFile,BufRead *.dcd setf dcd
***************
*** 819,824 ****
--- 819,827 ----
" Hollywood
au BufRead,BufNewFile *.hws setf hollywood
+ " Hoon
+ au BufRead,BufNewFile *.hoon setf hoon
+
" Tilde (must be before HTML)
au BufNewFile,BufRead *.t.html setf tilde
***************
*** 1172,1177 ****
--- 1175,1183 ----
" MOO
au BufNewFile,BufRead *.moo setf moo
+ " Moonscript
+ au BufNewFile,BufRead *.moon setf moonscript
+
" Modconf
au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules
setf modconf
*** ../vim-8.2.5014/src/testdir/test_filetype.vim 2022-05-22
14:26:50.611614089 +0100
--- src/testdir/test_filetype.vim 2022-05-25 12:40:57.926207122 +0100
***************
*** 151,157 ****
\ 'diff': ['file.diff', 'file.rej'],
\ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS',
'any/etc/DIR_COLORS'],
\ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file',
'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'],
! \ 'dockerfile': ['Containerfile', 'Dockerfile', 'file.Dockerfile',
'Dockerfile.debian', 'Containerfile.something'],
\ 'dosbatch': ['file.bat'],
\ 'dosini': ['.editorconfig', '/etc/yum.conf', 'file.ini', 'npmrc',
'.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file',
'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'],
\ 'dot': ['file.dot', 'file.gv'],
--- 151,157 ----
\ 'diff': ['file.diff', 'file.rej'],
\ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS',
'any/etc/DIR_COLORS'],
\ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file',
'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'],
! \ 'dockerfile': ['Containerfile', 'Dockerfile', 'dockerfile',
'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian',
'Containerfile.something'],
\ 'dosbatch': ['file.bat'],
\ 'dosini': ['.editorconfig', '/etc/yum.conf', 'file.ini', 'npmrc',
'.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file',
'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'],
\ 'dot': ['file.dot', 'file.gv'],
***************
*** 245,250 ****
--- 245,251 ----
\ 'hjson': ['file.hjson'],
\ 'hog': ['file.hog', 'snort.conf', 'vision.conf'],
\ 'hollywood': ['file.hws'],
+ \ 'hoon': ['file.hoon'],
\ 'hostconf': ['/etc/host.conf', 'any/etc/host.conf'],
\ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny',
'any/etc/hosts.allow', 'any/etc/hosts.deny'],
\ 'html': ['file.html', 'file.htm', 'file.cshtml'],
***************
*** 354,359 ****
--- 355,361 ----
\ 'modula3': ['file.m3', 'file.mg', 'file.i3', 'file.ig'],
\ 'monk': ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'],
\ 'moo': ['file.moo'],
+ \ 'moonscript': ['file.moon'],
\ 'mp': ['file.mp'],
\ 'mplayerconf': ['mplayer.conf', '/.mplayer/config',
'any/.mplayer/config'],
\ 'mrxvtrc': ['mrxvtrc', '.mrxvtrc'],
*** ../vim-8.2.5014/src/version.c 2022-05-24 21:26:33.816334785 +0100
--- src/version.c 2022-05-25 12:39:30.274372906 +0100
***************
*** 736,737 ****
--- 736,739 ----
{ /* Add new patch number below this line */
+ /**/
+ 5015,
/**/
--
"Intelligence has much less practical application than you'd think."
-- Scott Adams, Dilbert.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220525114250.DF38B1C14D9%40moolenaar.net.