diff libinterp/parse-tree/lex.ll @ 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 fee897477e3b
children d5997bbdb641 4d45392387ec
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