<- 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.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/subex/parse.go b/subex/parse.go
index 5675ae0..106663d 100644
--- a/subex/parse.go
+++ b/subex/parse.go
@@ -281,7 +281,7 @@ func parseSubex(l RuneReader, minPower int) SubexAST {
case '[':
rangeParts := parseRangeSubex(l)
lhs = SubexASTRange {rangeParts}
- case ')', '|', ';', '{', '+', '-', '*', '/', '$':
+ case ')', '|', ';', '{', '+', '-', '*', '/', '!', '$':
l.Rewind()
return nil
case '=':
@@ -289,6 +289,16 @@ func parseSubex(l RuneReader, minPower int) SubexAST {
lhs = SubexASTOutput{replacement}
case '.':
lhs = SubexASTCopyAny{}
+ case '?':
+ lhs = SubexASTCopyBool{}
+ case '%':
+ lhs = SubexASTCopyNumber{}
+ case '_':
+ lhs = SubexASTCopyStringAtom{}
+ case '#':
+ lhs = SubexASTCopyString{}
+ case ',':
+ lhs = SubexASTCopyValue{}
case '"':
lhs = SubexASTCopyAtom {walk.StringTerminal{}}
case '`':