From: Michael Stapelberg Date: Tue, 10 Jan 2012 23:09:00 +0000 (+0000) Subject: cmdparse.l: [^t] is enough (Thanks f8l) X-Git-Tag: 4.2~146 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=608def6c6e2ab23e2ab81e322d9d2bd16c3704f5;p=i3%2Fi3 cmdparse.l: [^t] is enough (Thanks f8l) --- 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);