diff options
Diffstat (limited to 'subex/parse.go')
-rw-r--r-- | subex/parse.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subex/parse.go b/subex/parse.go index f73d060..8635186 100644 --- a/subex/parse.go +++ b/subex/parse.go @@ -238,6 +238,8 @@ func parseSubex(l *RuneReader, minPower int) SubexAST { lhs = SubexASTSum {lhs} case r == '*' && minPower <= 8: lhs = SubexASTProduct {lhs} + case r == '-' && minPower <= 8: + lhs = SubexASTNegate {lhs} case r == '$' && minPower <= 8: slot := l.next() if slot == eof { |