patch 9.1.0745: filetype: bun and deno history files not recognized Commit: https://github.com/vim/vim/commit/8a2aea8a623ba183dc0703a47970463b105a9399 Author: Wu, Zhenyu <wuzhe...@ustc.edu> Date: Sun Sep 29 10:03:19 2024 +0200
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 <wuzhe...@ustc.edu> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 85412f4df..1667d2179 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -301,6 +301,9 @@ endif " Busted (Lua unit testing framework - configuration files) au BufNewFile,BufRead .busted setf lua +" Bun history +au BufNewFile,BufRead .bun_repl_history setf javascript + " Bundle config 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/*.sources setf deb822sources +" Deno history +au BufNewFile,BufRead deno_history.txt setf javascript + " Deny hosts au BufNewFile,BufRead denyhosts.conf setf denyhosts diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 8977d7e3e..61272ec92 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -362,7 +362,7 @@ def s:GetFilenameChecks(): dict<list<string>> 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', '.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'], javascriptreact: ['file.jsx'], jess: ['file.clp'], diff --git a/src/version.c b/src/version.c index 7378bab80..cde28a3cd 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 745, /**/ 744, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sup56-00GshZ-1u%40256bit.org.