Mercurial > vim
diff src/testdir/test_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/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -335,6 +335,7 @@ def s:GetFilenameChecks(): dict<list<str j: ['file.ijs'], jal: ['file.jal', 'file.JAL'], jam: ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file', 'Prl-file.file', 'Prl.file'], + janet: ['file.janet'], java: ['file.java', 'file.jav'], javacc: ['file.jj', 'file.jjt'], javascript: ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs'], @@ -953,6 +954,7 @@ def s:GetScriptChecks(): dict<list<list< crystal: [['#!/path/crystal']], rexx: [['#!/path/rexx'], ['#!/path/regina']], + janet: [['#!/path/janet']], } enddef