Fix precedence parsing of parens. Limit use (#1606)

This commit is contained in:
Jonathan Turner
2020-04-19 06:39:06 +12:00
committed by GitHub
parent c2a9bc3bf4
commit a16a91ede8
3 changed files with 73 additions and 37 deletions

View File

@ -30,8 +30,6 @@ pub enum SyntaxShape {
Unit,
/// An operator
Operator,
/// A parenthesized math expression, eg `(1 + 3)`
Parenthesized,
/// A math expression, eg `foo > 1`
Math,
}
@ -53,7 +51,6 @@ impl PrettyDebug for SyntaxShape {
SyntaxShape::Table => "table",
SyntaxShape::Unit => "unit",
SyntaxShape::Operator => "operator",
SyntaxShape::Parenthesized => "math with parentheses",
SyntaxShape::Math => "condition",
})
}