Use understore in filenames.

This commit is contained in:
Qi Xiao 2017-06-26 19:47:10 +02:00
parent 9e4363fc1a
commit e99031f3e2
31 changed files with 6 additions and 3 deletions

View File

@ -262,9 +262,12 @@ func (cp *compiler) primary(n *parse.Primary) ValuesOpFunc {
}
return variable(qname)
case parse.Wildcard:
vs := []Value{GlobPattern{
glob.Pattern{[]glob.Segment{wildcardToSegment(n.SourceText())}, ""},
0, nil}}
seg, err := wildcardToSegment(n.SourceText())
if err != nil {
cp.errorf("%s", err)
}
vs := []Value{
GlobPattern{glob.Pattern{[]glob.Segment{seg}, ""}, 0, nil}}
return func(ec *EvalCtx) []Value {
return vs
}