]> git.sur5r.net Git - i3/i3/commitdiff
cmdparse.l: [^t] is enough (Thanks f8l)
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 10 Jan 2012 23:09:00 +0000 (23:09 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 10 Jan 2012 23:09:00 +0000 (23:09 +0000)
src/cmdparse.l

index cbce18d4b772e44833521cf3bb61819da3cc42f3..c333f7ae39813dc2f6376833812cb2f44dee3fcf 100644 (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);