diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-11-26 14:35:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 14:35:40 +0100 |
commit | 319fbffc94896dd9cf0a77891d69b7fcada1fad4 (patch) | |
tree | dea5cd75005f531c1af0260fb708b420c65d2892 | |
parent | 7e9981d246a9d46f19dc6283664c229ae2efe727 (diff) | |
download | rneovim-319fbffc94896dd9cf0a77891d69b7fcada1fad4.tar.gz rneovim-319fbffc94896dd9cf0a77891d69b7fcada1fad4.tar.bz2 rneovim-319fbffc94896dd9cf0a77891d69b7fcada1fad4.zip |
vim-patch:9.0.0952: Eclipse preference files are not recognized (#21199)
Problem: Eclipse preference files are not recognized.
Solution: Add a pattern to use "jproperties" for Eclipse preference files.
(closes vim/vim#11618)
https://github.com/vim/vim/commit/f3f198b6349fe252b72975701e2f17d932b19c70
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 5e086c8abf..dbad747f8f 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1909,6 +1909,7 @@ local pattern = { ['Prl.*%..*'] = starsetf('jam'), ['.*%.properties_..'] = 'jproperties', ['.*%.properties_.._..'] = 'jproperties', + ['org%.eclipse%..*%.prefs'] = 'jproperties', ['.*%.properties_.._.._.*'] = starsetf('jproperties'), ['Kconfig%..*'] = starsetf('kconfig'), ['.*%.[Ss][Uu][Bb]'] = 'krl', diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 1ebf72ce41..5ffddb7925 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -288,7 +288,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'], |