1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2025-04-21 12:27:27 +03:00

cameo: fixed processing of omitted file names, documented file name usage

- README: document that file names can contain almost anything
- lang.l: reset the scanner state on \n, so that we stop looking for a
  file name if the file name has simply been omitted
This commit is contained in:
Werner Almesberger
2010-12-15 00:45:49 -03:00
parent 3ae3d6cdd3
commit 26dc02ea57
2 changed files with 15 additions and 1 deletions

View File

@@ -84,7 +84,8 @@ NUM -?[0-9]+\.?[0-9]*
return STRING; }
[ \t] ;
\n lineno++;
\n { BEGIN(INITIAL);
lineno++; }
^#\ [0-9]+\ \"[^"]*\"(\ [0-9]+)*\n {
lineno = strtol(yytext+2, NULL, 0); }