public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tristan Partin <[email protected]>
To: pgsql-hackers <[email protected]>
Subject: Add editorconfig support for Postgres spec files
Date: Thu, 16 Apr 2026 21:49:57 +0000
Message-ID: <[email protected]> (raw)
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)
Attachments:
[text/x-patch] spec.patch (400B, 2-spec.patch)
download | inline diff:
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
view thread (5+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: Add editorconfig support for Postgres spec files
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox