comparison runtime/autoload/dist/script.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 3284c31289f5
children 45f8f451fa15
comparison
equal deleted inserted replaced
33643:17c34403314e 33644:449601dbba78
214 return 'crystal' 214 return 'crystal'
215 215
216 # Rexx 216 # Rexx
217 elseif name =~ '^\%(rexx\|regina\)\>' 217 elseif name =~ '^\%(rexx\|regina\)\>'
218 return 'rexx' 218 return 'rexx'
219
220 # Janet
221 elseif name =~ '^janet\>'
222 return 'janet'
219 223
220 endif 224 endif
221 225
222 return '' 226 return ''
223 enddef 227 enddef