mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-09-18 13:26:42 +02:00
fix bsp arg2
This commit is contained in:
parent
b09719993a
commit
39d3dacf1f
5 changed files with 10 additions and 8 deletions
|
|
@ -38,7 +38,6 @@ fn_kw_layout!(kw_align |state, output, expr| {
|
|||
draw(move|output: &mut O|{state.interpret(output, &expr.tail().head())}).align(
|
||||
eval_enum!("align", output, state,
|
||||
expr.head().src()?.unwrap_or_default().split("/").skip(1).next(),
|
||||
expr.tail().head(),
|
||||
Azimuth {
|
||||
"c" => C, "x" => X, "y" => Y,
|
||||
"n" => N, "s" => S, "e" => E, "w" => W,
|
||||
|
|
@ -131,7 +130,7 @@ fn_kw_layout!(kw_split |state, output, expr| {
|
|||
let head = expr.head();
|
||||
let mut frags = head.src()?.unwrap_or_default().split("/");
|
||||
Ok(matches!(frags.next(), Some("bsp")).then(||{
|
||||
eval_enum!("bsp", output, state, frags.next(), expr.tail().head()?, Split {
|
||||
eval_enum!("bsp", output, state, frags.next(), Split {
|
||||
"n" => North,
|
||||
"s" => South,
|
||||
"e" => East,
|
||||
|
|
@ -140,10 +139,10 @@ fn_kw_layout!(kw_split |state, output, expr| {
|
|||
"b" => Below
|
||||
}).stack(
|
||||
draw(move|output: &mut O|{
|
||||
state.interpret(output, &expr.tail().tail().head()?)
|
||||
state.interpret(output, &expr.tail().head()?)
|
||||
}),
|
||||
draw(move|output: &mut O|{
|
||||
state.interpret(output, &expr.tail().tail().tail().head()?)
|
||||
state.interpret(output, &expr.tail().tail().head()?)
|
||||
}),
|
||||
).draw(output)
|
||||
}).transpose()?.flatten())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue