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

Method parseComment

cli/pkg/ssh_config/parser.go:173–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171}
172
173func (p *sshParser) parseComment() sshParserStateFn {
174 comment := p.getToken()
175 lastHost := p.config.Hosts[len(p.config.Hosts)-1]
176 lastHost.Nodes = append(lastHost.Nodes, &Empty{
177 Comment: comment.val,
178 // account for the "#" as well
179 leadingSpace: comment.Position.Col - 2,
180 position: comment.Position,
181 })
182 return p.parseStart
183}
184
185func parseSSH(flow chan token, system bool, depth uint8) *Config {
186 // 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