aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-07 20:53:02 +0200
committerGitHub <noreply@github.com>2023-06-07 20:53:02 +0200
commit0329f5c2f4f300b9ffe66b0b4b2db1d51c6293d1 (patch)
tree14faf2329bef0abea3a4b7a25242344e9c49d48e
parentc0952e62fd0ee16a3275bb69e0de04c836b39015 (diff)
downloadrneovim-0329f5c2f4f300b9ffe66b0b4b2db1d51c6293d1.tar.gz
rneovim-0329f5c2f4f300b9ffe66b0b4b2db1d51c6293d1.tar.bz2
rneovim-0329f5c2f4f300b9ffe66b0b4b2db1d51c6293d1.zip
vim-patch:9.0.1615: URL shortcut files are not recognized (#23950)
Problem: URL shortcut files are not recognized. Solution: Add a pattern for URL shortcut files. (closes vim/vim#12474) https://github.com/vim/vim/commit/cdb7b4c50826df254d2e5ba8abd211e49b7a9784 Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
-rw-r--r--runtime/lua/vim/filetype.lua1
-rw-r--r--test/old/testdir/test_filetype.vim1
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 6990de3391..13d3d3e53a 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1082,6 +1082,7 @@ local extension = {
uit = 'uil',
uil = 'uil',
ungram = 'ungrammar',
+ url = 'urlshortcut',
usd = 'usd',
usda = 'usd',
sba = 'vb',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
index 6a508de236..4d21ddb603 100644
--- a/test/old/testdir/test_filetype.vim
+++ b/test/old/testdir/test_filetype.vim
@@ -640,6 +640,7 @@ let s:filename_checks = {
\ 'upstreamdat': ['upstream.dat', 'UPSTREAM.DAT', 'upstream.file.dat', 'UPSTREAM.FILE.DAT', 'file.upstream.dat', 'FILE.UPSTREAM.DAT'],
\ 'upstreaminstalllog': ['upstreaminstall.log', 'UPSTREAMINSTALL.LOG', 'upstreaminstall.file.log', 'UPSTREAMINSTALL.FILE.LOG', 'file.upstreaminstall.log', 'FILE.UPSTREAMINSTALL.LOG'],
\ 'upstreamlog': ['fdrupstream.log', 'upstream.log', 'UPSTREAM.LOG', 'upstream.file.log', 'UPSTREAM.FILE.LOG', 'file.upstream.log', 'FILE.UPSTREAM.LOG', 'UPSTREAM-file.log', 'UPSTREAM-FILE.LOG'],
+ \ 'urlshortcut': ['file.url'],
\ 'usd': ['file.usda', 'file.usd'],
\ 'usserverlog': ['usserver.log', 'USSERVER.LOG', 'usserver.file.log', 'USSERVER.FILE.LOG', 'file.usserver.log', 'FILE.USSERVER.LOG'],
\ 'usw2kagtlog': ['usw2kagt.log', 'USW2KAGT.LOG', 'usw2kagt.file.log', 'USW2KAGT.FILE.LOG', 'file.usw2kagt.log', 'FILE.USW2KAGT.LOG'],