changeset 31048:1589a7967d1e stable

* lex.ll (base_lexer::handle_identifier): Fix comment to match code.
author John W. Eaton <jwe@octave.org>
date Tue, 31 May 2022 23:30:40 -0400
parents 690df1852f27
children d5997bbdb641 3a93a77dd4cf
files libinterp/parse-tree/lex.ll
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Mon May 30 18:24:00 2022 -0700
+++ b/libinterp/parse-tree/lex.ll	Tue May 31 23:30:40 2022 -0400
@@ -3575,9 +3575,7 @@
     //   pi +1
     //
     // are parsed as an addition expression instead of as a command-style
-    // function call with the argument "+1".  Also for compatibility with
-    // Matlab, if we are at the top level workspace, do not consider IDENT
-    // as a possible command if it is already known to be a variable.
+    // function call with the argument "+1".
 
     if (m_at_beginning_of_statement
         && ! (m_parsing_anon_fcn_body