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

Method lexEquals

cli/pkg/ssh_config/lexer.go:55–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (s *sshLexer) lexEquals() sshLexStateFn {
56 for {
57 next := s.peek()
58 if next == '=' {
59 s.emit(tokenEquals)
60 s.skip()
61 return s.lexRspace
62 }
63 // TODO error handling here; newline eof etc.
64 if !isSpace(next) {
65 break
66 }
67 s.skip()
68 }
69 return s.lexRvalue
70}
71
72func (s *sshLexer) lexKey() sshLexStateFn {
73 growingString := ""

Callers

nothing calls this directly

Calls 4

peekMethod · 0.95
emitMethod · 0.95
skipMethod · 0.95
isSpaceFunction · 0.85

Tested by

no test coverage detected