1
Fork 0
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:
Kevin Amado 2022-02-28 13:44:42 -05:00
parent 8ed23bf620
commit 62dd8ec60a
6 changed files with 173 additions and 192 deletions

View file

@ -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