commit | 706e69c94c11a3a3d1e1d80e098b7eeebb667923 | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Mon Feb 11 18:21:14 2019 +0100 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Wed Feb 13 14:21:33 2019 +0400 |
tree | 2e84dda852a2cb6bebe76ca973758a5265194bc7 | |
parent | 0a0a3ac9cde699a0ab045298969dfb1035de0a8b [diff] [blame] |
cue: implement regexp support add support for both unary and binary operators Change-Id: I6d470b93b38fc30f1b682fcee34229acd7945ea5
diff --git a/cue/ast.go b/cue/ast.go index 7b067bd..e1303ea 100644 --- a/cue/ast.go +++ b/cue/ast.go
@@ -464,7 +464,8 @@ tokenMap[n.Op], v.walk(n.X), } - case token.GEQ, token.GTR, token.LSS, token.LEQ, token.NEQ: + case token.GEQ, token.GTR, token.LSS, token.LEQ, + token.NEQ, token.MAT, token.NMAT: value = &bound{ newExpr(n), tokenMap[n.Op],