Mercurial > octave-nkf
diff src/lex.ll @ 13246:0c69a564f2be
additional parfor changes
* octave.gperf (octave_kw_id): Use endparfor_kw, not end_parfor_kw.
(octave_kw): Use endparfor, not end_parfor. Change all uses.
* help.cc (keywords): Include parfor and endparfor in the list.
* pt-pr-code.cc (tree_print_code::visit_simple_for_command):
Print endparfor if in parallel.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 29 Sep 2011 03:35:58 -0400 |
parents | 027a2186cd90 |
children | 7861a5fd3479 |
line wrap: on
line diff
--- a/src/lex.ll Thu Sep 29 02:50:53 2011 -0400 +++ b/src/lex.ll Thu Sep 29 03:35:58 2011 -0400 @@ -1496,11 +1496,6 @@ lexer_flags.at_beginning_of_statement = true; break; - case end_parfor_kw: - yylval.tok_val = new token (token::parfor_end, l, c); - lexer_flags.at_beginning_of_statement = true; - break; - case end_try_catch_kw: yylval.tok_val = new token (token::try_catch_end, l, c); lexer_flags.at_beginning_of_statement = true; @@ -1526,6 +1521,11 @@ lexer_flags.at_beginning_of_statement = true; break; + case endparfor_kw: + yylval.tok_val = new token (token::parfor_end, l, c); + lexer_flags.at_beginning_of_statement = true; + break; + case endswitch_kw: yylval.tok_val = new token (token::switch_end, l, c); lexer_flags.at_beginning_of_statement = true;