]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0553: filetype: *.mcmeta files are not recognized v9.1.0553
authorTomodachi94 <tomodachi94@protonmail.com>
Tue, 9 Jul 2024 17:55:16 +0000 (19:55 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 9 Jul 2024 17:55:40 +0000 (19:55 +0200)
commitd33a518025765c4a3530ad6cfb6cab83a30c8f55
treef84c1016afd99b5774986f40768c51f4a7b7d048
parent8fc23bb8a433a28ccf1a60a48ad91bd7226c3d73
patch 9.1.0553: filetype: *.mcmeta files are not recognized

Problem:  filetype: *.mcmeta files are not recognized
Solution: Detect '*.mcmeta' files as json filetype
          (Tomodachi94)

"pack.mcmeta" was added to the JSON tests because that is the most common
filename with that extension.

There are currently 34,000 instances of this file extension on GitHub:
https://github.com/search?q=path%3A*.mcmeta&type=code&p=2

.zip files with this extension have downloads in the millions on sites
like CurseForge:
https://www.curseforge.com/minecraft/search?page=1&pageSize=20&sortBy=relevancy&class=texture-packs

Further reading about the file extension:
https://minecraft.wiki/w/Tutorials/Creating_a_resource_pack#Creating_a_.MCMETA_file

closes: #15189

Signed-off-by: Tomodachi94 <tomodachi94@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c