0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

patch 9.1.0951: filetype: jshell files are not recognized

Problem:  filetype: jshell files are not recognized
Solution: detect '*.jsh' files as java filetype
          (Konfekt)

closes: #16260

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Konfekt 2024-12-22 10:57:33 +01:00 committed by Christian Brabandt
parent 70881ba195
commit 62e3014ab1
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
3 changed files with 4 additions and 2 deletions

View File

@ -1200,7 +1200,7 @@ au BufNewFile,BufRead *.jpl,*.jpr setf jam
au BufNewFile,BufRead *.janet setf janet
" Java
au BufNewFile,BufRead *.java,*.jav setf java
au BufNewFile,BufRead *.java,*.jav,*.jsh setf java
" JavaCC
au BufNewFile,BufRead *.jj,*.jjt setf javacc

View File

@ -375,7 +375,7 @@ def s:GetFilenameChecks(): dict<list<string>>
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'],
java: ['file.java', 'file.jav', 'file.jsh'],
javacc: ['file.jj', 'file.jjt'],
javascript: ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs', '.node_repl_history', '.bun_repl_history', 'deno_history.txt'],
'javascript.glimmer': ['file.gjs'],

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
951,
/**/
950,
/**/