| 236 | } |
| 237 | |
| 238 | func (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 | |
| 250 | func parseSSH(flow chan token, system bool, depth uint8) *Config { |
| 251 | // Ensure we consume tokens to completion even if parser exits early |