MCPcopy
hub / github.com/tomnomnom/gron / acceptRun

Method acceptRun

ungron.go:122–126  ·  view source on GitHub ↗

acceptRun continually accepts runes from the set of valid runes

(valid string)

Source from the content-addressed store, hash-verified

120// acceptRun continually accepts runes from the
121// set of valid runes
122func (l *lexer) acceptRun(valid string) {
123 for strings.ContainsRune(valid, l.next()) {
124 }
125 l.backup()
126}
127
128// a runeCheck is a function that determines if a rune is valid
129// or not so that we can do complex checks against runes

Callers 1

lexValueFunction · 0.80

Calls 2

nextMethod · 0.95
backupMethod · 0.95

Tested by

no test coverage detected