<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'subex/parse.go')
-rw-r--r--subex/parse.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/subex/parse.go b/subex/parse.go
index 2392b22..35baaa2 100644
--- a/subex/parse.go
+++ b/subex/parse.go
@@ -260,7 +260,7 @@ func parseSubex(l RuneReader, minPower int, runic bool) SubexAST {
// case '[':
// rangeParts := parseRangeSubex(l)
// lhs = SubexASTRange {rangeParts}
- case ')', ']', '"', '|', ';', '{', '+', '-', '*', '/', '!', '$':
+ case ')', ']', '"', '|', ';', '{', '+', '-', '*', '/', '!', '=', '$':
l.Rewind()
return SubexASTEmpty{}
// case '=':
@@ -366,6 +366,8 @@ func parseSubex(l RuneReader, minPower int, runic bool) SubexAST {
lhs = SubexASTReciprocal {lhs}
case r == '!' && minPower <= 4:
lhs = SubexASTNot {lhs}
+ case r == '=' && minPower <= 4:
+ lhs = SubexASTEqual {lhs}
case r == '$' && minPower <= 4:
slot := l.Next()
if slot == eof {