From 608def6c6e2ab23e2ab81e322d9d2bd16c3704f5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 10 Jan 2012 23:09:00 +0000 Subject: [PATCH] cmdparse.l: [^t] is enough (Thanks f8l) --- src/cmdparse.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmdparse.l b/src/cmdparse.l index cbce18d4..c333f7ae 100644 --- a/src/cmdparse.l +++ b/src/cmdparse.l @@ -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 '. */ to { yy_pop_state(); return TOK_TO; } -[^to] { yy_pop_state(); yy_push_state(WANT_STRING); yyless(0); } +[^t] { yy_pop_state(); yy_push_state(WANT_STRING); yyless(0); } \"[^\"]+\" { BEGIN(INITIAL); -- 2.39.5