mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-30 12:07:46 +00:00
feat: support inline comments in if-else
This commit is contained in:
parent
8ed23bf620
commit
62dd8ec60a
6 changed files with 173 additions and 192 deletions
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -19,12 +19,23 @@ Types of changes
|
|||
|
||||
### Added
|
||||
|
||||
- Binary operators now support inline comments:
|
||||
- Inline comments support in binary operators:
|
||||
```diff
|
||||
- ++
|
||||
- # subsections go last
|
||||
+ ++ # subsections go last
|
||||
```
|
||||
- Inline comments support in `with` and `assert` expressions:
|
||||
```diff
|
||||
- assert (libXft != null) -> libpng != null;
|
||||
- # probably a bug
|
||||
- assert stdenv.isDarwin -> libXaw != null;
|
||||
- # fails to link otherwise
|
||||
+ assert (libXft != null) -> libpng != null; # probably a bug
|
||||
+
|
||||
+ assert stdenv.isDarwin -> libXaw != null; # fails to link otherwise
|
||||
+
|
||||
```
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue