diff options
Diffstat (limited to 'subex/parse.go')
-rw-r--r-- | subex/parse.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/subex/parse.go b/subex/parse.go index 24ae082..6e1493b 100644 --- a/subex/parse.go +++ b/subex/parse.go @@ -206,7 +206,7 @@ func parseSubex(l *RuneReader, minPower int) SubexAST { case '[': rangeParts := parseRangeSubex(l) lhs = SubexASTRange {rangeParts} - case ')', '*', '-', '|', '!', '?', ';', '{': + case ')', '|', ';', '{': l.rewind() return nil case '$': @@ -247,14 +247,6 @@ func parseSubex(l *RuneReader, minPower int) SubexAST { content: lhs, acceptable: parseRepeatRange(l), } - case r == '*' && minPower <= 8: - lhs = SubexASTMaximise{lhs} - case r == '-' && minPower <= 8: - lhs = SubexASTMinimise{lhs} - case r == '!' && minPower <= 8: - lhs = SubexASTTry{lhs} - case r == '?' && minPower <= 8: - lhs = SubexASTMaybe{lhs} case r == '|' && minPower <= 4: rhs := parseSubex(l, 5) if rhs == nil { |