diff runtime/filetype.vim @ 33644:449601dbba78 v9.0.2062

patch 9.0.2062: Janet files are not recognised Commit: https://github.com/vim/vim/commit/c038427d2a27445e612761f19c92b2b8b05afdea Author: Doug Kearns <dougkearns@gmail.com> Date: Mon Oct 23 19:24:05 2023 +0200 patch 9.0.2062: Janet files are not recognised Problem: Janet files are not recognised Solution: Add filename and shebang detection (without adding an extra filetype plugin) Those are used by the Janet language: http://www.janet-lang.org closes: #13400 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
author Christian Brabandt <cb@256bit.org>
date Mon, 23 Oct 2023 19:30:08 +0200
parents 2d48081760a0
children 314ef6fe82e8
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1034,6 +1034,9 @@ au BufNewFile,BufRead *.jal,*.JAL		setf 
 " Jam
 au BufNewFile,BufRead *.jpl,*.jpr		setf jam
 
+" Janet
+au BufNewFile,BufRead *.janet			setf janet
+
 " Java
 au BufNewFile,BufRead *.java,*.jav		setf java