summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>2022-01-23 13:05:39 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-23 13:05:39 +0000
commite15ebeffb35da4bb7d9054358671735ce6988c28 (patch)
treeeadf46f1b5e55c7742ccec3374d430654805c1ee /runtime
parent206919191fe1881dea00d60d392cc68a07c0106f (diff)
patch 8.2.4191: json5 files are not recognizedv8.2.4191
Problem: json5 files are not recognized. Solution: Add a pattern for json5 files. (closes #9601)
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 4dc38ed7ca..2c04c00508 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -888,6 +888,9 @@ au BufNewFile,BufRead *.jov,*.j73,*.jovial setf jovial
" JSON
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
+" JSON5
+au BufNewFile,BufRead *.json5 setf json5
+
" JSON Patch (RFC 6902)
au BufNewFile,BufRead *.json-patch setf json