From f3f198b6349fe252b72975701e2f17d932b19c70 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sat, 26 Nov 2022 13:03:20 +0000 Subject: [PATCH] patch 9.0.0952: Eclipse preference files are not recognized Problem: Eclipse preference files are not recognized. Solution: Add a pattern to use "jproperties" for Eclipse preference files. (closes #11618) --- runtime/filetype.vim | 2 ++ src/testdir/test_filetype.vim | 2 +- src/version.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 2013a8697..0a4be77b2 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -981,6 +981,8 @@ au BufNewFile,BufRead *.jsp setf jsp " Java Properties resource file (note: doesn't catch font.properties.pl) au BufNewFile,BufRead *.properties,*.properties_??,*.properties_??_?? setf jproperties +" Eclipse preference files use Java Properties syntax +au BufNewFile,BufRead org.eclipse.*.prefs setf jproperties " Jess au BufNewFile,BufRead *.clp setf jess diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index d2447361d..e0841ae0b 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -286,7 +286,7 @@ let s:filename_checks = { \ 'jess': ['file.clp'], \ 'jgraph': ['file.jgr'], \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'], - \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file'], + \ '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.webmanifest', 'Pipfile.lock', 'file.ipynb', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc', 'file.slnf'], \ 'json5': ['file.json5'], \ 'jsonc': ['file.jsonc'], diff --git a/src/version.c b/src/version.c index 829e71dea..758c4b56a 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 952, /**/ 951, /**/ -- 2.40.0