Skip to content

Commit 1c84bad

Browse files
authored
Sync .editorconfig with dmd (#3449)
1 parent 7c052c6 commit 1c84bad

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.editorconfig

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1+
# EditorConfig file: http://editorconfig.org/
2+
13
root = true
24

3-
[*.{c,h,d,di,dd}]
4-
end_of_line = lf
5+
# Default settings for all file types:
6+
# + save files in UTF-8 encoding
7+
# + remove whitespace at the end of lines
8+
[*]
9+
charset = utf-8
510
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# File type specific settings:
14+
[*.{asm,S,c,m,d,di,dd,ddoc,dt,json,sdl,R,bat,bash,fish,sh,zsh}]
615
indent_style = space
716
indent_size = 4
8-
trim_trailing_whitespace = true
9-
charset = utf-8
17+
18+
# Make and Windows module-definition files use tabs for indentation
19+
[*.{mak,Makefile,def}]
20+
indent_style = tab
21+
22+
[*.{cpp,h,yml}]
23+
indent_style = space
24+
indent_size = 2

0 commit comments

Comments
 (0)