diff options
-rw-r--r-- | subex/parse.go | 6 |
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 '.': |