.editorconfig. add Crystal & Nim && Python max_line_length

This commit is contained in:
Aminda Suomalainen 2023-02-13 17:14:49 +02:00
parent 190b4b0a0d
commit 5743a2e134
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -20,15 +20,27 @@ indent_size = tab
[*.{bash,sh}] [*.{bash,sh}]
end_of_line = lf end_of_line = lf
# Crystal https://crystal-lang.org/reference/1.7/conventions/coding_style.html#indentation
[*.cr]
indent_style = space
indent_size = 2
# Markdown apparently allows linebreaks by two trailing spaces, while I # Markdown apparently allows linebreaks by two trailing spaces, while I
# never seem to do that, maybe I should accept it # never seem to do that, maybe I should accept it
[*.{markdown,md}] [*.{markdown,md}]
trim_trailing_whitespace = false trim_trailing_whitespace = false
# Nim https://nim-lang.org/docs/nep1.html#introduction-spacing-and-whitespace-conventions
[*.nim]
indent_style = space
indent_size = 2
max_line_length = 80
# Python https://peps.python.org/pep-0008/#indentation # Python https://peps.python.org/pep-0008/#indentation
[*.py] [*.py]
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
max_line_length = 79
# Ruby # Ruby
#[*.rb] #[*.rb]