I was reading through some spec files today, and my editor was resolving the tab width as 8. I looked at some of the spec files, and we seem to have standardized on a tab width of 4 with tabs expanded into spaces. I decided to encode this in the .editorconfig file for convenience.
PS: I am working on a tree-sitter grammar for these files. I'll probably try to set up a TextMate grammar was well for those who use editors that support that. I'll share that later. -- Tristan Partin PostgreSQL Contributors Team AWS (https://aws.amazon.com)
diff --git i/.editorconfig w/.editorconfig index 0ee9bd28ac..07e1bd0af6 100644 --- i/.editorconfig +++ w/.editorconfig @@ -53,6 +53,13 @@ indent_style = space tab_width = unset indent_size = 1 +[*.spec] +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +tab_width = unset +indent_size = 4 + [*.xml] trim_trailing_whitespace = true insert_final_newline = true
