Date:2015-03-16 01:13:26 (9 years 13 days ago)
Author:Werner Almesberger
Commit:096b91e93aeb0f7057c5204da9a9ab1435f093f6
Message:cameo/lang.l: require all commands followed by file name to end with whitespace

This avoids embarrassment after typos like write-gerber foo.g
Files: cameo/lang.l (1 diff)

Change Details

cameo/lang.l
6262<INITIAL>y return TOK_Y;
6363<INITIAL>z return TOK_Z;
6464
65<INITIAL>append { BEGIN(FILENAME);
65<INITIAL>append/[ \t\n] { BEGIN(FILENAME);
6666                  return TOK_APPEND; }
6767<INITIAL>gerber { file_name_follows = 1;
6868                  return TOK_GERBER; }
6969<INITIAL>gnuplot { file_name_follows = 1;
7070                  return TOK_GNUPLOT; }
71<INITIAL>excellon { BEGIN(FILENAME);
71<INITIAL>excellon/[ \t\n] { BEGIN(FILENAME);
7272                  return TOK_EXCELLON; }
73<INITIAL>stl { BEGIN(FILENAME);
73<INITIAL>stl/[ \t\n] { BEGIN(FILENAME);
7474                  return TOK_STL; }
75<INITIAL>write { BEGIN(FILENAME);
75<INITIAL>write/[ \t\n] { BEGIN(FILENAME);
7676                  return TOK_WRITE; }
77<INITIAL>write_gerber { BEGIN(FILENAME);
77<INITIAL>write_gerber/[ \t\n] { BEGIN(FILENAME);
7878                  return TOK_WRITE_GERBER; }
7979
8080<INITIAL>dog return TOK_DOG;

Archive Download the corresponding diff file

Branches:
master



interactive