+ bool finished = false;
+ // Parse external templates files
+ LYXERR(Debug::EXTERNAL, "Starting parsing of xtemplates.lst");
+ while (tlex.isOK() && !finished) {
+ LYXERR(Debug::EXTERNAL, "\tline by line");
+ switch (tlex.lex()) {
+ case Lexer::LEX_FEOF:
+ finished = true;
+ break;
+ default:
+ string const name = tlex.getString();
+ LYXERR(Debug::EXTERNAL, "Template name: " << name);
+ templateslist.push_back(name);
+ break;