summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorKevin Locke <kevin@kevinlocke.name>2021-06-25 21:54:25 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-25 21:54:25 +0200
commit6582e230a0f6592287b1123c5fc3807d6fed997e (patch)
treeca430707fc6c532faa2c2707d4ca71c5a9509387 /runtime
parent22480d147fe83cb31316d2dabc5c5f249477af15 (diff)
patch 8.2.3049: JSON patch file not recognizedv8.2.3049
Problem: JSON patch file not recognized. Solution: Recognize json-patch as json. (Kevin Locke, closes #8450)
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 04e2001176..496b58b313 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -855,6 +855,9 @@ au BufNewFile,BufRead *.jov,*.j73,*.jovial setf jovial
" JSON
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
+" JSON Patch (RFC 6902)
+au BufNewFile,BufRead *.json-patch setf json
+
" Jupyter Notebook is also json
au BufNewFile,BufRead *.ipynb setf json