mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
Update .editorconfig
This commit is contained in:
parent
b8267bdacb
commit
bc287abf79
1 changed files with 20 additions and 3 deletions
|
@ -1,9 +1,26 @@
|
|||
# EditorConfig file: http://editorconfig.org/
|
||||
|
||||
root = true
|
||||
|
||||
[*.{c,h,d,di,dd}]
|
||||
# Default settings for all file types:
|
||||
# + save files in UTF-8 encoding
|
||||
# + use Unix line-endings and a final newline
|
||||
# + remove whitespace at the end of lines
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# File type specific settings:
|
||||
[*.{asm,S,c,cpp,m,h,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
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue