Update editorconfig and the documented C-style for sign.c/sound.c
Commit:
https://github.com/vim/vim/commit/58706ac040db18c0a501cafc0de5ba33c21458a6
Author: Damien Lejay <
dam...@lejay.be>
Date: Fri Jul 18 20:18:11 2025 +0200
Update editorconfig and the documented C-style for sign.c/sound.c
closes:
https://github.com/vim/vim/issues/17786
Signed-off-by: Damien Lejay <
dam...@lejay.be>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/.editorconfig b/.editorconfig
index 21d66600b..1f45e91ac 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -35,3 +35,12 @@ trim_trailing_whitespace = false
[src/testdir/test*.vim]
# Some tests need trailing whitespaces, for example `set showbreak=>>\ `
trim_trailing_whitespace = false
+
+#
+# Some custom files do not use tabs
+#
+[src/sign.c]
+indent_style = space
+
+[src/sound.c]
+indent_style = space
diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt
index 621e7f668..726a59778 100644
--- a/runtime/doc/develop.txt
+++ b/runtime/doc/develop.txt
@@ -1,4 +1,4 @@
-*develop.txt* For Vim version 9.1. Last change: 2025 May 05
+*develop.txt* For Vim version 9.1. Last change: 2025 Jul 18
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -237,6 +237,10 @@ you don't need to do anything due to the |modeline|.
For other editors an `.editorconfig` is provided at the root of the repo.
+For the source files `sign.c` and `sound.c` and any new file use only spaces,
+no tabs. In addition, any new file must include a modeline with `set et` to
+pass the indentation test.
+
DECLARATIONS *style-declarations*