WIP: Add indentation queries for multi-value 'select'
Some checks failed
ci/woodpecker/push/check Pipeline failed
Some checks failed
ci/woodpecker/push/check Pipeline failed
FIXME: add insertion tests for both cases...
This commit is contained in:
parent
626ffea712
commit
465a1b3b49
|
@ -11,6 +11,16 @@
|
||||||
(select_expression
|
(select_expression
|
||||||
")" @indent.branch)
|
")" @indent.branch)
|
||||||
|
|
||||||
|
(select_value
|
||||||
|
"(" @indent.begin)
|
||||||
|
(select_value
|
||||||
|
")" @indent.branch)
|
||||||
|
|
||||||
|
; (select_pattern
|
||||||
|
; "(" @indent.begin)
|
||||||
|
; (select_pattern
|
||||||
|
; ")" @indent.branch)
|
||||||
|
|
||||||
(select_cases) @indent.begin
|
(select_cases) @indent.begin
|
||||||
(select_cases
|
(select_cases
|
||||||
"}" @indent.branch)
|
"}" @indent.branch)
|
||||||
|
|
|
@ -26,3 +26,25 @@ foo = select(
|
||||||
default: 0,
|
default: 0,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
foo = select((
|
||||||
|
arch(),
|
||||||
|
os(),
|
||||||
|
), {
|
||||||
|
(default, default): [],
|
||||||
|
})
|
||||||
|
|
||||||
|
foo = select(
|
||||||
|
(arch(), os()),
|
||||||
|
{
|
||||||
|
(default, default): [],
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
// We're really getting into more and more unlikely choices here...
|
||||||
|
foo = select((arch(), os()), {
|
||||||
|
(
|
||||||
|
default,
|
||||||
|
default,
|
||||||
|
): [],
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue