comparison libinterp/parse-tree/lex.ll @ 31049:d5997bbdb641

maint: merge stable to default
author John W. Eaton <jwe@octave.org>
date Tue, 31 May 2022 23:34:23 -0400
parents c9788d7f6e65 1589a7967d1e
children f0343b3685df
comparison
equal deleted inserted replaced
31047:c55c6b91447f 31049:d5997bbdb641
3573 // handled specially so that things like 3573 // handled specially so that things like
3574 // 3574 //
3575 // pi +1 3575 // pi +1
3576 // 3576 //
3577 // are parsed as an addition expression instead of as a command-style 3577 // are parsed as an addition expression instead of as a command-style
3578 // function call with the argument "+1". Also for compatibility with 3578 // function call with the argument "+1".
3579 // Matlab, if we are at the top level workspace, do not consider IDENT
3580 // as a possible command if it is already known to be a variable.
3581 3579
3582 if (m_at_beginning_of_statement 3580 if (m_at_beginning_of_statement
3583 && ! (m_parsing_anon_fcn_body 3581 && ! (m_parsing_anon_fcn_body
3584 || ident == "e" || ident == "pi" 3582 || ident == "e" || ident == "pi"
3585 || ident == "I" || ident == "i" 3583 || ident == "I" || ident == "i"