Invokes parser for Via header field.
if (debug) dbg_enter("parse");
try {
ViaList viaList = new ViaList();
// The first via header.
this.lexer.match(TokenTypes.VIA);
this.lexer.SPorHT(); // ignore blanks
this.lexer.match(':"); // expect a colon.
this.lexer.SPorHT(); // ingore blanks.
while (true) {
ViaHeader v = new ViaHeader();
parseVia(v);
viaList.add(v);
this.lexer.SPorHT(); // eat whitespace.
if (this.lexer.lookAhead(0) == ',") {
this.lexer.consume(1); // Consume the comma
this.lexer.SPorHT(); // Ignore space after.
}
if (this.lexer.lookAhead(0) == '\n") break;
}
this.lexer.match('\n");
return viaList;
} finally {
if (debug) dbg_leave("parse");
}