Build: adding dependency used by extensions (#16622)

This commit is contained in:
Torkel Ödegaard
2019-04-16 15:26:39 +02:00
committed by GitHub
parent a0e37a00d2
commit 75f9adf44f
38 changed files with 2943 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
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)
}