summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2020-12-28 20:27:41 -0800
committerKarl Williamson <khw@cpan.org>2021-01-17 09:21:38 -0700
commit6867dc01ea301a9a9931ee096a579f76633de23f (patch)
treec1ea51a871bf2309cbe7af7d7c4bec1aa9190552
parentb12f49e146363ad6d1b9f1ae5fd68c9112ae5506 (diff)
downloadperl-6867dc01ea301a9a9931ee096a579f76633de23f.tar.gz
style: Add an EditorConfig file for the C code.
EditorConfig lets editors automatically configure themselves to the project standard. Like embedded VIM and emacs mode lines, but universal. Many editors support it out of the box. Most everything else has a plugin. https://editorconfig.org/ It makes contributing with proper style easier. Pretty basic stuff. * 4 spaces for indentation * UTF-8 * Unix newlines * Strip trailing whitespace * Add a final newline on the file
-rw-r--r--.editorconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..a7417d0bbe
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,10 @@
+root = true
+
+[**/*.[ch]]
+charset = utf-8
+indent_style = space
+indent_size = 4
+tab_width = 8
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true