summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRocco Mao <dapeng.mao@qq.com>2024-03-27 02:02:44 +0800
committerGitHub <noreply@github.com>2024-03-26 19:02:44 +0100
commit63833bb0217fbfd5556a77103bd6c1ce78cfd996 (patch)
tree06a59ef7e77ff890c8c7e06fbb248e40c2d00ac3
parentb9f5b95b7bec2414a5a96010514702d99afea18e (diff)
runtime(json5): add basic indent support (#14298)
Signed-off-by: Rocco Mao <dapeng.mao@qq.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/indent/json5.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/indent/json5.vim b/runtime/indent/json5.vim
new file mode 100644
index 0000000000..5977a4b912
--- /dev/null
+++ b/runtime/indent/json5.vim
@@ -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