1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 12:37:45 +00:00

Merge pull request #34 from tomberek/lambda_attr

Lambda attr
This commit is contained in:
Kevin Amado 2022-02-03 20:25:02 -05:00 committed by GitHub
commit e0371e76f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 0 deletions

View file

@ -47,6 +47,7 @@ pub fn rule(
crate::config::Layout::Tall => {
if let rnix::SyntaxKind::NODE_APPLY
| rnix::SyntaxKind::NODE_ATTR_SET
| rnix::SyntaxKind::NODE_LAMBDA
| rnix::SyntaxKind::NODE_LIST
| rnix::SyntaxKind::NODE_PAREN
| rnix::SyntaxKind::NODE_STRING =

View file

@ -7,4 +7,8 @@
f = {a/*b*/= 1/*d*/;};
h = {a/*b*/=/*c*/1 ;};
i = {a/*b*/=/*c*/1/*d*/;};
j = a: { b = 1 ;};
k = a: { b = 1; c = 2;};
l = a: /*b*/ { b = 1 ;};
m = a: /*b*/ { b = 1; c = 2;};
}

View file

@ -72,4 +72,22 @@
*/
;
};
j = a: { b = 1; };
k = a: {
b = 1;
c = 2;
};
l = a:
/*
b
*/
{ b = 1; };
m = a:
/*
b
*/
{
b = 1;
c = 2;
};
}