diff options
author | Peter Kokot <peterkokot@gmail.com> | 2017-10-11 23:20:57 +0200 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2017-10-19 11:53:37 +0100 |
commit | aa143515d656ef915ed6636382a88da9792ee796 (patch) | |
tree | 856c8cae957700b8ec2a14c4bce8f9ecec439304 /.editorconfig | |
parent | 4e85dd0346a7a81163d2f9bf70d9949341509969 (diff) | |
download | php-git-aa143515d656ef915ed6636382a88da9792ee796.tar.gz |
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.
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/.editorconfig b/.editorconfig index cbe5de6653..30a6d69035 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 + +[*.{php,phpt}] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +trim_trailing_whitespace = true +insert_final_newline = true -[*.yml] +[*.{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 |