changeset 6067:b83e4f9540a0

[project @ 2006-10-20 13:36:13 by jwe]
author jwe
date Fri, 20 Oct 2006 13:36:14 +0000
parents 27fa671e5599
children c9f0839c583f
files src/ChangeLog src/lex.l
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Oct 20 08:33:20 2006 +0000
+++ b/src/ChangeLog	Fri Oct 20 13:36:14 2006 +0000
@@ -1,3 +1,8 @@
+2006-10-20  John W. Eaton  <jwe@octave.org>
+
+	* lex.l (handle_identifier): If a command name is found, skip
+	starting command mode if parsing an object index.
+
 2006-10-20  David Bateman  <dbateman@free.fr>
 
 	* DLD-FUNCTION/spqr.cc (dmperm_internal): New function with core
--- a/src/lex.l	Fri Oct 20 08:33:20 2006 +0000
+++ b/src/lex.l	Fri Oct 20 13:36:14 2006 +0000
@@ -2318,12 +2318,12 @@
 	{
 	  force_local_variable (tok);
 	}
-      else if (! next_tok_is_paren)
+      else if (! (next_tok_is_paren || lexer_flags.looking_at_object_index))
 	{
 	  BEGIN (COMMAND_START);
 	}
 
-      if (is_rawcommand_name (tok))
+      if (is_rawcommand_name (tok) && ! lexer_flags.looking_at_object_index)
 	{
 	  lexer_flags.doing_rawcommand = true;
 	  BEGIN (COMMAND_START);