com php-src: Update .editorconfig with some more configs: .editorconfig
| From: | Joe Watkins | Date: | Thu, 19 Oct 2017 10:53:37 +0000 |
| Subject: | com php-src: Update .editorconfig with some more configs: .editorconfig | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99800@lists.php.net to get a copy of this message | ||
Commit: aa143515d656ef915ed6636382a88da9792ee796
Author: Peter Kokot <peterkokot@gmail.com> Wed, 11 Oct 2017 23:20:57 +0200
Committer: Joe Watkins <krakjoe@php.net> Thu, 19 Oct 2017 11:53:37 +0100
Parents: 4e85dd0346a7a81163d2f9bf70d9949341509969
Branches: PHP-7.0 PHP-7..1 PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=aa143515d656ef915ed6636382a88da9792ee796
Log:
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.
Changed paths:
M .editorconfig
Diff:
diff --git a/.editorconfig b/.editorconfig
index cbe5de6..30a6d69 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