MCPcopy Create free account
hub / github.com/kevinburke/ssh_config / parseComment

Method parseComment

parser.go:238–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236}
237
238func (p *sshParser) parseComment() sshParserStateFn {
239 comment := p.getToken()
240 lastHost := p.config.Hosts[len(p.config.Hosts)-1]
241 lastHost.Nodes = append(lastHost.Nodes, &Empty{
242 Comment: comment.val,
243 // account for the "#" as well
244 leadingSpace: comment.Position.Col - 2,
245 position: comment.Position,
246 })
247 return p.parseStart
248}
249
250func parseSSH(flow chan token, system bool, depth uint8) *Config {
251 // Ensure we consume tokens to completion even if parser exits early

Callers

nothing calls this directly

Calls 1

getTokenMethod · 0.95

Tested by

no test coverage detected