syncthing/vendor/github.com/gobwas/glob/syntax/syntax.go
2016-09-13 22:20:22 +02:00

15 lines
241 B
Go

package syntax
import (
"github.com/gobwas/glob/syntax/ast"
"github.com/gobwas/glob/syntax/lexer"
)
func Parse(s string) (*ast.Node, error) {
return ast.Parse(lexer.NewLexer(s))
}
func Special(b byte) bool {
return lexer.Special(b)
}