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:
Jonathan Turner
2020-12-21 17:32:06 +13:00
committed by GitHub
parent e3da546e23
commit 67acaae53c
11 changed files with 31 additions and 28 deletions

View File

@ -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",
})
}
}