Skip to content

Commit

Permalink
Sync .editorconfig with dmd (#3449)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubo39 authored Jun 13, 2020
1 parent 7c052c6 commit 1c84bad
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
# EditorConfig file: http://editorconfig.org/

root = true

[*.{c,h,d,di,dd}]
end_of_line = lf
# Default settings for all file types:
# + save files in UTF-8 encoding
# + remove whitespace at the end of lines
[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

# File type specific settings:
[*.{asm,S,c,m,d,di,dd,ddoc,dt,json,sdl,R,bat,bash,fish,sh,zsh}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
charset = utf-8

# Make and Windows module-definition files use tabs for indentation
[*.{mak,Makefile,def}]
indent_style = tab

[*.{cpp,h,yml}]
indent_style = space
indent_size = 2

0 comments on commit 1c84bad

Please sign in to comment.