# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# Two-space indent in C source files
[*.{c,h}]
indent_style = tab

# This is actually for ABC source files, which need LF, not CRLF
[*.cmd]
end_of_line = crlf

# Use 3-space indentation for ABC source files
[*.{hcm,zfd,mfd,dfd,zpd,mpd,dpd,abc}]
indent_style = space
indent_size = 3

[*.sh]
indent_style = tab

[*.bat]
end_of_line = crlf

[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false

[*.expected]
trim_trailing_whitespace = false

# Makefile must use tabs
[[Mm]akefile{,*}]
indent_style = tab

[.gitattributes]
indent_style = tab
indent_size = 8

# JSON
[.*{json,yml}]
indent_style = space
indent_size = 2
