Skip to content

Commit aa14351

Browse files
petkkrakjoe
authored andcommitted
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.
1 parent 4e85dd0 commit aa14351

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.editorconfig

+25-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,35 @@
1-
; http://editorconfig.org/
1+
# http://editorconfig.org/
22

33
root = true
44

5-
[*.{c,h}]
6-
charset = UTF-8
7-
end_of_line = LF
5+
[*.{c,h,awk,w32,bat,mk,frag}]
6+
charset = utf-8
7+
end_of_line = lf
88
indent_size = 4
99
indent_style = tab
10-
insert_final_newline = true
1110
tab_width = 4
1211
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.{php,phpt}]
15+
charset = utf-8
16+
end_of_line = lf
17+
indent_size = 4
18+
indent_style = space
19+
trim_trailing_whitespace = true
20+
insert_final_newline = true
1321

14-
[*.yml]
22+
[*.{yml,m4,sh}]
23+
charset = utf-8
24+
end_of_line = lf
1525
indent_size = 2
1626
indent_style = space
27+
trim_trailing_whitespace = true
28+
insert_final_newline = true
29+
30+
[*.md]
31+
charset = utf-8
32+
end_of_line = lf
33+
indent_style = space
34+
trim_trailing_whitespace = false
35+
insert_final_newline = true

0 commit comments

Comments
 (0)