mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:26:27 +02:00
cameo/lang.l: require all commands followed by file name to end with whitespace
This avoids embarrassment after typos like write-gerber foo.g
This commit is contained in:
parent
c7ff028cc9
commit
096b91e93a
10
cameo/lang.l
10
cameo/lang.l
@ -62,19 +62,19 @@ NUM -?[0-9]+\.?[0-9]*
|
||||
<INITIAL>y return TOK_Y;
|
||||
<INITIAL>z return TOK_Z;
|
||||
|
||||
<INITIAL>append { BEGIN(FILENAME);
|
||||
<INITIAL>append/[ \t\n] { BEGIN(FILENAME);
|
||||
return TOK_APPEND; }
|
||||
<INITIAL>gerber { file_name_follows = 1;
|
||||
return TOK_GERBER; }
|
||||
<INITIAL>gnuplot { file_name_follows = 1;
|
||||
return TOK_GNUPLOT; }
|
||||
<INITIAL>excellon { BEGIN(FILENAME);
|
||||
<INITIAL>excellon/[ \t\n] { BEGIN(FILENAME);
|
||||
return TOK_EXCELLON; }
|
||||
<INITIAL>stl { BEGIN(FILENAME);
|
||||
<INITIAL>stl/[ \t\n] { BEGIN(FILENAME);
|
||||
return TOK_STL; }
|
||||
<INITIAL>write { BEGIN(FILENAME);
|
||||
<INITIAL>write/[ \t\n] { BEGIN(FILENAME);
|
||||
return TOK_WRITE; }
|
||||
<INITIAL>write_gerber { BEGIN(FILENAME);
|
||||
<INITIAL>write_gerber/[ \t\n] { BEGIN(FILENAME);
|
||||
return TOK_WRITE_GERBER; }
|
||||
|
||||
<INITIAL>dog return TOK_DOG;
|
||||
|
Loading…
Reference in New Issue
Block a user