mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.1.0745: filetype: bun and deno history files not recognized
Problem: filetype: bun and deno history files not recognized Solution: detect '.bun_repl_history' and 'deno_history.txt' as javascript filetype (Wu, Zhenyu) closes: #15761 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
7cd6edf2b7
commit
8a2aea8a62
@@ -301,6 +301,9 @@ endif
|
|||||||
" Busted (Lua unit testing framework - configuration files)
|
" Busted (Lua unit testing framework - configuration files)
|
||||||
au BufNewFile,BufRead .busted setf lua
|
au BufNewFile,BufRead .busted setf lua
|
||||||
|
|
||||||
|
" Bun history
|
||||||
|
au BufNewFile,BufRead .bun_repl_history setf javascript
|
||||||
|
|
||||||
" Bundle config
|
" Bundle config
|
||||||
au BufNewFile,BufRead */.bundle/config setf yaml
|
au BufNewFile,BufRead */.bundle/config setf yaml
|
||||||
|
|
||||||
@@ -652,6 +655,9 @@ au BufNewFile,BufRead */etc/apt/sources.list setf debsources
|
|||||||
au BufNewFile,BufRead */etc/apt/sources.list.d/*.list setf debsources
|
au BufNewFile,BufRead */etc/apt/sources.list.d/*.list setf debsources
|
||||||
au BufNewFile,BufRead */etc/apt/sources.list.d/*.sources setf deb822sources
|
au BufNewFile,BufRead */etc/apt/sources.list.d/*.sources setf deb822sources
|
||||||
|
|
||||||
|
" Deno history
|
||||||
|
au BufNewFile,BufRead deno_history.txt setf javascript
|
||||||
|
|
||||||
" Deny hosts
|
" Deny hosts
|
||||||
au BufNewFile,BufRead denyhosts.conf setf denyhosts
|
au BufNewFile,BufRead denyhosts.conf setf denyhosts
|
||||||
|
|
||||||
|
@@ -362,7 +362,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
janet: ['file.janet'],
|
janet: ['file.janet'],
|
||||||
java: ['file.java', 'file.jav'],
|
java: ['file.java', 'file.jav'],
|
||||||
javacc: ['file.jj', 'file.jjt'],
|
javacc: ['file.jj', 'file.jjt'],
|
||||||
javascript: ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs', '.node_repl_history'],
|
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'],
|
'javascript.glimmer': ['file.gjs'],
|
||||||
javascriptreact: ['file.jsx'],
|
javascriptreact: ['file.jsx'],
|
||||||
jess: ['file.clp'],
|
jess: ['file.clp'],
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
745,
|
||||||
/**/
|
/**/
|
||||||
744,
|
744,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user