]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(json5): add basic indent support (#14298)
authorRocco Mao <dapeng.mao@qq.com>
Tue, 26 Mar 2024 18:02:44 +0000 (02:02 +0800)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2024 18:02:44 +0000 (19:02 +0100)
Signed-off-by: Rocco Mao <dapeng.mao@qq.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/indent/json5.vim [new file with mode: 0644]

diff --git a/runtime/indent/json5.vim b/runtime/indent/json5.vim
new file mode 100644 (file)
index 0000000..5977a4b
--- /dev/null
@@ -0,0 +1,11 @@
+" Vim indent file
+" Language:     JSON5
+" Maintainer:   The Vim Project <https://github.com/vim/vim>
+" Last Change:  2024-03-26
+
+if exists("b:did_indent")
+  finish
+endif
+
+" Same as jsonc indenting for now
+runtime! indent/jsonc.vim