vim-patch:9.1.0238: filetype: jupyterlab and sublime config are not recognized

Problem:  filetype: jupyterlab and sublime config are not recognized
Solution: Detect jupyterlab and sublime config files as json
          (Wu, Zhenyu)

closes: vim/vim#14359

75c607dff7

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason 2024-03-31 19:10:01 +02:00
parent f29ba3c46c
commit ce69056e95
2 changed files with 5 additions and 1 deletions

View File

@ -576,6 +576,10 @@ local extension = {
geojson = 'json', geojson = 'json',
webmanifest = 'json', webmanifest = 'json',
ipynb = 'json', ipynb = 'json',
['jupyterlab-settings'] = 'json',
['sublime-project'] = 'json',
['sublime-settings'] = 'json',
['sublime-workspace'] = 'json',
['json-patch'] = 'json', ['json-patch'] = 'json',
json5 = 'json5', json5 = 'json5',
jsonc = 'jsonc', jsonc = 'jsonc',

View File

@ -340,7 +340,7 @@ func s:GetFilenameChecks() abort
\ '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', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf'], \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', 'file.jupyterlab-settings', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf', 'file.sublime-project', 'file.sublime-settings', 'file.sublime-workspace'],
\ 'json5': ['file.json5'], \ 'json5': ['file.json5'],
\ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc'], \ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc'],
\ 'jsonl': ['file.jsonl'], \ 'jsonl': ['file.jsonl'],