File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,10 @@ function findBinaryFunction(tokens: ExprElement[], fn: string) {
163163 }
164164}
165165
166- // Some minuses have been parsed as functions (i.e. an `ExprFunction` with a single argument).
167- // If they are preceded by something, we need to treat the expression as a unary minus.
166+ // Some minuses are initially parsed as unary functions (i.e. the string "- b" is parsed an `ExprFunction` with
167+ // `.fn` = "−" and an `ExprIdentifier` "b" as its single argument.)
168+ // If any unary minus function is preceded by another token, we need to merge the pair of tokens into a binary minus
169+ // function.
168170function findBinaryMinusFunctions ( tokens : ExprElement [ ] ) {
169171 for ( let i = 1 ; i < tokens . length ; i ++ ) {
170172 const token = tokens [ i ] ;
You can’t perform that action at this time.
0 commit comments