MCPcopy Create free account
hub / github.com/dim-an/cod / cutToken

Method cutToken

parse_doc/argparse.go:47–51  ·  view source on GitHub ↗
(length int, isSyntax bool)

Source from the content-addressed store, hash-verified

45var tokenRe = regexp.MustCompile("^[-_/.a-zA-Z0-9]+")
46
47func (l *usageLexer) cutToken(length int, isSyntax bool) {
48 l.curToken = l.curLine[:length]
49 l.curLine = l.curLine[length:]
50 l.curIsSyntax = isSyntax
51}
52
53func (l *usageLexer) Valid() bool {
54 return l.valid

Callers 1

NextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected