From aa143515d656ef915ed6636382a88da9792ee796 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 11 Oct 2017 23:20:57 +0200 Subject: [PATCH] Update .editorconfig with some more configs Added support for .awk, .w32, .bat, .mk, .frag, .m4, .sh, .php, .phpt, and Markdown files based on the current most used coding style in the php-src repository. --- .editorconfig | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index cbe5de66539..30a6d690356 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,16 +1,35 @@ -; http://editorconfig.org/ +# http://editorconfig.org/ root = true -[*.{c,h}] -charset = UTF-8 -end_of_line = LF +[*.{c,h,awk,w32,bat,mk,frag}] +charset = utf-8 +end_of_line = lf indent_size = 4 indent_style = tab -insert_final_newline = true tab_width = 4 trim_trailing_whitespace = true +insert_final_newline = true -[*.yml] +[*.{php,phpt}] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{yml,m4,sh}] +charset = utf-8 +end_of_line = lf indent_size = 2 indent_style = space +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +charset = utf-8 +end_of_line = lf +indent_style = space +trim_trailing_whitespace = false +insert_final_newline = true