diff runtime/filetype.vim @ 28986:560793de4032 v8.2.5015

patch 8.2.5015: Hoon and Moonscript files are not recognized Commit: https://github.com/vim/vim/commit/bf82df0dd48a26404b92a596498b6892c9572c53 Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Wed May 25 12:42:08 2022 +0100 patch 8.2.5015: Hoon and Moonscript files are not recognized Problem: Hoon and Moonscript files are not recognized. Solution: Add filetype patterns. (Goc Dundar, closes https://github.com/vim/vim/issues/10478)
author Bram Moolenaar <Bram@vim.org>
date Wed, 25 May 2022 13:45:06 +0200
parents 239bd331e0a9
children 3fbc7462de59
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -409,7 +409,7 @@ au BufNewFile,BufRead *.cu,*.cuh		setf c
 
 " Dockerfile; Podman uses the same syntax with name Containerfile
 " Also see Dockerfile.* below.
-au BufNewFile,BufRead Containerfile,Dockerfile,*.Dockerfile	setf dockerfile
+au BufNewFile,BufRead Containerfile,Dockerfile,dockerfile,*.[dD]ockerfile	setf dockerfile
 
 " WildPackets EtherPeek Decoder
 au BufNewFile,BufRead *.dcd			setf dcd
@@ -819,6 +819,9 @@ au BufNewFile,BufRead *.hjson			setf hjs
 " 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,6 +1175,9 @@ au BufNewFile,BufRead *.isc,*.monk,*.ssc
 " 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