mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:05:40 +02:00
Rename cond math (#2807)
* Simplifies 'if' to work on the available scope rather than a stream * Rename initializer/math for better readability * Fix description * fmt
This commit is contained in:
@ -31,9 +31,10 @@ pub enum SyntaxShape {
|
||||
/// An operator
|
||||
Operator,
|
||||
/// A math expression which expands shorthand forms on the lefthand side, eg `foo > 1`
|
||||
Math,
|
||||
/// An initializer expression, eg the right hand side of `set x = 1 + 2`
|
||||
Initializer,
|
||||
/// The shorthand allows us to more easily reach columns inside of the row being passed in
|
||||
RowCondition,
|
||||
/// A general math expression, eg the `1 + 2` of `= 1 + 2`
|
||||
MathExpression,
|
||||
}
|
||||
|
||||
impl PrettyDebug for SyntaxShape {
|
||||
@ -53,8 +54,8 @@ impl PrettyDebug for SyntaxShape {
|
||||
SyntaxShape::Table => "table",
|
||||
SyntaxShape::Unit => "unit",
|
||||
SyntaxShape::Operator => "operator",
|
||||
SyntaxShape::Math => "condition",
|
||||
SyntaxShape::Initializer => "initializer",
|
||||
SyntaxShape::RowCondition => "condition",
|
||||
SyntaxShape::MathExpression => "math expression",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user