changeset 30162:d12d9d724d27 v9.0.0417

patch 9.0.0417: Jsonnet files are not recognized Commit: https://github.com/vim/vim/commit/2a4c885d54171f68ec2c2d6eb4ae281c7fefb802 Author: =?UTF-8?q?Cezary=20Dro=C5=BCak?= <cezdro@alatek.com.pl> Date: Thu Sep 8 14:41:48 2022 +0100 patch 9.0.0417: Jsonnet files are not recognized Problem: Jsonnet files are not recognized. Solution: Add a pattern for Jsonnet files. (Cezary Dro?ak, closes https://github.com/vim/vim/issues/11073, closes #11081)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Sep 2022 15:45:04 +0200
parents 86b21b49d27d
children ac28d70ac476
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -978,6 +978,9 @@ au BufNewFile,BufRead .babelrc,.eslintrc
 " JSONC
 au BufNewFile,BufRead *.jsonc			setf jsonc
 
+" Jsonnet
+au BufNewFile,BufRead *.jsonnet,*.libjsonnet	setf jsonnet
+
 " Julia
 au BufNewFile,BufRead *.jl			setf julia
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -285,6 +285,7 @@ let s:filename_checks = {
     \ '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'],
+    \ 'jsonnet': ['file.jsonnet', 'file.libjsonnet'],
     \ 'jsp': ['file.jsp'],
     \ 'julia': ['file.jl'],
     \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    417,
+/**/
     416,
 /**/
     415,