Fix for issue where last job_list in tree would have a -1 production_idx

because we never actually sent the terminal token type
This commit is contained in:
ridiculousfish
2013-12-26 14:52:15 -08:00
parent c1a13ae8bc
commit a6ca809a4e
3 changed files with 31 additions and 9 deletions

View File

@@ -56,6 +56,8 @@ enum parse_token_type_t
parse_token_type_redirection,
parse_token_type_background,
parse_token_type_end,
// Special terminal type that means no more tokens forthcoming
parse_token_type_terminate,
// Very special terminal types that don't appear in the production list