--- loncom/homework/CAPA-converter/capaLexerDef.flex 2001/11/21 18:48:05 1.11 +++ loncom/homework/CAPA-converter/capaLexerDef.flex 2001/11/21 19:15:41 1.12 @@ -691,6 +691,7 @@ EndLine ([\r][\n]|[\n]) {FileName}{Space}* { char *endquote; end_mode(); start_mode(MODE_IMPORT,NULL); + /* Get rid of leading and trailing quotes */ endquote = strrchr(yytext,'\"'); *endquote = '\0'; if (yytext[1] == '/') { @@ -698,14 +699,15 @@ EndLine ([\r][\n]|[\n]) } else { send("%s",&yytext[1]); } + end_mode(); + BEGIN S_SKIP; } {Identifier}{Space}* { end_mode(); start_mode(MODE_IMPORT,NULL); send("$%s",yytext); + end_mode(); + BEGIN S_SKIP; } -{Space}+ { } -{EndLine} {end_mode(); BEGIN S_TEXT;} - } {