Mercurial > octave
comparison libinterp/parse-tree/oct-parse.yy @ 28522:a5541f5a78dd
make parsing of spmd and endspmd keywords work properly (bug #58676)
* lex.ll (base_lexer::make_keyword_token): Enable lines left commented
out in changeset 6e8a9845d118. Now the spmd and endspmd keywords will
be recognized properly and return the correct tokens.
* oct-parse.yy (base_parser::make_spmd_command): Fix copy/paste error
from changeset b8ab8b58547d so that END token checking will work
properly.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 01 Jul 2020 13:18:19 -0400 |
parents | b8ab8b58547d |
children | 605b9e811bf3 |
comparison
equal
deleted
inserted
replaced
28521:23a33db2bdb3 | 28522:a5541f5a78dd |
---|---|
3251 token *end_tok, comment_list *lc, | 3251 token *end_tok, comment_list *lc, |
3252 comment_list *tc) | 3252 comment_list *tc) |
3253 { | 3253 { |
3254 tree_spmd_command *retval = nullptr; | 3254 tree_spmd_command *retval = nullptr; |
3255 | 3255 |
3256 if (end_token_ok (end_tok, token::if_end)) | 3256 if (end_token_ok (end_tok, token::spmd_end)) |
3257 { | 3257 { |
3258 int l = spmd_tok->line (); | 3258 int l = spmd_tok->line (); |
3259 int c = spmd_tok->column (); | 3259 int c = spmd_tok->column (); |
3260 | 3260 |
3261 retval = new tree_spmd_command (body, lc, tc, l, c); | 3261 retval = new tree_spmd_command (body, lc, tc, l, c); |