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:
parent
70881ba195
commit
62e3014ab1
@ -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
|
||||
|
@ -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'],
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
951,
|
||||
/**/
|
||||
950,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user