| 171 | } |
| 172 | |
| 173 | func (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 | |
| 185 | func parseSSH(flow chan token, system bool, depth uint8) *Config { |
| 186 | // Ensure we consume tokens to completion even if parser exits early |