MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / follow

Method follow

cli/pkg/ssh_config/lexer.go:211–224  ·  view source on GitHub ↗
(next string)

Source from the content-addressed store, hash-verified

209}
210
211func (s *sshLexer) follow(next string) bool {
212 inputIdx := s.inputIdx
213 for _, expectedRune := range next {
214 if inputIdx >= len(s.input) {
215 return false
216 }
217 r := s.input[inputIdx]
218 inputIdx++
219 if expectedRune != r {
220 return false
221 }
222 }
223 return true
224}
225
226func (s *sshLexer) run() {
227 for state := s.lexVoid; state != nil; {

Callers 2

lexCommentMethod · 0.95
lexRvalueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected