mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
8fc23bb8a4
commit
d33a518025
@@ -1427,6 +1427,9 @@ au BufNewFile,BufRead *.mel setf mel
|
|||||||
" mbsync
|
" mbsync
|
||||||
au BufNewFile,BufRead .mbsyncrc setf conf
|
au BufNewFile,BufRead .mbsyncrc setf conf
|
||||||
|
|
||||||
|
" mcmeta
|
||||||
|
au BufNewFile,BufRead *.mcmeta setf json
|
||||||
|
|
||||||
" Mercurial (hg) commit file
|
" Mercurial (hg) commit file
|
||||||
au BufNewFile,BufRead hg-editor-*.txt setf hgcommit
|
au BufNewFile,BufRead hg-editor-*.txt setf hgcommit
|
||||||
|
|
||||||
|
@@ -368,7 +368,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
jq: ['file.jq'],
|
jq: ['file.jq'],
|
||||||
jovial: ['file.jov', 'file.j73', 'file.jovial'],
|
jovial: ['file.jov', 'file.j73', 'file.jovial'],
|
||||||
jproperties: ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
|
jproperties: ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
|
||||||
json: ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', 'file.jupyterlab-settings', '.prettierrc', '.firebaserc', '.stylelintrc', '.lintstagedrc', 'file.slnf', 'file.sublime-project', 'file.sublime-settings', 'file.sublime-workspace', 'file.bd', 'file.bda', 'file.xci', 'flake.lock'],
|
json: ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', 'file.jupyterlab-settings', '.prettierrc', '.firebaserc', '.stylelintrc', '.lintstagedrc', 'file.slnf', 'file.sublime-project', 'file.sublime-settings', 'file.sublime-workspace', 'file.bd', 'file.bda', 'file.xci', 'flake.lock', 'pack.mcmeta'],
|
||||||
json5: ['file.json5'],
|
json5: ['file.json5'],
|
||||||
jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.jscsrc', '.vsconfig', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc'],
|
jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.jscsrc', '.vsconfig', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc'],
|
||||||
jsonl: ['file.jsonl'],
|
jsonl: ['file.jsonl'],
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
553,
|
||||||
/**/
|
/**/
|
||||||
552,
|
552,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user