X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcmdparse.l;h=47a4f4e0f7a6fc01bc8b2346464aa3760348a8dd;hb=a532f5ac392ba8c527fc8337bcf15a78ddb6aefa;hp=cbce18d4b772e44833521cf3bb61819da3cc42f3;hpb=0174f1c18363d5a423d906b2863a662b41d052b9;p=i3%2Fi3 diff --git a/src/cmdparse.l b/src/cmdparse.l index cbce18d4..47a4f4e0 100644 --- a/src/cmdparse.l +++ b/src/cmdparse.l @@ -96,6 +96,7 @@ back_and_forth { BEGIN(INITIAL); return TOK_BACK_AND_FORTH; } container { /* eat this token */ } workspace { yy_pop_state(); yy_push_state(MOVE_WS); yy_push_state(EAT_WHITESPACE); return TOK_WORKSPACE; } scratchpad { yy_pop_state(); return TOK_SCRATCHPAD; } +output { yy_pop_state(); return TOK_OUTPUT; } up { yy_pop_state(); return TOK_UP; } down { yy_pop_state(); return TOK_DOWN; } left { yy_pop_state(); return TOK_LEFT; } @@ -107,7 +108,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);