Skip to content

Commit 80b5ecb

Browse files
committed
standard: Add initial section with more context and REUSE
1 parent e1d8151 commit 80b5ecb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

standard.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<!-- © 2024 piegames <[email protected]>
2+
- © 2024 Silvan Mosberger <[email protected]>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-->
6+
7+
# Standard Nix format
8+
9+
This document describes the standard Nix format, as first established [by RFC 166](https://github.com/NixOS/rfcs/blob/master/rfcs/0166-nix-formatting.md#standard-nix-format).
10+
11+
Controversial changes to this document must go through another RFC.
12+
It is up to the Nix formatting team to decide when an RFC is necessary.
13+
114
## Terms and definitions:
215

316
- **Brackets:** `[]`
@@ -54,7 +67,7 @@
5467
- **Absorbable Terms:**
5568
Attribute sets, lists, and multiline `''` strings are called absorbable terms. Parenthesized absorbable terms are absorbable terms again too.
5669

57-
## Initial standard Nix format
70+
## General
5871

5972
- The formatter should be as "pure" as possible, i.e. different input formats of the "same" code (same AST with comments) should result in the same output format.
6073
- The formatter may take the input formatting into account in some cases in order to preserve multi-line syntax elements (which would otherwise have been contracted by the rules).

0 commit comments

Comments
 (0)