Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
33643:17c34403314e | 33644:449601dbba78 |
---|---|
333 iss: ['file.iss'], | 333 iss: ['file.iss'], |
334 ist: ['file.ist', 'file.mst'], | 334 ist: ['file.ist', 'file.mst'], |
335 j: ['file.ijs'], | 335 j: ['file.ijs'], |
336 jal: ['file.jal', 'file.JAL'], | 336 jal: ['file.jal', 'file.JAL'], |
337 jam: ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file', 'Prl-file.file', 'Prl.file'], | 337 jam: ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file', 'Prl-file.file', 'Prl.file'], |
338 janet: ['file.janet'], | |
338 java: ['file.java', 'file.jav'], | 339 java: ['file.java', 'file.jav'], |
339 javacc: ['file.jj', 'file.jjt'], | 340 javacc: ['file.jj', 'file.jjt'], |
340 javascript: ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs'], | 341 javascript: ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs'], |
341 'javascript.glimmer': ['file.gjs'], | 342 'javascript.glimmer': ['file.gjs'], |
342 javascriptreact: ['file.jsx'], | 343 javascriptreact: ['file.jsx'], |
951 forth: [['#!/path/gforth']], | 952 forth: [['#!/path/gforth']], |
952 icon: [['#!/path/icon']], | 953 icon: [['#!/path/icon']], |
953 crystal: [['#!/path/crystal']], | 954 crystal: [['#!/path/crystal']], |
954 rexx: [['#!/path/rexx'], | 955 rexx: [['#!/path/rexx'], |
955 ['#!/path/regina']], | 956 ['#!/path/regina']], |
957 janet: [['#!/path/janet']], | |
956 } | 958 } |
957 enddef | 959 enddef |
958 | 960 |
959 " Various forms of "env" optional arguments. | 961 " Various forms of "env" optional arguments. |
960 def s:GetScriptEnvChecks(): dict<list<list<string>>> | 962 def s:GetScriptEnvChecks(): dict<list<list<string>>> |