mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 14:06:15 +01:00
15 lines
241 B
Go
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)
|
||
|
}
|