<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subex/parse.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/subex/parse.go b/subex/parse.go
index f95fd9f..9e47e0b 100644
--- a/subex/parse.go
+++ b/subex/parse.go
@@ -178,7 +178,7 @@ func parseReplacement(l RuneReader) (output []OutputContent) {
switch r {
case eof:
panic("Missing closing \"")
- case '"':
+ case '=':
break loop
case '$':
slot := l.Next()
@@ -299,10 +299,10 @@ func parseSubex(l RuneReader, minPower int) SubexAST {
case '[':
rangeParts := parseRangeSubex(l)
lhs = SubexASTRange {rangeParts}
- case ')', '|', ';', '{', '+', '$':
+ case ')', '|', ';', '{', '+', '-', '*', '/', '$':
l.Rewind()
return nil
- case '"':
+ case '=':
replacement := parseReplacement(l)
lhs = SubexASTOutput{replacement}
case '.':