cmdparse.l: [^t] is enough (Thanks f8l)

next
Michael Stapelberg 2012-01-10 23:09:00 +00:00
parent 0174f1c183
commit 608def6c6e
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ back_and_forth { BEGIN(INITIAL); return TOK_BACK_AND_FORTH; }
* 'move to workspace') while we also need to support
* 'move workspace to output <output>'. */
<MOVE_WS>to { yy_pop_state(); return TOK_TO; }
<MOVE_WS>[^to] { yy_pop_state(); yy_push_state(WANT_STRING); yyless(0); }
<MOVE_WS>[^t] { yy_pop_state(); yy_push_state(WANT_STRING); yyless(0); }
<WANT_STRING>\"[^\"]+\" {
BEGIN(INITIAL);