summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-03 20:11:20 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-03 20:11:20 +0100
commit50c56893423eb6ad2154a4151e67f7097f52efb6 (patch)
tree8f7fb9544839d9d0788b67f76d57f63a3b8866c2 /runtime
parentc6376c798433bcb9ee38a8664299d11454546950 (diff)
downloadvim-git-50c56893423eb6ad2154a4151e67f7097f52efb6.tar.gz
patch 8.2.3469: some files with json syntax are not recognizedv8.2.3469
Problem: Some files with json syntax are not recognized. Solution: Add a few file patterns. (Emiliano Ruiz Carletti, closes #8947)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index c81f5a3ef..960ee3940 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -876,6 +876,9 @@ au BufNewFile,BufRead *.json-patch setf json
" Jupyter Notebook is also json
au BufNewFile,BufRead *.ipynb setf json
+" Other files that look like json
+au BufNewFile,BufRead .babelrc,.eslintrc,.prettierrc,.firebaserc setf json
+
" JSONC
au BufNewFile,BufRead *.jsonc setf jsonc